cosmoim-852 fix 成品下线bug修改

master
guoshuang 3 years ago
parent 1d01cd084d
commit c946d8d502

@ -163,9 +163,9 @@ export default class LoginPage extends BasePage {
console.log('......', server.serverAddress);
if (server.serverAddress.includes('https://eurmom.haier.net')) {
//
this.Version = '1.1.8';
this.Version = '1.1.9';
} else {
this.Version = '1.0.39';
this.Version = '1.0.40';
}
console.log('////', this.Version);
}

@ -118,6 +118,7 @@ export default class finishProductOfflineDom extends BasePage {
barCode: '',
aimWl: {} as OptionType,
};
areaCode: '';
//
materielList: any = [];
//
@ -132,7 +133,10 @@ export default class finishProductOfflineDom extends BasePage {
dockName: [{ required: false, message: this.$t('message.product_Tip1') as string }],
};
bookTypeChange(e: any) {
console.log(e.pickerName);
this.form.aimWl = e.pickerName;
this.areaCode = e.pickerName.areaCode;
console.log('shifougaibian', this.areaCode);
}
change(status: any) {
console.log(status);
@ -153,6 +157,8 @@ export default class finishProductOfflineDom extends BasePage {
this.$form.setRules(this.rules);
await this.model.queryReturningTypeList();
this.form.aimWl = model.firstLocation;
this.areaCode = model.firstLocation.areaCode;
console.log('this.areaCode', this.areaCode);
}
/**
* 处理选择行 选中一条执行一次
@ -227,7 +233,8 @@ export default class finishProductOfflineDom extends BasePage {
item.factoryCode = session.factoryCode;
item.warehouseCode = session.warehouseCode; //
item.regionCode = session.regionCode; //
item.areaCode = session.regionCode; //
//item.areaCode = session.regionCode; //
item.areaCode = this.areaCode; //
item.operator = session.loginName; //
item.loginName = session.loginName; //
});

@ -40,6 +40,7 @@ export class PickingModule extends VuexModule {
/**
*
*/
alldata = [];
@MutationAction
async queryReturningTypeList() {
const data: any = await http.get(url.inbound.finishProductOffline.kuwei, {
@ -53,12 +54,14 @@ export class PickingModule extends VuexModule {
const returningTypeList = data.data.map((item: any) => ({
label: item.locationCode,
value: item.locationCode + '(' + item.sendSpot + ')',
areaCode: item.areaCode,
}));
const alldata = data;
const firstLocation = returningTypeList[0];
// const firstLocation = data.data[0];
// firstLocation.label = firstLocation.locationCode;
// firstLocation.value = firstLocation.locationCode + '(' + firstLocation.sendSpot + ')';
return { returningTypeList, firstLocation };
return { returningTypeList, firstLocation, alldata };
}
//根据扫描的条码推荐库位
@MutationAction

@ -11,7 +11,7 @@
<u-row>
<u-col :span="12">
<u-form-item :label="$t('message.product_barCode')">
<u-search :placeholder="$t('message.po_PleaseInput')" v-model.trim="form.barCode" @search="getBarcode" maxlength="20" :show-action="false"></u-search>
<u-search :placeholder="$t('message.po_PleaseInput')" v-model.trim="form.barCode" @search="getBarcode" maxlength="22" :show-action="false"></u-search>
</u-form-item>
<view class="material">
<view class="material-right">

Loading…
Cancel
Save