Commit 620daeb7 by zhangquan

ui修改

1 parent a6535ae6
...@@ -16,6 +16,12 @@ ...@@ -16,6 +16,12 @@
<div class="title">商品信息</div> <div class="title">商品信息</div>
<div class="detail"> <div class="detail">
<GLTable :hasPage="false" ref="goodsTableRef" :tableParams="tableParams" :tableData="orderInfo.subOrderGoodsList"> <GLTable :hasPage="false" ref="goodsTableRef" :tableParams="tableParams" :tableData="orderInfo.subOrderGoodsList">
<div slot="goodsNameSlot" class="goodsNameSlot" slot-scope="scope">
<img :src="scope.scope.goodsImageUrl" alt="">
<el-tooltip class="item" effect="dark" :content="(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')" placement="top">
<span class="name">{{ scope.scope.brandName }} {{ scope.scope.goodsSkuName }}</span>
</el-tooltip>
</div>
</GLTable> </GLTable>
</div> </div>
</div> </div>
...@@ -23,7 +29,12 @@ ...@@ -23,7 +29,12 @@
<div class="title">发货信息</div> <div class="title">发货信息</div>
<div class="detail"> <div class="detail">
<GLTable :hasPage="false" ref="shipmentsRef" :tableParams="shipmentsParams" :tableData="orderInfo.subOrderGoodsList"> <GLTable :hasPage="false" ref="shipmentsRef" :tableParams="shipmentsParams" :tableData="orderInfo.subOrderGoodsList">
<div slot="goodsNameSlot" class="goodsNameSlot" slot-scope="scope">
<img :src="scope.scope.goodsImageUrl" alt="">
<el-tooltip class="item" effect="dark" :content="(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')" placement="top">
<span class="name">{{ scope.scope.brandName }} {{ scope.scope.goodsSkuName }}</span>
</el-tooltip>
</div>
</GLTable> </GLTable>
</div> </div>
</div> </div>
...@@ -48,9 +59,7 @@ export default { ...@@ -48,9 +59,7 @@ export default {
{ {
label: '发货商品', label: '发货商品',
prop: 'goodsName', prop: 'goodsName',
formatter: cell => { addHtml: 'goodsNameSlot'
return cell.brandName + cell.goodsSkuName
}
}, },
{ {
label: '发货数量', label: '发货数量',
...@@ -85,9 +94,7 @@ export default { ...@@ -85,9 +94,7 @@ export default {
{ {
label: '商品名称', label: '商品名称',
prop: 'goodsName', prop: 'goodsName',
formatter: cell => { addHtml: 'goodsNameSlot'
return cell.brandName + cell.goodsSkuName
}
}, },
{ {
label: '单价 (元)', label: '单价 (元)',
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<glsxCombiForm ref="editFormRef" labelWidth="154px" defaultWidth="214px" :formObj="orderInfo" :formData="editFormData"> <glsxCombiForm ref="editFormRef" labelWidth="154px" defaultWidth="214px" :formObj="orderInfo" :formData="editFormData">
<div slot="addDescImgSlot" class="addDescImgSlot"> <div slot="addDescImgSlot" class="addDescImgSlot">
<img v-for="(item,index) in orderInfo.imgUrlList" :key="index" :src="item" alt=""> <img v-for="(item,index) in orderInfo.imgUrlList" :key="index" :src="item" alt="">
<span v-if="orderInfo.imgUrlList.length==0">--</span> <span v-if="!orderInfo.imgUrlList || orderInfo.imgUrlList.length==0">--</span>
</div> </div>
</glsxCombiForm> </glsxCombiForm>
</div> </div>
...@@ -21,7 +21,12 @@ ...@@ -21,7 +21,12 @@
<div class="title">商品信息</div> <div class="title">商品信息</div>
<div class="detail"> <div class="detail">
<GLTable :hasPage="false" ref="goodsTableRef" :tableParams="tableParams" :tableData="orderInfo.goodsInfoTableDate"> <GLTable :hasPage="false" ref="goodsTableRef" :tableParams="tableParams" :tableData="orderInfo.goodsInfoTableDate">
<div slot="goodsNameSlot" class="goodsNameSlot" slot-scope="scope">
<img :src="scope.scope.goodsImageUrl" alt="">
<el-tooltip class="item" effect="dark" :content="(scope.scope.brandName || '') + (scope.scope.goodsSkuName || '')" placement="top">
<span class="name">{{ scope.scope.brandName }} {{ scope.scope.goodsSkuName }}</span>
</el-tooltip>
</div>
</GLTable> </GLTable>
</div> </div>
</div> </div>
...@@ -75,9 +80,7 @@ export default { ...@@ -75,9 +80,7 @@ export default {
{ {
label: '商品名称', label: '商品名称',
prop: 'goodsName', prop: 'goodsName',
formatter: cell => { addHtml: 'goodsNameSlot'
return cell.brandName + cell.goodsSkuName
}
}, },
{ {
label: '申请数量', label: '申请数量',
...@@ -163,11 +166,12 @@ export default { ...@@ -163,11 +166,12 @@ export default {
console.log(res) console.log(res)
if(res?.id){ if(res?.id){
let {applyQty, refundPrice, outRefundType, refundStatus, tparReturnOrderCode, returnType, returnReasonType, refundedDate} = res || {} let {applyQty, refundPrice, outRefundType, refundStatus, tparReturnOrderCode, returnType, returnReasonType, refundedDate} = res || {}
const {brandName, goodsSkuName} = res.orderGoods || {} const {brandName, goodsSkuName, goodsImageUrl} = res.orderGoods || {}
res.returnType = {1001: '退货退款', 1002: '仅退款', 1003:'退货换货'}[returnType] || '--' res.returnType = {1001: '退货退款', 1002: '仅退款', 1003:'退货换货'}[returnType] || '--'
res.returnReasonType = reasonObj[returnReasonType] res.returnReasonType = reasonObj[returnReasonType]
refundStatus = refundStatus!=1003 ? refundStatusObj[refundStatus] : outRefundTypeObj[outRefundType] refundStatus = refundStatus!=1003 ? refundStatusObj[refundStatus] : outRefundTypeObj[outRefundType]
res.goodsInfoTableDate = [{brandName, goodsSkuName,applyQty,refundPrice, refundStatus, tparReturnOrderCode}] res.goodsInfoTableDate = [{brandName, goodsSkuName, goodsImageUrl, applyQty, refundPrice, refundStatus, tparReturnOrderCode}]
res.createdDate = res.createdDate ? util.dateFormat(res.createdDate, 'YYYY-MM-DD HH:mm:ss') : '--'
res.refundedDate = refundedDate ? util.dateFormat(refundedDate, 'YYYY-MM-DD HH:mm:ss') : '--' res.refundedDate = refundedDate ? util.dateFormat(refundedDate, 'YYYY-MM-DD HH:mm:ss') : '--'
res.expressInfo = [{expressName: res.expressName, expressNo: res.expressNo, refundedDate: res.refundedDate}] res.expressInfo = [{expressName: res.expressName, expressNo: res.expressNo, refundedDate: res.refundedDate}]
this.orderInfo = res this.orderInfo = res
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!