|
|
|
@ -35,8 +35,12 @@
|
|
|
|
|
<u-input :disabled="true" v-model="Some.aimWl" placeholder="" />
|
|
|
|
|
</u-form-item> -->
|
|
|
|
|
<!-- 成本中心 -->
|
|
|
|
|
<u-form-item :label="$t('message.product_costCenter')">
|
|
|
|
|
<!-- <u-form-item :label="$t('message.product_costCenter')">
|
|
|
|
|
<u-input :disabled="true" v-model="Some.costCenter" placeholder="" />
|
|
|
|
|
</u-form-item> -->
|
|
|
|
|
<!-- 新成本中心 -->
|
|
|
|
|
<u-form-item :required="true" :label="$t('message.product_costCenter')">
|
|
|
|
|
<jPicker sureColor="#ff0000" @bindpicker="centerConfirm" showKey="label" valKey="value" :val="centerlist.value" class="search" :options="newcenterlist" />
|
|
|
|
|
</u-form-item>
|
|
|
|
|
<!-- 文件号 -->
|
|
|
|
|
<u-form-item :label="$t('message.DocumentNumber')">
|
|
|
|
@ -120,6 +124,15 @@ export default class KanDanHandOver extends BasePage {
|
|
|
|
|
Barcode: any = '';
|
|
|
|
|
isfocus = false;
|
|
|
|
|
SomeIndex = 0;
|
|
|
|
|
aaa = [
|
|
|
|
|
{ lable: '123', value: 'abc' },
|
|
|
|
|
{ lable: '456', value: 'efg' },
|
|
|
|
|
];
|
|
|
|
|
newcenterlist = [];
|
|
|
|
|
centerlist: any = [];
|
|
|
|
|
onLoad() {
|
|
|
|
|
this.querycenter();
|
|
|
|
|
}
|
|
|
|
|
async query() {
|
|
|
|
|
if (this.order3 === '') {
|
|
|
|
|
this.customToast(this.$t('message.Commission_tips1') as string);
|
|
|
|
@ -157,6 +170,35 @@ export default class KanDanHandOver extends BasePage {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
async querycenter() {
|
|
|
|
|
// if (this.order3 === '') {
|
|
|
|
|
// this.customToast(this.$t('message.Warehouse_Tip') as string);
|
|
|
|
|
// return;
|
|
|
|
|
// } else {
|
|
|
|
|
await this.model.getcenter();
|
|
|
|
|
if (model.code == '1') {
|
|
|
|
|
this.newcenterlist = [];
|
|
|
|
|
this.newcenterlist = model.centerList;
|
|
|
|
|
//this.centerlist = this.newcenterlist[0];
|
|
|
|
|
// console.log('123',this.centerlist.dicCode);
|
|
|
|
|
// console.log('123',this.centerlist.dicName);
|
|
|
|
|
}
|
|
|
|
|
// }
|
|
|
|
|
}
|
|
|
|
|
centerConfirm(v: any) {
|
|
|
|
|
console.log('234', v);
|
|
|
|
|
this.centerlist = v.pickerName;
|
|
|
|
|
// this.centerlist.dicCode = model.centerList[v.pickerVal].dicCode;
|
|
|
|
|
// this.centerlist.dicName = model.centerList[v.pickerVal].dicName;
|
|
|
|
|
console.log('123', this.centerlist.dicCode);
|
|
|
|
|
console.log('123', this.centerlist.dicName);
|
|
|
|
|
// model.centerList.forEach((item: any, index: any) => {
|
|
|
|
|
// if (this.orderlist.productCode == item.productCode) {
|
|
|
|
|
// this.orderlist = item;
|
|
|
|
|
// this.orderlistIndex = index;
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
}
|
|
|
|
|
async searchBarcode() {
|
|
|
|
|
if (this.order3 == '') {
|
|
|
|
|
this.customToast(this.$t('message.Warehouse_Tip5') as string);
|
|
|
|
@ -253,8 +295,8 @@ export default class KanDanHandOver extends BasePage {
|
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].type = '1';
|
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].keepBy = session.loginName;
|
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].orderType = '1';
|
|
|
|
|
//this.SubmitOrderlist[this.SubmitOrderlist.length - 1].dockCode = this.dockCode;
|
|
|
|
|
//this.SubmitOrderlist[this.SubmitOrderlist.length - 1].dockName = this.dockName;
|
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].dicCode = this.centerlist.dicCode;
|
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].dicName = this.centerlist.dicName;
|
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].qty = this.qty;
|
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].barCode = this.Container.barcode;
|
|
|
|
|
this.model.orderInInfoList[this.SomeIndex].totalqty += parseFloat(this.qty);
|
|
|
|
|