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,
};
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({
title: this.$t('message.success') as string,
image: '/static/icons/icon-51.png',
});
this.seleteData={};
}
// await this.model.QueryStoDetail
}
}
</script>

@ -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();
}
}

Loading…
Cancel
Save