liyg 2 lat temu
rodzic
commit
2bbaead2e4

+ 106 - 0
src/views/sale/components/dilNotice/selfNotice.vue

@@ -0,0 +1,106 @@
+//公告管理
+<template>
+  <div class="notice">
+    <div class="sache">
+      <el-input
+        placeholder="请输入内容"
+        v-model="textInput"
+        clearable>
+      </el-input>
+      <el-button type="primary" class="btn"  @click="onclick">
+        <i class="el-icon-search"></i>查询
+      </el-button>
+      <el-button type="primary" class="btn" @click="toInsert">
+        <i class="el-icon-plus"></i>新增
+      </el-button>
+    </div>
+
+
+    <div class="table">
+      <dilTable v-bind.sync="detailOptions">
+      </dilTable>
+    </div>
+  </div>
+</template>
+
+
+
+
+<script>
+import { getCookie } from '@/utils/util.js'
+export default {
+  name:"homeworkPath",
+  data(){
+    return{
+      textInput: "" ,
+      restaurants: [],
+      userId:"",
+      dialogVisible:false,
+      orgcode:'',
+      detailOptions:{
+        requestUrl: "/api/v1/ams/getNoticeUser?apiId=520",
+        requestQuery:{
+          userId:getCookie('userId')
+        }
+      }
+    }
+  },
+  methods:{
+    onclick(){
+      this.options.requestUrl = "/api/v1/ams/getCarrierNoticeList?apiId=520&con="+this.textInput;
+    },
+    deleteNotice(scope){
+      console.log(scope)
+      this.$confirm("是否删除", "提示", {
+        confirmButtonText: "确定",
+        cancelButtonText: "取消",
+        type: "warning",
+        center: true,
+      })
+        .then(() => {
+          console.log("enter")
+          this.axios
+            .post("/api/v1/ams/deleteNotice/" + scope.row.noticeId)
+            .then((res) => {
+              console.log("res.data.code",res.data.code);
+              if (res.data.code == 200) {
+                this.$message({
+                  type: "success",
+                  message: "删除成功!",
+                });
+                this.$router.go(0);
+              } else {
+                this.$message({
+                  message: "删除失败",
+                  type: "warning",
+                });
+              }
+            });
+        })
+        .catch(() => {
+          this.$message({
+            type: "info",
+            message: "删除操作已取消!",
+          });
+        });
+    },
+  },
+ created() {
+    this.userId= getCookie('userId')
+    this.orgcode=getCookie('orgCode')
+  }
+}
+
+</script>
+
+<style lang="scss" scode>
+.notice{
+  .sache{
+    padding: 1.25rem 0.375rem;
+    .el-input {
+      width: 20%;
+      margin-right: 1.25rem;
+    }
+  }
+}
+</style>

+ 7 - 0
src/views/sale/router/index.js

@@ -44,6 +44,7 @@ const openDistribution = () => import( "../components/transport_appointment/open
 const openDistributionSection = () => import( "../components/transport_appointment/openDistributionSection.vue");
 const orderGrabbing = () => import( "../components/transport_appointment/orderGrabbing.vue");
 
+const selfNotice = () => import( "../components/dilNotice/selfNotice.vue");
 const add_sale_dilNotice = () => import( "../components/dilNotice/add_sale_dilNotice.vue");
 const Carrier_dilNotice = () => import( "../components/dilNotice/Carrier_dilNotice.vue");
 const sale_dilNotice = () => import( "../components/dilNotice/sale_dilNotice.vue");
@@ -364,6 +365,12 @@ const constantRouterMap = [
         meta: { code: "xtpzgl-yhgl" },
         component: add_sale_dilNotice
       },
+      {
+        path: "selfNotice",
+        name: "selfNotice",
+        meta: { code: "xtpzgl-yhgl" },
+        component: selfNotice
+      },
       {
         path: "Carrier_dilNotice",
         name: "Carrier_dilNotice",

+ 8 - 7
src/views/statisticalReport/components/salesLogisticsStatistics/saleSteelReports.vue

@@ -1102,7 +1102,7 @@
             list-type="picture-card"
             :file-list="arriavlList"
             action="/api/v1/otms/addtmstruckArrivalResult"
-            :limit="2"
+            :limit="12"
             :on-change="fileChange1"
             :on-preview="handlePictureCardPreview"
             :on-exceed="exceed"
@@ -2605,19 +2605,20 @@ export default {
         )
         return
       }
-      if (this.fileListArrival.length < 2) {
-        this.$message.warning('抵达图至少张')
+      if (this.fileListArrival.length < 3) {
+        this.$message.warning('抵达图至少张')
         return
       }
-      if (this.fileListReceive.length < 3) {
-        this.$message.warning('签收图最少张')
+      if (this.fileListReceive.length < 2) {
+        this.$message.warning('签收图最少张')
         return
       }
       this.isLoading = true
       //上传抵达
       let formData = new window.FormData()
-      formData.append('file1', this.fileListArrival[0].raw)
-      formData.append('file2', this.fileListArrival[1].raw)
+      this.fileListArrival.forEach((item, index) => {
+          formData.append('file' + index, item.raw)
+      })
       formData.append('orderNumber', this.orderNumber)
       formData.append('resultArrivalAddress', this.location)
       let options = {