|
|
@ -13,6 +13,7 @@
|
|
|
|
<view class="single-left">
|
|
|
|
<view class="single-left">
|
|
|
|
<view>rfid:</view>
|
|
|
|
<view>rfid:</view>
|
|
|
|
<u-search placeholder="请扫描" :focus="shouciFocus" v-model="orderNo" :show-action="false"></u-search>
|
|
|
|
<u-search placeholder="请扫描" :focus="shouciFocus" v-model="orderNo" :show-action="false"></u-search>
|
|
|
|
|
|
|
|
<!-- <uni-icons type="scan" size="25" @click="scanCodeOne" style="color: #0b9eff; margin: auto; padding: 10rpx"></uni-icons> -->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="single-right">
|
|
|
|
<view class="single-right">
|
|
|
|
<u-button type="primary" @click="query">查询</u-button>
|
|
|
|
<u-button type="primary" @click="query">查询</u-button>
|
|
|
@ -127,6 +128,11 @@ export default class PalletChange extends BasePage {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stationNos.map((item) => ({
|
|
|
|
|
|
|
|
label: item.equipmentName,
|
|
|
|
|
|
|
|
value: item.equipmentCode,
|
|
|
|
|
|
|
|
...item,
|
|
|
|
|
|
|
|
}));
|
|
|
|
this.oldstationNos = stationNos;
|
|
|
|
this.oldstationNos = stationNos;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
generateGUID() {
|
|
|
|
generateGUID() {
|
|
|
@ -164,7 +170,7 @@ export default class PalletChange extends BasePage {
|
|
|
|
// productionState: this.productCodeList.value,
|
|
|
|
// productionState: this.productCodeList.value,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
await this.model.palletInforUpdate(params);
|
|
|
|
await this.model.palletInforUpdate(params);
|
|
|
|
if (model.SubmitCode == 10) {
|
|
|
|
if (model.SubmitCode == 200) {
|
|
|
|
this.uni.showToast({ title: '成功' });
|
|
|
|
this.uni.showToast({ title: '成功' });
|
|
|
|
this.Clear();
|
|
|
|
this.Clear();
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -176,6 +182,7 @@ export default class PalletChange extends BasePage {
|
|
|
|
this.productCodeList = {};
|
|
|
|
this.productCodeList = {};
|
|
|
|
this.productCodeTypeList = {};
|
|
|
|
this.productCodeTypeList = {};
|
|
|
|
this.shouciFocus = false;
|
|
|
|
this.shouciFocus = false;
|
|
|
|
|
|
|
|
this.isshow = false;
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.shouciFocus = true;
|
|
|
|
this.shouciFocus = true;
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -196,6 +203,16 @@ export default class PalletChange extends BasePage {
|
|
|
|
await this.model.getAllEquipmentsle(params);
|
|
|
|
await this.model.getAllEquipmentsle(params);
|
|
|
|
this.DictList = model.seleDictList;
|
|
|
|
this.DictList = model.seleDictList;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
scanCodeOne() {
|
|
|
|
|
|
|
|
uni.scanCode({
|
|
|
|
|
|
|
|
scanType: ['barCode'],
|
|
|
|
|
|
|
|
success: function (res) {
|
|
|
|
|
|
|
|
console.log('条码类型:' + res.scanType);
|
|
|
|
|
|
|
|
console.log('条码内容:' + res.result);
|
|
|
|
|
|
|
|
this.orderNo = res.result;
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
<style lang="scss" scoped>
|
|
|
|