hou 3 years ago
commit 1b12cf2b89

@ -143,6 +143,7 @@ export default class finishProductOfflineDom extends BasePage {
onReady() {
this.$form.setRules(this.rules);
model.queryReturningTypeList();
this.form.aimWl = model.firstLocation;
}
/**
* 处理选择行 选中一条执行一次

@ -28,6 +28,7 @@ export class PickingModule extends VuexModule {
*
*/
returningTypeList: any[] = [];
firstLocation: any = {};
/**
*
*/
@ -57,7 +58,11 @@ export class PickingModule extends VuexModule {
label: item.locationCode,
value: item.locationCode + '(' + item.sendSpot + ')',
}));
return { returningTypeList };
const firstLocation = returningTypeList[0];
// const firstLocation = data.data[0];
// firstLocation.label = firstLocation.locationCode;
// firstLocation.value = firstLocation.locationCode + '(' + firstLocation.sendSpot + ')';
return { returningTypeList, firstLocation };
}
/**
*

@ -117,6 +117,7 @@ export default class productCheckReceipt extends BasePage {
onReady() {
this.$form.setRules(this.rules);
this.model.queryLocation();
this.form.aimWl.value = this.model.WlList[0].value;
this.model.empty();
this.userDefined4 = JSON.parse(sessionStorage.getItem('userDefined4'));
sessionStorage.removeItem('userDefined4');

@ -225,7 +225,7 @@ export default class dnReceiptDom extends BasePage {
poNo: this.form.documentNo,
};
await this.model.querydetaildlist(content);
this.redirectTo(this.page.raw.commission.entrant.detail);
this.toPage(this.page.raw.commission.entrant.detail);
}
//
business() {

@ -2,7 +2,7 @@
<view class="page-receipt-detail">
<view class="header">
<view class="left">
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack()" />
<u-icon class="icon" name="arrow-left" @click="uni.navigateBack({})" />
</view>
<view class="title">{{ $t('message.Pi_QueryResults') }}</view>
<view class="right"></view>

@ -298,7 +298,7 @@ export default class dnReceiptDom extends BasePage {
factoryCode: person.session.user.factoryCode,
};
await this.model.querydetaildlist(content);
this.redirectTo(this.page.raw.commission.goOut.detail);
this.toPage(this.page.raw.commission.goOut.detail);
}
}
</script>

@ -113,8 +113,8 @@ export class VirtualModule extends VuexModule {
*/
@MutationAction
async queryProOrder(params: any) {
const {list}: any = await http.post(url.virtual.query.orderno, params);
const proOrderList = list.map((v: string) => ({ prdOrder: v }));
const { list: proOrderList }: any = await http.post(url.virtual.query.orderno, params);
//const proOrderList = list.map((v: any) => ({ prdOrder: v.prdOrder, amount: v.amount, materialCode: v.materialCode, materialDesc: v.materialDesc }));
proOrderList.forEach((_: any) => (_.checked = true));
if (!proOrderList.length) {
vm.customToast(vm.$t('message.Pi_NoDataFound') as any);

@ -468,11 +468,12 @@ export default class RawReceiptDetail extends BasePage {
height: 100%;
display: flex;
view {
width: 100rpx;
width: 70rpx;
line-height: 100rpx;
text-align: center;
}
.search {
padding-left: 19px;
padding-left: 0px;
text-align: left;
}
}

Loading…
Cancel
Save