shish 3 лет назад
Родитель
Сommit
956aba2c70
1 измененных файлов с 10 добавлено и 0 удалено
  1. 10 0
      hdPad/src/pages/home/components/console.vue

+ 10 - 0
hdPad/src/pages/home/components/console.vue

@@ -68,7 +68,9 @@ import {goodsWastage} from '@/api/wastage'
 import productMins from "@/mixins/product"
 import selectPrice from './selectPrice'
 import selectNumPrice from './selectNumPrice'
+// #ifdef APP-PLUS
 let sunmiCashboxPlugin = uni.requireNativePlugin('Tellsea-SunmiCashboxPlugin')
+// #endif
 export default {
     name:'console',
 	mixins: [productMins],
@@ -190,6 +192,9 @@ export default {
 						this.$refs.gatheringRef.close()
 						uni.showToast({title: '操作成功' })
 					}
+					if(params.cash && parseFloat(params.cash)>0){
+						this.openBox()
+					}
 				}
 			})
 		},
@@ -239,6 +244,9 @@ export default {
 					}
 					this.settleOpenStatus = 0
 					this.$refs.settlePopRef.close()
+					if(params.cash && parseFloat(params.cash)>0){
+						this.openBox()
+					}
 				}
 			})
 		},
@@ -358,6 +366,7 @@ export default {
 			this.$refs.clearItemRef.open()
 		},
 		openBox(){
+			// #ifdef APP-PLUS
 			sunmiCashboxPlugin.connect((e) => {
 				let res = JSON.parse(e)
 				if (res.code == 200) {
@@ -369,6 +378,7 @@ export default {
 					});
 				}
 			})
+			// #endif
 		},
 		//确认清空花材
 		confirmClearItem(){