Commit f4b52ecd by cen

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

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