diff --git a/pages/projectEnd/dangerBigProject/backlogTrial/backlogTrial.vue b/pages/projectEnd/dangerBigProject/backlogTrial/backlogTrial.vue
index a06c8c89..d5f9224b 100644
--- a/pages/projectEnd/dangerBigProject/backlogTrial/backlogTrial.vue
+++ b/pages/projectEnd/dangerBigProject/backlogTrial/backlogTrial.vue
@@ -31,19 +31,19 @@
- 验收描述
+ *验收描述
{{textareaLengh}}/50
- 验收描述
+ *验收描述
- 现场照片
+ *现场照片
@@ -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=>{