Ver Fonte

跳转申报提成

wucl há 3 meses atrás
pai
commit
f0a92c1b9b
2 ficheiros alterados com 22 adições e 1 exclusões
  1. 16 0
      src/views/income/major/market.vue
  2. 6 1
      src/views/major/myOrder.vue

+ 16 - 0
src/views/income/major/market.vue

@@ -202,6 +202,7 @@ export default {
         page: 1,
         size: 10,
         descs: 'id',
+        reportNo:null
       },
       cates: [],
       users: [],
@@ -224,8 +225,23 @@ export default {
     }
   },
   created() {
+    this.listQuery.reportNo = this.$route.query.productionNo;
+    this.listQuery.orderId = this.$route.query.orderId;
+    this.declareForm.orderId = this.$route.query.orderId;
+
+    this.$route.query.productionId;
+    this.$route.query.orderName;
     this.getList();
     this.getMajorMarketCate();
+    if (this.$route.query.businessId){
+      let row = new Object()
+      row.orderId = this.$route.query.orderId;
+      row.name  = this.$route.query.orderName;
+      row.reportNo = this.$route.query.productionNo;
+      row.businessId =  this.$route.query.businessId;
+      row.productionId = this.$route.query.productionId;
+      this.openDeclareDialog(row);
+    }
   },
   methods: {
 

+ 6 - 1
src/views/major/myOrder.vue

@@ -134,7 +134,9 @@
         <el-table-column label="客户经理申报提成" align="center"
         prop="created" v-if="!hiddenLabels.includes('mdeclareResult')">
           <template slot-scope="{row}">
-            <span>{{ row.mdeclareResult==null?'未申报': row.mdeclareResult}}</span>
+            <el-tooltip  class="item" effect="light" :content="(row.production || row.mdeclareResult!=null)?'点击跳转申报页面':'未出产品'" placement="top-start">
+              <el-button type="text" @click="toCommission(row.productionNo,row.orderId,row.businessId,row.id,row.orderName)" :disabled="!row.production || row.mdeclareResult!=null">{{ row.mdeclareResult==null?'未申报': row.mdeclareResult}}</el-button>
+            </el-tooltip>
           </template>
         </el-table-column>
         <el-table-column label="评估人员申报提成" align="center"
@@ -1441,6 +1443,9 @@ export default {
       removeCookie("MajorMineList-hiddenLabels");
       location.reload();
     },
+    toCommission(productionNo,orderId,businessId,productionId,orderName){
+        this.$router.push(`/income/major/declare/market?productionNo=${productionNo}&orderId=${orderId}&businessId=${businessId}&productionId=${productionId}&orderName=${orderName}`)
+    }
   }
 
 }