1、安全检查项bug修复
parent
ccc2c1d618
commit
f26c6c94a7
|
@ -28,7 +28,7 @@
|
||||||
</u-form-item>
|
</u-form-item>
|
||||||
</u-form>
|
</u-form>
|
||||||
<view class="mt-10">
|
<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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -56,11 +56,13 @@ export default {
|
||||||
GAS_STANDARD4: '',
|
GAS_STANDARD4: '',
|
||||||
},
|
},
|
||||||
rules: {},
|
rules: {},
|
||||||
|
isView: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(query) {
|
onLoad(query) {
|
||||||
this.EW_RU_TASK_ID = query.taskId
|
this.EW_RU_TASK_ID = query.taskId
|
||||||
this.EW_RU_JOB_ID = query.EW_RU_JOB_ID
|
this.EW_RU_JOB_ID = query.EW_RU_JOB_ID
|
||||||
|
if (query.isView === '1') this.isView = '1'
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
this.fnGetData()
|
this.fnGetData()
|
||||||
|
|
|
@ -71,8 +71,18 @@ export default {
|
||||||
},
|
},
|
||||||
async fnSubmit() {
|
async fnSubmit() {
|
||||||
for (let i = 0; i < this.items.length; i++) {
|
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++) {
|
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}项未填写`)
|
uni.$u.toast(`第${i + 1}行第${j + 1}项未填写`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue