|
|
@ -2,7 +2,7 @@
|
|
|
|
<view class="page-kan-dan-index">
|
|
|
|
<view class="page-kan-dan-index">
|
|
|
|
<view class="header" :style="{ backgroundColor: `rgba(23, 83, 234, ${scrollTop / 100})` }">
|
|
|
|
<view class="header" :style="{ backgroundColor: `rgba(23, 83, 234, ${scrollTop / 100})` }">
|
|
|
|
<view class="left">
|
|
|
|
<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>
|
|
|
|
<view class="title">{{ $t('message.RowScrap') }}</view>
|
|
|
|
<view class="title">{{ $t('message.RowScrap') }}</view>
|
|
|
|
<view class="right"></view>
|
|
|
|
<view class="right"></view>
|
|
|
@ -72,10 +72,18 @@
|
|
|
|
<u-form-item :label="$t('message.product_Number')">
|
|
|
|
<u-form-item :label="$t('message.product_Number')">
|
|
|
|
<u-input v-model="qty" placeholder="" :border="border" type="number" />
|
|
|
|
<u-input v-model="qty" placeholder="" :border="border" type="number" />
|
|
|
|
</u-form-item>
|
|
|
|
</u-form-item>
|
|
|
|
|
|
|
|
<!-- 责任人 -->
|
|
|
|
|
|
|
|
<u-form-item :label="$t('message.personLiable')">
|
|
|
|
|
|
|
|
<u-input v-model="dockCode" :placeholder="$t('message.PleaseOne')" :border="border" />
|
|
|
|
|
|
|
|
</u-form-item>
|
|
|
|
|
|
|
|
<!-- 不良原因 -->
|
|
|
|
|
|
|
|
<u-form-item :label="$t('message.CausesOfDefects')">
|
|
|
|
|
|
|
|
<u-input v-model="dockName" :placeholder="$t('message.PleaseTwo')" :border="border" />
|
|
|
|
|
|
|
|
</u-form-item>
|
|
|
|
<wyb-table class="table" ref="table" width="100%" show-left-and-right-border :headers="RUSdetailHeader" :contents="SubmitOrderlist" :show-vert-border="false" @onCellClick="deleteItem($event)"></wyb-table>
|
|
|
|
<wyb-table class="table" ref="table" width="100%" show-left-and-right-border :headers="RUSdetailHeader" :contents="SubmitOrderlist" :show-vert-border="false" @onCellClick="deleteItem($event)"></wyb-table>
|
|
|
|
<u-row class="button-bar">
|
|
|
|
<u-row class="button-bar">
|
|
|
|
<u-col :span="6">
|
|
|
|
<u-col :span="6">
|
|
|
|
<u-button type="error" @click="uni.navigateBack()">{{ $t('message.po_Return') }}</u-button>
|
|
|
|
<u-button type="error" @click="uni.navigateBack({})">{{ $t('message.po_Return') }}</u-button>
|
|
|
|
</u-col>
|
|
|
|
</u-col>
|
|
|
|
<u-col :span="6">
|
|
|
|
<u-col :span="6">
|
|
|
|
<u-button type="primary" @click="submit">{{ $t('message.InventoryFinish') }} </u-button>
|
|
|
|
<u-button type="primary" @click="submit">{{ $t('message.InventoryFinish') }} </u-button>
|
|
|
@ -102,6 +110,8 @@ export default class KanDanHandOver extends BasePage {
|
|
|
|
model = model;
|
|
|
|
model = model;
|
|
|
|
border = true;
|
|
|
|
border = true;
|
|
|
|
wl: any = {};
|
|
|
|
wl: any = {};
|
|
|
|
|
|
|
|
dockCode: any = '';
|
|
|
|
|
|
|
|
dockName: any = '';
|
|
|
|
Some: any = {};
|
|
|
|
Some: any = {};
|
|
|
|
MaterialList: any = [];
|
|
|
|
MaterialList: any = [];
|
|
|
|
SubmitOrderlist: any = [];
|
|
|
|
SubmitOrderlist: any = [];
|
|
|
@ -186,6 +196,16 @@ export default class KanDanHandOver extends BasePage {
|
|
|
|
this.customToast(this.$t('message.scanningContainer') as string);
|
|
|
|
this.customToast(this.$t('message.scanningContainer') as string);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/////
|
|
|
|
|
|
|
|
// if (!this.dockCode) {
|
|
|
|
|
|
|
|
// this.customToast(this.$t('message.PleaseOne') as string);
|
|
|
|
|
|
|
|
// return;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
// if (!this.dockName) {
|
|
|
|
|
|
|
|
// this.customToast(this.$t('message.PleaseTwo') as string);
|
|
|
|
|
|
|
|
// return;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//////
|
|
|
|
if (parseFloat(this.qty) <= 0) {
|
|
|
|
if (parseFloat(this.qty) <= 0) {
|
|
|
|
this.customToast(this.$t('message.AppendMateriel2') as string);
|
|
|
|
this.customToast(this.$t('message.AppendMateriel2') as string);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
@ -231,12 +251,16 @@ export default class KanDanHandOver extends BasePage {
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].type = '1';
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].type = '1';
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].keepBy = session.loginName;
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].keepBy = session.loginName;
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].orderType = '1';
|
|
|
|
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].qty = this.qty;
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].qty = this.qty;
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].barCode = this.Container.barcode;
|
|
|
|
this.SubmitOrderlist[this.SubmitOrderlist.length - 1].barCode = this.Container.barcode;
|
|
|
|
this.model.orderInInfoList[this.SomeIndex].totalqty += parseFloat(this.qty);
|
|
|
|
this.model.orderInInfoList[this.SomeIndex].totalqty += parseFloat(this.qty);
|
|
|
|
this.Container = '';
|
|
|
|
this.Container = '';
|
|
|
|
this.qty = 0;
|
|
|
|
this.qty = 0;
|
|
|
|
this.Barcode = '';
|
|
|
|
this.Barcode = '';
|
|
|
|
|
|
|
|
this.dockCode = '';
|
|
|
|
|
|
|
|
this.dockName = '';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
deleteItem(e: any) {
|
|
|
|
deleteItem(e: any) {
|
|
|
|
uni.showModal({
|
|
|
|
uni.showModal({
|
|
|
@ -289,6 +313,8 @@ export default class KanDanHandOver extends BasePage {
|
|
|
|
this.Container = '';
|
|
|
|
this.Container = '';
|
|
|
|
this.SubmitOrderlist = [];
|
|
|
|
this.SubmitOrderlist = [];
|
|
|
|
this.Barcode = '';
|
|
|
|
this.Barcode = '';
|
|
|
|
|
|
|
|
this.dockCode = '';
|
|
|
|
|
|
|
|
this.dockName = '';
|
|
|
|
this.query();
|
|
|
|
this.query();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|