Prechádzať zdrojové kódy

入库出库调拨货转明细附件

caojunjie 2 rokov pred
rodič
commit
8280c7c9a4

+ 8 - 0
src/api/index.js

@@ -91,3 +91,11 @@ export function getArrearsStatistics(){
     method:'get'
   })
 }
+// 删除入库出库调拨货转明细附件
+export function deleteAttachment(fId){
+  return request({
+    url:`/warehouseBusiness/enclosure/${fId}`,
+    method:'post'
+  })
+}
+

+ 10 - 2
src/views/Warehousing/components/upLoad.vue

@@ -171,7 +171,7 @@
 
 <script>
 import { getToken } from "@/utils/auth";
-
+import {deleteAttachment} from "@/api/index";
 export default {
   props: {
     relevantAttachments: {
@@ -216,7 +216,15 @@ export default {
       });
     },
     deleteRow(index, rows) {
-      rows.splice(index, 1);
+      if (rows.fId){
+        deleteAttachment().then(res=>{
+          rows.splice(index, 1);
+          this.$message.success("删除成功");
+        })
+      }else {
+        rows.splice(index, 1);
+        this.$message.success("删除成功");
+      }
     },
     //附件上传
     handleSucces(scope, res, file) {

+ 2 - 2
vue.config.js

@@ -58,9 +58,9 @@ module.exports = {
         // target: `https://hwc.tubaosoft.com/prod-api/`,
         // target: `https://zjxd.dhscs.net/prod-api/`,
         // target: `http://ck.huodaonar.com/prod-api/`,
-        target: `https://ck.hturing.com/prod-api/`,
+        // target: `https://ck.hturing.com/prod-api/`,
         // target: `https://hltd.echepei.com/prod-api/`,
-        // target: `https://jingang.re-king.cn//prod-api/`,
+        target: `https://jingang.re-king.cn//prod-api/`,
         // target: `https://wms.hadexpress.com/prod-api/`,
         // target: `https://jingrun.tubaosoft.com/prod-api/`,
         // target: `https://www.jingruntech.com/prod-api/`,