فهرست منبع

Merge branch 'feature/Feature-basic_data' of https://gogs.zfire.top/zfire-front/supply-front into feature/Feature-basic_data

chen 3 سال پیش
والد
کامیت
0eb8941199
31فایلهای تغییر یافته به همراه1507 افزوده شده و 584 حذف شده
  1. 10 0
      src/api/basic_data/material.js
  2. 54 0
      src/api/policy_list.js
  3. 9 0
      src/api/setting.js
  4. 27 0
      src/api/supply/apply.js
  5. 11 1
      src/mixin/index.js
  6. 7 4
      src/views/basic_data/material/components/material_list-detail.vue
  7. 4 0
      src/views/basic_data/material/components/modify_list-apply.vue
  8. 2 0
      src/views/basic_data/material/components/modify_list-approval.vue
  9. 2 0
      src/views/basic_data/material/modify_list.vue
  10. 65 48
      src/views/basic_data/material/price_list.vue
  11. 61 34
      src/views/basic_data/material/relation_list.vue
  12. 10 10
      src/views/notice/index.vue
  13. 509 0
      src/views/pset/login_setting.vue
  14. 26 2
      src/views/sales_policy/components/AddCondition.vue
  15. 10 0
      src/views/sales_policy/components/AddPolicy.vue
  16. 7 0
      src/views/sales_policy/components/Distributor.vue
  17. 1 1
      src/views/sales_rebate/rebate_list.vue
  18. 1 1
      src/views/sales_rebate/salestype_list.vue
  19. 7 6
      src/views/setting/account.vue
  20. 47 30
      src/views/setting/api.vue
  21. 2 2
      src/views/supply/apply/apply_list.vue
  22. 1 1
      src/views/supply/apply/components/apply_form.vue
  23. 50 6
      src/views/supply/apply/components/engin_form.vue
  24. 1 0
      src/views/supply/engin/commerce_list.vue
  25. 16 17
      src/views/supply/engin/components/commerce_form.vue
  26. 0 1
      src/views/supply/engin/components/home_form.vue
  27. 1 0
      src/views/supply/engin/home_list.vue
  28. 3 3
      src/views/supply/policy/components/retail_detail.vue
  29. 555 411
      src/views/supply/policy/components/retail_form.vue
  30. 7 5
      src/views/supply/policy/policy_list.vue
  31. 1 1
      src/views/supply/retail/components/retail_detail.vue

+ 10 - 0
src/api/basic_data/material.js

@@ -324,3 +324,13 @@ export function getPriceSubmit(params) {
     params
   })
 }
+
+
+
+export function handlePriceRevoke(params){
+  return request({
+    url:'/product-price/revoke',
+    method: 'POST',
+    params
+  })
+}

+ 54 - 0
src/api/policy_list.js

@@ -272,3 +272,57 @@ export function getProductList(params) {
     params
   })
 }
+
+//获取轮播图列表
+export function getImgCarouseList(params) {
+  return request({
+    url:'/record/list',
+    method: 'get',
+    params
+  })
+}
+
+//轮播图显示与隐藏
+export function handleImgIsShow(params) {
+  return request({
+    url:'/record/updateImgStatus',
+    method: 'post',
+    params
+  })
+}
+
+//增加轮播图
+export function addImgCarousel(params) {
+  return request({
+    url:'/record/carousel/add',
+    method: 'post',
+    data: params
+  })
+}
+
+//修改轮播图
+export function editImgCarousel(params) {
+  return request({
+    url:'/record/update',
+    method: 'post',
+    data: params
+  })
+}
+
+//批量删除轮播图
+export function delImgData(params) {
+  return request({
+    url: '/record/delete',
+    method: 'post',
+    params
+  })
+}
+
+//添加公司信息
+export function addCompany(params) {
+  return request({
+    url: '/record/company/add',
+    method: 'post',
+    data: params
+  })
+}

+ 9 - 0
src/api/setting.js

@@ -439,4 +439,13 @@ export function getDepartmentDetail(params) {
     method: 'get',
     params
   })
+}
+
+// 获取接口状态列表
+export function getApiList(params) {
+  return request({
+    url: '/common/interface/list',
+    method: 'get',
+    params
+  })
 }

+ 27 - 0
src/api/supply/apply.js

@@ -137,6 +137,15 @@ export function getEnginGoodsList(params) {
   })
 }
 
+// 工程发货申请单 - 获取产品详情
+export function getEnginGoodsDetail(params) {
+  return request({
+    url: '/invoice/listProjectOrderDetail',
+    method: 'get',
+    params
+  })
+}
+
 // 工程发货申请单 - 新增
 export function addEngin(params) {
   return request({
@@ -162,4 +171,22 @@ export function examineEngin(params) {
     method: 'post',
     data: params
   })
+}
+
+// 工程发货申请单 - 申请/撤回
+export function submitEngin(params) {
+  return request({
+    url: '/invoice/submitProject',
+    method: 'post',
+    params
+  })
+}
+
+// 工程发货申请单 - 删除
+export function deleteEngin(params) {
+  return request({
+    url: '/invoice/deleteProject',
+    method: 'post',
+    params
+  })
 }

+ 11 - 1
src/mixin/index.js

@@ -1,3 +1,13 @@
+/*
+ * @Author: howie
+ * @Date: 2022-06-14 10:14:37
+ * @LastEditors: howie
+ * @LastEditTime: 2022-07-03 17:47:25
+ * @FilePath: \supply-front\src\mixin\index.js
+ * @Description:
+ *
+ * Copyright (c) 2022, All Rights Reserved.
+ */
 export default {
   data() {
     return {
@@ -55,7 +65,7 @@ export default {
     hanleSelectAll(selection,index) {
 
       this.ids = selection.map((k) => {
-        return k.id;
+        return k.id || k.updPriceBillId;
       });
       console.log(this.ids);
     },

+ 7 - 4
src/views/basic_data/material/components/material_list-detail.vue

@@ -656,7 +656,7 @@
           <el-row>
             <el-col :span="6">
               <el-form-item label="是否允许订货" size="small">
-                      <el-select v-model="value">
+                      <el-select v-model="value1">
                         <el-option label="是"> </el-option>
                         <el-option label="否"> </el-option>
                       </el-select>
@@ -664,9 +664,7 @@
 
             </el-col>
           </el-row>
-
-
-          <el-button >保存</el-button>
+          <!-- <el-button >保存</el-button> -->
         </div>
       </el-card>
     </el-form>
@@ -681,6 +679,11 @@ export default {
       default: {},
     },
   },
+  data() {
+    return {
+      value1:'是'
+    }
+  },
   created() {
     console.log(this.detail);
   },

+ 4 - 0
src/views/basic_data/material/components/modify_list-apply.vue

@@ -1078,6 +1078,9 @@ export default {
       });
     },
     hanleSbumit() {
+
+
+
       for (let i = 0; i < this.items.length; i++) {
         this.items[i].wallets = [
           ...this.items[i].rebateWallets,
@@ -1106,6 +1109,7 @@ export default {
         getProductRriceDetail({ id: res.data }).then((res) => {
           this.base.billId = res.data.billId;
           this.$parent.show = 1
+          this.$parent.getList()
         });
       });
     },

+ 2 - 0
src/views/basic_data/material/components/modify_list-approval.vue

@@ -317,6 +317,8 @@ export default {
 
       getProductRriceConfirm(params).then((res) => {
         this.$successMsg("已提交审核");
+        this.$parent.show = 1
+        this.$parent.getList()
       });
     },
     resetScreenForm() {

+ 2 - 0
src/views/basic_data/material/modify_list.vue

@@ -484,7 +484,9 @@ export default {
       this.show = 2;
     },
     hanleDeleteAll(id) {
+
       this.hanleDeleteAllPromise(id).then((ids) => {
+
         getProductRricedel(ids).then((res) => {
           this.$successMsg("删除成功");
           this.getList();

+ 65 - 48
src/views/basic_data/material/price_list.vue

@@ -158,58 +158,50 @@
             min-width="160"
             show-overflow-tooltip
           ></el-table-column>
-              <el-table-column
-              align="center"
-              label="返利类型(钱包)"
-              prop="wallets"
-              min-width="200"
-              show-overflow-tooltip
-            >
-              <template slot-scope="scope">
-                <template v-for="(item, index) in scope.row.wallets">
-                     <template v-if="item.type === 'REBATE'">
-
-                        <el-tag
-                  type="success"
-                  style="margin: 0 10px"
-                  size="small"
-
-                  :key="index"
-                  >
-               {{ item.walletName }}
-                </el-tag>
-                  </template
+          <el-table-column
+            align="center"
+            label="返利类型(钱包)"
+            prop="wallets"
+            min-width="200"
+            show-overflow-tooltip
+          >
+            <template slot-scope="scope">
+              <template v-for="(item, index) in scope.row.wallets">
+                <template v-if="item.type === 'REBATE'">
+                  <el-tag
+                    type="success"
+                    style="margin: 0 10px"
+                    size="small"
+                    :key="index"
                   >
+                    {{ item.walletName }}
+                  </el-tag>
                 </template>
-
               </template>
-            </el-table-column>
-            <el-table-column
-              align="center"
-              label="现金钱包"
-              prop="modifyPriceDepartment"
-              min-width="200"
-              show-overflow-tooltip
-            >
-              <template slot-scope="scope">
-                <template  v-for="(item, index) in scope.row.wallets">
-                  <template v-if="item.type === 'COMMONLY'">
-
-                   <el-tag
-                  type="success"
-                  style="margin: 0 10px"
-                  size="small"
-
-                  :key="index"
-                >
-                {{ item.walletName }}
-                </el-tag>
-                    </template
+            </template>
+          </el-table-column>
+          <el-table-column
+            align="center"
+            label="现金钱包"
+            prop="modifyPriceDepartment"
+            min-width="200"
+            show-overflow-tooltip
+          >
+            <template slot-scope="scope">
+              <template v-for="(item, index) in scope.row.wallets">
+                <template v-if="item.type === 'COMMONLY'">
+                  <el-tag
+                    type="success"
+                    style="margin: 0 10px"
+                    size="small"
+                    :key="index"
                   >
+                    {{ item.walletName }}
+                  </el-tag>
                 </template>
-
               </template>
-            </el-table-column>
+            </template>
+          </el-table-column>
           <el-table-column
             align="center"
             label="生效日期"
@@ -263,6 +255,22 @@
             min-width="160"
             show-overflow-tooltip
           ></el-table-column>
+          <el-table-column
+            fixed="right"
+            width="150"
+            label="操作"
+            align="center"
+          >
+            <template slot-scope="scope">
+              <el-button
+                type="text"
+                size="small"
+                @click="handleRevoke(scope.row.id)"
+                >作废</el-button
+              >
+              <el-button type="text" size="small" @click="">删除</el-button>
+            </template>
+          </el-table-column>
         </el-table>
       </div>
       <!-- 分页 -->
@@ -284,7 +292,10 @@
 
 <script>
 import Mixin from "@/mixin/index";
-import { getProductPriceList } from "@/api/basic_data/material";
+import {
+  getProductPriceList,
+  handlePriceRevoke,
+} from "@/api/basic_data/material";
 import { getDictList } from "@/api/common";
 import { downloadFiles, parseTime } from "@/utils/util";
 export default {
@@ -336,6 +347,12 @@ export default {
         this.listLoading = false;
       });
     },
+    handleRevoke(id) {
+      handlePriceRevoke({ id }).then((res) => {
+        this.$successMsg("操作成功");
+        this.getList();
+      });
+    },
   },
 };
 </script>
@@ -344,7 +361,7 @@ export default {
 ::v-deep .el-select--small {
   width: 100%;
 }
-::v-deep .el-date-editor{
+::v-deep .el-date-editor {
   width: 100%;
 }
 </style>

+ 61 - 34
src/views/basic_data/material/relation_list.vue

@@ -306,7 +306,7 @@
     >
       <el-form ref="form" :model="diaLogForm" label-width="80px">
         <el-row :gutter="20">
-          <el-col :span="12" :offset="0">
+          <el-col :span="24" :offset="0">
             <el-form-item label="产品名称">
               <el-select
                 placeholder="选择名称"
@@ -331,9 +331,11 @@
               <el-input v-model="diaLogForm.productVolume"></el-input>
             </el-form-item>
           </el-col>
-          <el-col :span="12" :offset="0">
-            <el-row>
-              <el-col :span="22" type="flex">
+        </el-row>
+        <el-row :gutter="20">
+          <el-col :span="24" :offset="0">
+            <el-row type="flex" justify="space-between">
+              <el-col :span="20" type="flex">
                 <el-form-item label="类型">
                   <el-select
                     v-model="diaLogForm.type"
@@ -349,14 +351,22 @@
                     </el-option>
                   </el-select> </el-form-item
               ></el-col>
-              <el-col :span="2">
+              <el-col :span="3" style="text-align: right">
                 <el-button type="primary" @click="hanleAddData"
                   >+</el-button
                 ></el-col
               >
             </el-row>
-
-            <div v-for="(item, index) in diaLogForm.items" :key="index">
+          </el-col>
+        </el-row>
+        <el-row :gutter="20">
+          <el-col
+            :span="12"
+            :offset="0"
+            v-for="(item, index) in diaLogForm.items"
+            :key="index"
+          >
+            <div>
               <el-form-item label="编码">
                 <el-select
                   v-model="item.number"
@@ -380,9 +390,8 @@
               </el-form-item>
               <el-form-item label="体积">
                 <el-input v-model="item.volume" placeholder=""></el-input>
-              </el-form-item>
-            </div>
-          </el-col>
+              </el-form-item></div
+          ></el-col>
         </el-row>
       </el-form>
       <div slot="footer" class="dialog-footer">
@@ -655,43 +664,61 @@ export default {
       });
     },
     editFn(id, row, index) {
+      console.log(row, "45465");
       let dateils = null;
+      this.diaLogForm = {
+        ...row,
+        items: [
+          {
+            id: "",
+            machineConfigureId: row.id,
+            parentId: "",
+            innerOutsideMachineId: row.id,
+            model: row.model,
+            name: row.name,
+            number: row.number || "",
+            type: row.type,
+            volume: row.volume,
+          },
+        ],
+      };
       getProductDetail({ id: id }).then((res) => {
         dateils = res.data;
         console.log(dateils);
         this.diaLogForm.materialId = dateils.materialId;
         this.materialLis.find((k) => {
           if (k.id == dateils.materialId) {
+            console.log(k, "5555");
             this.diaLogForm.productModel = k.specification;
             this.diaLogForm.productNumber = k.number;
-            this.diaLogForm.volume = k.volume;
+            this.diaLogForm.productVolume = k.volume;
           }
         });
 
         getDistList({ sysDictEnum: "MACHINE_CONFIGURE" }).then((disType) => {
-          disType.data.find((q) => {
-            if (q.dictCode == dateils.items[0].type) {
-              this.diaLogForm.type = q.dictCode;
-              this.getMachineLlist(q.dictCode);
-              this.machineList.map((l) => {
-              console.log(l.id == dateils.items[0].machineConfigureId);
-                if (l.id == dateils.items[0].machineConfigureId) {
-                  this.$set(this.diaLogForm.items, 0, {
-                    id: "",
-                    machineConfigureId: l.id,
-                    parentId: "",
-                    innerOutsideMachineId: l.id,
-                    model: l.model,
-                    name: l.name,
-                    number: l.number || "",
-                    type: l.type,
-                    volume: l.volume,
-                  });
-                  return;
-                }
-              });
-            }
-          });
+          // disType.data.find((q) => {
+          //   if (q.dictCode == dateils.items[0].type) {
+          //     this.diaLogForm.type = q.dictCode;
+          //     this.getMachineLlist(q.dictCode);
+          //     this.machineList.map((l) => {
+          //     console.log(l.id == dateils.items[0].machineConfigureId);
+          //       if (l.id == dateils.items[0].machineConfigureId) {
+          //         this.$set(this.diaLogForm.items, 0, {
+          //           id: "",
+          //           machineConfigureId: l.id,
+          //           parentId: "",
+          //           innerOutsideMachineId: l.id,
+          //           model: l.model,
+          //           name: l.name,
+          //           number: l.number || "",
+          //           type: l.type,
+          //           volume: l.volume,
+          //         });
+          //         return;
+          //       }
+          //     });
+          //   }
+          // });
 
           this.DistType = disType.data;
         });

+ 10 - 10
src/views/notice/index.vue

@@ -71,7 +71,7 @@
           <!-- <el-table-column align="center" label="已确认" prop="readFlag" min-width="140" show-overflow-tooltip></el-table-column> -->
         </el-table>
       </div>
-      
+
       <div class="pagination clearfix">
         <div class="fr">
           <el-pagination
@@ -143,7 +143,7 @@
         <el-form-item label="上传附件" prop="fileUrl">
           <ImageUpload :fileList="fileList" :multiple="true" />
         </el-form-item>
-        
+
       </el-form>
 
       <div slot="footer" class="dialog-footer">
@@ -155,12 +155,12 @@
     <!-- 已阅记录 -->
     <el-dialog title="已阅记录" :visible.sync="recordDialog" :show-close="false" width="70%" :close-on-click-modal="false">
       <div class="table" style="margin: 10px 0 20px;">
-        <el-table 
-          v-loading="detailTable_listLoading" 
-          :data="detailTable_dataList" 
-          element-loading-text="Loading" 
-          tooltip-effect="dark" 
-          style="width: 100%" 
+        <el-table
+          v-loading="detailTable_listLoading"
+          :data="detailTable_dataList"
+          element-loading-text="Loading"
+          tooltip-effect="dark"
+          style="width: 100%"
           max-height="270">
           <el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
           <el-table-column align="center" prop="title" label="标题" min-width="140" show-overflow-tooltip></el-table-column>
@@ -296,7 +296,7 @@ export default {
     }
   },
   computed: {
-    
+
   },
   created() {
     this.getList();
@@ -565,4 +565,4 @@ export default {
   .el-divider--horizontal {
     margin: 16px 0;
   }
-</style>
+</style>

+ 509 - 0
src/views/pset/login_setting.vue

@@ -0,0 +1,509 @@
+<template>
+  <div class="app-container">
+    <div class="page-header">
+      轮播图管理
+    </div>
+    <el-divider></el-divider>
+
+    <div class="btn-group">
+      <el-button
+        type="primary"
+        size="small"
+        @click="(dialogVisible = true), (type = 1)"
+      >新增</el-button>
+
+      <el-button size="small" type="danger"  @click="batchDelete()">删除</el-button>
+
+    </div>
+    <div class="mymain-container">
+      <el-table
+        v-loading="listLoading"
+        :data="dataList"
+        element-loading-text="Loading"
+        border
+        fit
+        highlight-current-row
+        stripe
+        @selection-change="handleSelectionChange"
+      >
+        <el-table-column type="selection" width="55" align="center">
+        </el-table-column>
+        <template v-for="col in columns">
+          <el-table-column
+            align="center"
+            :label="col.lable"
+            :prop="col.prop"
+            :min-width="col.widht"
+            show-overflow-tooltip
+            v-if="col.prop == 'status'"
+          >
+            <template slot-scope="scope">
+              <div style="z-index: 99">
+                <el-tag type="success"   v-if="scope.row.status == '1'"  >显示</el-tag>
+                <el-tag type="danger"  v-else-if="scope.row.status == '0'">隐藏 </el-tag>
+              </div>
+            </template>
+          </el-table-column>
+
+          <el-table-column
+            align="center"
+            :label="col.lable"
+            :prop="col.prop"
+            :min-width="col.widht"
+            show-overflow-tooltip
+            v-if="col.prop == 'imgCarouselUrl'"
+          >
+            <template slot-scope="scope">
+              <a :href="scope.row.imgCarouselUrl" >
+                <img :src="scope.row.imgCarouselUrl" alt="轮播图"  class="el-image__inner el-image__preview"/>
+              </a>
+            </template>
+          </el-table-column>
+
+          <el-table-column
+            v-else
+            align="center"
+            :label="col.lable"
+            :prop="col.prop"
+            :min-width="col.widht"
+            show-overflow-tooltip
+          >
+          </el-table-column>
+        </template>
+
+        <el-table-column
+          align="center"
+          fixed="right"
+          label="操作"
+          min-width="160"
+        >
+          <template slot-scope="scope">
+            <el-button type="text" size="small" @click="hanleEdit(scope.row)"
+            >编辑</el-button
+            >
+
+            <el-button type="text" size="small" @click="hanleStatus(scope.row.id)"  v-if="scope.row.status === '1'">隐藏</el-button>
+            <el-button type="text" size="small" @click="hanleStatus(scope.row.id)"  v-if="scope.row.status === '0'">显示</el-button>
+
+
+            <el-popconfirm
+              title="确定要删除这张轮播图吗?"
+              style="margin-left: 10px"
+              @onConfirm="hanleDelete(scope.row.id)"
+            >
+              <el-button slot="reference" type="text" size="small"
+              >删除</el-button
+              >
+            </el-popconfirm>
+          </template>
+        </el-table-column>
+      </el-table>
+      <!-- 分页 -->
+      <!--      <div style="margin: 20px 0">-->
+      <!--        <el-pagination-->
+      <!--          @size-change="handleSizeChange"-->
+      <!--          @current-change="handleCurrentChange"-->
+      <!--          :current-page="currentPage"-->
+      <!--          :page-sizes="[10, 20, 30, 50]"-->
+      <!--          :page-size="10"-->
+      <!--          layout="total, sizes, prev, pager, next, jumper"-->
+      <!--          :total="listTotal"-->
+      <!--        >-->
+      <!--        </el-pagination>-->
+      <!--      </div>-->
+    </div>
+
+    <!-- 添加公司备案信息 -->
+    <div>
+      <div class="setting_title">备案管理</div>
+      <el-divider></el-divider>
+
+      <el-card shadow="never" class="my-card">
+        <el-form
+          class="my-form"
+          ref="mainForm"
+          :model="comPanyDialogForm"
+          label-width="120px"
+          label-position="right"
+        >
+          <el-form-item label="ICP备案:" prop="nickName">
+            <el-input
+              autocomplete="off"
+              placeholder="请输入"
+              v-model="comPanyDialogForm.icpRecord"
+            ></el-input
+            >
+          </el-form-item>
+
+          <el-form-item label="ICP备案链接:" prop="nickName">
+            <el-input
+              autocomplete="off"
+              placeholder="请输入"
+              v-model="comPanyDialogForm.icpRecordLink"
+            ></el-input
+            > (填写链接,可跳转至链接页面)
+          </el-form-item>
+
+          <el-form-item label="公网安备案:" prop="nickName">
+            <el-input
+              autocomplete="off"
+              placeholder="请输入"
+              v-model="comPanyDialogForm.pubSecurityRecord"
+            ></el-input
+            >
+          </el-form-item>
+
+          <el-form-item label="公网安备案链接:" prop="nickName">
+            <el-input
+              autocomplete="off"
+              placeholder="请输入"
+              v-model="comPanyDialogForm.pubSecurityRecordLink"
+            ></el-input
+            > (填写链接,可跳转至链接页面)
+          </el-form-item>
+
+          <div class="setting_title">公司名称管理</div>
+          <el-divider></el-divider>
+
+          <el-form-item label="公司名称:" prop="nickName">
+            <el-input
+              autocomplete="off"
+              placeholder="单行输入"
+              v-model="comPanyDialogForm.companyName"
+            ></el-input
+            >
+          </el-form-item>
+
+        </el-form>
+
+      </el-card>
+    </div>
+
+
+
+    <div class="page-footer">
+      <div class="footer">
+        <!--        <el-button type="primary" @click="editFn">修改</el-button>-->
+        <el-button type="primary" @click="addComPany">确定</el-button>
+      </div>
+    </div>
+
+    <div>
+      <el-dialog
+        :visible.sync="dialogVisible"
+        width="50%"
+        @close="resetForm"
+        :close-on-click-modal="false"
+      >
+        <el-form
+          ref="dialogForm"
+          :model="dialogForm"
+          :rules="type == 1 ? rules : ''"
+          label-width="120px"
+          size="normal"
+        >
+          <el-form-item label="轮播图名称" prop="saleCode">
+            <el-input v-model="dialogForm.imgCarouselName"></el-input>
+          </el-form-item>
+
+          <el-form-item label="轮播图" prop="fileUrl">
+            <ImageUpload :fileList="fileList" :multiple="true" />
+          </el-form-item>
+
+          <el-form-item label="排序" prop="mainId">
+            <el-input v-model="dialogForm.imgCarouselOrder"></el-input>
+          </el-form-item>
+
+        </el-form>
+        <span slot="footer" class="dialog-footer">
+          <el-button @click="(dialogVisible = false), resetForm()"
+          >取 消</el-button
+          >
+          <el-button type="primary" @click="addImgCarousel">确 定</el-button>
+        </span>
+      </el-dialog>
+    </div>
+  </div>
+</template>
+
+<script>
+    import Mixin from "@/mixin/index";
+    import Pagination from "@/components/Pagination";
+    import ImageUpload from '@/components/Common/image-upload.vue';
+    import {
+        getProductList,
+        getImgCarouseList,
+        handleImgIsShow,
+        addImgCarousel,
+        delImgData,
+        addCompany,
+        editImgCarousel,
+    } from "@/api/policy_list";
+
+    export default {
+        mixins: [Mixin],
+        data() {
+            return {
+
+                type: 0, // 0,1
+                screenForm: {
+                    companyRecordManageId: "",
+                    imgCarouselName: "",
+                    imgCarouselUrl: "",
+                    imgCarouselOrder: "",
+                    status: "",
+                },
+                dialogForm: {
+                    id: "",
+                    companyRecordManageId: "",
+                    imgCarouselName: "",
+                    imgCarouselUrl: "",
+                    imgCarouselOrder: "",
+                    status: "1",
+                },
+                comPanyDialogForm: {
+                    id: "",
+                    icpRecord: "",
+                    icpRecordLink: "",
+                    pubSecurityRecord: "",
+                    pubSecurityRecordLink: "",
+                    companyName: "",
+                },
+
+                dataList: [
+                    {
+                        date: "2016-05-02",
+                        name: "王小虎",
+                        label: "姓名",
+                        address: "上海市普陀区金沙江路 1518 弄",
+                    },
+                ],
+                columns: [
+                    {
+                        prop: "imgCarouselName",
+                        lable: "轮播图名称",
+                        widht: 160,
+                    },
+                    {
+                        prop: "imgCarouselUrl",
+                        lable: "轮播图",
+                        widht: 160,
+                    },
+
+                    {
+                        prop: "imgCarouselOrder",
+                        lable: "排序",
+                        widht: 160,
+                    },
+                    {
+                        prop: "createTime",
+                        lable: "创建时间",
+                        widht: 160,
+                    },
+                    {
+                        prop: "status",
+                        lable: "状态",
+                        widht: 160,
+                    },
+
+                ],
+
+                rules: {
+                    imgCarouselName: [
+                        { required: true, message: "请输入轮播图名称", trigger: "blur" },
+                    ],
+                    // saleName: [
+                    //   { required: true, message: "请输入销售类型名称", trigger: "blur" },
+                    // ],
+                    // mainName: [
+                    //   { required: true, message: "请输入品类名称", trigger: "blur" },
+                    // ],
+                },
+                productList: [],
+                fileList: [],
+                multipleSelection: [],
+            };
+        },
+        methods: {
+
+            getList() {
+                this.listLoading = true;
+                const params = {
+                    pageNum: this.currentPage,
+                    pageSize: this.pageSize,
+                    saleCode: this.screenForm.saleCode,
+                    saleName: this.screenForm.saleName,
+                    mainId: "",
+                    status: this.screenForm.status,
+                };
+                // getTypeList(params).then((res) => {
+                //   this.dataList = res.data.records;
+                //   this.listTotal = res.data.total;
+                //   this.listLoading = false;
+                // });
+                getImgCarouseList(params).then((res) => {
+                    this.dataList = res.data;
+                    this.listLoading = false;
+                });
+                getProductList({
+                    productCategoryName: "",
+                    productCategoryNumber: "",
+                }).then((res) => {
+                    this.productList = res.data;
+                });
+            },
+            handleChange(e) {
+                this.productList.find((k) => {
+                    if (k.productCategoryNumber == e) {
+                        this.dialogForm.mainId = k.productCategoryNumber;
+                        this.dialogForm.mainName = k.productCategoryName;
+                        this.screenForm.mainId = k.productCategoryNumber;
+                        this.screenForm.mainName = k.productCategoryName;
+                    }
+                });
+            },
+            hanleDelete(id) {
+                this.hanleDeleteAllPromise(id).then((ids) => {
+                    delImgData({
+                        ids: ids[0],
+                    }).then((res) => {
+                        this.$successMsg("删除成功");
+                        this.hanleReset();
+                    });
+                });
+            },
+            hanleEdit(item) {
+                this.dialogForm = {
+                    id: item.id,
+                    companyRecordManageId: item.companyRecordManageId,
+                    imgCarouselName: item.imgCarouselName,
+                    imgCarouselUrl: item.imgCarouselUrl,
+                    imgCarouselOrder: item.imgCarouselOrder,
+                    status: item.status,
+                };
+                this.type = 0;
+                this.dialogVisible = true;
+            },
+            hanleDateil(item) {
+                this.dialogVisible = true;
+                this.dialogForm = {
+                    ...item,
+                };
+                this.type = 3;
+            },
+
+            hanleStatus(id){
+                handleImgIsShow({
+                    id:id
+                }).then((res) => {
+                    this.$successMsg("状态已更改");
+                    this.hanleReset();
+                });
+            },
+
+            addImgCarousel(){
+                if (this.type == 1) {
+                    this.$refs.dialogForm.validate((valid) => {
+                        //console.log(...this.dialogForm)
+                        if (valid) {
+                            this.dialogForm.imgCarouselUrl = "http://hg.zfire.top/api/img/get?key=" + this.fileList[0].url
+                            const params = {
+                                ...this.dialogForm,
+                            };
+                            addImgCarousel(params).then((res) => {
+                                this.$successMsg("添加成功");
+                                this.hanleReset();
+                            });
+                        } else {
+                            console.log("error submit!!");
+                            return false;
+                        }
+                    });
+                } else if (this.type == 0) {
+                    const upParams = {
+                        ...this.dialogForm,
+                    };
+                    editImgCarousel(upParams).then((res) => {
+                        this.$successMsg("修改成功");
+                        this.hanleReset();
+                    });
+                } else {
+                    this.dialogVisible = false;
+                }
+            },
+            // 表格选择
+            handleSelectionChange(val) {
+                this.multipleSelection = val;
+            },
+
+            //添加公司信息
+            addComPany(){
+                const params = {
+                    ...this.comPanyDialogForm,
+                };
+                addCompany(params).then((res) => {
+                    this.$successMsg("添加成功");
+                    this.hanleReset();
+                });
+
+            },
+            resetForm(formName) {
+                this.$refs.dialogForm.resetFields();
+            },
+            hanleReset() {
+                this.dialogForm = {
+                    companyRecordManageId: "",
+                    imgCarouselName: "",
+                    imgCarouselUrl: "",
+                    imgCarouselOrder: "",
+                    status: "1"
+                };
+                // this.$refs.dialogForm.resetFields()
+                this.dialogVisible = false;
+                this.getList();
+            },
+            batchDelete() {
+                if(this.multipleSelection.length < 1) {
+                    return this.$errorMsg('请选择信息');
+                }
+                this.$confirm('此操作将永久删除该数据, 是否继续?', '提示', {
+                    confirmButtonText: '确定',
+                    cancelButtonText: '取消',
+                    type: 'warning'
+                }).then(() => {
+                    let ids = [];
+                    this.multipleSelection.forEach(item => {
+                        ids.push(item.id);
+                    });
+                    delImgData({ids: ids.join(',')}).then(res => {
+                        this.$successMsg('删除成功');
+                        this.hanleReset();
+                    })
+                }).catch(() => {});
+            },
+
+        },
+        components: {
+            Pagination,
+            ImageUpload
+        },
+    };
+</script>
+
+<style scoped>
+  .el-switch.is-disabled {
+    opacity: inherit;
+  }
+  .page-header{
+    font-size: 18px;
+    padding-bottom: 10px;
+    font-weight: 600;
+  }
+  .cname-footer{
+    margin-top: 15px;
+  }
+  .my-form{
+    width :60%
+  }
+
+</style>

+ 26 - 2
src/views/sales_policy/components/AddCondition.vue

@@ -569,6 +569,7 @@ export default {
       console.log(index, this.arrIndex);
     },
     getMaterialLists(index) {
+
       this.arrIndex = index;
       getMaterialList({
         pageNum: this.currentPage,
@@ -576,10 +577,33 @@ export default {
         saleTypeCode: this.saleTypeCode,
         policyId: this.comCode,
       }).then((res) => {
-        this.conditList = res.data.records;
+        let arr = []
+        let datas = []
+
+                       for (let i = 0; i < res.data.records.length; i++) {
+                          for (let j = 0; j < this.conditionBox.length; j++) {
+
+                                datas = [...datas,...this.conditionBox[j]]
+                                if (datas.length) {
+                                   for (let k = 0; k < datas.length; k++) {
+                                    if (datas[k].id !== res.data.records[i].id) {
+                                        arr.push(res.data.records[i])
+                                    }
+
+                                }
+                                }else{
+                                  arr = res.data.records
+                                }
+
+
+                          }
+
+
+                       }
+
 
-        console.log(4545, this.conditList);
 
+        this.conditList = arr;
         this.listTotal = res.data.total;
       });
     },

+ 10 - 0
src/views/sales_policy/components/AddPolicy.vue

@@ -268,6 +268,12 @@
               align="center"
             >
               <template slot-scope="scope">
+                                <!-- <el-button
+                  type="text"
+                  size="small"
+                  @click="isCondition=1"
+                  >编辑</el-button
+                > -->
                 <el-button
                   type="text"
                   size="small"
@@ -379,6 +385,7 @@ export default {
     this.searchForm.code = this.comCode;
   },
   created() {
+
     this.getCommonApi();
     if (this.$parent.isFlag) {
       // this.handletwoList()
@@ -393,6 +400,9 @@ export default {
     handleCondition(id, index) {
       deleteCondition({ id }).then((res) => {
         this.conditionList.splice(index, 1);
+        this.$children[9].conditionBox= [[], []]
+         this.$children[9].conditionBox.limit= ''
+          this.$children[9].conditionBox.popArr ={}
         this.$successMsg("删除成功");
       });
     },

+ 7 - 0
src/views/sales_policy/components/Distributor.vue

@@ -1,5 +1,12 @@
 <template>
   <el-container>
+        <el-header height="50px" class="header">
+      <el-page-header
+        @back="$parent.isShow = 1"
+        :content=" '详情页面'"
+      >
+      </el-page-header>
+    </el-header>
     <el-header height="" class="pdt">
       <el-form
         :model="details"

+ 1 - 1
src/views/sales_rebate/rebate_list.vue

@@ -315,7 +315,7 @@ export default {
       options: [
         {
           value: "",
-          label: "状态",
+          label: "全部",
         },
         {
           value: 1,

+ 1 - 1
src/views/sales_rebate/salestype_list.vue

@@ -283,7 +283,7 @@ export default {
       options: [
         {
           value: "",
-          label: "状态",
+          label: "全部",
         },
         {
           value: 1,

+ 7 - 6
src/views/setting/account.vue

@@ -66,7 +66,7 @@
           <el-button size="small" type="primary" @click="handleExport">导出</el-button>
 
           <el-button size="small" type="primary" :loading="importLoading" @click="clickImport">{{ importLoading ? '导入中...' : '导入' }}</el-button>
-          
+
           <el-button size="small" @click="handleDownload" v-if="checkBtnRole('download')">下载导入模板</el-button> -->
         </div>
       </div>
@@ -103,10 +103,10 @@
               </el-popconfirm> -->
             </template>
           </el-table-column>
-          
+
         </el-table>
       </div>
-      
+
       <div class="pagination clearfix">
         <div class="fr">
           <el-pagination
@@ -121,7 +121,7 @@
         </div>
       </div>
     </div>
-    
+
     <!-- 添加编辑账号 -->
     <el-dialog :title="AccountFormType == 'add' ? '添加账号':'编辑账号'" :visible.sync="AccountFormVisible" :show-close="false" width="40%" :close-on-click-modal="false">
       <el-form ref="AccountForm" :model="AccountForm" :rules="AccountFormRules" label-position="left" label-width="80px">
@@ -305,7 +305,7 @@ export default {
           { required: true, validator: validatePass4, trigger: 'blur' }
         ],
       },
-      editAccountId: null, 
+      editAccountId: null,
 
       filterText: '',
       departmentList: [],
@@ -793,4 +793,5 @@ export default {
     cursor: pointer;
     user-select: none;
   }
-</style>
+
+</style>

+ 47 - 30
src/views/setting/api.vue

@@ -5,13 +5,15 @@
       <el-form ref="screenForm" :model="screenForm" label-width="70px" size="small" label-position="left">
         <el-row :gutter="20">
           <el-col :xs="24" :sm="12" :lg="6">
-            <el-form-item label="接口名称" prop="account">
-              <el-input v-model="screenForm.account" placeholder="请输入接口名称"></el-input>
+            <el-form-item label="接口名称" prop="name">
+              <el-input v-model="screenForm.name" placeholder="请输入接口名称"></el-input>
             </el-form-item>
           </el-col>
           <el-col :xs="24" :sm="12" :lg="6">
-            <el-form-item label="接口状态" prop="name">
-              <el-input v-model="screenForm.name" placeholder="请输入接口状态"></el-input>
+            <el-form-item label="接口状态" prop="status">
+              <el-select v-model="screenForm.status" placeholder="请选择接口状态" clearable>
+                <el-option :label="item.label" :value="item.value" v-for="(item, index) in statusList" :key="index"></el-option>
+              </el-select>
             </el-form-item>
           </el-col>
           
@@ -29,16 +31,20 @@
       <div class="btn-group clearfix">
         <div class="fl" />
         <div class="fr">
-          <el-button size="small" type="primary" @click="handleExport">导出</el-button>
+          <ExportButton :exUrl="'admin/user/mch/export'" :exParams="exParams" />
         </div>
       </div>
 
       <div class="table">
         <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
-          <el-table-column align="center" label="接口名称" prop="moduleName"></el-table-column>
-          <el-table-column align="center" label="接口描述" prop="moduleName"></el-table-column>
-          <el-table-column align="center" label="接口状态" prop="createTime"></el-table-column>
-          <el-table-column align="center" label="更新时间" prop="ip"></el-table-column>
+          <el-table-column align="center" label="接口名称" prop="name"></el-table-column>
+          <el-table-column align="center" label="接口描述" prop="description"></el-table-column>
+          <el-table-column align="center" label="接口状态" prop="status">
+            <template slot-scope="scope">
+              {{scope.row.status | statusFilter}}
+            </template>
+          </el-table-column>
+          <el-table-column align="center" label="更新时间" prop="syncTime"></el-table-column>
         </el-table>
       </div>
       
@@ -61,20 +67,30 @@
 </template>
 
 <script>
-import { getOplogList } from '@/api/setting'
-import { downloadFiles } from '@/utils/util'
+import { getApiList } from '@/api/setting'
 
+let that
 export default {
+  filters: {
+    statusFilter(val) {
+      let obj = that.statusList.find(o => o.value == val);
+      return obj ? obj.label : ''
+    },
+  },
   data() {
     return {
       dataList: null, // 列表数据
       listLoading: true, // 列表加载loading
       screenForm: { // 筛选表单数据
-        account: '',
+        status: '',
         name: '',
-        date: '',
-        region: '',
       },
+      statusList: [
+        { label: '未同步', value: 0 },
+        { label: '已同步', value: 1 },
+        { label: '同步失败', value: 2 },
+      ],
+
       currentPage: 1, // 当前页码
       pageSize: 10, // 每页数量
       listTotal: 0, // 列表总数
@@ -82,6 +98,19 @@ export default {
     }
   },
 
+  computed: {
+    exParams() {
+      return {
+        name: this.screenForm.name,
+        status: this.screenForm.status,
+      }
+    },
+  },
+
+  beforeCreate() {
+    that = this;
+  },
+
   created() {
     this.getList();
   },
@@ -100,16 +129,13 @@ export default {
       this.listLoading = true;
 
       let params = {
-        account: this.screenForm.account,
+        pageNum: this.currentPage,
+        pageSize: this.pageSize,
         name: this.screenForm.name,
-        region: this.screenForm.region,
-        startTime: this.screenForm.date ? this.screenForm.date[0] : '',
-        endTime: this.screenForm.date ? this.screenForm.date[1] : '',
-        pageNo: this.currentPage,
-        pageSize: this.pageSize
+        status: this.screenForm.status,
       };
 
-      getOplogList(params).then(res => {
+      getApiList(params).then(res => {
         this.dataList = res.data.records;
         this.listTotal = res.data.total;
         this.listLoading = false;
@@ -148,15 +174,6 @@ export default {
       this.getList();
     },
 
-    // 导出
-    handleExport() {
-      let screenData = {
-        orderId: this.screenForm.orderId,
-        status: this.screenForm.status,
-      };
-      downloadFiles('tax/export', screenData);
-    },
-
   }
 }
 </script>

+ 2 - 2
src/views/supply/apply/apply_list.vue

@@ -86,7 +86,7 @@
             <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
             <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
             <el-table-column align="center" label="计量单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
-            <el-table-column align="center" label="数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
+            <el-table-column align="center" label="数量" prop="refundableQty" min-width="100" show-overflow-tooltip></el-table-column>
             <el-table-column align="center" label="备注信息" prop="remark" min-width="160" show-overflow-tooltip></el-table-column>
             <el-table-column align="center" label="制单人" prop="createBy" min-width="100" show-overflow-tooltip></el-table-column>
             <el-table-column align="center" label="制单日期" prop="createTime" min-width="160" show-overflow-tooltip></el-table-column>
@@ -108,7 +108,7 @@
                 <el-button type="text" @click="toForm(scope.row)" v-if="scope.row.examineStatus === 'SAVE'">编辑</el-button>
                 <el-button type="text" @click="toExamine(scope.row)" v-if="scope.row.examineStatus === 'WAIT'">审单</el-button>
                 <el-button type="text" @click="toDetail(scope.row)">详情</el-button>
-                <el-popconfirm style="margin-left: 10px;" title="确定删除吗?" @onConfirm="handleDelete(scope.row.id)" >
+                <el-popconfirm style="margin-left: 10px;" title="确定删除吗?" @onConfirm="handleDelete(scope.row.id)"  v-if="scope.row.examineStatus !== 'OK'">
                   <el-button slot="reference" type="text">删除</el-button>
                 </el-popconfirm>
               </template>

+ 1 - 1
src/views/supply/apply/components/apply_form.vue

@@ -480,7 +480,7 @@ export default {
             remark: this.mainForm.remark,
             fileUrl: this.fileList && this.fileList.length > 0 ? this.fileList[0].url : '',
             fileName: this.fileList && this.fileList.length > 0 ? this.fileList[0].name : '',
-            orderType: 1, // 1零售单 2家用工程 3商用工程
+            // orderType: 1, // 1零售单 2家用工程 3商用工程
             correspondId: this.screenForm.warehouse,
             correspondName,
             orders: this.goodsList,

+ 50 - 6
src/views/supply/apply/components/engin_form.vue

@@ -225,7 +225,7 @@
               {{scope.row.orderType | orderTypeFilter}}
             </template>
           </el-table-column>
-          <el-table-column align="center" label="工程登录编号" prop="enginOrderNo" min-width="180" show-overflow-tooltip></el-table-column>
+          <el-table-column align="center" label="工程登录编号" prop="enginOrderNo" min-width="200" show-overflow-tooltip></el-table-column>
           <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip></el-table-column>
           <el-table-column align="center" label="物料代码" prop="materialOldNumber" min-width="160" show-overflow-tooltip></el-table-column>
           <el-table-column align="center" label="产品编码" prop="materialCode" min-width="160" show-overflow-tooltip></el-table-column>
@@ -275,7 +275,7 @@
 </template>
 
 <script>
-import { getEnginDetail, addEngin, editEngin, getEnginGoodsList, getWarehouseList, getDealerList } from "@/api/supply/apply";
+import { getEnginDetail, addEngin, editEngin, getEnginGoodsList, getWarehouseList, getDealerList, getEnginGoodsDetail } from "@/api/supply/apply";
 import { getDictList } from '@/api/common'
 import { findElem } from '@/utils/util'
 import fileUpload from '@/components/Common/file-upload.vue'
@@ -397,15 +397,26 @@ export default {
       getEnginDetail({id: this.listItem.id}).then(res => {
         let data = res.data;
         this.mainForm.orderNum = data.id;
-        this.mainForm.date = data.orderTime;
+        this.mainForm.orderDate = data.orderTime.slice(0, 10);
         this.mainForm.jxsNum = data.customerNumber;
         this.mainForm.jxsName = data.customerName;
+        this.mainForm.loginNum = data.enginOrderNo;
+        this.mainForm.enginName = data.refProjectName;
+        this.mainForm.loginType = data.enginOrderType;
+        this.mainForm.factoryNum = data.refFactoryNo;
+        this.mainForm.company = data.refUseUnit;
+        this.mainForm.saleType = data.saleTypeId;
+        this.mainForm.contactMan = data.refLinkman;
+        this.mainForm.tel = data.refTel;
+        this.mainForm.phone = data.refPhone;
+        this.mainForm.address = data.refInstallAddress;
         this.mainForm.createMan = data.createBy;
+        this.mainForm.createDate = data.createTime;
         this.mainForm.remark = data.remark;
         this.screenForm.warehouse = data.correspondId;
         this.fileList = data.fileUrl ? [{
           url: data.fileUrl,
-          name: data.fileName
+          name: data.fileName,
         }] : [];
         data.orders.forEach(item => {
           item.orderId = item.id;
@@ -548,6 +559,17 @@ export default {
       return newArr;
     },
 
+    // 检查是否一致
+    isAllEqual(array) {
+      if (array.length > 0) {
+        return !array.some(function(item, index) {
+          return item.enginOrderNo !== array[0].enginOrderNo;
+        });
+      } else {
+        return true;
+      }
+    },
+
     // 确定 添加产品
     submitAddGoods() {
       let allList = this.tableGoodsList;
@@ -556,16 +578,38 @@ export default {
 
       for(let i = 0; i < allList.length; i++) {
         for(let j = 0; j < selectList.length; j++) {
-          if(selectList[j].orderId == allList[i].orderId){
+          if(selectList[j].enginOrderNo == allList[i].enginOrderNo){
             submitList.push(allList[i]);
           }
         }
       }
       // this.goodsList = this.goodsList.concat(submitList);
 
+      if(!this.isAllEqual(submitList)) {
+        return this.$errorMsg('只能选择同一个工程编号的订单');
+      }
+
       this.goodsList = this.delRepeat(submitList, this.goodsList);
       this.isShowDialog = false;
       this.tableGoodsList = [];
+
+      this.getEnginGoodsDetail(submitList[0].enginOrderNo);
+    },
+
+    getEnginGoodsDetail(enginOrderNo) {
+      getEnginGoodsDetail({enginOrderNo}).then(res => {
+        let data = res.data;
+        this.mainForm.loginNum = data.refEnginRecordNo;
+        this.mainForm.enginName = data.refProjectName;
+        this.mainForm.loginType = data.refPromiseStatus;
+        this.mainForm.factoryNum = data.refFactoryNo;
+        this.mainForm.company = data.refUseUnit;
+        this.mainForm.saleType = data.saleTypeId;
+        this.mainForm.contactMan = data.refLinkman;
+        this.mainForm.tel = data.refTel;
+        this.mainForm.phone = data.refPhone;
+        this.mainForm.address = data.refInstallAddress;
+      })
     },
 
     // 删除产品
@@ -598,7 +642,7 @@ export default {
 
           let correspondName = this.warehouseList[findElem(this.warehouseList, 'id', this.screenForm.warehouse)].name;
           let params = {
-            orderTime: this.mainForm.date + ' 00:00:00',
+            orderTime: this.mainForm.orderDate + ' 00:00:00',
             remark: this.mainForm.remark,
             enginOrderNo: this.mainForm.loginNum,
             refProjectName: this.mainForm.enginName,

+ 1 - 0
src/views/supply/engin/commerce_list.vue

@@ -199,6 +199,7 @@ export default {
       dataList: null, // 列表数据
       listLoading: false, // 列表加载loading
       screenForm: { // 筛选表单数据
+        status: '',
         orderNum: '',
         enginNum: '',
         loginNum: '',

+ 16 - 17
src/views/supply/engin/components/commerce_form.vue

@@ -152,7 +152,7 @@
         <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
         <el-table-column align="center" label="单位" prop="baseUnitId" min-width="100" show-overflow-tooltip></el-table-column>
         <el-table-column align="center" label="单价" prop="price" min-width="100" show-overflow-tooltip></el-table-column>
-        <el-table-column align="center" label="工程登录数量" prop="enginNum" min-width="120" show-overflow-tooltip></el-table-column>
+        <el-table-column align="center" label="工程信息数量" prop="enginNum" min-width="120" show-overflow-tooltip></el-table-column>
         <el-table-column align="center" label="数量" prop="qty" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">
             <el-input v-model="scope.row.qty" size="small"></el-input>
@@ -281,7 +281,7 @@
           max-height="270">
           <el-table-column align="center" label="" width="100">
             <template slot-scope="scope">
-              <el-button type="primary" size="small" @click="chooseItem(scope.row.enginInfoNo)">选择</el-button>
+              <el-button type="primary" size="small" @click="chooseItem(scope.row.enginInfoId)">选择</el-button>
             </template>
           </el-table-column>
           <el-table-column align="center" prop="checkTime" label="工程登录日期" show-overflow-tooltip></el-table-column>
@@ -552,29 +552,29 @@ export default {
       getComLoginDetail({id}).then(res => {
         this.isShowDialog = false;
         let data = res.data;
-        this.mainForm.type = data.productCategory;
-        this.mainForm.saleType = '';
+        this.mainForm.type = data.productCategoryId;
         this.mainForm.enginNum = data.enginInfoNo;
         this.mainForm.enginName = data.projectName;
-        this.mainForm.loginType = data.promiseStatus;
+        this.mainForm.loginType = data.enginSignType;
         this.mainForm.company = data.useUnit;
-        this.mainForm.contactMan = data.buyUnitCallMen;
-        this.mainForm.tel = data.buyUnitTel;
-        this.mainForm.phone = data.buyUnitPhone;
+        this.mainForm.contactMan = data.linkman;
+        this.mainForm.tel = data.tel;
+        this.mainForm.phone = data.phone;
         this.mainForm.address = data.installAddress;
 
         this.goodsList = data.items.map(item => {
           return {
             useRefCount: '',
-            saleTypeName: '',
-            materialNumber: '',
-            materialOldNumber: item.code,
-            materialName: item.name,
+            saleTypeName: item.saleTypeName,
+            materialId: item.materialId,
+            materialNumber: item.materialNumber,
+            materialOldNumber: item.materialOldNumber,
+            materialName: item.materialName,
             specification: item.machine,
-            baseUnitId: '',
+            baseUnitId: item.unit,
             price: item.price,
             enginNum: '',
-            qty: item.num,
+            qty: item.qty,
             customerWalletId2: '',
             rebateRate: '',
             discAmount: '',
@@ -582,8 +582,8 @@ export default {
             isDirectTransfer: false,
             directTransferQty: '',
             hasSendQty: '',
-            remark: item.discri,
-            tax: '',
+            remark: item.remark,
+            tax: item.taxRate,
             status1: '',
             status2: '',
           }
@@ -666,7 +666,6 @@ export default {
             mainId: this.mainForm.type || '',
             refEnginRecordNo: this.mainForm.enginNum || '',
             refFactoryNo: this.mainForm.factoryNum || '',
-            buyUnitPhone: this.mainForm.phone,
             note2: this.mainForm.greeRemark || '',
             note1: this.mainForm.greeReply || '',
             remark: this.mainForm.remark || '',

+ 0 - 1
src/views/supply/engin/components/home_form.vue

@@ -700,7 +700,6 @@ export default {
             saleTypeId: this.mainForm.saleType,
             saleTypeCode: saleTypeItem.saleCode,
             saleTypeName: saleTypeItem.saleName,
-            buyUnitPhone: this.mainForm.phone,
             note2: this.mainForm.greeRemark || '',
             note1: this.mainForm.greeReply || '',
             remark: this.mainForm.remark || '',

+ 1 - 0
src/views/supply/engin/home_list.vue

@@ -199,6 +199,7 @@ export default {
       dataList: null, // 列表数据
       listLoading: false, // 列表加载loading
       screenForm: { // 筛选表单数据
+        status: '',
         orderNum: '',
         enginNum: '',
         loginNum: '',

+ 3 - 3
src/views/supply/policy/components/retail_detail.vue

@@ -76,10 +76,10 @@
         <el-table-column align="center" label="单价" prop="price" min-width="100" show-overflow-tooltip></el-table-column>
         <el-table-column align="center" label="数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
         <el-table-column align="center" label="订单金额" prop="totalAmount" min-width="100" show-overflow-tooltip></el-table-column>
-        <el-table-column align="center" label="返利类型" prop="walletRebateName" min-width="100" show-overflow-tooltip></el-table-column>
+        <el-table-column align="center" label="返利类型" prop="customerWalletName2" min-width="100" show-overflow-tooltip></el-table-column>
         <el-table-column align="center" label="返利金额" prop="rebateAmount" min-width="100" show-overflow-tooltip></el-table-column>
-        <el-table-column align="center" label="格力折扣" prop="deductAmount" min-width="100" show-overflow-tooltip></el-table-column>
-        <el-table-column align="center" label="现金钱包" prop="walletRebateName2" min-width="100" show-overflow-tooltip></el-table-column>
+        <el-table-column align="center" label="格力折扣" prop="discAmount" min-width="100" show-overflow-tooltip></el-table-column>
+        <el-table-column align="center" label="现金钱包" prop="customerWalletName" min-width="100" show-overflow-tooltip></el-table-column>
         <el-table-column align="center" label="实付金额" prop="payAmount" min-width="100" show-overflow-tooltip></el-table-column>
         <el-table-column align="center" label="是否直调" prop="isDirectTransfer" min-width="100" show-overflow-tooltip>
           <template slot-scope="scope">

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 555 - 411
src/views/supply/policy/components/retail_form.vue


+ 7 - 5
src/views/supply/policy/policy_list.vue

@@ -266,7 +266,7 @@
             <el-table-column
               align="center"
               label="出库数量"
-              prop="aaa"
+              prop="hasSendQty"
               min-width="100"
               show-overflow-tooltip
             ></el-table-column>
@@ -323,12 +323,14 @@
               fixed="right"
             >
               <template slot-scope="scope">
-                <el-button
-                  type="text"
-                  @click="toExamine(scope.row)"
+                     <el-popconfirm
                   v-if="scope.row.examineStatus === 'SAVE'"
-                  >申请</el-button
+                  style="margin-right: 10px"
+                  title="确定撤回?"
+                  @onConfirm="handleSubmit(scope.row.id)"
                 >
+                  <el-button slot="reference" type="text">提审</el-button>
+                </el-popconfirm>
                 <el-button type="text" @click="toForm(scope.row)"
                   >编辑</el-button
                 >

+ 1 - 1
src/views/supply/retail/components/retail_detail.vue

@@ -6,7 +6,7 @@
       <div class="title">提货进度</div>
     </div>
     <div class="progress-container">
-      <el-progress :text-inside="true" :stroke-width="26" :percentage="detailData.thjd ? (detailData.thjd * 100) : 0"></el-progress>
+      <el-progress :text-inside="true" :stroke-width="26" :percentage="detailData.thjd ? (detailData.thjd * 1000 / 10) : 0"></el-progress>
     </div>
 
     <div class="main-title">

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است