Commit 3773543f by 前端

车损订单列表商品名称修改显示方式及添加套餐名称字段

1 parent e916d995
...@@ -2,34 +2,84 @@ ...@@ -2,34 +2,84 @@
<template> <template>
<div class="purchase"> <div class="purchase">
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" <GLCombiForm ref="showSearch"
:rowNumber="1"
:formObj="searchForm"
:formData="showFormData"
@handleOk="handleSearch"
@handleRest="handleReset"></GLCombiForm> @handleRest="handleReset"></GLCombiForm>
<div class="table-header"> <div class="table-header">
<el-button type="primary" class="btn" size="small" @click="exportExcel">导出</el-button> <el-button type="primary"
class="btn"
size="small"
@click="exportExcel">导出</el-button>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
<GLTable ref="orderRef" :getListApi="getListApi" :noDataImg="url" :searchForm="tableSearchForm" <GLTable ref="orderRef"
:tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" :getListApi="getListApi"
:noDataImg="url"
:searchForm="tableSearchForm"
:tableParams="tableParams"
:pageConf="pageConf"
:beforeSearchFn="beforeSearchFn"
@setTableFinishFun="setTableFinishFun"> @setTableFinishFun="setTableFinishFun">
<div class="table-btns" slot="auth-button" slot-scope="scope"> <template slot="packageName"
slot-scope="scope">
<span v-if="scope.scope.mode == 0">
--
</span>
<span v-else
v-for="(item, index) in scope.scope.vdQuotationGoodsList"
:key="index">
<p v-if="item.packageName">{{ item.packageName }}</p>
<p v-else> -- </p>
</span>
</template>
<template slot="goodsName"
slot-scope="scope">
<span v-if="scope.scope.mode == 0">
{{ scope.scope.goodsName }}
</span>
<span v-else
v-for="(item, index) in scope.scope.vdQuotationGoodsList"
:key="index">
<p v-if="item.goodsName">{{ item.goodsName }}</p>
</span>
</template>
<div class="table-btns"
slot="auth-button"
slot-scope="scope">
<el-button type="text" <el-button type="text"
v-if="[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)" v-if="[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)"
:disabled="scope.scope.mode != 0" @click="handlePrint(scope.scope)">打印</el-button> :disabled="scope.scope.mode != 0"
@click="handlePrint(scope.scope)">打印</el-button>
<el-button type="text" <el-button type="text"
v-if="[2].includes(scope.scope.equityOrderStatus) && [3, 5].includes(scope.scope.orderStatus)" v-if="[2].includes(scope.scope.equityOrderStatus) && [3, 5].includes(scope.scope.orderStatus)"
@click="handlePrintContract(scope.scope)">打印合同</el-button> @click="handlePrintContract(scope.scope)">打印合同</el-button>
<el-button type="text" @click="handleDetail(scope.scope)">详情</el-button> <el-button type="text"
@click="handleDetail(scope.scope)">详情</el-button>
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<GLDialog v-if="previewVisible" bigTitle="打印合同" mode="big" :visible.sync="previewVisible" :noCancel="true" <GLDialog v-if="previewVisible"
:width="'480px'" :close-on-click-modal="false" @onOk="previewVisible = false" @onCancel="previewVisible = false"> bigTitle="打印合同"
<div class="previewItem" v-for="(item, index) in previewList" :key="index"> mode="big"
:visible.sync="previewVisible"
:noCancel="true"
:width="'480px'"
:close-on-click-modal="false"
@onOk="previewVisible = false"
@onCancel="previewVisible = false">
<div class="previewItem"
v-for="(item, index) in previewList"
:key="index">
<span v-if="!item.goodName">合同{{ index + 1 }}</span> <span v-if="!item.goodName">合同{{ index + 1 }}</span>
<span class="goodName one-line-ellipsis" v-else>合同名称: {{ item.goodName }}</span> <span class="goodName one-line-ellipsis"
<i class="el-icon-download downloadIcon" @click="exportFile({ contractNo: item.contractNo })"></i> v-else>合同名称: {{ item.goodName }}</span>
<i class="el-icon-download downloadIcon"
@click="exportFile({ contractNo: item.contractNo })"></i>
</div> </div>
</GLDialog> </GLDialog>
</div> </div>
...@@ -156,9 +206,16 @@ export default { ...@@ -156,9 +206,16 @@ export default {
width: '200px' width: '200px'
}, },
{ {
label: '套餐名称',
prop: 'packageName',
addHtml: 'packageName',
width: '200px',
},
{
label: '商品名称', label: '商品名称',
prop: 'goodsName', prop: 'goodsName',
width: '200px' addHtml: 'goodsName',
width: '200px',
}, },
{ {
label: '报价金额/元', label: '报价金额/元',
...@@ -420,11 +477,12 @@ export default { ...@@ -420,11 +477,12 @@ export default {
width: auto; width: auto;
} }
.previewItem+.previewItem { .previewItem + .previewItem {
margin-top: 30px; margin-top: 30px;
} }
.downloadIcon { .downloadIcon {
margin-left: 10px; margin-left: 10px;
color: #185efe; color: #185efe;
}</style> }
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!