|
|
|
@ -29,13 +29,13 @@
|
|
|
|
|
<choose-one @switchfunction="switchChangeFun" :switchType="'text'" :defaultColor="'#4A72F9'" :highColor="'#FFFFFF'" :defaultValue="locationStatus" :switchList="switchListText"></choose-one>
|
|
|
|
|
</u-form-item> -->
|
|
|
|
|
<div v-show="isshow">
|
|
|
|
|
<div v-if="oldstationNos.length">
|
|
|
|
|
<!-- <div v-if="oldstationNos.length">
|
|
|
|
|
<u-form-item label="设备:">
|
|
|
|
|
<jPicker sureColor="#ff0000" :moren="moren1" @bindpicker="selectProductCode" showKey="label" valKey="value" :val="productCodeList.value" :options="oldstationNos" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
</div>
|
|
|
|
|
</div> -->
|
|
|
|
|
|
|
|
|
|
<div v-else>
|
|
|
|
|
<div>
|
|
|
|
|
<u-form-item label="设备类型:">
|
|
|
|
|
<jPicker sureColor="#ff0000" :moren="moren2" @bindpicker="selectProductCodeType" showKey="label" valKey="value" :val="productCodeTypeList.value" :options="DictTypeList" />
|
|
|
|
|
</u-form-item>
|
|
|
|
@ -119,21 +119,25 @@ export default class PalletChange extends BasePage {
|
|
|
|
|
this.isshow = true;
|
|
|
|
|
});
|
|
|
|
|
await this.model.requestDestinationStation(this.orderNo);
|
|
|
|
|
const stationNos = model.orderNoItemList.stationNos;
|
|
|
|
|
for (let i = 0; i < stationNos.length; i++) {
|
|
|
|
|
for (let j = 0; j < this.DictList.length; j++) {
|
|
|
|
|
if (stationNos[i].stationNo === this.DictList[j].equipmentCode) {
|
|
|
|
|
stationNos[i].equipmentName = this.DictList[j].equipmentName;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
console.log('111', stationNos);
|
|
|
|
|
this.oldstationNos = stationNos.map((item) => ({
|
|
|
|
|
label: item.equipmentName,
|
|
|
|
|
value: item.stationNo,
|
|
|
|
|
...item,
|
|
|
|
|
}));
|
|
|
|
|
// const stationNos = model.orderNoItemList.stationNos;
|
|
|
|
|
// for (let i = 0; i < stationNos.length; i++) {
|
|
|
|
|
// for (let j = 0; j < this.DictList.length; j++) {
|
|
|
|
|
// if (stationNos[i].stationNo === this.DictList[j].equipmentCode) {
|
|
|
|
|
// stationNos[i].equipmentName = this.DictList[j].equipmentName;
|
|
|
|
|
// break;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// this.oldstationNos = stationNos.map((item) => ({
|
|
|
|
|
// label: item.equipmentName,
|
|
|
|
|
// value: item.stationNo,
|
|
|
|
|
// ...item,
|
|
|
|
|
// }));
|
|
|
|
|
// console.log('111', stationNos);
|
|
|
|
|
// if (this.oldstationNos.some((item) => !item.label || item.label == undefined)) {
|
|
|
|
|
// this.oldstationNo = [];
|
|
|
|
|
// }
|
|
|
|
|
// console.log('fffff',this.oldstationNos)
|
|
|
|
|
}
|
|
|
|
|
generateGUID() {
|
|
|
|
|
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
|
|
|