|
|
@ -24,13 +24,14 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<view class="single-left">
|
|
|
|
<view class="single-left">
|
|
|
|
<!-- <view>扫描设备码:</view> -->
|
|
|
|
<!-- <view>扫描设备码:</view> -->
|
|
|
|
<u-search style="border: 1px solid #a19d9d" :clearabled="false" :disabled="detailsinfolist.equipmentCode == null ? true : true" placeholder="请扫描" @search="search(orderNo)" :focus="shouciFocus" v-model="orderNo" :show-action="false"></u-search>
|
|
|
|
<u-search :clearabled="false" placeholder="请扫描" @search="search(orderNo)" :focus="shouciFocus" v-model="orderNo" :show-action="false"></u-search>
|
|
|
|
|
|
|
|
<uni-icons type="scan" size="25" @click="scanCodeOne" style="color: #0b9eff; margin: auto; padding: 22rpx"></uni-icons>
|
|
|
|
<!-- <view class="single-right">
|
|
|
|
<!-- <view class="single-right">
|
|
|
|
<u-button type="primary" @click="selscteq()">选择</u-button>
|
|
|
|
<u-button type="primary" @click="selscteq()">选择</u-button>
|
|
|
|
</view>-->
|
|
|
|
</view> -->
|
|
|
|
<!-- <uni-icons type="scan" size="35" @click="scanCodeOne" style="color: #0b9eff; margin: auto; padding: 22rpx"></uni-icons> -->
|
|
|
|
<!-- <uni-icons type="scan" size="35" @click="scanCodeOne" style="color: #0b9eff; margin: auto; padding: 22rpx"></uni-icons> -->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="item" v-for="(item, index) in detailsinfolist.detailList" :key="index">
|
|
|
|
<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.itemName }}</div>
|
|
|
|
<div class="item1">检查方法: {{ item.itemMethod }}</div>
|
|
|
|
<div class="item1">检查方法: {{ item.itemMethod }}</div>
|
|
|
|
<div v-for="(item1, index1) in item.standardList" :key="index1">
|
|
|
|
<div v-for="(item1, index1) in item.standardList" :key="index1">
|
|
|
@ -100,6 +101,7 @@ 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 model1 from '../../equipment/Repairbx/model';
|
|
|
|
import model1 from '../../equipment/Repairbx/model';
|
|
|
|
|
|
|
|
const mpaasScanModule: any = uni.requireNativePlugin('Mpaas-Scan-Module');
|
|
|
|
//import store from '@/store';
|
|
|
|
//import store from '@/store';
|
|
|
|
@Component({
|
|
|
|
@Component({
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
@ -268,7 +270,7 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
await this.model.getInspectionOrderInfo(query);
|
|
|
|
await this.model.getInspectionOrderInfo(query);
|
|
|
|
this.detailsinfolist = this.model.OrderInfList;
|
|
|
|
this.detailsinfolist = this.model.OrderInfList;
|
|
|
|
this.orderNo = this.detailsinfolist.equipmentCode;
|
|
|
|
// this.orderNo = this.detailsinfolist.equipmentCode;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
@ -388,15 +390,36 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
this.imgList.splice(index, 1);
|
|
|
|
this.imgList.splice(index, 1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scanCodeOne() {
|
|
|
|
scanCodeOne() {
|
|
|
|
uni.scanCode({
|
|
|
|
mpaasScanModule.mpaasScan(
|
|
|
|
scanType: ['barCode'],
|
|
|
|
{
|
|
|
|
success: (res) => {
|
|
|
|
// 扫码识别类型,参数可多选,qrCode、barCode,
|
|
|
|
this.orderNo = res.result;
|
|
|
|
// 如不设置,默认识别所有扫码类型,可能有些许影响识别效率
|
|
|
|
|
|
|
|
scanType: ['qrCode', 'barCode'],
|
|
|
|
|
|
|
|
// 是否隐藏相册,默认false不隐藏
|
|
|
|
|
|
|
|
hideAlbum: false,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
fail(result) {
|
|
|
|
(ret) => {
|
|
|
|
this.customToast(result);
|
|
|
|
// uni.showModal({
|
|
|
|
|
|
|
|
// title: '扫码结果',
|
|
|
|
|
|
|
|
// // 返回值中,有三个参数 resp_code、resp_message、resp_result
|
|
|
|
|
|
|
|
// // resp_code 表示返回结果值,10:用户取消,11:其他错误,1000:成功
|
|
|
|
|
|
|
|
// // resp_message 表示返回结果信息
|
|
|
|
|
|
|
|
// // resp_result 表示扫码结果,只有成功才会有返回
|
|
|
|
|
|
|
|
// content: JSON.stringify(ret),
|
|
|
|
|
|
|
|
// showCancel: false,
|
|
|
|
|
|
|
|
// confirmText: '确定',
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
if (ret.resp_message == 'success') {
|
|
|
|
|
|
|
|
this.orderNo = ret.resp_result;
|
|
|
|
|
|
|
|
this.search(this.orderNo);
|
|
|
|
|
|
|
|
// uni.navigateTo({
|
|
|
|
|
|
|
|
// url: `/pages/quality/Materialinspection/web?listitem=` + encodeURIComponent(ret.resp_result),
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.customToast(ret.resp_result);
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
async onSubmit() {
|
|
|
|
async onSubmit() {
|
|
|
|
if (this.orderNo == '' || this.orderNo.length == 0) {
|
|
|
|
if (this.orderNo == '' || this.orderNo.length == 0) {
|
|
|
@ -448,16 +471,15 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
search(value) {
|
|
|
|
search(value) {
|
|
|
|
console.log(value);
|
|
|
|
if (value == this.detailsinfolist.equipmentCode) {
|
|
|
|
// if (value == this.detailsinfolist.equipmentCode) {
|
|
|
|
this.isaccord = true;
|
|
|
|
// this.isaccord = true;
|
|
|
|
} else {
|
|
|
|
// } else {
|
|
|
|
(this.$refs.uToast as any).show({
|
|
|
|
// (this.$refs.uToast as any).show({
|
|
|
|
title: '失败请扫码正确条码',
|
|
|
|
// title: '失败请扫码正确条码',
|
|
|
|
type: 'default',
|
|
|
|
// type: 'default',
|
|
|
|
});
|
|
|
|
// });
|
|
|
|
this.isaccord = false;
|
|
|
|
// this.isaccord = false;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|