Commit f4b52ecd by cen

fix: 跳转创建订单带类型参数区分

1 parent 005212bf
......@@ -225,7 +225,7 @@ export default {
? this.showSelectType({
item
})
: this.$emit('jump', name, this.orderCardDetail)
: this.$emit('jump', name, { ...this.orderCardDetail, type: name == 'CreateOrder' ? 'createWithPay' : '' })
} else {
utils.showNoAccess()
}
......@@ -269,9 +269,9 @@ export default {
if (this.selectType == 1) {
console.log(await this.inspectionOfProhibitionBill())
if (await this.inspectionOfProhibitionBill()) return
this.$emit('jump', 'CreateOrder', this.orderCardDetail)
this.$emit('jump', 'CreateOrder', { ...this.orderCardDetail, type: 'createWithPay' })
} else {
this.$emit('jump', 'DefeatOrder', this.orderCardDetail)
this.$emit('jump', 'DefeatOrder', { ...this.orderCardDetail, type: 'createWithPay' })
}
},
cancelSelection() {
......
......@@ -372,7 +372,7 @@ export default {
this.checkPayType()
},
edit() {
this.$emit('jump', 'CreateOrder', this.orderInfo)
this.$emit('jump', 'CreateOrder', { ...this.orderInfo, type: 'editWithPay' })
},
confirmDate(date) {
const { chooseContent } = date
......
......@@ -455,7 +455,8 @@ export default {
}
this.$refs.WaitinputorderPopup.closePopup()
this.$emit('jump', 'CreateOrder', {
selectedItems: selectedItems
selectedItems: selectedItems,
type: 'supplementOrder'
})
},
cancelSelection() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!