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() // 唤起消息订阅