|
|
@ -24,13 +24,13 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<view class="single-left">
|
|
|
|
<view class="single-left">
|
|
|
|
<!-- <view>扫描设备码:</view> -->
|
|
|
|
<!-- <view>扫描设备码:</view> -->
|
|
|
|
<u-search style="border: 1px solid #a19d9d" placeholder="请扫描" @search="search(orderNo)" :focus="shouciFocus" v-model="orderNo" :show-action="false"></u-search>
|
|
|
|
<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>
|
|
|
|
<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-show="isaccord" v-for="(item, index) in detailsinfolist.detailList" :key="index">
|
|
|
|
<view class="item" 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">
|
|
|
@ -172,18 +172,18 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
if (this.model1.rowdata.length == 0) {
|
|
|
|
if (this.model1.rowdata.length == 0) {
|
|
|
|
this.model1.rowdatanull();
|
|
|
|
this.model1.rowdatanull();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
this.orderNo = '';
|
|
|
|
// this.orderNo = this.detailsinfolist.equipmentCode;
|
|
|
|
console.log(this.model1.rowdata, '7272727');
|
|
|
|
// console.log(this.model1.rowdata, '7272727');
|
|
|
|
if (this.model1.rowdata[0].equipmentCode == this.detailsinfolist.equipmentCode) {
|
|
|
|
// if (this.model1.rowdata[0].equipmentCode == this.detailsinfolist.equipmentCode) {
|
|
|
|
this.orderNo = this.model1.rowdata[0].equipmentCode;
|
|
|
|
// this.orderNo = this.model1.rowdata[0].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;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 输入框焦点
|
|
|
|
// 输入框焦点
|
|
|
@ -268,6 +268,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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
@ -448,15 +449,15 @@ export default class ChangePalletNew extends BasePage {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
search(value) {
|
|
|
|
search(value) {
|
|
|
|
console.log(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>
|
|
|
|