lilei 4 vuotta sitten
vanhempi
commit
859e823e49

+ 2 - 1
src/views/common/custList.vue

@@ -53,7 +53,8 @@ export default {
         data: [],
         fetching: false
       })
-      this.$emit('change', value)
+      const row = this.data.find(item => item.dealerSn == value.key)
+      this.$emit('change', value, row)
     },
     resetForm () {
       this.dealerName = []

+ 4 - 3
src/views/salesManagement/salesReturn/chooseCustomModal.vue

@@ -117,12 +117,12 @@
 
 <script>
 import { getArea } from '@/api/data'
-import { custAllList, custFindById, updateByCustomerSn } from '@/api/customer'
 import { salesReturnSave } from '@/api/salesReturn'
 import { VSelect } from '@/components'
+import custList from '@/views/common/custList.vue'
 export default {
   name: 'ChooseCustomModal',
-  components: { VSelect },
+  components: { VSelect, custList },
   props: {
     show: [Boolean]
   },
@@ -182,7 +182,8 @@ export default {
     }
   },
   methods: {
-    custChange (val) {
+    custChange (val, row) {
+      console.log(val, row)
       this.form.buyerSn = val.key
     },
     //  获取详情

+ 1 - 1
src/views/salesManagement/salesReturn/list.vue

@@ -181,7 +181,7 @@ export default {
         { title: '退货客户', dataIndex: 'buyerName', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '退货数量', dataIndex: 'totalQty', width: 110, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '坏件数量', dataIndex: 'totalBadQty', width: 110, align: 'center', customRender: function (text) { return text || '--' } },
-        { title: '返库数量', dataIndex: 'totalCategory', width: 110, align: 'center', customRender: function (text) { return text || '--' } },
+        { title: '返库数量', dataIndex: 'totalBackStockQty', width: 110, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '退款金额', dataIndex: 'totalAmount', width: 110, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '是否抓单', dataIndex: 'grabFlag', width: 100, align: 'center', customRender: function (text) { return ['否', '是'][text] } },
         { title: '审核时间', dataIndex: 'auditTime', width: 160, align: 'center', customRender: function (text) { return text || '--' } },