overseamom-252 feat sto手持优化

master
mabaoyan 2 years ago
parent d55bdfe6ee
commit e3f15089a8

@ -55,13 +55,17 @@ export default class RawReceiptDetail extends BasePage {
barcode: barcode, barcode: barcode,
}; };
await this.model.deleteBarcode(SunmitList); await this.model.deleteBarcode(SunmitList);
if (this.model.SubCode == 1) { if (this.model.DeleteCode == 1) {
let index = this.model.stoBarcodeList.findIndex(val=>val.barcode==barcode);
this.model.stoBarcodeList.splice(index,1);
this.seleteData=[];
uni.showToast({ uni.showToast({
title: this.$t('message.success') as string, title: this.$t('message.success') as string,
image: '/static/icons/icon-51.png', image: '/static/icons/icon-51.png',
}); });
this.seleteData={}; this.seleteData={};
} }
// await this.model.QueryStoDetail
} }
} }
</script> </script>

@ -72,14 +72,15 @@
<!-- 批次取消弹窗输入 --> <!-- 批次取消弹窗输入 -->
<view> <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"> <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-input v-model="pcNo" placeholder="Batch No"></u-input> -->
</u-form-item> </u-form-item>
</u-modal> </u-modal>
</view> </view>
<u-toast ref="uToast" />
<!-- 出库库位 --> <!-- 出库库位 -->
<!-- <view class="material"> <!-- <view class="material">
@ -235,6 +236,8 @@ export default class dnReceiptDom extends BasePage {
this.customToast(this.$t('message.stoPleaseInput') as any); this.customToast(this.$t('message.stoPleaseInput') as any);
return; return;
} }
this.showVehicle = true;
this.showMsg = true;
} }
// //
async ConfirmDo() { async ConfirmDo() {
@ -243,7 +246,6 @@ export default class dnReceiptDom extends BasePage {
return; return;
} }
if (this.carNo == '' || this.company == '') { if (this.carNo == '' || this.company == '') {
this.showVehicle = true;
this.showMsg = true; this.showMsg = true;
return; return;
} }
@ -290,19 +292,27 @@ export default class dnReceiptDom extends BasePage {
// //
async CancelDo() { async CancelDo() {
let uModal:any = this.$refs.uModal;
if (!this.pcNo) { 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; return;
} }
console.log("222222222");
const SunmitList = { const SunmitList = {
loginName: session.loginName, loginName: session.loginName,
factoryCode: session.factoryCode, factoryCode: session.factoryCode,
stoNo: this.stoNo, stoNo: this.stoNo,
pcNo: this.pcNo, pcNo: this.pcNo.pcNo,
}; };
await this.model.stoCancel(SunmitList); this.model.stoCancel(SunmitList);
if (this.model.SubCode == 1) { console.log(this.model.SubCode ,'asd9ass')
if (this.model.CancelCode == 1) {
uni.showToast({ uni.showToast({
title: this.$t('message.success') as string, title: this.$t('message.success') as string,
image: '/static/icons/icon-51.png', image: '/static/icons/icon-51.png',
@ -310,10 +320,12 @@ export default class dnReceiptDom extends BasePage {
this.pcNo = ''; this.pcNo = '';
// //
this.empty(); this.empty();
this.showCancel=false;
} else { } else {
this.pcNo = ''; this.pcNo = '';
uModal.clearLoading();
// //
this.emptyMsg(); // this.emptyMsg();
} }
} }

Loading…
Cancel
Save