显示字段修改

master
hou 3 years ago
parent ce8e17bc95
commit cd993b1ec6

@ -265,7 +265,7 @@ export default {
// 委外-出库 // 委外-出库
CommissionGoOut: 'Subcontracting issue', CommissionGoOut: 'Subcontracting issue',
Outbound: 'Outbound location', Outbound: 'Outbound location',
Warehousing: 'Warehousing location', Warehousing: 'Warehouse location',
CommissionedGoOutDetails: 'Delivery details', CommissionedGoOutDetails: 'Delivery details',
PleaseQuantity: 'Please enter this quantity', PleaseQuantity: 'Please enter this quantity',
Picked:'Picked Qty', Picked:'Picked Qty',

@ -180,11 +180,25 @@ export default class RawReceiptDetail extends BasePage {
*/ */
locationCodeSelect = false; locationCodeSelect = false;
detailHeader = detailHeader; detailHeader = detailHeader;
empty(){
this.some = {}
this.someIndex = 0
this.qty = ''
this.Location = []
this.wlCode = ''
this.materialList = []
this.model.blDetailList.length = 0
}
async query(){ async query(){
if(this.form.documentNo == ''){ if(this.form.documentNo == ''){
this.customToast(this.$t('message.Commission_tips1') as string); this.customToast(this.$t('message.Commission_tips1') as string);
} }
await await this.model.queryBlDetailList(this.form.documentNo).then(() =>{ this.empty()
let inPrdOrderList = this.form.documentNo.split(",")
let params = {
inPrdOrderList
}
await await this.model.queryBlDetailList(params).then(() =>{
this.model.blDetailList.forEach((item:any) =>{ this.model.blDetailList.forEach((item:any) =>{
let arr = { let arr = {
label:item.materialCode, label:item.materialCode,
@ -348,6 +362,7 @@ export default class RawReceiptDetail extends BasePage {
item.receiptAmount = 0; item.receiptAmount = 0;
item.wlQTyList = []; item.wlQTyList = [];
}); });
this.model.blDetailList.length = 0
} }
async bill() { async bill() {
if (this.some == {} || this.some.prdOrder == null) { if (this.some == {} || this.some.prdOrder == null) {

@ -10,7 +10,7 @@
<u-form class="form" ref="form" :model="form" :error-type="['toast']" label-width="150rpx"> <u-form class="form" ref="form" :model="form" :error-type="['toast']" label-width="150rpx">
<!-- 订单号 --> <!-- 订单号 -->
<u-form-item :required="true" :label="$t('message.Pi_OrderNo')" prop="prdOrder"> <u-form-item :required="true" :label="$t('message.Pi_OrderNo')" prop="prdOrder">
<u-search :placeholder="$t('message.po_PleaseInput')" v-model.trim="form.prdOrder" @search="model.queryOrderInInfo" :show-action="false"></u-search> <u-search :placeholder="$t('message.po_PleaseInput')" v-model.trim="prdOrder" @search="model.queryOrderInInfo" :show-action="false"></u-search>
<u-button size="mini" style="margin-left: 10rpx" type="primary" @click="screen">{{ $t('message.screen') }}</u-button> <u-button size="mini" style="margin-left: 10rpx" type="primary" @click="screen">{{ $t('message.screen') }}</u-button>
<!-- <jPicker <!-- <jPicker
sureColor="#ff0000" sureColor="#ff0000"
@ -34,8 +34,8 @@
</u-form-item> </u-form-item>
<!-- 库存 --> <!-- 库存 -->
<view class="newly"> <view class="newly">
<u-form-item :label="$t('message.po_Location')" style="width: 50%"> <u-form-item :label="$t('message.Pi_factory')" style="width: 50%">
<u-input v-model="form.wkposCode" @blur="cnoso" :placeholder="$t('message.po_PleaseInput')" /> <u-input v-model="model.orderInInfo.sapFactoryCode" placeholder=" " :disabled="true" />
</u-form-item> </u-form-item>
<u-form-item :label="$t('message.product_Location')" style="width: 50%; margin-top: 16rpx"> <u-form-item :label="$t('message.product_Location')" style="width: 50%; margin-top: 16rpx">
<!-- <u-input <!-- <u-input
@ -48,8 +48,8 @@
<!-- 工厂 --> <!-- 工厂 -->
<u-row gutter="0"> <u-row gutter="0">
<u-col :span="6"> <u-col :span="6">
<u-form-item :label="$t('message.Pi_factory')" prop="sapFactoryCode"> <u-form-item :label="$t('message.QuantityReturned')" prop="sapFactoryCode">
<u-input :disabled="true" v-model="model.orderInInfo.sapFactoryCode" placeholder="" /> <u-input :disabled="true" v-model="form.totalBackAmount" placeholder="" />
</u-form-item> </u-form-item>
</u-col> </u-col>
<u-col :span="6"> <u-col :span="6">
@ -120,6 +120,7 @@ export default class returningDom extends BasePage {
materialCode: null, // code materialCode: null, // code
wlName: '', // name wlName: '', // name
wlCode: '', wlCode: '',
totalBackAmount:'1',
}; };
prdOrder: any = []; prdOrder: any = [];
wlCode: any = ''; wlCode: any = '';
@ -188,9 +189,6 @@ export default class returningDom extends BasePage {
this.Location.push(pickerName); this.Location.push(pickerName);
}); });
} }
cnoso() {
console.log(1);
}
back() { back() {
// this.form.sendSpot = ''; // this.form.sendSpot = '';
// this.form.wkposCode = ''; // this.form.wkposCode = '';
@ -208,6 +206,7 @@ export default class returningDom extends BasePage {
if (this.form.materialCode == item.label) { if (this.form.materialCode == item.label) {
this.form.amount = item.amount; this.form.amount = item.amount;
this.form.sendSpot = item.sendSpot; this.form.sendSpot = item.sendSpot;
this.form.totalBackAmount = item.totalBackAmount
// this.form.wkposCode = item.wkposCode; // this.form.wkposCode = item.wkposCode;
} }
}); });

Loading…
Cancel
Save