Browse Source

修改退货原因字段

chenrui 2 years ago
parent
commit
38ec12aba6

+ 3 - 1
src/views/purchasingManagement/purchaseReturn/addModal.vue

@@ -120,6 +120,7 @@ export default {
           const form = JSON.parse(JSON.stringify(_this.form))
           form.attachmentList = _this.attachList
           _this.spinning = true
+          debugger
           sparePartsReturnSave(form).then(res => {
             if (res.status == 200) {
               _this.$message.success(res.message)
@@ -146,7 +147,8 @@ export default {
           const obj = {
             supplierSn: resultObj.supplierSn,
             returnReason: resultObj.returnReason, // 退货原因
-            explainInfo: resultObj.explainInfo // 补充说明
+            explainInfo: resultObj.explainInfo, // 补充说明
+            sparePartsReturnSn: this.itemSn
           }
           this.$nextTick(() => {
             this.$refs.attachList.setFileList(this.attachList)

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

@@ -181,7 +181,7 @@ export default {
         { title: '创建时间', dataIndex: 'createDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },
         { title: '采购退货单号', scopedSlots: { customRender: 'sparePartsReturnNo' }, width: '15%', align: 'center' },
         { 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: 'returnReasonDictValue', 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) : '--') } },
         { title: '审核时间', dataIndex: 'auditDate', width: '8%', align: 'center', customRender: function (text) { return text || '--' } },

+ 0 - 1
src/views/purchasingManagement/purchaseReturn/purchaseReturnDeatil.vue

@@ -289,7 +289,6 @@ export default {
       this.productForm.productName = ''
       this.productForm.productCode = ''
       this.$refs.table.refresh(!!flag)
-      this.$refs.partQuery.resetSearchForm()
     },
     // 已选产品  blur
     onCellBlur (val, record) {