Jelajahi Sumber

修改供应商名称

chenrui 2 tahun lalu
induk
melakukan
48ad7f04f0

+ 1 - 1
src/views/purchasingManagement/purchaseReturn/list.vue

@@ -180,7 +180,7 @@ export default {
         { title: '序号', dataIndex: 'no', width: '5%', align: 'center' },
         { title: '创建时间', dataIndex: 'createDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '采购退货单号', scopedSlots: { customRender: 'sparePartsReturnNo' }, width: '15%', align: 'center' },
-        { title: '供应商名称', dataIndex: 'supplierName', align: 'center', width: '15%', customRender: function (text) { return text || '--' }, ellipsis: true },
+        { title: '供应商名称', dataIndex: 'supplier.supplierName', align: 'center', width: '15%', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '退货原因', dataIndex: 'explainInfo', width: '15%', align: 'center', customRender: function (text) { return text || '--' }, ellipsis: true },
         { title: '申请退货数量', dataIndex: 'totalPutQty', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '退货金额', dataIndex: 'totalCost', width: '8%', align: 'center', customRender: function (text) { return ((text || text == 0) ? toFixedDecimal(text, 2) : '--') } },

+ 4 - 4
src/views/purchasingManagement/purchaseReturn/purchaseReturnDeatil.vue

@@ -19,7 +19,7 @@
             </div>
             <a-descriptions size="small" :column="3" style="margin-bottom: 10px;">
               <a-descriptions-item label="采购退货单号">{{ detailsData&&detailsData.sparePartsReturnNo || '--' }}</a-descriptions-item>
-              <a-descriptions-item label="供应商名称">{{ detailsData&&detailsData.supplierName || '--' }}</a-descriptions-item>
+              <a-descriptions-item label="供应商名称">{{ detailsData&&detailsData.supplier&&detailsData.supplier.supplierName || '--' }}</a-descriptions-item>
               <a-descriptions-item label="退货原因">{{ detailsData&&detailsData.returnReasonDictValue || '--' }}</a-descriptions-item>
               <a-descriptions-item label="补充说明" :span="3">{{ detailsData&&detailsData.explainInfo || '--' }}</a-descriptions-item>
               <a-descriptions-item label="附件" :span="3">
@@ -157,7 +157,7 @@ export default {
       },
       sparePartsReturnSn: null,
       sparePartsReturnNo: null,
-      chooseList: null,
+      chooseList: [],
       columns: [
         { title: '序号', dataIndex: 'no', align: 'center', width: '4%' },
         {
@@ -241,7 +241,7 @@ export default {
             }
             this.disabled = false
           }
-          this.chooseList = data
+          this.chooseList = data.list
           return data
         })
       },
@@ -374,7 +374,7 @@ export default {
       })
     },
     beforeSubmit () {
-      if (this.chooseList && this.chooseList.length > 0) {
+      if (this.chooseList.length > 0) {
         this.openDepartUserModal = true
       } else {
         this.$message.warning('请先添加要退货的产品!')