|
@@ -77,13 +77,24 @@
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
<a-form-model-item label="质保状态">
|
|
<a-form-model-item label="质保状态">
|
|
- <v-select
|
|
|
|
|
|
+ <!-- <v-select
|
|
v-model="queryParam.dealerLevel"
|
|
v-model="queryParam.dealerLevel"
|
|
ref="dealerLevel"
|
|
ref="dealerLevel"
|
|
id="productSourceList-dealerLevel"
|
|
id="productSourceList-dealerLevel"
|
|
code="DEALER_LEVEL"
|
|
code="DEALER_LEVEL"
|
|
- placeholder="请选择业务状态"
|
|
|
|
- allowClear></v-select>
|
|
|
|
|
|
+ placeholder="请选择质保状态"
|
|
|
|
+ allowClear></v-select> -->
|
|
|
|
+ <a-select v-model="queryParam.warrantyState" placeholder="请选择质保状态" allowClear>
|
|
|
|
+ <a-select-option value="NOTSTART">
|
|
|
|
+ 未开始
|
|
|
|
+ </a-select-option>
|
|
|
|
+ <a-select-option value="RUN">
|
|
|
|
+ 进行中
|
|
|
|
+ </a-select-option>
|
|
|
|
+ <a-select-option value="END">
|
|
|
|
+ 已过期
|
|
|
|
+ </a-select-option>
|
|
|
|
+ </a-select>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
</template>
|
|
</template>
|
|
@@ -136,7 +147,7 @@
|
|
class="sTable fixPagination"
|
|
class="sTable fixPagination"
|
|
ref="table"
|
|
ref="table"
|
|
size="small"
|
|
size="small"
|
|
- :rowKey="(record) => record.salesBillNo"
|
|
|
|
|
|
+ :rowKey="(record) => record.id"
|
|
:style="{ height: tableHeight+70+'px' }"
|
|
:style="{ height: tableHeight+70+'px' }"
|
|
rowKeyName="salesBillNo"
|
|
rowKeyName="salesBillNo"
|
|
:columns="columns"
|
|
:columns="columns"
|
|
@@ -144,14 +155,18 @@
|
|
:scroll="{ y: tableHeight-10 }"
|
|
:scroll="{ y: tableHeight-10 }"
|
|
:defaultLoadData="false"
|
|
:defaultLoadData="false"
|
|
bordered>
|
|
bordered>
|
|
|
|
+ <!-- 质保时间 -->
|
|
|
|
+ <template slot="warrantyTime" slot-scope="text, record">
|
|
|
|
+ {{ record.warrantyStartDate }}{{ record.warrantyEndDate?'-'+record.warrantyEndDate:'' }}
|
|
|
|
+ </template>
|
|
<!-- 操作 -->
|
|
<!-- 操作 -->
|
|
<template slot="action" slot-scope="text, record">
|
|
<template slot="action" slot-scope="text, record">
|
|
- <a-button size="small" type="link" class="button-warning" @click="openInfoModal = true">质保信息</a-button>
|
|
|
|
|
|
+ <a-button size="small" type="link" class="button-warning" @click="handleInfoModal(record)">质保信息</a-button>
|
|
</template>
|
|
</template>
|
|
</s-table>
|
|
</s-table>
|
|
</a-spin>
|
|
</a-spin>
|
|
<!-- 质保信息-->
|
|
<!-- 质保信息-->
|
|
- <warranty-info-modal v-drag :openModal="openInfoModal" @close="openInfoModal = false" />
|
|
|
|
|
|
+ <warranty-info-modal v-drag :openModal="openInfoModal" :itemSn="warrantyInfoId" @close="warrantyInfoId=null;openInfoModal = false" />
|
|
<!-- 导入轮胎唯一码 -->
|
|
<!-- 导入轮胎唯一码 -->
|
|
<importGuideModal :openModal="openGuideModal" @close="openGuideModal=false" @ok="handleGuideOk" />
|
|
<importGuideModal :openModal="openGuideModal" @close="openGuideModal=false" @ok="handleGuideOk" />
|
|
</a-card>
|
|
</a-card>
|
|
@@ -189,7 +204,8 @@ export default {
|
|
bizCode: undefined,
|
|
bizCode: undefined,
|
|
traceCode: undefined,
|
|
traceCode: undefined,
|
|
buyerName: undefined,
|
|
buyerName: undefined,
|
|
- bizStatus: undefined
|
|
|
|
|
|
+ bizStatus: undefined,
|
|
|
|
+ warrantyState: undefined
|
|
},
|
|
},
|
|
openInfoModal: false, // 质保信息弹窗
|
|
openInfoModal: false, // 质保信息弹窗
|
|
columns: [{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
columns: [{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
@@ -200,8 +216,8 @@ export default {
|
|
{ title: '唯一码', dataIndex: 'traceCode', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '唯一码', dataIndex: 'traceCode', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '产品名称', dataIndex: 'productName', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '产品名称', dataIndex: 'productName', width: '15%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
{ title: '客户名称', dataIndex: 'buyerName', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
{ title: '客户名称', dataIndex: 'buyerName', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
|
|
- { title: '质保状态', dataIndex: 'giftQty4', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
- { title: '质保时间', dataIndex: 'giftQty3', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
|
|
+ { title: '质保状态', dataIndex: 'warrantyStateValue', width: '10%', align: 'center', customRender: function (text) { return text || '--' } },
|
|
|
|
+ { title: '质保时间', scopedSlots: { customRender: 'warrantyTime' }, width: '10%', align: 'center' },
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '12%', align: 'center' }
|
|
{ title: '操作', scopedSlots: { customRender: 'action' }, width: '12%', align: 'center' }
|
|
],
|
|
],
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
disabled: false, // 查询、重置按钮是否可操作
|
|
@@ -227,7 +243,8 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
totalData: null,
|
|
totalData: null,
|
|
- openGuideModal: false // 导入弹窗
|
|
|
|
|
|
+ openGuideModal: false, // 导入弹窗
|
|
|
|
+ warrantyInfoId: null
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
@@ -264,7 +281,7 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- // 创建时间 change
|
|
|
|
|
|
+ // 审核时间 change
|
|
dateChange (date) {
|
|
dateChange (date) {
|
|
if (date[0] && date[1]) {
|
|
if (date[0] && date[1]) {
|
|
this.queryParam.time = date
|
|
this.queryParam.time = date
|
|
@@ -274,6 +291,11 @@ export default {
|
|
this.queryParam.beginDate = date[0] || ''
|
|
this.queryParam.beginDate = date[0] || ''
|
|
this.queryParam.endDate = date[1] || ''
|
|
this.queryParam.endDate = date[1] || ''
|
|
},
|
|
},
|
|
|
|
+ // 质保信息
|
|
|
|
+ handleInfoModal (row) {
|
|
|
|
+ this.warrantyInfoId = row.warrantyid
|
|
|
|
+ this.openInfoModal = true
|
|
|
|
+ },
|
|
// 重置
|
|
// 重置
|
|
resetSearchForm () {
|
|
resetSearchForm () {
|
|
this.time = [
|
|
this.time = [
|
|
@@ -290,6 +312,7 @@ export default {
|
|
this.queryParam.traceCode = undefined
|
|
this.queryParam.traceCode = undefined
|
|
this.queryParam.buyerName = undefined
|
|
this.queryParam.buyerName = undefined
|
|
this.queryParam.bizStatus = undefined
|
|
this.queryParam.bizStatus = undefined
|
|
|
|
+ this.queryParam.warrantyState = undefined
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
},
|
|
},
|
|
// 导出
|
|
// 导出
|