|
@@ -79,6 +79,10 @@
|
|
} else {
|
|
} else {
|
|
return normalBtnGroup;
|
|
return normalBtnGroup;
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ dataIsNull() {
|
|
|
|
+ let data = this.checkMap.list.filter((item)=> item.status !== 'disable');
|
|
|
|
+ return data.length === 0;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
onLoad:function({id,type}){
|
|
onLoad:function({id,type}){
|
|
@@ -123,7 +127,7 @@
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
save: function() {
|
|
save: function() {
|
|
- const {sitName,preDay,preH,startDay} = this.situationPreview;
|
|
|
|
|
|
+ const {sitName,preDay,preH,startDay, description} = this.situationPreview;
|
|
const {dateObj,checkedItem,checkList} = this.checkPlan;
|
|
const {dateObj,checkedItem,checkList} = this.checkPlan;
|
|
const {depType, options, conditionIds} = this.condition;
|
|
const {depType, options, conditionIds} = this.condition;
|
|
if(!sitName || sitName.length < 2) {
|
|
if(!sitName || sitName.length < 2) {
|
|
@@ -135,6 +139,7 @@
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
let data = {
|
|
let data = {
|
|
|
|
+ description,
|
|
name: sitName,
|
|
name: sitName,
|
|
topic: this.theme.id,
|
|
topic: this.theme.id,
|
|
checkPlanStartDate: dateObj.start,
|
|
checkPlanStartDate: dateObj.start,
|
|
@@ -219,6 +224,8 @@
|
|
let condition = this.checkRent.checkedItem.id !== null && points;
|
|
let condition = this.checkRent.checkedItem.id !== null && points;
|
|
flage = this.errorHandle(condition, 2);
|
|
flage = this.errorHandle(condition, 2);
|
|
break;
|
|
break;
|
|
|
|
+ case 3: flage = this.errorHandle(!this.dataIsNull, 3);
|
|
|
|
+ break;
|
|
case 4:
|
|
case 4:
|
|
const {checkList} = this.checkPlan;
|
|
const {checkList} = this.checkPlan;
|
|
flage = this.errorHandle(checkList.length > 0, 4);
|
|
flage = this.errorHandle(checkList.length > 0, 4);
|
|
@@ -243,7 +250,7 @@
|
|
} else {
|
|
} else {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '温馨提示',
|
|
title: '温馨提示',
|
|
- content: `请先选择${this.options[index].hint}!`,
|
|
|
|
|
|
+ content: index === 3 ? '查核地图不能为空' :`请先选择${this.options[index].hint}!`,
|
|
showCancel: false
|
|
showCancel: false
|
|
});
|
|
});
|
|
return false;
|
|
return false;
|