托盘变更测试修改

master
guoshuang 2 years ago
parent cd58bc5b0a
commit c7b8b96c79

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

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

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

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

@ -3,9 +3,9 @@ module.exports = {
proxy: { proxy: {
'/prod-api': { '/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, changeOrigin: true,
// pathRewrite: { // pathRewrite: {
// '^/prod-ap': '', // '^/prod-ap': '',

Loading…
Cancel
Save