|
@@ -67,11 +67,7 @@
|
|
</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="客户名称">
|
|
- <a-input
|
|
|
|
- id="productSourceList-buyerName"
|
|
|
|
- v-model.trim="queryParam.buyerName"
|
|
|
|
- allowClear
|
|
|
|
- placeholder="请输入客户名称" />
|
|
|
|
|
|
+ <dealerSearchList ref="dealerSubareaScopeList" id="productSourceList-buyerName" @change="custChange" />
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="6" :sm="24">
|
|
<a-col :md="6" :sm="24">
|
|
@@ -182,10 +178,11 @@ import warrantyInfoModal from './warrantyInfoModal.vue'
|
|
import importGuideModal from './importGuideModal.vue'
|
|
import importGuideModal from './importGuideModal.vue'
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
import { hdExportExcel } from '@/libs/exportExcel'
|
|
import { traceCodeInsertBatch, traceCodeQueryCount, traceCodeList, excelOnlineList } from '@/api/reportData'
|
|
import { traceCodeInsertBatch, traceCodeQueryCount, traceCodeList, excelOnlineList } from '@/api/reportData'
|
|
|
|
+import dealerSearchList from '@/views/common/dealerSearchList.vue'
|
|
export default {
|
|
export default {
|
|
name: 'ProductSourceList',
|
|
name: 'ProductSourceList',
|
|
mixins: [commonMixin],
|
|
mixins: [commonMixin],
|
|
- components: { STable, VSelect, rangeDate, warrantyInfoModal, importGuideModal },
|
|
|
|
|
|
+ components: { STable, VSelect, rangeDate, warrantyInfoModal, importGuideModal, dealerSearchList },
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
loading: false,
|
|
loading: false,
|
|
@@ -205,7 +202,8 @@ export default {
|
|
traceCode: undefined,
|
|
traceCode: undefined,
|
|
buyerName: undefined,
|
|
buyerName: undefined,
|
|
bizStatus: undefined,
|
|
bizStatus: undefined,
|
|
- warrantyState: undefined
|
|
|
|
|
|
+ warrantyState: undefined,
|
|
|
|
+ targetSn: undefined
|
|
},
|
|
},
|
|
openInfoModal: false, // 质保信息弹窗
|
|
openInfoModal: false, // 质保信息弹窗
|
|
columns: [{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
columns: [{ title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
|
|
@@ -259,6 +257,15 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ custChange (val) {
|
|
|
|
+ if (val.row) {
|
|
|
|
+ this.queryParam.targetSn = val.row.dealerSn
|
|
|
|
+ this.queryParam.buyerName = val.name
|
|
|
|
+ } else {
|
|
|
|
+ this.queryParam.targetSn = undefined
|
|
|
|
+ this.queryParam.buyerName = val.key
|
|
|
|
+ }
|
|
|
|
+ },
|
|
// 单据类型操作
|
|
// 单据类型操作
|
|
handleBizStatus (val) {
|
|
handleBizStatus (val) {
|
|
this.queryParam.bizStatus = val
|
|
this.queryParam.bizStatus = val
|
|
@@ -311,8 +318,10 @@ export default {
|
|
this.queryParam.bizCode = undefined
|
|
this.queryParam.bizCode = undefined
|
|
this.queryParam.traceCode = undefined
|
|
this.queryParam.traceCode = undefined
|
|
this.queryParam.buyerName = undefined
|
|
this.queryParam.buyerName = undefined
|
|
|
|
+ this.queryParam.targetSn = undefined
|
|
this.queryParam.bizStatus = undefined
|
|
this.queryParam.bizStatus = undefined
|
|
this.queryParam.warrantyState = undefined
|
|
this.queryParam.warrantyState = undefined
|
|
|
|
+ this.$refs.dealerSubareaScopeList.resetForm()
|
|
this.$refs.table.refresh(true)
|
|
this.$refs.table.refresh(true)
|
|
},
|
|
},
|
|
// 导出
|
|
// 导出
|