From 66f8003afe345fda8c76d78e70b4f93a8ce35af9 Mon Sep 17 00:00:00 2001
From: aihe <961836564@qq.com>
Date: Sun, 22 Dec 2024 11:33:29 +0800
Subject: [PATCH] uu
---
components/buns-edit-sheet/buns-edit-sheet.vue | 13 ++++++++++++-
pages/post/post.vue | 15 +++++++++++++--
2 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/components/buns-edit-sheet/buns-edit-sheet.vue b/components/buns-edit-sheet/buns-edit-sheet.vue
index ed2f14b..3e36810 100644
--- a/components/buns-edit-sheet/buns-edit-sheet.vue
+++ b/components/buns-edit-sheet/buns-edit-sheet.vue
@@ -75,6 +75,11 @@
return true
}
},
+ sureCheckFun: {
+ default () {
+ return null
+ }
+ },
},
data() {
return {
@@ -95,8 +100,14 @@
this.$emit('update:show', false)
this.$emit('onClose')
},
- handleSubmitValue() {
+ async handleSubmitValue() {
const val = this.submitVals
+ if(this.sureCheckFun) {
+ let bl = await this.sureCheckFun(val)
+ if(!bl){
+ return false
+ }
+ }
this.$emit('onSure', val)
this.$emit('update:value', val)
this.okCloseModal && this.handleCloseModal()
diff --git a/pages/post/post.vue b/pages/post/post.vue
index d68713b..b0ecfe4 100644
--- a/pages/post/post.vue
+++ b/pages/post/post.vue
@@ -214,7 +214,9 @@
-
+
@@ -288,7 +290,8 @@
onUnload() {
},
- methods: {
+ methods: {
+
getTransLineList: apiService.getTransLineList,
getLisWarehouse: apiService.getLisWarehouse,
getMonthpayAccountList: apiService.getMonthpayAccountList,
@@ -426,6 +429,14 @@
},
handleDialogClick(curModal){
curModal.show = true
+ },
+ handleCheckGoodInfoSure(data){
+ let errmgs = []
+ if(!(data.billWeight > 0)) {
+ errmgs.push('实际重量必须大于零')
+ }
+ errmgs.length > 0 && this.showToast(errmgs[0])
+ return !Boolean(errmgs.length)
},
async handleSave(type) {
triggerSubscribeMessage() // 唤起消息订阅