托盘变更测试修改

master
guoshuang 2 years ago
parent cd58bc5b0a
commit c7b8b96c79

@ -19,12 +19,12 @@
<u-button type="primary" @click="query"></u-button>
</view>
</view>
<u-form-item label="订单">
<u-input :disabled="true" v-model="orderNoItemList.orderCode" placeholder="" style="overflow: hidden" />
<u-form-item label="物料编码">
<u-input :disabled="true" v-model="orderNoItemList.sku" placeholder="" style="overflow: hidden" />
</u-form-item>
<!-- 机台 -->
<u-form-item label="机台">
<u-input :disabled="true" v-model="orderNoItemList.machineName" placeholder="" style="overflow: hidden" />
<u-form-item label="规格">
<u-input :disabled="true" v-model="orderNoItemList.spec" placeholder="" style="overflow: hidden" />
</u-form-item>
<!-- 产品 -->
<u-form-item label="产品">
@ -164,10 +164,11 @@ export default class ChangePalletNew extends BasePage {
Clear() {
this.orderNo = '';
this.location = '';
this.locationStatus = -1;
this.locationStatus = 1;
this.productCodeList = {};
this.productCodelocList = {};
this.shouciFocus = false;
this.model.empty();
this.$nextTick(() => {
this.shouciFocus = true;
});

@ -43,20 +43,22 @@ export class ChangePalletNew extends VuexModule {
const result: any = await http.post(url.lanjumes.product.getpalletLocation, {
productionState: params,
});
const DictListoild: [] = result.data;
const DictListoild: [] = result;
if (DictListoild) {
const DictList = DictListoild.map((item: any) => ({
label: item.itemName,
value: item.itemCode,
label: item.location,
value: item.location,
}));
return { DictList };
}
//库位下拉列表
}
//缓存区下拉列表
locList: any = [];
@MutationAction
async getDictList() {
const result: any = await http.get(url.lanjumes.product.getDictList, {
params: {
productionState: 'cache',
equipmentTypeCode: 'cache',
},
});
const DictListoild: [] = result.data;

@ -119,7 +119,7 @@ export default class PalletChange extends BasePage {
this.isshow = true;
});
await this.model.requestDestinationStation(this.orderNo);
let stationNos = model.orderNoItemList.stationNos;
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) {
@ -128,12 +128,12 @@ export default class PalletChange extends BasePage {
}
}
}
stationNos.map((item) => ({
console.log('111', stationNos);
this.oldstationNos = stationNos.map((item) => ({
label: item.equipmentName,
value: item.equipmentCode,
value: item.stationNo,
...item,
}));
this.oldstationNos = stationNos;
}
generateGUID() {
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {

@ -27,7 +27,7 @@ http.interceptors.request.use(
// if (config.url.includes('/api')) {
// config.baseURL = 'http://192.168.202.23:5001';
// } else {
// config.baseURL = 'http://192.168.202.34:30000';
// config.baseURL = 'http://192.168.202.20:9000';
// }
// 所有请求默认提示加载中
if (!loading) {

@ -3,9 +3,9 @@ module.exports = {
proxy: {
'/prod-api': {
//正式生产
target: 'http://192.168.202.34:30000',
//target: 'http://192.168.202.34:30000',
//测试生产
//target: 'http://192.168.202.20:9000',
target: 'http://192.168.202.20:9000',
changeOrigin: true,
// pathRewrite: {
// '^/prod-ap': '',

Loading…
Cancel
Save