|
|
@@ -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(){
|