|
|
|
@ -72,14 +72,15 @@
|
|
|
|
|
|
|
|
|
|
<!-- 批次取消弹窗输入 -->
|
|
|
|
|
<view>
|
|
|
|
|
<u-modal v-model="showCancel" :title="title" confirmText="confirm" cancelText="cancel" showCancelButton @confirm="CancelDo" @cancel="emptyMsg">
|
|
|
|
|
<u-modal ref="uModal" v-model="showCancel" :title="title" confirmText="confirm" :async-close="true" cancelText="cancel" showCancelButton @confirm="CancelDo" @cancel="emptyMsg">
|
|
|
|
|
<!-- 运输公司 -->
|
|
|
|
|
<u-form-item label="Batch No" borderBottom labelWidth="160">
|
|
|
|
|
<jPicker sureColor="#ff0000" style="width: 260rpx" @bindpicker="SelectPcLine" showKey="value" valKey="value" :val="pcNo" class="search" :options="model.stoPcList" />
|
|
|
|
|
<jPicker sureColor="#ff0000" style="width: 260rpx" @bindpicker="SelectPcLine" showKey="pcNo" valKey="pcNo" :val="pcNo" class="search" :options="model.stoPcList" />
|
|
|
|
|
<!-- <u-input v-model="pcNo" placeholder="Batch No"></u-input> -->
|
|
|
|
|
</u-form-item>
|
|
|
|
|
</u-modal>
|
|
|
|
|
</view>
|
|
|
|
|
<u-toast ref="uToast" />
|
|
|
|
|
|
|
|
|
|
<!-- 出库库位 -->
|
|
|
|
|
<!-- <view class="material">
|
|
|
|
@ -235,6 +236,8 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
this.customToast(this.$t('message.stoPleaseInput') as any);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
this.showVehicle = true;
|
|
|
|
|
this.showMsg = true;
|
|
|
|
|
}
|
|
|
|
|
//确认
|
|
|
|
|
async ConfirmDo() {
|
|
|
|
@ -243,7 +246,6 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (this.carNo == '' || this.company == '') {
|
|
|
|
|
this.showVehicle = true;
|
|
|
|
|
this.showMsg = true;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
@ -290,19 +292,27 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
|
|
|
|
|
//批次取消
|
|
|
|
|
async CancelDo() {
|
|
|
|
|
let uModal:any = this.$refs.uModal;
|
|
|
|
|
if (!this.pcNo) {
|
|
|
|
|
this.customToast(this.$t('message.stoPcPleaseInput') as any);
|
|
|
|
|
uModal.clearLoading();
|
|
|
|
|
let uToast:any = this.$refs.uToast;
|
|
|
|
|
uToast.show({
|
|
|
|
|
title:this.$t('message.stoPcPleaseInput'),
|
|
|
|
|
type: 'warning',
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// this.customToast(this.$t('message.stoPcPleaseInput') as any);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
console.log("222222222");
|
|
|
|
|
const SunmitList = {
|
|
|
|
|
loginName: session.loginName,
|
|
|
|
|
factoryCode: session.factoryCode,
|
|
|
|
|
stoNo: this.stoNo,
|
|
|
|
|
pcNo: this.pcNo,
|
|
|
|
|
pcNo: this.pcNo.pcNo,
|
|
|
|
|
};
|
|
|
|
|
await this.model.stoCancel(SunmitList);
|
|
|
|
|
if (this.model.SubCode == 1) {
|
|
|
|
|
this.model.stoCancel(SunmitList);
|
|
|
|
|
console.log(this.model.SubCode ,'asd9ass')
|
|
|
|
|
if (this.model.CancelCode == 1) {
|
|
|
|
|
uni.showToast({
|
|
|
|
|
title: this.$t('message.success') as string,
|
|
|
|
|
image: '/static/icons/icon-51.png',
|
|
|
|
@ -310,10 +320,12 @@ export default class dnReceiptDom extends BasePage {
|
|
|
|
|
this.pcNo = '';
|
|
|
|
|
//不生效
|
|
|
|
|
this.empty();
|
|
|
|
|
this.showCancel=false;
|
|
|
|
|
} else {
|
|
|
|
|
this.pcNo = '';
|
|
|
|
|
uModal.clearLoading();
|
|
|
|
|
//不生效
|
|
|
|
|
this.emptyMsg();
|
|
|
|
|
// this.emptyMsg();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|