浏览代码

2022-12-12 18:00

codeMan 2 年之前
父节点
当前提交
94f4f2b70b

+ 1 - 1
src/HDrpManagement/contractManage/components/reverseCheck.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="inline-16">
     <el-popconfirm title="确定反审核当前合同吗?" @confirm="submit">
-      <el-button size="mini" slot="reference">反 审 核</el-button>
+      <el-button size="mini" slot="reference">反 审 核(退回)</el-button>
     </el-popconfirm>
   </div>
 </template>

+ 14 - 22
src/HDrpManagement/contractManage/components/submitCheck.vue

@@ -2,17 +2,8 @@
   <div class="inline-16" v-if="data.status">
     <el-popconfirm v-if="refresh" title="确定提交当前合同吗?" @confirm="submit">
       <el-button size="mini" slot="reference" v-if="data.status=='新建'">提 交</el-button>
+      <el-button size="mini" slot="reference" v-if="data.status=='已提交'">审 核</el-button>
     </el-popconfirm>
-
-    <el-dropdown :hide-on-click="false" @command="check">
-      <span class="el-dropdown-link">
-        <el-button size="mini" :disabled="disabled" v-if="data.status == '已提交'">审 核</el-button>
-      </span>
-      <el-dropdown-menu slot="dropdown">
-        <el-dropdown-item command="1">通过</el-dropdown-item>
-        <el-dropdown-item command="0">退回</el-dropdown-item>
-      </el-dropdown-menu>
-    </el-dropdown>
   </div>
 </template>
 
@@ -42,6 +33,7 @@ export default {
   },
   methods: {
     async submit () {
+      if (this.data.status == '新建') {
         let res = await this.$api.requested({
           "id": 20221121202802,
           "content": {
@@ -51,18 +43,18 @@ export default {
         this.tool.showMessage(res,() => {
           this.$emit('onSuccess')
         })
-    },
-    async check (num) {
-      let res = await this.$api.requested({
-        "id": 20221121203102,
-        "content": {
-            "type":num,//0:不通过,1:通过
-            "sa_contractids": [this.data.sa_contractid]
-        },
-      })
-      this.tool.showMessage(res,() => {
-        this.$emit('onSuccess')
-      })
+      } else {
+        let res = await this.$api.requested({
+          "id": 20221121203102,
+          "content": {
+              "type":1,//0:不通过,1:通过
+              "sa_contractids": [this.data.sa_contractid]
+          },
+        })
+        this.tool.showMessage(res,() => {
+          this.$emit('onSuccess')
+        })
+      }
     },
   },
 };

+ 14 - 2
src/HManagement/clueManage/clue_import/detailPage/index.vue

@@ -92,6 +92,7 @@ export default {
       this.tool.showMessage(res)
     },
     changeDataStructure() {
+      let that = this
       this.mainAreaData = [
           {
           label:'单号',
@@ -99,7 +100,18 @@ export default {
         },
         {
           label:'状态',
-          value:this.mainData.status
+          value:this.mainData.status,
+          style:function () {
+            let style = {}
+            switch (that.mainData.status) {
+              case '待审核':
+                style = {color: 'rgb(82, 196, 26)'}
+                break;
+              default:
+                break;
+            }
+            return style
+          }
         },
         {
           label:'线索类型',
@@ -118,7 +130,7 @@ export default {
           },
           {
             label:'状态',
-            value:this.mainData.status
+            value:this.mainData.status,
           },
           {
             label:'导入人',

+ 28 - 2
src/HManagement/clueManage/clue_private/modules/detail.vue

@@ -111,6 +111,7 @@ export default {
       this.changeDataStructure()
     },
     changeDataStructure() {
+      let that = this
       this.mainAreaData = [
           {
           label:'客户名称',
@@ -138,11 +139,36 @@ export default {
         },
         {
           label:'跟进状态',
-          value:this.mainData.status
+          value:this.mainData.status,
+          style:function () {
+            let style = {}
+            switch (that.mainData.status) {
+              case '已过期':
+                style = {color:'#333'}
+                break;
+              case '跟进中':
+                style = {color:'#52C41A'}
+                break;
+              case '待跟进':
+                style = {color:'#FA8C16'}
+                break;
+              case '已成交':
+                style = {color:'#F60909'}
+                break; 
+              case '无效':
+                style = {color:'#BBBBBB'}
+                break; 
+              default:
+                break;
+            }
+            return style
+            
+          }
         },
         {
           label:'分配状态',
-          value:this.mainData.allocationstatus
+          value:this.mainData.allocationstatus,
+
         },
       ]
       this.detailInfo = {

+ 26 - 1
src/HManagement/clueManage/clue_public/modules/detail.vue

@@ -169,6 +169,7 @@ export default {
       this.changeDataStructure()
     },
     changeDataStructure() {
+      let that = this
       this.mainAreaData = [
           {
           label:'客户名称',
@@ -200,7 +201,31 @@ export default {
         },
         {
           label:'跟进状态',
-          value:this.mainData.status
+          value:this.mainData.status,
+          style:function () {
+            let style = {}
+            switch (that.mainData.status) {
+              case '已过期':
+                style = {color:'#333'}
+                break;
+              case '跟进中':
+                style = {color:'#52C41A'}
+                break;
+              case '待跟进':
+                style = {color:'#FA8C16'}
+                break;
+              case '已成交':
+                style = {color:'#F60909'}
+                break; 
+              case '无效':
+                style = {color:'#BBBBBB'}
+                break; 
+              default:
+                break;
+            }
+            return style
+            
+          }
         },
       ]
       this.detailInfo = {

+ 15 - 1
src/HManagement/clueManage/m_activity/modules/details.vue

@@ -80,8 +80,11 @@ export default {
       })
       this.mainData = res.data
       this.changeDataStructure()
+      console.log(this.mainData);
+      
     },
     changeDataStructure() {
+      let that = this
       this.mainAreaData = [
           {
           label:'活动名称',
@@ -101,7 +104,18 @@ export default {
         },
         {
           label:'状态',
-          value:this.mainData.status
+          value:this.mainData.status,
+          style:function () {
+            let style = {}
+            switch (that.mainData.status) {
+              case '发布':
+                style = {color:"rgb(82, 196, 26)"}
+                break;
+              default:
+                break;
+            }
+            return style
+          }
         },
       ]
       this.detailInfo = {