asd26269546 1 year ago
parent
commit
0701c63bdb
1 changed files with 33 additions and 37 deletions
  1. 33 37
      src/views/salesMange/saleContract/contract/index.vue

+ 33 - 37
src/views/salesMange/saleContract/contract/index.vue

@@ -8,7 +8,7 @@
         :loading="loading"
         :selectConfig="selectConfig"
         highlight-current-row
-        :statConfig='statConfig'
+        :statConfig="statConfig"
         :action-list="[
           {
             text: '创建合同',
@@ -400,30 +400,30 @@ const config = computed(() => {
                 },
               }
             : {},
-          row.issue && row.issue === "0" && row.status == 30
-            ? {
-                attrs: {
-                  label: "下发交接单",
-                  type: "primary",
-                  text: true,
-                },
-                el: "button",
-                click() {
-                  ElMessageBox.confirm("是否确认下发交接单?", "提示", {
-                    confirmButtonText: "确定",
-                    cancelButtonText: "取消",
-                    type: "warning",
-                  }).then(() => {
-                    proxy
-                      .post("/contract/edit", { id: row.id, issue: 1 })
-                      .then(() => {
-                        ElMessage({ message: "下发成功", type: "success" });
-                        getList();
-                      });
-                  });
-                },
-              }
-            : {},
+          // row.issue && row.issue === "0" && row.status == 30
+          //   ? {
+          //       attrs: {
+          //         label: "下发交接单",
+          //         type: "primary",
+          //         text: true,
+          //       },
+          //       el: "button",
+          //       click() {
+          //         ElMessageBox.confirm("是否确认下发交接单?", "提示", {
+          //           confirmButtonText: "确定",
+          //           cancelButtonText: "取消",
+          //           type: "warning",
+          //         }).then(() => {
+          //           proxy
+          //             .post("/contract/edit", { id: row.id, issue: 1 })
+          //             .then(() => {
+          //               ElMessage({ message: "下发成功", type: "success" });
+          //               getList();
+          //             });
+          //         });
+          //       },
+          //     }
+          //   : {},
           row.status == 30
             ? {
                 attrs: {
@@ -585,20 +585,19 @@ const getList = async (req) => {
   });
 };
 const statConfig = computed(() => {
-	return [
-		{
-			label: '合计',
-			data:[],
-		},
-		
-	]
-})
+  return [
+    {
+      label: "合计",
+      data: [],
+    },
+  ];
+});
 getDict();
 if (route.query.code) {
   sourceList.value.pagination.keyword = route.query.code;
 }
 onMounted(() => {
-  getList()
+  getList();
 })
 const getTotal = () => {
   proxy.post("/contract/getHeadCustomerStatistics",sourceList.value.pagination).then((res) => {
@@ -607,9 +606,6 @@ const getTotal = () => {
       label: "合计",
       data: [
         {
-          label:'数量',
-          num:res.data.sumQuantity,
-          color:'rgb(171 0 255)',
           label: "数量",
           num: res.sumQuantity,
           color: "rgb(171 0 255)",