危大工程
This commit is contained in:
parent
beffce4330
commit
39d72c7d03
@ -31,19 +31,19 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="form-item f-column b-bottom a-none" v-if="checkRecord.acceptanceResult !== 1 && checkRecord.acceptanceResult !== 2">
|
<view class="form-item f-column b-bottom a-none" v-if="checkRecord.acceptanceResult !== 1 && checkRecord.acceptanceResult !== 2">
|
||||||
<view class="form-lable">验收描述</view>
|
<view class="form-lable"><text class="tag">*</text>验收描述</view>
|
||||||
<textarea class="form-textarea" @input="bindLength" @blur="bindTextAreaBlur" maxlength="50"
|
<textarea class="form-textarea" @input="bindLength" @blur="bindTextAreaBlur" maxlength="50"
|
||||||
:value="formData.acceptanceDescribe" placeholder="请输入验收描述" />
|
:value="formData.acceptanceDescribe" placeholder="请输入验收描述" />
|
||||||
<view class="txt-length">{{textareaLengh}}/50</view>
|
<view class="txt-length">{{textareaLengh}}/50</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="form-item f-column b-bottom a-none" v-else>
|
<view class="form-item f-column b-bottom a-none" v-else>
|
||||||
<view class="form-lable">验收描述</view>
|
<view class="form-lable"><text class="tag">*</text>验收描述</view>
|
||||||
<textarea class="form-textarea" maxlength="50" :disabled="true"
|
<textarea class="form-textarea" maxlength="50" :disabled="true"
|
||||||
:value="checkRecord.acceptanceDesc" placeholder="请输入验收描述" />
|
:value="checkRecord.acceptanceDesc" placeholder="请输入验收描述" />
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="form-item f-column a-none">
|
<view class="form-item f-column a-none">
|
||||||
<view class="form-lable">现场照片</view>
|
<view class="form-lable"><text class="tag">*</text>现场照片</view>
|
||||||
<view class="uni-form-input imgBox_wrap" v-if="checkRecord.acceptanceResult !== 1 && checkRecord.acceptanceResult !== 2">
|
<view class="uni-form-input imgBox_wrap" v-if="checkRecord.acceptanceResult !== 1 && checkRecord.acceptanceResult !== 2">
|
||||||
<view class="addImgBox" @click="uploadImg" v-show="formData.imgFileList.length == 0">
|
<view class="addImgBox" @click="uploadImg" v-show="formData.imgFileList.length == 0">
|
||||||
<image src="/static/safeMange/upload_image.png" class="icon-add" color="#F56C6C"></image>
|
<image src="/static/safeMange/upload_image.png" class="icon-add" color="#F56C6C"></image>
|
||||||
@ -207,7 +207,36 @@
|
|||||||
saveForm() {
|
saveForm() {
|
||||||
// console.log(this.formData)
|
// console.log(this.formData)
|
||||||
// this.isPopupVisible = true
|
// this.isPopupVisible = true
|
||||||
|
|
||||||
|
if(!this.formData.acceptanceResult){
|
||||||
|
uni.showToast({
|
||||||
|
title: '请选择结果',
|
||||||
|
icon: "none",
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(!this.formData.acceptanceDescribe){
|
||||||
|
uni.showToast({
|
||||||
|
title: '请输入验收描述',
|
||||||
|
icon: "none",
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(!this.formData.imgFileList[0]){
|
||||||
|
uni.showToast({
|
||||||
|
title: '请上传现场照片',
|
||||||
|
icon: "none",
|
||||||
|
duration: 2000
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if(this.formData.acceptanceResult === 1){
|
||||||
this.unitDialog = true
|
this.unitDialog = true
|
||||||
|
}else{
|
||||||
|
this.confirmClose()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
confirmClose(){
|
confirmClose(){
|
||||||
// this.unitDialog = true
|
// this.unitDialog = true
|
||||||
@ -217,9 +246,6 @@
|
|||||||
acceptanceDesc: this.formData.acceptanceDescribe, //验收描述
|
acceptanceDesc: this.formData.acceptanceDescribe, //验收描述
|
||||||
photo: this.formData.imgFileList[0].url
|
photo: this.formData.imgFileList[0].url
|
||||||
}
|
}
|
||||||
console.log("===============================");
|
|
||||||
console.log(data);
|
|
||||||
console.log("===============================");
|
|
||||||
// data.createUser = JSON.parse(uni.getStorageSync('userInfo')).userId;
|
// data.createUser = JSON.parse(uni.getStorageSync('userInfo')).userId;
|
||||||
// let arr = []
|
// let arr = []
|
||||||
// this.formData.imgFileList.forEach(item=>{
|
// this.formData.imgFileList.forEach(item=>{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user