Commit 85fba7c3 authored by zhengyi's avatar zhengyi

订单编辑详情赋值表单逻辑修改

parent 9e2574f7
......@@ -1976,6 +1976,12 @@ export default {
that.$request.get('/app-api/my/order/get',{orderId:id}).then(async (res) => {
if(res.code==0&&res.data){
that.params = res.data
this.params = Object.assign({}, res.data, {
orderItemVOList: [],
destCountryId: null,
consigneeName: '',
consigneePhone: ''
})
console.log("是否是copy:", copy)
if (copy){
// 复制订单,需要将数据初始化
......@@ -2052,7 +2058,6 @@ export default {
that.params.consigneeVO.orderId = null
}
console.log("商品信息1:", that.params.orderItemVOList)
that.params.orderItemVOList = []
console.log("商品信息2:", res.data.orderItemVOList)
res.data.orderItemVOList.forEach((item)=>{
let newItem = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment