diff --git a/src/i18n/lang/cn.ts b/src/i18n/lang/cn.ts index fdfec64..ae74edf 100644 --- a/src/i18n/lang/cn.ts +++ b/src/i18n/lang/cn.ts @@ -172,7 +172,9 @@ export default { ModelScanned: '型号已扫', Pi_tip13: '请选择要提交的物料', Pi_tip15: '请确保交接数量等于需求数量', - + Pi_tip16: '只能选择一个DN单', + Pi_tip17: '请选择一条DN单', + Pi_tip18: '请选中要移库的数据', //汇总交接 Summary_Query: '汇总查询', Summary_Contain: '包含', diff --git a/src/i18n/lang/en.ts b/src/i18n/lang/en.ts index 442985d..5ebec22 100644 --- a/src/i18n/lang/en.ts +++ b/src/i18n/lang/en.ts @@ -29,6 +29,9 @@ export default { operation: 'Operation', Pi_tip13: 'Please select the material to submit', Pi_tip15: 'Please ensure that the handover quantity is equal to the demand quantity', + Pi_tip16: 'You can only select one DN list', + Pi_tip17: 'Please select a dn list', + Pi_tip18: 'Please select the data to be moved', //版本更新 updatePrompt: 'Update tips', Tip1: 'New version detected, update?', diff --git a/src/pages/raw/ingoods/dnReceipt/ImportDN.vue b/src/pages/raw/ingoods/dnReceipt/ImportDN.vue index d995803..f3edb94 100644 --- a/src/pages/raw/ingoods/dnReceipt/ImportDN.vue +++ b/src/pages/raw/ingoods/dnReceipt/ImportDN.vue @@ -159,16 +159,13 @@ export default class dnReceiptDom extends BasePage { //输入单号 查询数据 async query() { if (!this.form.documentNo) { - uni.showToast({ - icon: 'none', - title: this.$t('message.Commission_tips1') as any, - }); + this.customToast(this.$t('message.Commission_tips1') as any); return; } await this.model.ImportQueryOrderInfo(this.form.documentNo.trim()); if (model.code == '1') { uni.showToast({ - icon: 'none', + icon: 'success', title: this.$t('message.successful') as any, }); console.log('orderInInfoList', this.model.orderInInfoList); @@ -264,33 +261,21 @@ export default class dnReceiptDom extends BasePage { // const count = this.totalLocation(this.LocationList); const count = parseFloat(this.every.requestAmount); if (this.receiptAmount == '' || !this.wl.value) { - uni.showToast({ - icon: 'none', - title: this.$t('message.Commission_tips2') as any, - }); + this.customToast(this.$t('message.Commission_tips2') as any); return; } if (parseFloat(this.receiptAmount) <= 0) { - uni.showToast({ - icon: 'none', - title: this.$t('message.Commission_tips3') as any, - }); + this.customToast(this.$t('message.Commission_tips3') as any); return; } if (parseFloat(this.receiptAmount) > count || parseFloat(this.receiptAmount) + parseFloat(this.every.receiptAmount) > count) { - uni.showToast({ - icon: 'none', - title: this.$t('message.Commission_tips4') as any, - }); + this.customToast(this.$t('message.Commission_tips4') as any); return; } let isTrue = true; this.DNReceivingList[this.everyIndex].wllist.forEach((item: any) => { if (item.wlCode == this.wl.label && item.receiptAmount == this.receiptAmount) { - uni.showToast({ - icon: 'none', - title: this.$t('message.repeatedly') as any, - }); + this.customToast(this.$t('message.repeatedly') as any); return (isTrue = false); } }); @@ -369,10 +354,7 @@ export default class dnReceiptDom extends BasePage { } async onSubmit() { if (this.LocationList.length === 0) { - uni.showToast({ - icon: 'none', - title: this.$t('message.Commission_tips5') as any, - }); + this.customToast(this.$t('message.Commission_tips5') as any); return null; } await this.model.submitOrderInEnter(this.DNReceivingList); @@ -380,10 +362,7 @@ export default class dnReceiptDom extends BasePage { } async bill() { if (this.form.documentNo == '') { - uni.showToast({ - icon: 'none', - title: this.$t('message._tips6') as any, - }); + this.customToast(this.$t('message._tips6') as any); return; } let person = JSON.parse(localStorage.getItem('__GWMS_APP_STATE_DATA__') as any); diff --git a/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue b/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue index 7be13e8..bc1287e 100644 --- a/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue +++ b/src/pages/raw/ingoods/dnReceipt/dnReceiving.vue @@ -168,16 +168,13 @@ export default class dnReceiptDom extends BasePage { //输入单号 查询数据 async query() { if (!this.form.documentNo) { - uni.showToast({ - icon: 'none', - title: this.$t('message.Commission_tips1') as any, - }); + this.customToast(this.$t('message.Commission_tips1') as any); return; } await this.model.queryOrderInInfo(this.form.documentNo.trim()); if (model.code == '1') { uni.showToast({ - icon: 'none', + icon: 'success', title: this.$t('message.successful') as any, }); console.log('orderInInfoList', this.model.orderInInfoList); @@ -273,33 +270,21 @@ export default class dnReceiptDom extends BasePage { // const count = this.totalLocation(this.LocationList); const count = parseFloat(this.every.requestAmount); if (this.receiptAmount == '' || !this.wl.value) { - uni.showToast({ - icon: 'none', - title: this.$t('message.Commission_tips2') as any, - }); + this.customToast(this.$t('message.Commission_tips2') as any); return; } if (parseFloat(this.receiptAmount) <= 0) { - uni.showToast({ - icon: 'none', - title: this.$t('message.Commission_tips3') as any, - }); + this.customToast(this.$t('message.Commission_tips3') as any); return; } if (parseFloat(this.receiptAmount) > count || parseFloat(this.receiptAmount) + parseFloat(this.every.receiptAmount) > count) { - uni.showToast({ - icon: 'none', - title: this.$t('message.Commission_tips4') as any, - }); + this.customToast(this.$t('message.Commission_tips4') as any); return; } let isTrue = true; this.DNReceivingList[this.everyIndex].wllist.forEach((item: any) => { if (item.wlCode == this.wl.label && item.receiptAmount == this.receiptAmount) { - uni.showToast({ - icon: 'none', - title: this.$t('message.repeatedly') as any, - }); + this.customToast(this.$t('message.repeatedly') as any); return (isTrue = false); } }); @@ -378,10 +363,7 @@ export default class dnReceiptDom extends BasePage { } async onSubmit() { if (this.LocationList.length === 0) { - uni.showToast({ - icon: 'none', - title: this.$t('message.Commission_tips5') as any, - }); + this.customToast(this.$t('message.Commission_tips5') as any); return null; } await this.model.submitOrderInEnter(this.DNReceivingList); @@ -389,10 +371,7 @@ export default class dnReceiptDom extends BasePage { } async bill() { if (this.form.documentNo == '') { - uni.showToast({ - icon: 'none', - title: this.$t('message._tips6') as any, - }); + this.customToast(this.$t('message._tips6') as any); return; } let person = JSON.parse(localStorage.getItem('__GWMS_APP_STATE_DATA__') as any); diff --git a/src/pages/raw/ingoods/dnReturnGoods/Local-details.vue b/src/pages/raw/ingoods/dnReturnGoods/Local-details.vue index 222b0d7..dcbcc87 100644 --- a/src/pages/raw/ingoods/dnReturnGoods/Local-details.vue +++ b/src/pages/raw/ingoods/dnReturnGoods/Local-details.vue @@ -49,11 +49,8 @@ export default class RawReceiptDetail extends BasePage { headers = headers; poNo: any = ""; async generate() { - if (this.poNo == "") { - uni.showToast({ - icon: "none", - title: this.$t("message._tips6") as any, - }); + if (this.poNo == '') { + this.customToast(this.$t('message._tips6') as any); return; } let content = { diff --git a/src/pages/raw/ingoods/dnReturnGoods/Location.vue b/src/pages/raw/ingoods/dnReturnGoods/Location.vue index 1dac32b..aa958bc 100644 --- a/src/pages/raw/ingoods/dnReturnGoods/Location.vue +++ b/src/pages/raw/ingoods/dnReturnGoods/Location.vue @@ -4,78 +4,51 @@ - {{ $t("message.rawMenu_ReturnGoods") }} + {{ $t('message.rawMenu_ReturnGoods') }} - + - {{ $t("message.return_Type") }}: + {{ $t('message.return_Type') }}: {{ some.poType }} - {{ $t("message.po_ReturnGoodsQuantity") }}: + {{ $t('message.po_ReturnGoodsQuantity') }}: {{ some.poAmount }} - {{ $t("message.CommissionedLocation") }}: - + {{ $t('message.CommissionedLocation') }}: + - {{ - $t("message.CommissionedThisNumber") - }} + {{ $t('message.CommissionedThisNumber') }} - {{ - $t("message.product_add") - }} + {{ $t('message.product_add') }} - {{ $t("message.product_Location") }} - {{ $t("message.product_Number") }} - {{ $t("message.operation") }} + {{ $t('message.product_Location') }} + {{ $t('message.product_Number') }} + {{ $t('message.operation') }} {{ item.wlCode }} {{ item.qty }}
- {{ $t("message.product_Delete") }} + {{ $t('message.product_Delete') }}
@@ -89,18 +62,16 @@
- {{ - $t("message.detailed") - }} + {{ $t('message.detailed') }} - {{ $t("message.po_Submit") }} + {{ $t('message.po_Submit') }} - {{ $t("message.po_Return") }} + {{ $t('message.po_Return') }} @@ -110,13 +81,13 @@