危大工程

This commit is contained in:
Vce 2024-05-11 02:51:48 +08:00
parent beffce4330
commit 39d72c7d03

View File

@ -31,19 +31,19 @@
</view>
<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"
:value="formData.acceptanceDescribe" placeholder="请输入验收描述" />
<view class="txt-length">{{textareaLengh}}/50</view>
</view>
<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"
:value="checkRecord.acceptanceDesc" placeholder="请输入验收描述" />
</view>
<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="addImgBox" @click="uploadImg" v-show="formData.imgFileList.length == 0">
<image src="/static/safeMange/upload_image.png" class="icon-add" color="#F56C6C"></image>
@ -207,7 +207,36 @@
saveForm() {
// console.log(this.formData)
// this.isPopupVisible = true
this.unitDialog = 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
}else{
this.confirmClose()
}
},
confirmClose(){
// this.unitDialog = true
@ -217,9 +246,6 @@
acceptanceDesc: this.formData.acceptanceDescribe, //
photo: this.formData.imgFileList[0].url
}
console.log("===============================");
console.log(data);
console.log("===============================");
// data.createUser = JSON.parse(uni.getStorageSync('userInfo')).userId;
// let arr = []
// this.formData.imgFileList.forEach(item=>{