|
|
|
@ -5,21 +5,21 @@
|
|
|
|
|
<view class="left">
|
|
|
|
|
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
|
|
|
|
|
</view>
|
|
|
|
|
<view class="title">点检详情</view>
|
|
|
|
|
<view class="title">巡检详情</view>
|
|
|
|
|
<view class="right"></view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <u-tabs name="cate_name" count="cate_count" :list="list" :is-scroll="false" :current="current" @change="change"></u-tabs> -->
|
|
|
|
|
|
|
|
|
|
<view class="list">
|
|
|
|
|
<div class="item-name">
|
|
|
|
|
<div class="quest">点检任务: 点检任务1</div>
|
|
|
|
|
<div class="quest">工单号: {{ detailsinfolist.orderCode }}</div>
|
|
|
|
|
<div class="details">
|
|
|
|
|
<div>设备编码: {{ detailsinfo.itemq }}</div>
|
|
|
|
|
<div style="margin-left: 42px">设备名称: {{ detailsinfo.itemq }}</div>
|
|
|
|
|
<div>设备编码: {{ detailsinfolist.equipmentCode }}</div>
|
|
|
|
|
<div style="margin-left: 42px">设备名称: {{ detailsinfolist.equipmentName }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="details">
|
|
|
|
|
<div>车间: {{ detailsinfo.itemq }}</div>
|
|
|
|
|
<div style="margin-left: 42px">产线: {{ detailsinfo.itemq }}</div>
|
|
|
|
|
<div>车间: {{ detailsinfocontent.planWorkshop }}</div>
|
|
|
|
|
<div style="margin-left: 42px">工作中心: {{ detailsinfocontent.workCenterName }}</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<view class="single-left">
|
|
|
|
@ -27,27 +27,29 @@
|
|
|
|
|
<u-search style="border: 1px solid #a19d9d" placeholder="请扫描" @search="search(orderNo)" :focus="shouciFocus" v-model="orderNo" :show-action="false"></u-search>
|
|
|
|
|
<!-- <uni-icons type="scan" size="35" @click="scanCodeOne" style="color: #0b9eff; margin: auto; padding: 22rpx"></uni-icons> -->
|
|
|
|
|
</view>
|
|
|
|
|
<view class="item" v-for="(item, index) in equipmentdata" :key="index">
|
|
|
|
|
<div class="item1">检查项: {{ item.item3 }}</div>
|
|
|
|
|
<div class="item1">检查方法: {{ item.item4 }}</div>
|
|
|
|
|
<div class="item1 item2">
|
|
|
|
|
<div style="white-space: nowrap">检查标准: {{ item.item5 }}</div>
|
|
|
|
|
<view class="item" v-show="isaccord" v-for="(item, index) in detailsinfolist.detailList" :key="index">
|
|
|
|
|
<div class="item1">检查项: {{ item.itemName }}</div>
|
|
|
|
|
<div class="item1">检查方法: {{ item.itemMethod }}</div>
|
|
|
|
|
<div v-for="(item1, index1) in item.standardList" :key="index1">
|
|
|
|
|
<div class="item1 item2" v-if="item1.standardType == 'qualitative'">
|
|
|
|
|
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
|
|
|
|
|
<div class="select">
|
|
|
|
|
<u-radio-group v-model="item.radiovalue" @change="radioGroupChange(item, item.radiovalue, index)">
|
|
|
|
|
<u-radio @change="radioChange" v-for="(n, index) in item.listselect" :key="index" :name="n.name" :disabled="n.disabled">
|
|
|
|
|
<u-radio-group v-model="item1.detailReach" @change="radioGroupChange(item1, item1.detailReach, index, index1)">
|
|
|
|
|
<u-radio @change="radioChange" v-for="(n, indexn) in listselect" :key="indexn" :name="n.type" :disabled="n.disabled">
|
|
|
|
|
{{ n.name }}
|
|
|
|
|
</u-radio>
|
|
|
|
|
</u-radio-group>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="item1 item2">
|
|
|
|
|
<div style="white-space: nowrap">检查标准: {{ item.item5 }}</div>
|
|
|
|
|
<div class="item1 item2" v-if="item1.standardType == 'quantify'">
|
|
|
|
|
<div style="white-space: nowrap">检查标准: {{ item1.standardName }}</div>
|
|
|
|
|
<div class="input-box" id="input-box1">
|
|
|
|
|
实际值:
|
|
|
|
|
<input class="input" v-model="item.value" @blur="blur(item, item.value, index)" @change="changeinput(item, item.value, index)" @input="input(item, item.value, index)" type="text" name="" id="" />
|
|
|
|
|
<input class="input" v-model="item1.detailReach" @blur="blur(item1, item1.detailReach, index, index1)" @change="changeinput(item1, item1.detailReach, index, index1)" @input="input(item1, item1.detailReach, index, index1)" type="text" name="" id="" />
|
|
|
|
|
单位:mm
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="bottom-bar">
|
|
|
|
@ -68,7 +70,7 @@
|
|
|
|
|
<!-- <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> -->
|
|
|
|
|
<scroll-view class="scroll-view_H" scroll-x="true" :scroll-left="scrollLeft()">
|
|
|
|
|
<view class="photoList">
|
|
|
|
|
<view class="itemBox photoBox" v-for="(img, index) in imgUrlList" :key="index">
|
|
|
|
|
<view class="itemBox photoBox" v-for="(img, index) in imgList" :key="index">
|
|
|
|
|
<view class="closeBtn" @click="deleteImg(index)">
|
|
|
|
|
<image class="img" src="../../../static/images/iconCloseGray.svg" mode="scaleToFill"></image>
|
|
|
|
|
</view>
|
|
|
|
@ -92,6 +94,7 @@ import { BasePage } from '@/components/base/page';
|
|
|
|
|
import model from './model';
|
|
|
|
|
import chooseOne from '@/components/choose-one/choose-one.vue';
|
|
|
|
|
import jPicker from '@/components/J-Picker/jPicker.vue';
|
|
|
|
|
import { session } from '@/store/modules/session';
|
|
|
|
|
//import store from '@/store';
|
|
|
|
|
@Component({
|
|
|
|
|
components: {
|
|
|
|
@ -106,68 +109,39 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
cate_name: '今日任务',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
cate_name: '点检记录',
|
|
|
|
|
cate_name: '巡检记录',
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
current: any = 0;
|
|
|
|
|
shouciFocus = true;
|
|
|
|
|
// 详细
|
|
|
|
|
detailsinfo: any = [];
|
|
|
|
|
detailsinfolist: any = [];
|
|
|
|
|
detailsinfo: any = {};
|
|
|
|
|
detailsinfolist: any = {};
|
|
|
|
|
detailsinfocontent: any = {};
|
|
|
|
|
// 模态框
|
|
|
|
|
isshow = false;
|
|
|
|
|
inputmodal = false;
|
|
|
|
|
isvalue = false;
|
|
|
|
|
ischecked = false;
|
|
|
|
|
radiomodal = false;
|
|
|
|
|
// 条码是否一样
|
|
|
|
|
isaccord = false;
|
|
|
|
|
// 设备信息
|
|
|
|
|
equipmentdata: any = [
|
|
|
|
|
{
|
|
|
|
|
itemq: '测试设备1',
|
|
|
|
|
item2: '已点检',
|
|
|
|
|
item3: '2023-08-01 - 2023-08-31',
|
|
|
|
|
item4: '每月点检',
|
|
|
|
|
item5: 'XXXXX',
|
|
|
|
|
item6: '未发现异常',
|
|
|
|
|
radiovalue: '符合标准',
|
|
|
|
|
value: 55,
|
|
|
|
|
imgUrlList1: ['https://cdn.uviewui.com/uview/swiper/1.jpg', 'https://cdn.uviewui.com/uview/swiper/2.jpg', 'https://cdn.uviewui.com/uview/swiper/3.jpg'],
|
|
|
|
|
imgUrlList2: ['https://cdn.uviewui.com/uview/swiper/1.jpg', 'https://cdn.uviewui.com/uview/swiper/2.jpg'],
|
|
|
|
|
listselect: [
|
|
|
|
|
equipmentdata: any = [];
|
|
|
|
|
listselect: any = [
|
|
|
|
|
{
|
|
|
|
|
type: 0,
|
|
|
|
|
name: '符合标准',
|
|
|
|
|
radiovalue: null,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: 1,
|
|
|
|
|
name: '未达标',
|
|
|
|
|
radiovalue: null,
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
valuemax: 100,
|
|
|
|
|
valuemin: 50,
|
|
|
|
|
},
|
|
|
|
|
// {
|
|
|
|
|
// itemq: '测试设备2',
|
|
|
|
|
// item2: '已点检',
|
|
|
|
|
// item3: '2023-08-01 - 2023-08-31',
|
|
|
|
|
// item4: '每月点检',
|
|
|
|
|
// item5: 'XXXXX',
|
|
|
|
|
// item6: '未发现异常',
|
|
|
|
|
// radiovalue: '符合标准',
|
|
|
|
|
// value: 10,
|
|
|
|
|
// imgUrlList1: ['https://cdn.uviewui.com/uview/swiper/1.jpg', 'https://cdn.uviewui.com/uview/swiper/2.jpg', 'https://cdn.uviewui.com/uview/swiper/3.jpg'],
|
|
|
|
|
// imgUrlList2: ['https://cdn.uviewui.com/uview/swiper/1.jpg', 'https://cdn.uviewui.com/uview/swiper/2.jpg'],
|
|
|
|
|
// listselect: [
|
|
|
|
|
// {
|
|
|
|
|
// name: '符合标准',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// name: '未达标',
|
|
|
|
|
// },
|
|
|
|
|
// ],
|
|
|
|
|
// valuemax: 50,
|
|
|
|
|
// valuemin: 10,
|
|
|
|
|
// },
|
|
|
|
|
];
|
|
|
|
|
// 设备index equipment
|
|
|
|
|
equipmentindex: any = '';
|
|
|
|
|
equipmentindex: any = [];
|
|
|
|
|
orderNo: any = '';
|
|
|
|
|
location: any = '';
|
|
|
|
|
locationStatus: any = 1;
|
|
|
|
@ -177,22 +151,33 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
fileList: any = [];
|
|
|
|
|
filesArr: any = [];
|
|
|
|
|
imgList: any = [];
|
|
|
|
|
imgUrlList: any = [];
|
|
|
|
|
deleteimgUrlList: any = [];
|
|
|
|
|
deleteimgUrlListcope: any = [];
|
|
|
|
|
orderNoItemList: any = {};
|
|
|
|
|
picturePath: any = 'https://cdn.uviewui.com/uview/swiper/1.jpg,https://cdn.uviewui.com/uview/swiper/2.jpg';
|
|
|
|
|
|
|
|
|
|
async onReady() {
|
|
|
|
|
await this.model.getDictList();
|
|
|
|
|
//await this.model.getpalletLocation();
|
|
|
|
|
//this.remove = this.model.WlList[0];
|
|
|
|
|
}
|
|
|
|
|
// 输入框焦点
|
|
|
|
|
blur(item, value, index) {
|
|
|
|
|
blur(item, value, index, index1) {
|
|
|
|
|
console.log(item, value, index, index1);
|
|
|
|
|
this.radiomodal = false;
|
|
|
|
|
this.inputmodal = false;
|
|
|
|
|
console.log(item, value, index);
|
|
|
|
|
if (value > item.valuemax || value < item.valuemin) {
|
|
|
|
|
this.equipmentindex = index;
|
|
|
|
|
this.imgUrlList = JSON.parse(JSON.stringify(item.imgUrlList2));
|
|
|
|
|
if (value == null) {
|
|
|
|
|
this.isvalue == true;
|
|
|
|
|
}
|
|
|
|
|
if (value > item.detailUpLimit || value < item.detailDownLimit) {
|
|
|
|
|
this.equipmentindex = [];
|
|
|
|
|
this.equipmentindex.push(index);
|
|
|
|
|
this.equipmentindex.push(index1);
|
|
|
|
|
if (item.picturePath != null) {
|
|
|
|
|
this.imgList = JSON.parse(JSON.stringify(item.picturePath));
|
|
|
|
|
this.imgList = this.imgList.split(',');
|
|
|
|
|
} else {
|
|
|
|
|
this.imgList = [];
|
|
|
|
|
}
|
|
|
|
|
this.inputmodal = true;
|
|
|
|
|
this.isshow = true;
|
|
|
|
|
this.form = item;
|
|
|
|
@ -209,24 +194,35 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
console.log(e, '11111');
|
|
|
|
|
}
|
|
|
|
|
// 选中任一radio时,由radio-group触发
|
|
|
|
|
radioGroupChange(item, value, index) {
|
|
|
|
|
console.log(item, value, index);
|
|
|
|
|
radioGroupChange(item, value, index, index1) {
|
|
|
|
|
console.log(item, value, index, index1);
|
|
|
|
|
this.equipmentindex = [];
|
|
|
|
|
this.radiomodal = false;
|
|
|
|
|
this.inputmodal = false;
|
|
|
|
|
this.equipmentindex = index;
|
|
|
|
|
this.imgUrlList = JSON.parse(JSON.stringify(item.imgUrlList1));
|
|
|
|
|
if (value == '未达标') {
|
|
|
|
|
this.equipmentindex.push(index);
|
|
|
|
|
this.equipmentindex.push(index1);
|
|
|
|
|
if (item.picturePath != null) {
|
|
|
|
|
this.imgList = JSON.parse(JSON.stringify(item.picturePath));
|
|
|
|
|
this.imgList = this.imgList.split(',');
|
|
|
|
|
} else {
|
|
|
|
|
this.imgList = [];
|
|
|
|
|
}
|
|
|
|
|
if (value == 1) {
|
|
|
|
|
this.isshow = true;
|
|
|
|
|
this.radiomodal = true;
|
|
|
|
|
this.form = item;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
onLoad(options) {
|
|
|
|
|
async onLoad(options) {
|
|
|
|
|
let str = decodeURIComponent(options.listitem);
|
|
|
|
|
if (str) {
|
|
|
|
|
this.detailsinfo = JSON.parse(str);
|
|
|
|
|
this.detailsinfolist.push(this.detailsinfo);
|
|
|
|
|
console.log(this.detailsinfo);
|
|
|
|
|
let query = {
|
|
|
|
|
orderCode: this.detailsinfo.orderCode,
|
|
|
|
|
};
|
|
|
|
|
await this.model.getInspectionOrderInfo(query);
|
|
|
|
|
this.detailsinfocontent = this.model.OrderInfList;
|
|
|
|
|
this.detailsinfolist = this.model.OrderInfList.equ;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
created() {
|
|
|
|
@ -237,21 +233,40 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
//模态框图片上传
|
|
|
|
|
confirm() {
|
|
|
|
|
console.log((this as any).uUpload, 'sssss');
|
|
|
|
|
console.log((this as any).uUpload, 'sssss', this.equipmentindex);
|
|
|
|
|
console.log(this.detailsinfolist.detailList[this.equipmentindex[0]].standardList[this.equipmentindex[1]]);
|
|
|
|
|
if (this.radiomodal) {
|
|
|
|
|
this.equipmentdata[this.equipmentindex].imgUrlList1 = this.imgUrlList;
|
|
|
|
|
if (this.imgList.length == 0) {
|
|
|
|
|
this.detailsinfolist.detailList[this.equipmentindex[0]].standardList[this.equipmentindex[1]].picturePath = null;
|
|
|
|
|
} else {
|
|
|
|
|
this.imgList = this.imgList.join(',');
|
|
|
|
|
this.detailsinfolist.detailList[this.equipmentindex[0]].standardList[this.equipmentindex[1]].picturePath = this.imgList;
|
|
|
|
|
console.log(this.detailsinfolist.detailList[this.equipmentindex[0]].standardList[this.equipmentindex[1]], this.imgList);
|
|
|
|
|
}
|
|
|
|
|
} else if (this.inputmodal) {
|
|
|
|
|
this.equipmentdata[this.equipmentindex].imgUrlList2 = this.imgUrlList;
|
|
|
|
|
if (this.imgList.length == 0) {
|
|
|
|
|
this.detailsinfolist.detailList[this.equipmentindex[0]].standardList[this.equipmentindex[1]].picturePath = null;
|
|
|
|
|
} else {
|
|
|
|
|
this.imgList = this.imgList.join(',');
|
|
|
|
|
this.detailsinfolist.detailList[this.equipmentindex[0]].standardList[this.equipmentindex[1]].picturePath = this.imgList;
|
|
|
|
|
console.log(this.detailsinfolist.detailList[this.equipmentindex[0]].standardList[this.equipmentindex[1]], this.imgList);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
cancel() {
|
|
|
|
|
this.imgUrlList = this.deleteimgUrlList;
|
|
|
|
|
this.isshow = false;
|
|
|
|
|
if (this.detailsinfolist.detailList[this.equipmentindex[0]].standardList[this.equipmentindex[1]].picturePath == null) {
|
|
|
|
|
this.imgList = [];
|
|
|
|
|
} else {
|
|
|
|
|
this.imgList = this.detailsinfolist.detailList[this.equipmentindex[0]].standardList[this.equipmentindex[1]].picturePath;
|
|
|
|
|
this.imgList = this.imgList.split(',');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
scrollLeft() {
|
|
|
|
|
return 222 * (this.imgList.length + 1);
|
|
|
|
|
}
|
|
|
|
|
showScreenImg(i) {
|
|
|
|
|
let list = this.imgUrlList;
|
|
|
|
|
let list = this.imgList;
|
|
|
|
|
uni.previewImage({
|
|
|
|
|
current: i,
|
|
|
|
|
urls: list,
|
|
|
|
@ -259,72 +274,72 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
chooseImg() {
|
|
|
|
|
// if(!this.materialObj){
|
|
|
|
|
uni.chooseImage({
|
|
|
|
|
count: 9, //默认9
|
|
|
|
|
// sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
|
|
|
|
sourceType: ['album', 'camera'],
|
|
|
|
|
success: (res) => {
|
|
|
|
|
// uni.showLoading();
|
|
|
|
|
//console.log('/////',res);
|
|
|
|
|
let tempFilePaths: any = res.tempFilePaths;
|
|
|
|
|
|
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
|
// title: '成功',
|
|
|
|
|
// type: 'success',
|
|
|
|
|
// });
|
|
|
|
|
// uni.navigateBack({});
|
|
|
|
|
// } else {
|
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
|
// title: '失败',
|
|
|
|
|
// type: 'error',
|
|
|
|
|
// });
|
|
|
|
|
tempFilePaths.map((item) => {
|
|
|
|
|
uni.uploadFile({
|
|
|
|
|
url: '/dev-api/file/upload',
|
|
|
|
|
//url: '/dev-api/file/upload',
|
|
|
|
|
fileType: 'image',
|
|
|
|
|
filePath: item,
|
|
|
|
|
header: {
|
|
|
|
|
Authorization: 'Bearer ' + session.user?.access_token,
|
|
|
|
|
// 'cosmo-env-sitecode': this.$store.state.siteCode
|
|
|
|
|
},
|
|
|
|
|
name: 'file',
|
|
|
|
|
// formData: {
|
|
|
|
|
// materialCode: this.materialObj.materialCode,
|
|
|
|
|
// },
|
|
|
|
|
success: (res) => {
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
if (!res.data) {
|
|
|
|
|
// this.$refs.toastRef.show({
|
|
|
|
|
// type:"error",
|
|
|
|
|
// text:"请选择物料!"
|
|
|
|
|
// text:res.msg
|
|
|
|
|
// })
|
|
|
|
|
// return
|
|
|
|
|
// }
|
|
|
|
|
// uni.chooseImage({
|
|
|
|
|
// count: 9, //默认9
|
|
|
|
|
// // sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
|
|
|
|
|
// sourceType: ['album', 'camera'],
|
|
|
|
|
// success: (res) => {
|
|
|
|
|
// // uni.showLoading();
|
|
|
|
|
// //console.log('/////',res);
|
|
|
|
|
// let tempFilePaths: any = res.tempFilePaths;
|
|
|
|
|
// let imgUrlList: any = res.tempFilePaths;
|
|
|
|
|
// tempFilePaths.map((item, index) => {
|
|
|
|
|
// uni.uploadFile({
|
|
|
|
|
// url: 'http://192.168.202.20:9000/prod-api/file/upload',
|
|
|
|
|
// //url: '/dev-api/file/upload',
|
|
|
|
|
// fileType: 'image',
|
|
|
|
|
// filePath: item,
|
|
|
|
|
// header: {
|
|
|
|
|
// Authorization: 'Bearer ' + session.user?.access_token,
|
|
|
|
|
// // 'cosmo-env-sitecode': this.$store.state.siteCode
|
|
|
|
|
// },
|
|
|
|
|
// name: 'file',
|
|
|
|
|
// // formData: {
|
|
|
|
|
// // materialCode: this.materialObj.materialCode,
|
|
|
|
|
// // },
|
|
|
|
|
// success: (res) => {
|
|
|
|
|
// console.log(res);
|
|
|
|
|
// uni.hideLoading();
|
|
|
|
|
// if (!res.data) {
|
|
|
|
|
// // this.$refs.toastRef.show({
|
|
|
|
|
// // type:"error",
|
|
|
|
|
// // text:"上传失败!"
|
|
|
|
|
// // })
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
// let data = JSON.parse(res.data);
|
|
|
|
|
// console.log('123dddd', data);
|
|
|
|
|
// this.imgList = [...this.imgList, data.data.url];
|
|
|
|
|
// //this.imgListName = [...this.imgListName,data.fileName];
|
|
|
|
|
// this.imgUrlList = [...this.imgUrlList, imgUrlList[index]];
|
|
|
|
|
// //this.picUrls = this.imgList.join(",");
|
|
|
|
|
// //this.picNames = this.imgListName.join(",");
|
|
|
|
|
// console.log('this.imgList', this.imgList);
|
|
|
|
|
// uni.hideLoading();
|
|
|
|
|
// },
|
|
|
|
|
// fail: (err) => {
|
|
|
|
|
// console.log(err);
|
|
|
|
|
// // this.$refs.toastRef.show({
|
|
|
|
|
// // type:"error",
|
|
|
|
|
// // text:"上传失败!"
|
|
|
|
|
// // })
|
|
|
|
|
// uni.hideLoading();
|
|
|
|
|
// },
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
// });
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
let data = JSON.parse(res.data);
|
|
|
|
|
this.imgList = [...this.imgList, data.data.url];
|
|
|
|
|
//this.imgListName = [...this.imgListName,data.fileName];
|
|
|
|
|
//this.picUrls = this.imgList.join(",");
|
|
|
|
|
//this.picNames = this.imgListName.join(",");
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
},
|
|
|
|
|
fail: (err) => {
|
|
|
|
|
console.log(err);
|
|
|
|
|
// this.$refs.toastRef.show({
|
|
|
|
|
// type:"error",
|
|
|
|
|
// text:"上传失败!"
|
|
|
|
|
// })
|
|
|
|
|
uni.hideLoading();
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
deleteImg(index) {
|
|
|
|
|
this.deleteimgUrlList = JSON.parse(JSON.stringify(this.imgUrlList));
|
|
|
|
|
this.imgUrlList.splice(index, 1);
|
|
|
|
|
this.imgList = JSON.parse(JSON.stringify(this.detailsinfolist.detailList[this.equipmentindex[0]].standardList[this.equipmentindex[1]].picturePath));
|
|
|
|
|
this.imgList = this.imgList.split(',');
|
|
|
|
|
this.imgList.splice(index, 1);
|
|
|
|
|
}
|
|
|
|
|
scanCodeOne() {
|
|
|
|
|
uni.scanCode({
|
|
|
|
@ -339,16 +354,39 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
async onSubmit() {
|
|
|
|
|
if (this.orderNo == '' || this.orderNo.length == 0) {
|
|
|
|
|
this.customToast('请输入nficl');
|
|
|
|
|
this.customToast('请扫码设备编码');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// if (this.badMeg == '') {
|
|
|
|
|
// this.customToast('请输入不良描述');
|
|
|
|
|
// return;
|
|
|
|
|
if (this.isvalue) {
|
|
|
|
|
this.customToast('检查标准不能为空');
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
// this.detailsinfocontent.equ = this.detailsinfolist;
|
|
|
|
|
// let query = this.detailsinfocontent;
|
|
|
|
|
// await this.model.updateInspectionRecord(query);
|
|
|
|
|
// if (this.model.SubmitCode == '200') {
|
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
|
// title: '成功',
|
|
|
|
|
// type: 'success',
|
|
|
|
|
// });
|
|
|
|
|
// uni.navigateBack({});
|
|
|
|
|
// } else {
|
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
|
// title: '失败',
|
|
|
|
|
// type: 'error',
|
|
|
|
|
// });
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
search(value) {
|
|
|
|
|
console.log(value);
|
|
|
|
|
if (value == this.detailsinfolist.equipmentCode) {
|
|
|
|
|
this.isaccord = true;
|
|
|
|
|
} else {
|
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
|
title: '失败',
|
|
|
|
|
type: '请扫码正确条码',
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
@ -441,7 +479,7 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
|
.item1 {
|
|
|
|
|
margin-bottom: 3px;
|
|
|
|
|
white-space: 1px;
|
|
|
|
|
font-size: 17px;
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
.item2 {
|
|
|
|
|