lichao 3 år sedan
förälder
incheckning
e19105d355

+ 10 - 0
src/views/reimbursement/config/customerContact.json

@@ -13,6 +13,16 @@
   "showSummary": true,
   "summaryText": "合计",
   "sumColumnList": [
+    {
+      "name": "amount",
+      "type": "sum",
+      "decimals": 2
+    },
+    {
+      "name": "quantity",
+      "type": "sum",
+      "decimals": 0
+    }
   ],
   "column": [
     {

+ 1 - 0
src/views/reimbursement/detail.vue

@@ -46,6 +46,7 @@
           size="small"
           @click="copyDoc"
           :loading="btnLoading"
+          v-if="false"
         >复制单据</el-button>
         <el-button
           type="primary"

+ 1 - 0
src/views/reimbursement/index.vue

@@ -33,6 +33,7 @@
             icon="el-icon-plus"
             @click.stop="copyDoc()"
             :disabled="selection.length != 1"
+            v-if="false"
           >复制单据</el-button>
         </template>
         <template slot-scope="scope" slot="menu">

+ 2 - 0
src/views/saleLeads/detail.vue

@@ -24,6 +24,7 @@
           size="small"
           @click="copyDoc"
           :loading="btnLoading"
+          v-if="false"
         >复制单据</el-button>
         <el-button
           type="primary"
@@ -105,6 +106,7 @@
               type="info"
               icon="el-icon-printer"
               size="small"
+              v-if="false"
             >报表打印</el-button>
           </template>
           <template slot="menu" slot-scope="{ row, index }">

+ 1 - 0
src/views/saleLeads/index.vue

@@ -33,6 +33,7 @@
             icon="el-icon-plus"
             @click.stop="copyDoc()"
             :disabled="selection.length != 1"
+            v-if="false"
           >复制单据</el-button>
         </template>
         <template slot-scope="scope" slot="menu">

+ 10 - 0
src/views/workManagement/handoverSheet/config/customerContact.json

@@ -13,6 +13,16 @@
   "showSummary": true,
   "summaryText": "合计",
   "sumColumnList": [
+    {
+      "name": "quantity",
+      "type": "sum",
+      "decimals": 0
+    },
+    {
+      "name": "amount",
+      "type": "sum",
+      "decimals": 2
+    }
   ],
   "column": [
     {

+ 1 - 0
src/views/workManagement/handoverSheet/detail.vue

@@ -46,6 +46,7 @@
           size="small"
           @click="copyDoc"
           :loading="btnLoading"
+          v-if="false"
         >复制单据</el-button>
         <el-button
           type="primary"

+ 1 - 0
src/views/workManagement/handoverSheet/index.vue

@@ -33,6 +33,7 @@
             icon="el-icon-plus"
             @click.stop="copyDoc()"
             :disabled="selection.length != 1"
+            v-if="false"
           >复制单据</el-button>
         </template>
         <template slot-scope="scope" slot="menu">

+ 5 - 3
src/views/workManagement/purchaseApply/detail.vue

@@ -46,6 +46,7 @@
           size="small"
           @click="copyDoc"
           :loading="btnLoading"
+          v-if="false"
         >复制单据</el-button>
         <el-button
           type="primary"
@@ -384,8 +385,9 @@
 <script>
 import tableOption from "./config/customerContact.json";
 import goodsOption from "./config/commodity.json";
-import {getDeptLazyTree,
-  getGoods,} from "@/api/basicData/customerInquiry";
+// import {getDeptLazyTree,
+//   getGoods,} from "@/api/basicData/customerInquiry";
+import {getDeptLazyTree, getList as getGoods} from "@/api/basicData/commodityType";
 import {
   isDiscount,
   isPercentage,
@@ -796,7 +798,7 @@ export default {
     onLoad(page, params = {}) {
       let obj = this.deepClone(Object.assign(params, this.search));
       this.loading = true;
-      getGoods(page.currentPage, page.pageSize, this.treeDeptId, obj)
+      getGoods(page.currentPage, page.pageSize,obj, this.treeDeptId)
         .then(res => {
           const data = res.data.data;
           this.page.total = data.total;

+ 1 - 0
src/views/workManagement/purchaseApply/index.vue

@@ -33,6 +33,7 @@
             icon="el-icon-plus"
             @click.stop="copyDoc()"
             :disabled="selection.length != 1"
+            v-if="false"
           >复制单据</el-button>
         </template>
         <template slot-scope="scope" slot="menu">

+ 1 - 0
src/views/workManagement/requisition/detail.vue

@@ -46,6 +46,7 @@
           size="small"
           @click="copyDoc"
           :loading="btnLoading"
+          v-if="false"
         >复制单据</el-button>
         <el-button
           type="primary"

+ 1 - 0
src/views/workManagement/requisition/index.vue

@@ -33,6 +33,7 @@
             icon="el-icon-plus"
             @click.stop="copyDoc()"
             :disabled="selection.length != 1"
+            v-if="false"
           >复制单据</el-button>
         </template>
         <template slot-scope="scope" slot="menu">

+ 1 - 0
src/views/workManagement/warehousing/detail.vue

@@ -42,6 +42,7 @@
           size="small"
           @click="copyDoc"
           :loading="btnLoading"
+          v-if="false"
         >复制单据</el-button>
         <el-button
           type="primary"