下机台设置rfid查询接口替换

master
guoshuang 2 years ago
parent ede5b46d03
commit bf493bd65c

@ -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>

@ -1,5 +1,5 @@
/* eslint-disable @typescript-eslint/no-unused-vars */ /* eslint-disable @typescript-eslint/no-unused-vars */
const qianzhuione = '/dev-api'; // '/prod-api'生产环境 // '/dev-api'开发环境是调后端本地时使用 const qianzhuione = '/prod-api'; // '/prod-api'生产环境 // '/dev-api'开发环境是调后端本地时使用
export const url = { export const url = {
wmspda: { wmspda: {
system: { system: {
@ -22,7 +22,7 @@ export const url = {
sendDestinationStations: '/api/ReceivingAndFeedingMaterials/sendDestinationStations', sendDestinationStations: '/api/ReceivingAndFeedingMaterials/sendDestinationStations',
palletInforUpdate: '/api/ReceivingAndFeedingMaterials/palletInforUpdate', palletInforUpdate: '/api/ReceivingAndFeedingMaterials/palletInforUpdate',
getDictList: qianzhuione + '/quality/handCheck/getDictList', getDictList: qianzhuione + '/quality/handCheck/getDictList',
requestDestinationStation: qianzhuione + '/mes/wcsInterface/requestDestinationStations', requestDestinationStation: qianzhuione + '/mes/wcsInterface/pdaRequestDestinationStations',
getAllEquipments: qianzhuione + '/mes/pda/getAllEquipments', getAllEquipments: qianzhuione + '/mes/pda/getAllEquipments',
saveRfidWithEquip: qianzhuione + '/mes/pda/saveRfidWithEquip', saveRfidWithEquip: qianzhuione + '/mes/pda/saveRfidWithEquip',
}, },

Loading…
Cancel
Save