Przeglądaj źródła

Merge branch 'develop_yh29' of jianguan-web/jg-ocs-html into pre-release

刘俊俊 1 rok temu
rodzic
commit
438d7ab1cd

+ 7 - 16
src/views/productManagement/productSourcePath/list.vue

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