Commit 16d8d2ee by wangql

提测代码提交

1 parent b02d31ec
...@@ -310,6 +310,11 @@ export const Util = { ...@@ -310,6 +310,11 @@ export const Util = {
} }
} }
} }
},
//判断字段为空时显示
fieldShow: function(field, show) {
return field ? field : show
} }
} }
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<span class="d2-atr-item"><span <span class="d2-atr-item"><span
class="d2-atr-item-label">客户姓名:</span>{{orderInfo.order.customer.customerName}}</span> class="d2-atr-item-label">客户姓名:</span>{{orderInfo.order.customer.customerName}}</span>
<span class="d2-atr-item"><span <span class="d2-atr-item"><span
class="d2-atr-item-label">车型:</span>{{orderInfo.order.customer.carBrand + ' - ' + orderInfo.order.customer.carChildsBrandName + ' - ' + orderInfo.order.customer.carSeriesName}}</span> class="d2-atr-item-label">车型:</span>{{Util.fieldShow(orderInfo.order.customer.carBrand,'') + ' - ' + Util.fieldShow(orderInfo.order.customer.carChildsBrandName,'') + ' - ' + Util.fieldShow(orderInfo.order.customer.carSeriesName,'')}}</span>
<span class="d2-atr-item"><span <span class="d2-atr-item"><span
class="d2-atr-item-label">车架号:</span>{{orderInfo.order.customer.standNo}}</span> class="d2-atr-item-label">车架号:</span>{{orderInfo.order.customer.standNo}}</span>
</div> </div>
...@@ -260,7 +260,8 @@ export default { ...@@ -260,7 +260,8 @@ export default {
// }, // },
selectedOptions: [], selectedOptions: [],
getErpOrderFlag: false, // 判断ERP订单查询结果 getErpOrderFlag: false, // 判断ERP订单查询结果
btnOkLabel: '确认出库' btnOkLabel: '确认出库',
Util: Util
} }
}, },
...@@ -395,7 +396,8 @@ export default { ...@@ -395,7 +396,8 @@ export default {
const { id, createdBy, createdDate, updatedBy, updatedDate, deletedFlag, ...others } = item const { id, createdBy, createdDate, updatedBy, updatedDate, deletedFlag, ...others } = item
return others return others
}) })
params.erpOrderResponse = Util.jsonKeysToCase(this.erpOrderResponse_objList, 1) // params.erpOrderResponse = Util.jsonKeysToCase(this.erpOrderResponse_objList, 1)
params.erpOrderResponse = this.erpOrderResponse_objList
params.subOrderList = subOrderList params.subOrderList = subOrderList
console.log(params) console.log(params)
ErpUpgradeSales(params).then(res => { ErpUpgradeSales(params).then(res => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!