ソースを参照

吉永租入租出分页选中

caojunjie 1 年間 前
コミット
f02c909334

+ 10 - 1
src/api/boxManagement/leaseIn/index.js

@@ -138,7 +138,7 @@ export const detList = (params) => {
   })
 }
 
-// 租出,租入,卖相,买箱,堆存管理 箱信息保存和添加接口
+// 卖相,买箱,堆存管理 箱信息保存和添加接口
 export const tradingBoxItemSubmit = (data) => {
   return request({
     url: '/api/blade-box-tube/tradingBoxItem/submit',
@@ -146,3 +146,12 @@ export const tradingBoxItemSubmit = (data) => {
     data: data
   })
 }
+
+// 租出,租入箱信息保存和添加接口
+export const tradingBoxItemSubmitRent = (data) => {
+  return request({
+    url: '/api/blade-box-tube/tradingBoxItem/submitRent',
+    method: 'post',
+    data: data
+  })
+}

+ 6 - 5
src/views/boxManagement/leaseIn/detailsPage.vue

@@ -219,7 +219,7 @@ import {
     tradingBoxFees,
     pleaseCheck,
     repealCancel,
-    statusUpdate, calculateRent, revokeRent, itemDetails, revokeRentingOut, detList, getList, tradingBoxItemSubmit
+    statusUpdate, calculateRent, revokeRent, itemDetails, revokeRentingOut, detList, getList, tradingBoxItemSubmitRent
 } from "@/api/boxManagement/leaseIn/index.js";
 
 import checkSchedule from "@/components/check/checkSchedule";
@@ -497,6 +497,7 @@ export default {
         dialogTop: 25,
         dialogWidth: "80%",
         showSummary: true,
+          reserveSelection:true,
         sumColumnList: [{
           name: 'emptyWeight',
           type: 'sum',
@@ -1451,18 +1452,18 @@ export default {
         return loading();
       }
       form.boxType = form.$boxTypeId
-        this.tradingBoxItemSubmitfun(form)
+        this.tradingBoxItemSubmitRentfun(form)
       done(form)
     },
       // 箱信息的编辑
     rowUpdate(form, index, done, loading) {
       form.boxType = form.$boxTypeId
-        this.tradingBoxItemSubmitfun(form)
+        this.tradingBoxItemSubmitRentfun(form)
       done(form)
     },
       // 箱信息的添加和保存
-      tradingBoxItemSubmitfun(form){
-          tradingBoxItemSubmit({
+      tradingBoxItemSubmitRentfun(form){
+          tradingBoxItemSubmitRent({
               ...form,
               pid:this.form.id?this.form.id:this.onLoad.id
           }).then(res=>{

+ 6 - 5
src/views/boxManagement/leaseOut/detailsPage.vue

@@ -215,7 +215,7 @@ import {
   tradingBoxFees,
   pleaseCheck,
   repealCancel,
-  statusUpdate, calculateRent, revokeRent, itemDetails, revokeRentingOut, detList, tradingBoxItemSubmit
+  statusUpdate, calculateRent, revokeRent, itemDetails, revokeRentingOut, detList, tradingBoxItemSubmitRent
 } from "@/api/boxManagement/leaseIn/index.js";
 
 import checkSchedule from "@/components/check/checkSchedule";
@@ -491,6 +491,7 @@ export default {
         height:600,
         dialogWidth: "80%",
         showSummary: true,
+          reserveSelection:true,
         sumColumnList: [{
           name: 'emptyWeight',
           type: 'sum',
@@ -1426,18 +1427,18 @@ export default {
         return loading();
       }
       form.boxType = form.$boxTypeId
-        this.tradingBoxItemSubmitfun(form)
+        this.tradingBoxItemSubmitRentfun(form)
       done(form)
     },
       // 箱信息编辑弹窗确认按钮
     rowUpdate(form, index, done, loading) {
       form.boxType = form.$boxTypeId
-        this.tradingBoxItemSubmitfun(form)
+        this.tradingBoxItemSubmitRentfun(form)
       done(form)
     },
       // 箱信息的保存和添加
-      tradingBoxItemSubmitfun(form){
-          tradingBoxItemSubmit({
+      tradingBoxItemSubmitRentfun(form){
+          tradingBoxItemSubmitRent({
               ...form,
               pid:this.form.id?this.form.id:this.onLoad.id
           }).then(res=>{