阶段性提交

This commit is contained in:
@fawn-nine
2023-10-26 13:13:41 +08:00
parent a5b5d2a24b
commit 16d7333f46
6 changed files with 539 additions and 233 deletions

View File

@@ -22,7 +22,11 @@ export default {
orderId:{
type: Number,
value: null
},
},
orderSn:{
type: String,
value: ''
},
},
data() {
return {
@@ -36,19 +40,22 @@ export default {
beforeCloseDialog() {
this.$emit('closeDialog', false)
},
init (id) {
init (sn,id) {
this.orderId = id || 0
this.orderSn = sn || 0
this.visible = true
this.$nextTick(() => {
if (this.orderId) {
if (this.orderSn) {
this.$http({
url: this.$http.adornUrl(`/book/buyOrder/info/${this.orderId}`),
url: this.$http.adornUrl('/book/buyOrder/orderDetail'),
method: 'get',
params: this.$http.adornParams()
params: this.$http.adornParams({
'orderSn': this.orderSn,
})
}).then(({data}) => {
if (data && data.code === 0) {
console.log(data.buyOrder)
this.dataForm.remark = data.buyOrder.remark
console.log(data.result)
this.dataForm.remark = data.result.remark
// console.log(this.dataForm.remark)
}
})