点检、巡检调整

master^2
FCD 2 months ago
parent c4dc5309c7
commit 94d9013406

@ -52,6 +52,10 @@
单位:mm 单位:mm
</div> </div>
</div> </div>
<div class="item1">
拍摄照片<text style="color: red">*</text>
<lj-choose-img :img-list.sync="item1.imgList"></lj-choose-img>
</div>
</div> </div>
</view> </view>
</view> </view>
@ -67,7 +71,7 @@
</u-col> </u-col>
</u-row> </u-row>
</view> </view>
<u-modal v-model="isshow" class="modal" :show-cancel-button="true" :show-title="false" @cancel="cancel" @confirm="confirm"> <u-modal v-model="isshow2" class="modal" :show-cancel-button="true" :show-title="false" @cancel="cancel" @confirm="confirm">
<div class="upload-name"> <div class="upload-name">
<div class="name">检查标准:{{ form.item5 }}</div> <div class="name">检查标准:{{ form.item5 }}</div>
<!-- <u-upload :before-upload="beforeUpload" ref="uUpload" :fileList="fileList" @on-error='errorUpload($event)' :action="action" @on-remove="removePic($event, item)" @on-success="successUpload($event)" :deletable="true"></u-upload> --> <!-- <u-upload :before-upload="beforeUpload" ref="uUpload" :fileList="fileList" @on-error='errorUpload($event)' :action="action" @on-remove="removePic($event, item)" @on-success="successUpload($event)" :deletable="true"></u-upload> -->
@ -99,9 +103,11 @@ import model from '../Spotcheck/model';
import chooseOne from '@/components/choose-one/choose-one.vue'; import chooseOne from '@/components/choose-one/choose-one.vue';
import jPicker from '@/components/J-Picker/jPicker.vue'; import jPicker from '@/components/J-Picker/jPicker.vue';
import { session } from '@/store/modules/session'; import { session } from '@/store/modules/session';
import LjChooseImg from "@/components/lanju/lj-choose-img/index.vue";
//import store from '@/store'; //import store from '@/store';
@Component({ @Component({
components: { components: {
LjChooseImg,
chooseOne, chooseOne,
jPicker, jPicker,
}, },
@ -124,6 +130,7 @@ export default class ChangePalletNew extends BasePage {
detailsinfocontent: any = {}; detailsinfocontent: any = {};
// //
isshow = false; isshow = false;
isshow2 = false;
inputmodal = false; inputmodal = false;
isvalue = false; isvalue = false;
ischecked = false; ischecked = false;
@ -373,17 +380,26 @@ export default class ChangePalletNew extends BasePage {
}); });
return; return;
} }
this.detailsinfolist.detailList.forEach((item) => { for (const item of this.detailsinfolist.detailList){
if (item.standardList.length > 0) { if (item.standardList.length > 0) {
item.standardList.forEach((item1) => { for (const item1 of item.standardList){
if (item1.standardType === 'quantify') { if (item1.standardType === 'quantify') {
if (item1.actualValue == null || item1.actualValue == '') { if (item1.actualValue == null || item1.actualValue == '') {
this.isvalue = true; this.isvalue = true;
} }
} }
}); //standardName
if (!item1.imgList || item1.imgList.size <= 0){
uni.showToast({
title:item1.standardName+"未拍照!",
icon:"none"
})
return
}
item1.picturePath = item1.imgList.join(',');
}
} }
}); }
console.log('choubug222', this.isvalue); console.log('choubug222', this.isvalue);
if (this.isvalue) { if (this.isvalue) {
(this.$refs.uToast as any).show({ (this.$refs.uToast as any).show({
@ -473,7 +489,6 @@ export default class ChangePalletNew extends BasePage {
.list { .list {
margin-top: 15px; margin-top: 15px;
width: 367px;
border-radius: 5px; border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px; border: rgba(121, 121, 121, 1) solid 1px;
background-color: #ffffff; background-color: #ffffff;
@ -512,7 +527,6 @@ export default class ChangePalletNew extends BasePage {
} }
.item { .item {
margin-top: 15px; margin-top: 15px;
width: 344px;
border-radius: 5px; border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px; border: rgba(121, 121, 121, 1) solid 1px;
background-color: #ffffff; background-color: #ffffff;

@ -64,6 +64,10 @@
单位:mm 单位:mm
</div> </div>
</div> </div>
<div class="item1">
拍摄照片<text style="color: red">*</text>
<lj-choose-img :img-list.sync="item1.imgList"></lj-choose-img>
</div>
</div> </div>
</view> </view>
</view> </view>
@ -172,7 +176,7 @@
</div> </div>
</div> </div>
</view> --> </view> -->
<u-modal v-model="isshow" class="modal" :show-cancel-button="true" :show-title="false" @cancel="cancel" @confirm="confirm"> <u-modal v-model="isshow2" class="modal" :show-cancel-button="true" :show-title="false" @cancel="cancel" @confirm="confirm">
<div class="upload-name"> <div class="upload-name">
<div class="name">检查标准:{{ form.item5 }}</div> <div class="name">检查标准:{{ form.item5 }}</div>
<!-- <u-upload :before-upload="beforeUpload" ref="uUpload" :fileList="fileList" @on-error='errorUpload($event)' :action="action" @on-remove="removePic($event, item)" @on-success="successUpload($event)" :deletable="true"></u-upload> --> <!-- <u-upload :before-upload="beforeUpload" ref="uUpload" :fileList="fileList" @on-error='errorUpload($event)' :action="action" @on-remove="removePic($event, item)" @on-success="successUpload($event)" :deletable="true"></u-upload> -->
@ -204,9 +208,11 @@ import model from './model';
import chooseOne from '@/components/choose-one/choose-one.vue'; import chooseOne from '@/components/choose-one/choose-one.vue';
import jPicker from '@/components/J-Picker/jPicker.vue'; import jPicker from '@/components/J-Picker/jPicker.vue';
import { session } from '@/store/modules/session'; import { session } from '@/store/modules/session';
import LjChooseImg from "@/components/lanju/lj-choose-img/index.vue";
//import store from '@/store'; //import store from '@/store';
@Component({ @Component({
components: { components: {
LjChooseImg,
chooseOne, chooseOne,
jPicker, jPicker,
}, },
@ -229,6 +235,7 @@ export default class ChangePalletNew extends BasePage {
detailsinfocontent: any = {}; detailsinfocontent: any = {};
// //
isshow = false; isshow = false;
isshow2 = false;
inputmodal = false; inputmodal = false;
ischecked = false; ischecked = false;
radiomodal = false; radiomodal = false;
@ -588,18 +595,25 @@ export default class ChangePalletNew extends BasePage {
}); });
} }
async onSubmit() { async onSubmit() {
this.detailsinfolist.detailList.forEach((item) => { for (const item of this.detailsinfolist.detailList){
if (item.standardList.length > 0) { if (item.standardList.length > 0) {
item.standardList.forEach((item1) => { for(const item1 of item.standardList){
if (item1.standardType == 'quantify') { if (item1.standardType == 'quantify') {
if (item1.actualValue == null || item1.actualValue == '') { if (item1.actualValue == null || item1.actualValue == '') {
// console.log(this.isvalue); // console.log(this.isvalue);
this.isvalue = true; this.isvalue = true;
} }
} }
}); if (!item1.imgList || item1.imgList.size <= 0){
uni.showToast({
title:item1.standardName+"未拍照!",
icon:"none"
})
return
}
}
} }
}); }
// if (this.orderNo == '' || this.orderNo.length == 0) { // if (this.orderNo == '' || this.orderNo.length == 0) {
// this.customToast('nficl'); // this.customToast('nficl');
// return; // return;
@ -705,7 +719,6 @@ export default class ChangePalletNew extends BasePage {
.list { .list {
margin-top: 15px; margin-top: 15px;
width: 367px;
border-radius: 5px; border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px; border: rgba(121, 121, 121, 1) solid 1px;
background-color: #ffffff; background-color: #ffffff;
@ -836,7 +849,6 @@ export default class ChangePalletNew extends BasePage {
} }
.item { .item {
margin-top: 15px; margin-top: 15px;
width: 344px;
border-radius: 5px; border-radius: 5px;
border: rgba(121, 121, 121, 1) solid 1px; border: rgba(121, 121, 121, 1) solid 1px;
background-color: #ffffff; background-color: #ffffff;

Loading…
Cancel
Save