diff --git a/pages/stampingInspectionInfo/stampingInspectionInfo.vue b/pages/stampingInspectionInfo/stampingInspectionInfo.vue index e9d8467..d18db4f 100644 --- a/pages/stampingInspectionInfo/stampingInspectionInfo.vue +++ b/pages/stampingInspectionInfo/stampingInspectionInfo.vue @@ -189,32 +189,32 @@ export default { this.configSet[index].check_conf_msg[idx].situation = this.methList[e.detail.value]; }, submits() { - // for (let b in this.configSet) { - // for (let i in this.configSet[b].check_conf_msg) { - // let items = this.configSet[b].check_conf_msg[i]; - // if (this.configSet[b].check_conf_msg[i].status == 1) { - // if (items.choice == 'NG' && (!items.content || !items.situation)) { - // this.$functions.error('请完整填写信息'); - // return false; - // } - // } else { - // if (!items.input) { - // this.$functions.error('请完整填写信息'); - // return false; - // } - // } + for (let b in this.configSet) { + for (let i in this.configSet[b].check_conf_msg) { + let items = this.configSet[b].check_conf_msg[i]; + if (this.configSet[b].check_conf_msg[i].status == 1) { + if (items.choice == 'NG' && (!items.content || !items.situation)) { + this.$functions.error('请完整填写信息'); + return false; + } + } else { + if (!items.input) { + this.$functions.error('请完整填写信息'); + return false; + } + } - // this.froms.item.push({ - // check_conf_id: item.id, - // json: { - // choice: items.choice, - // content: items.content, - // situation: items.situation, - // input: items.input - // } - // }); - // } - // } + this.froms.item.push({ + check_conf_id: item.id, + json: { + choice: items.choice, + content: items.content, + situation: items.situation, + input: items.input + } + }); + } + } cyCheckAdd(this.froms).then(res => { this.$functions.success('提交成功').then(() => {