Forráskód Böngészése

费用变更明细删除修改

lichao 3 éve
szülő
commit
c1fc8fcda0

+ 2 - 2
src/api/warehouseBusiness/wareHouseModify.js

@@ -49,10 +49,10 @@ export function passWarehouse(type, id) {
     }
   })
 }
-// 查询
+// 删除
 export function deleteWarehouse(id) {
   return request({
-    url: '/warehouse/modify/warehouseBill/ids=' + id,
+    url: '/warehouse/modify/warehouseBill/' + id,
     method: 'delete',
   })
 }

+ 2 - 2
src/views/Warehousing/costModify/index.vue

@@ -576,7 +576,7 @@ export default {
       detailWarehouseModify(id).then(res => {
         this.form = res.data
         this.feeList = res.data.tWarehousebillsfees
-        this.formfeesList = res.data.warehousebillsfeesModifyList
+        this.formfeesList = res.data.warehousebillsfeesModifyList? res.data.warehousebillsfeesModifyList:[]
       })
       this.disabledtwo = true
       this.title = "查看订单";
@@ -754,7 +754,7 @@ export default {
       detailWarehouseModify(id).then(res => {
         this.form = res.data
         this.feeList = res.data.tWarehousebillsfees
-        this.formfeesList = res.data.warehousebillsfeesModifyList
+        this.formfeesList = res.data.warehousebillsfeesModifyList?res.data.warehousebillsfeesModifyList: []
         this.$nextTick(() => {
           this.$refs.addOrUpdateRef.init()
         })