|
|
@@ -129,10 +129,25 @@ export default {
|
|
|
currentJobId:0
|
|
|
}
|
|
|
},
|
|
|
+ props: {
|
|
|
+ selectOrderId:{
|
|
|
+ type: Number,
|
|
|
+ default: 0
|
|
|
+ }
|
|
|
+ },
|
|
|
mixins: [productMins],
|
|
|
computed:{
|
|
|
...mapGetters(["getMyShopInfo"]),
|
|
|
},
|
|
|
+ watch:{
|
|
|
+ selectOrderId: {
|
|
|
+ handler(newId,oldId) {
|
|
|
+ this.currentJobId = Number(oldId)
|
|
|
+ this.removeFromSaveDirect()
|
|
|
+ this.currentJobId = Number(newId)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
mounted() {
|
|
|
// #ifdef APP-PLUS
|
|
|
this.listenScanItem()
|
|
|
@@ -143,6 +158,7 @@ export default {
|
|
|
//避免重复,每次进来先移除全局自定义事件监听器
|
|
|
uni.$off('listenGetScanCode')
|
|
|
// #endif
|
|
|
+ this.removeFromSaveDirect()
|
|
|
},
|
|
|
methods:{
|
|
|
calcFn(){
|
|
|
@@ -248,8 +264,6 @@ export default {
|
|
|
},
|
|
|
getOrderDetail(id){
|
|
|
|
|
|
- this.currentJobId = Number(id)
|
|
|
-
|
|
|
getFullInfo({id}).then(res=>{
|
|
|
if(res.code == 1){
|
|
|
this.orderInfo = res.data.info
|