ソースを参照

同步仓储费

wangzhuo 2 年 前
コミット
e67dfda041

+ 9 - 0
src/api/warehouseBusiness/warehouseOutStock.js

@@ -201,3 +201,12 @@ export function revokefeeCheck(id) {
     }
   })
 }
+
+
+// 同步仓储费日期
+export function updateBillingDate(fId) {
+  return request({
+    url: '/warehouseBusiness/outStock/updateBillingDate/' + fId,
+    method: 'get',
+  })
+}

+ 17 - 1
src/views/Warehousing/outStock/AddOrUpdate.vue

@@ -501,6 +501,8 @@
               </el-button>
               <el-button :disabled="browseStatus" type="primary" size="small" @click="saveForm">保 存
               </el-button>
+              <el-button :disabled="browseStatus || !this.form.fId" type="primary" size="small" @click="syncStorageFeeDates">同步仓储费日期
+              </el-button>
 <!--              <el-button :disabled="browseStatus" type="primary" size="small">同步仓储费日期-->
 <!--              </el-button>-->
             </el-col>
@@ -3827,7 +3829,8 @@ import {
   queryReviewer,
   feesCheck,
   revokefeeCheck,
-  stockWarning
+  stockWarning,
+  updateBillingDate
 } from '@/api/warehouseBusiness/warehouseOutStock'
 import { operationAgreement } from '@/api/agreement/agreement'
 import { listCorps, getCorps } from '@/api/basicdata/corps'
@@ -5201,6 +5204,19 @@ export default {
         }
       })
     },
+    // 同步仓储费日期
+    syncStorageFeeDates() {
+      updateBillingDate(this.form.fId).then((res) => {
+        if (res.code === 200) {
+          this.$message({
+            message: '同步成功',
+            type: 'success'
+          });
+        } else {
+          this.$message.error('同步失败');
+        }
+      })
+    },
     //保存列设置
     save() {
       this.showSetting = false