yuanmingze 5 kuukautta sitten
vanhempi
commit
49247b6cce

+ 24 - 26
src/views/admin/wmdeptbudget/components/serviceTargetDistributionDialog.vue

@@ -66,9 +66,7 @@
           </el-col>
         </el-row>
       </el-form>
-      <template v-if="type === 'distribute'">
-        剩余积分值: {{ form.availScore }}
-      </template>
+      <template v-if="type === 'distribute'"> 剩余积分值: {{ form.availScore }} </template>
       <!-- 审核说明表单 -->
       <el-form class="reviewForm" v-if="type === 'review' || type === 'dismantleReview'" :model="reviewForm" ref="reviewFormRef" label-width="100px">
         <el-form-item
@@ -127,13 +125,13 @@ import dayjs from 'dayjs';
 import ElQuarterPicker from '@/components/ElQuarterPicker/index';
 import dismantleTable from './dismantleTable.vue';
 import tableDate from './tableDate.vue';
-import {createListApi, planCheckApi, planDetailCreateApi, getPlanDetailsApi, checkPlanDetailsApi, planUpdateApi, getListDescendantApi} from '@/api/wmdeptbudget/plan.js';
+import { createListApi, planCheckApi, planDetailCreateApi, getPlanDetailsApi, checkPlanDetailsApi, planUpdateApi, getListDescendantApi } from '@/api/wmdeptbudget/plan.js';
 
-import {getListDrugApi} from '@/api/assignPoints/currency/index';
-import {listCsoApi} from '@/api/csmpages/index.js';
+import { getListDrugApi } from '@/api/assignPoints/currency/index';
+import { listCsoApi } from '@/api/csmpages/index.js';
 
 export default {
-  components: {dismantleTable, tableDate, ElQuarterPicker},
+  components: { dismantleTable, tableDate, ElQuarterPicker },
   data() {
     return {
       btnType: '',
@@ -165,12 +163,12 @@ export default {
       },
 
       rules: {
-        skuId: [{required: true, message: '请填写生产企业', trigger: 'blur'}],
-        planName: [{required: true, message: '请填写目标名称', trigger: 'blur'}],
-        monthrange: [{required: true, message: '请选择目标周期'}],
-        consigneeId: [{required: true, message: '请选择承接对象', trigger: 'blur'}],
-        planScore: [{required: true, message: '请填写目标总值', trigger: 'blur'}],
-        planType: [{required: true, message: '请选择承接对象', trigger: 'blur'}]
+        skuId: [{ required: true, message: '请填写生产企业', trigger: 'blur' }],
+        planName: [{ required: true, message: '请填写目标名称', trigger: 'blur' }],
+        monthrange: [{ required: true, message: '请选择目标周期' }],
+        consigneeId: [{ required: true, message: '请选择承接对象', trigger: 'blur' }],
+        planScore: [{ required: true, message: '请填写目标总值', trigger: 'blur' }],
+        planType: [{ required: true, message: '请选择承接对象', trigger: 'blur' }]
       },
       reviewForm: {
         msg: ''
@@ -178,7 +176,7 @@ export default {
       reviewFormMsgRequired: false,
 
       pickerOptions: {
-        disabledDate: time => {
+        disabledDate: (time) => {
           // 使用箭头函数保持this上下文
           const planIssueDate = new Date(this.planIssueRange);
           const planExpiryDate = new Date(this.planExpiryRange);
@@ -198,7 +196,7 @@ export default {
     },
     skuIdChange(e) {
       if (e) {
-        const curr = this.drugList.find(item => item.drug_id === e);
+        const curr = this.drugList.find((item) => item.drug_id === e);
         if (curr) this.form.ent_name = curr.ent_name;
       }
       this.nameChange();
@@ -208,8 +206,8 @@ export default {
         let skuIdName;
         let consigneeIdName;
         if (this.form.skuId && this.form.consigneeId) {
-          skuIdName = this.drugList.find(item => item.drug_id === this.form.skuId);
-          consigneeIdName = this.csoList.find(item => item.deptId === this.form.consigneeId);
+          skuIdName = this.drugList.find((item) => item.drug_id === this.form.skuId);
+          consigneeIdName = this.csoList.find((item) => item.deptId === this.form.consigneeId);
         }
         if (this.form.planType === 'ANN') {
           if (skuIdName && consigneeIdName) {
@@ -239,7 +237,7 @@ export default {
       }
     },
     confirm() {
-      this.$refs.ruleForm.validate(async valid => {
+      this.$refs.ruleForm.validate(async (valid) => {
         if (valid) {
           // 判断如果是编辑 走编辑接口
 
@@ -320,8 +318,8 @@ export default {
       let skuIdName;
       let consigneeIdName;
       if (this.form.skuId && this.form.consigneeId) {
-        skuIdName = this.drugList.find(item => item.drug_id === this.form.skuId);
-        consigneeIdName = this.csoList.find(item => item.deptId === this.form.consigneeId);
+        skuIdName = this.drugList.find((item) => item.drug_id === this.form.skuId);
+        consigneeIdName = this.csoList.find((item) => item.deptId === this.form.consigneeId);
       }
       if (this.form.planType === 'ANN') {
         this.form.planIssue = e + '-01-01';
@@ -448,7 +446,7 @@ export default {
     reviewClick(result) {
       this.reviewFormMsgRequired = !result;
       this.$nextTick(() => {
-        this.$refs.reviewFormRef.validate(async valid => {
+        this.$refs.reviewFormRef.validate(async (valid) => {
           if (valid) {
             const obj = {
               planId: this.form.planId,
@@ -500,7 +498,7 @@ export default {
     consigneeIdChange(e) {
       if (this.type === 'distribute') {
         if (e) {
-          const consigneeIdName = this.csoList.find(item => item.deptId === e);
+          const consigneeIdName = this.csoList.find((item) => item.deptId === e);
           const name = this.currentRow.planName + '-' + consigneeIdName.name;
           this.form.planName = name;
         }
@@ -528,9 +526,9 @@ export default {
       const allQty = data.reduce((prev, curr) => prev + curr.qty, 0);
       const allTotal = data.reduce((prev, curr) => prev + curr.subtotal, 0);
 
-      if (allTotal != this.form.planScore) {
-        return this.$message.info('拆解总任务分值需等于目标总值');
-      }
+      // if (allTotal != this.form.planScore) {
+      //   return this.$message.info('拆解总任务分值需等于目标总值');
+      // }
       const obj = {
         planId: this.form.planId,
         qty: allQty,
@@ -555,7 +553,7 @@ export default {
     dismantleReviewSubmt(type) {
       this.reviewFormMsgRequired = !type;
       this.$nextTick(() => {
-        this.$refs.reviewFormRef.validate(async valid => {
+        this.$refs.reviewFormRef.validate(async (valid) => {
           if (valid) {
             const obj = {
               detailsId: this.form.planDetails.detailsId,

+ 6 - 6
src/views/serviceManagement/servicesToBeReviewed/index.vue

@@ -41,8 +41,8 @@
             </el-form-item>
           </el-col>
           <el-col :span="6">
-            <el-form-item label="推广员姓名">
-              <el-select v-model="searchFrom.salesId" placeholder="请选择推广员姓名" class="w100" clearable filterable>
+            <el-form-item label="代表姓名">
+              <el-select v-model="searchFrom.salesId" placeholder="请选择代表姓名" class="w100" clearable filterable>
                 <el-option v-for="item in userListArr" :key="item.userId" :label="item.realName" :value="item.userId" />
               </el-select>
             </el-form-item>
@@ -107,13 +107,13 @@
         <vxe-column type="checkbox" width="60"></vxe-column>
         <vxe-table-column type="seq" title="序号" width="100"></vxe-table-column>
         <vxe-table-column field="taskNumber" title="服务编号" width="200"></vxe-table-column>
-        <vxe-table-column field="cycle" title="执行包周期" width="200"> </vxe-table-column>
-        <vxe-table-column field="pkgName" title="执行包名称" width="200"></vxe-table-column>
+        <vxe-table-column field="cycle" title="服务包周期" width="200"> </vxe-table-column>
+        <vxe-table-column field="pkgName" title="服务包名称" width="200"></vxe-table-column>
         <vxe-table-column field="taskTypeName" title="服务类型" width="200"></vxe-table-column>
         <vxe-table-column field="taskScore" title="服务分值" width="100"></vxe-table-column>
-        <vxe-table-column field="salesName" title="推广员姓名" width="150"></vxe-table-column>
+        <vxe-table-column field="salesName" title="代表姓名" width="150"></vxe-table-column>
         <vxe-table-column field="createTime" title="服务提交时间" width="200"></vxe-table-column>
-        <vxe-table-column field="checkResultName" title="服务当前状态" width="120"></vxe-table-column>
+        <!-- <vxe-table-column field="checkResultName" title="服务当前状态" width="120"></vxe-table-column> -->
         <vxe-table-column field="entName" title="服务提供商" width="200"></vxe-table-column>
         <vxe-table-column field="mahName" title="产品所属生产企业" width="200"></vxe-table-column>
         <vxe-table-column field="skuName" title="关联产品名称" width="200"></vxe-table-column>