阶段性提交
This commit is contained in:
@@ -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)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user