Commit 620daeb7 by zhangquan

ui修改

1 parent a6535ae6
......@@ -16,6 +16,12 @@
<div class="title">商品信息</div>
<div class="detail">
<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>
</div>
</div>
......@@ -23,7 +29,12 @@
<div class="title">发货信息</div>
<div class="detail">
<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>
</div>
</div>
......@@ -48,9 +59,7 @@ export default {
{
label: '发货商品',
prop: 'goodsName',
formatter: cell => {
return cell.brandName + cell.goodsSkuName
}
addHtml: 'goodsNameSlot'
},
{
label: '发货数量',
......@@ -85,9 +94,7 @@ export default {
{
label: '商品名称',
prop: 'goodsName',
formatter: cell => {
return cell.brandName + cell.goodsSkuName
}
addHtml: 'goodsNameSlot'
},
{
label: '单价 (元)',
......
......@@ -12,7 +12,7 @@
<glsxCombiForm ref="editFormRef" labelWidth="154px" defaultWidth="214px" :formObj="orderInfo" :formData="editFormData">
<div slot="addDescImgSlot" class="addDescImgSlot">
<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>
</glsxCombiForm>
</div>
......@@ -21,7 +21,12 @@
<div class="title">商品信息</div>
<div class="detail">
<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>
</div>
</div>
......@@ -75,9 +80,7 @@ export default {
{
label: '商品名称',
prop: 'goodsName',
formatter: cell => {
return cell.brandName + cell.goodsSkuName
}
addHtml: 'goodsNameSlot'
},
{
label: '申请数量',
......@@ -163,11 +166,12 @@ export default {
console.log(res)
if(res?.id){
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.returnReasonType = reasonObj[returnReasonType]
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.expressInfo = [{expressName: res.expressName, expressNo: res.expressNo, refundedDate: res.refundedDate}]
this.orderInfo = res
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!