戴艳蓉 3 vuotta sitten
vanhempi
commit
8101358c46

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/index.html


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/css/chunk-144c9720.b246cb69.css


BIN
dist/static/css/chunk-144c9720.b246cb69.css.gz


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/css/chunk-173722e6.50193c71.css


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/css/chunk-91dac304.704f8378.css


BIN
dist/static/css/chunk-91dac304.704f8378.css.gz


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/css/chunk-b4a2cde4.f6dc3454.css


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/app.40ad878a.js


BIN
dist/static/js/app.40ad878a.js.gz


BIN
dist/static/js/app.e07b303c.js.gz


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-144c9720.2d08abd0.js


BIN
dist/static/js/chunk-144c9720.2d08abd0.js.gz


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-173722e6.68078ae8.js


BIN
dist/static/js/chunk-173722e6.68078ae8.js.gz


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-91dac304.77fd5828.js


BIN
dist/static/js/chunk-91dac304.77fd5828.js.gz


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 0 - 0
dist/static/js/chunk-b4a2cde4.05c1831f.js


BIN
dist/static/js/chunk-b4a2cde4.05c1831f.js.gz


+ 0 - 302
src/views/good-share/components/backGoodShow.vue

@@ -1,302 +0,0 @@
-<template>
-  <div v-if="allList[index]">
-    <div class="project-backGoodShow" v-loading="allList[index].loading">
-      <div class="project-backGoodShow-main">
-        <div class="project-backGoodShow-title">
-          商品要求{{ index + 1 }}
-          <el-button-group :size="'mini'" class="fr" style="margin: 8px 0 0 0">
-            <el-button
-              class="fr"
-              v-if="index !== 0"
-              type="primary"
-              :size="'mini'"
-              icon="el-icon-arrow-left"
-              @click="index--"
-              >上一个</el-button
-            >
-            <el-button
-              type="primary"
-              class="fr"
-              v-if="index + 1 !== allList.length"
-              @click="next()"
-              :size="'mini'"
-              >下一个<i
-                class="el-icon-arrow-right el-icon--right"
-                :size="'mini'"
-              ></i
-            ></el-button>
-            <el-button
-              type="primary"
-              class="fr"
-              @click="next()"
-              v-if="index + 1 === allList.length"
-              :size="'mini'"
-              >提交<i class="el-icon-upload el-icon--right"></i>
-            </el-button>
-          </el-button-group>
-        </div>
-        <div class="project-backGoodShow-ask-table">
-          <template v-if="allList[index].ladder">
-            <el-table
-              :data="allList[index].ladder"
-              :size="'mini'"
-              border
-              stripe
-              style="width: 100%"
-            >
-              <el-table-column prop="good_type" label="商品类型" width="80px">
-                <template slot-scope="scope">
-                  <el-tag
-                    :size="'mini'"
-                    v-text="
-                      (
-                        statusOptions.find(
-                          (items) => items.value == scope.row.good_type
-                        ) || {}
-                      ).label || '--'
-                    "
-                  ></el-tag
-                ></template>
-              </el-table-column>
-              <el-table-column
-                prop="budget_price"
-                label="预算单价"
-                width="110"
-              />
-              <el-table-column prop="num" label="购买数量" width="110" />
-              <el-table-column prop="cat_name" label="商品分类" />
-              <el-table-column prop="good_img" label="图片" width="50">
-                <template slot-scope="scope">
-                  <div
-                    v-if="scope.row.good_img"
-                    style="width: 20px; height: 20px"
-                    class="hover"
-                    v-viewer
-                  >
-                    <img
-                      :src="scope.row.good_img"
-                      style="display: inline-block; width: 100%; height: 100%"
-                      alt=""
-                    />
-                  </div>
-                </template>
-              </el-table-column>
-              <el-table-column prop="good_name" label="商品名称" />
-            </el-table>
-          </template>
-        </div>
-        <div class="project-backGoodShow-title">商品反馈情况</div>
-        <div class="project-backGoodShow-backGood-table">
-          <template v-if="allList[index].tableData">
-            <ex-table
-              v-loading="allList[index].loading"
-              :table="table"
-              :data="allList[index].tableData"
-              :columns="columns"
-              :page="allList[index].pageInfo"
-              :size="'mini'"
-              @page-curr-change="handlePageChange($event, index)"
-              @page-size-change="handleSizeChange($event, index)"
-              @screen-reset="
-                allList[index].pageInfo.curr = 1;
-                searchList(index);
-              "
-              @screen-submit="
-                allList[index].pageInfo.curr = 1;
-                searchList(index);
-              "
-              @selection="selection_change"
-            >
-            </ex-table>
-          </template>
-        </div>
-      </div>
-    </div>
-  </div>
-</template>
-<script>
-import asyncRequest from "@/apis/service/good-share";
-import resToken from "@/mixins/resToken";
-import columnsForm from "./columnsForm";
-export default {
-  name: "backGoodShow",
-  props: ["showModel", "sitem", "id", "type", "newTime"],
-  mixins: [resToken],
-  watch: {
-    // showModel: function (val) {
-    //   this.showModelThis = val;
-    //   if (val) {
-    //     this.initForm();
-    //   }
-    // },
-    // showModelThis(val) {
-    //   if (!val) {
-    //     this.$emit("cancel");
-    //   }
-    // },
-  },
-  data() {
-    return {
-      loading: false,
-      allList: [],
-      index: 0,
-      projectNo: "",
-      statusOptions: [
-        { value: "1", label: "竞品" },
-        { value: "2", label: "竞聘" },
-      ],
-      table: {
-        stripe: true,
-        border: true,
-        // _defaultHeader_: ["setcol"],
-      },
-      // 表格 - 列参数
-      columns: columnsForm,
-    };
-  },
-  mounted() {
-    this.initForm();
-  },
-  methods: {
-    //初始化整个组件
-    async initForm() {
-      this.loading = true;
-      await this.initListData();
-      this.loading = false;
-      // console.log(this.allList);
-      await this.searchList(this.index);
-    },
-    async next() {
-      const { selection } = this.allList[this.index];
-      if (selection.length === 0) {
-        this.$message.warning("至少选择一个商品!");
-        return;
-      }
-      if (this.index + 1 !== this.allList.length) {
-        this.index++;
-        await this.searchList(this.index);
-      } else {
-        await this.$confirm("确定要提交?", {
-          confirmButtonText: "确定",
-          cancelButtonText: "取消",
-          type: "warning",
-        })
-          .then(async () => {
-            this.$emit("selectEnd");
-          })
-          .catch(() => {
-            console.log("取消");
-          });
-      }
-    },
-
-    selection_change(e) {
-      const { list } = e;
-      this.allList[this.index].selection = JSON.parse(JSON.stringify(list));
-      let change_all_list = [];
-      this.allList.forEach((a, ai) => {
-        const { selection } = a;
-        if (selection && selection.length > 0) {
-          selection.forEach((b) => {
-            let item = JSON.parse(JSON.stringify(b));
-            item.noIndex = ai + 1;
-            change_all_list.push(item);
-          });
-        }
-      });
-      this.$emit("tableChange", { list: change_all_list });
-    },
-
-    //初始化整个组件
-    async initListData() {
-      // console.log(this.sitem);
-      this.allList = [];
-      const { projectNo, ladder } = this.sitem;
-      this.projectNo = projectNo;
-      if (ladder && ladder.length > 0) {
-        ladder.forEach((e) => {
-          let item = JSON.parse(JSON.stringify(e));
-          // console.log(item);
-          let model = {
-            ladder: [item],
-            pageInfo: {
-              size: 15,
-              curr: 1,
-              total: 0,
-            },
-            loading: true,
-            selection: [],
-            tableData: [],
-          };
-          this.allList.push(model);
-        });
-      }
-    },
-    async allSearchList() {
-      if (this.allList && this.allList.length > 0) {
-        this.allList.forEach(async (e, i) => {
-          await this.searchList(i);
-        });
-      }
-    },
-    //页数选择
-    async handlePageChange(e, index) {
-      this.allList[index].pageInfo.curr = e;
-      await this.searchList(index);
-    },
-    //页面条数选择
-    async handleSizeChange(e, index) {
-      this.allList[index].pageInfo.curr = 1;
-      this.allList[index].pageInfo.size = e;
-      await this.searchList(index);
-    },
-    async searchList(index) {
-      const { pageInfo } = this.allList[index];
-      const { size, curr } = pageInfo;
-      this.allList[index].loading = true;
-      let model = {
-        page: curr,
-        size: size,
-        zxNo: "",
-        infoNo: "",
-        bidNo: "",
-        projectNo: this.projectNo,
-      };
-      const { code, data } = await asyncRequest.back_good_list(model);
-      if (code === 0) {
-        const { list, count } = data;
-        this.allList[index].tableData = list;
-        this.allList[index].pageInfo.total = Number(count);
-      } else if (code >= 100 && code <= 104) {
-        await this.logout();
-      } else {
-        this.allList[index].tableData = [];
-        this.allList[index].pageInfo.total = 0;
-      }
-      this.allList[index].loading = false;
-    },
-  },
-};
-</script>
-
-   <style lang="scss" scoped>
-.project-backGoodShow {
-  box-sizing: border-box;
-  width: 100%;
-  padding: 2px 16px 16px 16px;
-
-  .project-backGoodShow-main {
-    // padding: 2px 16px 16px 16px;
-    // background: #fefefe;
-    // border-radius: 5px;
-    // overflow: hidden;
-    // border: 1px solid #f0f0f0;
-    // margin: 0 0 16px 0;
-    .project-backGoodShow-title {
-      height: 48px;
-      line-height: 48px;
-      color: #676767;
-    }
-  }
-}
-</style>

+ 101 - 26
src/views/good-share/components/changeBackGood.vue

@@ -141,33 +141,33 @@
           <el-table
             :data="tableData"
             border
-            max-height="170px"
+            height="168px"
             :size="'mini'"
             style="width: 100%"
           >
-            <el-table-column label="商品要求" type="index" width="80">
+            <el-table-column label="商品要求" property="noIndex" width="80">
             </el-table-column>
             <el-table-column property="date" label="商品名称" width="145" />
             <el-table-column property="name" label="图片" width="120">
             </el-table-column>
             <el-table-column
-              prope="address"
+              prope="class_cat"
               label="分类"
               show-overflow-tooltip
             />
             <el-table-column
-              prope="address"
-              label="购买数量"
+              prope="work_day"
+              label="制作工期"
               show-overflow-tooltip
             />
             <el-table-column
-              prope="address"
-              label="预算单价"
+              prope="delivery_day"
+              label="物流时间"
               show-overflow-tooltip
             />
             <el-table-column
-              prope="address"
-              label="预算单价"
+              prope="salesman"
+              label="业务员"
               show-overflow-tooltip
             />
           </el-table>
@@ -207,6 +207,13 @@ export default {
         { value: "1", label: "竞品" },
         { value: "2", label: "竞聘" },
       ],
+      sitemStatusoptions: [
+        { value: "1", label: "待商品反馈" },
+        { value: "2", label: "待项目反馈商品选择" },
+        { value: "3", label: "待项目方案制定" },
+        { value: "4", label: "待方案选择" },
+        { value: "5", label: "项目结束" },
+      ],
       table: {
         stripe: true,
         border: true,
@@ -221,16 +228,12 @@ export default {
     this.initForm();
   },
   methods: {
-    tableChange(e) {
-      console.log(e);
-      const { list } = e;
-      this.tableData = JSON.parse(JSON.stringify(list));
-    },
     //初始化整个组件
     async initForm() {
       this.loading = true;
       this.tableData = [];
       await this.initListData();
+      console.log(this.allList);
       this.loading = false;
       // console.log(this.allList);
       await this.searchList(this.index);
@@ -260,7 +263,7 @@ export default {
           });
         }
       });
-      this.$emit("tableChange", { list: change_all_list });
+      this.tableData = JSON.parse(JSON.stringify(change_all_list));
     },
 
     //初始化整个组件
@@ -321,17 +324,17 @@ export default {
       const { code, data } = await asyncRequest.back_good_list(model);
       if (code === 0) {
         const { list, count } = data;
-        this.allList[index].tableData = [{ num: 1 }];
+        this.allList[index].tableData = list;
         // list;
-        //  this.allList[index].tableData.map((v) => {
-        //     v.class_cat = "";
-        //     if (v.can && v.can.length > 0) {
-        //       v.can.forEach((x, i) => {
-        //         v.class_cat += i === 0 ? x.name : "/" + x.name;
-        //       });
-        //     }
-        //     return v;
-        //   });
+        this.allList[index].tableData.map((v) => {
+          v.class_cat = "";
+          if (v.can && v.can.length > 0) {
+            v.can.forEach((x, i) => {
+              v.class_cat += i === 0 ? x.name : "_" + x.name;
+            });
+          }
+          return v;
+        });
         this.allList[index].pageInfo.total = Number(count);
       } else if (code >= 100 && code <= 104) {
         await this.logout();
@@ -346,12 +349,84 @@ export default {
 </script>
 
    <style lang="scss" scoped>
-.choice-goods{
+.choice-goods {
   position: relative;
   width: 100%;
   height: 100%;
   overflow: hidden;
   box-sizing: border-box;
   overflow: hidden;
+  background: transparent;
+  .top {
+    position: absolute;
+    top: 16px;
+    left: 0;
+    z-index: 1;
+    background: #fff;
+    width: 100%;
+    min-height: calc(100% - 248px);
+    height: calc(100% - 248px);
+    box-sizing: border-box;
+    padding: 0 16px 16px 16px;
+    .project-backGoodShow {
+      box-sizing: border-box;
+      width: 100%;
+      // padding: 2px 16px 16px 16px;
+
+      .project-backGoodShow-main {
+        // padding: 2px 16px 16px 16px;
+        // background: #fefefe;
+        // border-radius: 5px;
+        // overflow: hidden;
+        // border: 1px solid #f0f0f0;
+        // margin: 0 0 16px 0;
+        .project-backGoodShow-title {
+          height: 48px;
+          line-height: 48px;
+          color: #676767;
+        }
+      }
+    }
+  }
+  .bottom {
+    position: absolute;
+    bottom: 16px;
+    right: 0;
+    z-index: 1;
+    background: #fff;
+    width: 100%;
+    min-height: calc(200px);
+    height: calc(200px);
+    box-sizing: border-box;
+    // padding: 16px;
+
+    .title {
+      height: 50px;
+      line-height: 50px;
+      font-size: 18px;
+      font-weight: bold;
+      box-sizing: border-box;
+      color: #565656;
+      padding: 0 16px;
+      border-right: 1px solid #f2f2f2;
+    }
+    .table-main {
+      // padding: 16px;
+      width: 100%;
+      box-sizing: border-box;
+      .table-main-index {
+        float: left;
+        width: 45px;
+        padding: 16px;
+        text-align: center;
+      }
+      .table-main-last {
+        float: left;
+        width: calc(100% - 45px);
+        padding: 16px;
+        border-left: 1px solid #f2f2f2;
+      }
+    }
+  }
 }
 </style>

+ 1 - 1
src/views/good-share/components/columnsForm.js

@@ -41,7 +41,7 @@ export default [
     },
     {
         prop: "salesman",
-        label: "申请人",
+        label: "业务员",
         width: '60px'
     },
 ]

+ 9 - 80
src/views/good-share/index.vue

@@ -56,6 +56,13 @@ export default {
       multipleSelection: [],
       tableData: [],
       newTime: "",
+      statusoptions: [
+        { value: "1", label: "待商品反馈" },
+        { value: "2", label: "待项目反馈商品选择" },
+        { value: "3", label: "待项目方案制定" },
+        { value: "4", label: "待方案选择" },
+        { value: "5", label: "项目结束" },
+      ],
     };
   },
 
@@ -83,7 +90,6 @@ export default {
     getNewTime() {
       this.newTime = new Date().valueOf();
     },
-  
   },
 };
 </script>
@@ -138,90 +144,13 @@ export default {
   }
   .right {
     position: absolute;
-    top: 16px;
+    top: 0;
     right: 16px;
     z-index: 1;
-    // background: #fff;
     width: calc(100% - 288px);
     min-height: 100%;
     height: 100%;
-    box-sizing: border-box;
-    // padding: 16px;
-
-    .title {
-      height: 50px;
-      line-height: 50px;
-      font-size: 18px;
-      font-weight: bold;
-      box-sizing: border-box;
-      color: #565656;
-      padding: 0 16px;
-      border-bottom: 1px solid #f2f2f2;
-    }
-    .table-main {
-      // padding: 16px;
-      width: 100%;
-      box-sizing: border-box;
-      .table-main-index {
-        float: left;
-        width: 45px;
-        padding: 16px;
-        text-align: center;
-      }
-      .table-main-last {
-        float: left;
-        width: calc(100% - 45px);
-        padding: 16px;
-        border-left: 1px solid #f2f2f2;
-      }
-      &:last-child {
-        border-bottom: 1px solid #f2f2f2;
-        // .table-main-index {
-
-        // }
-        // .table-main-last {
-        //   border-bottom: 1px solid #f2f2f2;
-        // }
-      }
-    }
-  }
-  .bottom {
-    position: absolute;
-    bottom: 16px;
-    right: 16px;
-    z-index: 1;
-    background: #fff;
-    width: calc(100% - 288px);
-    min-height: calc(200px);
-    height: calc(200px);
-    box-sizing: border-box;
-    // padding: 16px;
-    .table-main {
-      // padding: 16px;
-      width: 100%;
-      box-sizing: border-box;
-      .table-main-index {
-        float: left;
-        width: 45px;
-        padding: 16px;
-        text-align: center;
-      }
-      .table-main-last {
-        float: left;
-        width: calc(100% - 45px);
-        padding: 16px;
-        border-left: 1px solid #f2f2f2;
-      }
-      // &:last-child {
-      //   border-bottom: 1px solid #f2f2f2;
-      // .table-main-index {
-
-      // }
-      // .table-main-last {
-      //   border-bottom: 1px solid #f2f2f2;
-      // }
-      // }
-    }
+    // background: #fff;
   }
 }
 </style>

+ 22 - 7
src/views/serviceParam/supplier/components/baseForm.vue

@@ -311,7 +311,10 @@
         <el-form-item label="公司类型" prop="nature">
           <search-company-type
             :value="ruleForm.nature"
-            :disabled="ruleForm.supplier_img && type !== 'add'"
+            :disabled="
+              (ruleForm.supplier_img && (type == 'add' || type == 'edit')) ||
+              (type !== 'add' && type !== 'edit')
+            "
             :size="'small'"
             :isDetail="false"
             :placeholder="'公司类型'"
@@ -323,7 +326,10 @@
         <el-form-item label="详细地址" prop="addr">
           <el-input
             v-model="ruleForm.addr"
-            :disabled="ruleForm.supplier_img && type !== 'add'"
+            :disabled="
+              (ruleForm.supplier_img && (type == 'add' || type == 'edit')) ||
+              (type !== 'add' && type !== 'edit')
+            "
             placeholder="详细地址"
             minlength="20"
           />
@@ -333,7 +339,10 @@
         <el-form-item label="法人代表" prop="legaler">
           <el-input
             v-model="ruleForm.legaler"
-            :disabled="ruleForm.supplier_img && type !== 'add'"
+            :disabled="
+              (ruleForm.supplier_img && (type == 'add' || type == 'edit')) ||
+              (type !== 'add' && type !== 'edit')
+            "
             placeholder="法人代表"
             minlength="20"
           />
@@ -343,7 +352,10 @@
             v-model="ruleForm.registertime"
             type="date"
             value-format="yyyy-MM-dd"
-            :disabled="ruleForm.supplier_img && type !== 'add'"
+            :disabled="
+              (ruleForm.supplier_img && (type == 'add' || type == 'edit')) ||
+              (type !== 'add' && type !== 'edit')
+            "
             style="width: 100%"
             :picker-options="pickerOptions"
             placeholder="成立日期"
@@ -358,7 +370,10 @@
             v-model="ruleForm.scope"
             :autosize="{ minRows: 4, maxRows: 4 }"
             type="textarea"
-            :disabled="ruleForm.supplier_img && type !== 'add'"
+            :disabled="
+              (ruleForm.supplier_img && (type == 'add' || type == 'edit')) ||
+              (type !== 'add' && type !== 'edit')
+            "
             placeholder="运营范围"
             minlength="20"
           />
@@ -487,9 +502,9 @@ export default {
         ],
         prove_img: [
           {
-            required: true,
+            required: false,
             type: "array",
-            message: "至少上传一张图片",
+            message: "请上传资质证明",
             trigger: "change",
           },
         ],

Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä