1、安全检查项bug修复
parent
ccc2c1d618
commit
f26c6c94a7
|
@ -28,7 +28,7 @@
|
|||
</u-form-item>
|
||||
</u-form>
|
||||
<view class="mt-10">
|
||||
<u-button type="primary" text="气体分析" @click="$u.debounce(fnSubmit, 1000,true)"/>
|
||||
<u-button v-if="isView !== '1'" type="primary" text="气体分析" @click="$u.debounce(fnSubmit, 1000,true)"/>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -56,11 +56,13 @@ export default {
|
|||
GAS_STANDARD4: '',
|
||||
},
|
||||
rules: {},
|
||||
isView: ''
|
||||
}
|
||||
},
|
||||
onLoad(query) {
|
||||
this.EW_RU_TASK_ID = query.taskId
|
||||
this.EW_RU_JOB_ID = query.EW_RU_JOB_ID
|
||||
if (query.isView === '1') this.isView = '1'
|
||||
},
|
||||
onShow() {
|
||||
this.fnGetData()
|
||||
|
|
|
@ -71,8 +71,18 @@ export default {
|
|||
},
|
||||
async fnSubmit() {
|
||||
for (let i = 0; i < this.items.length; i++) {
|
||||
let isYes = false;
|
||||
for (let j = 0; j < this.items[i].options.length; j++) {
|
||||
if (
|
||||
this.items[i].options[j].MARKERS &&
|
||||
this.items[i].options[j].MARKERS === "1" &&
|
||||
this.items[i].options[j].VALUE_INFO === "1"
|
||||
) {
|
||||
isYes = true;
|
||||
}
|
||||
}
|
||||
for (let j = 0; j < this.items[i].inputBoxes.length; j++) {
|
||||
if (!this.items[i].inputBoxes[j].MARKERS) {
|
||||
if (isYes && !this.items[i].inputBoxes[j].MARKERS) {
|
||||
uni.$u.toast(`第${i + 1}行第${j + 1}项未填写`)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue