liuhj 6 days ago
parent
commit
3428331325
1 changed files with 8 additions and 5 deletions
  1. 8 5
      src/components/Finance/RvsReport.vue

+ 8 - 5
src/components/Finance/RvsReport.vue

@@ -11,7 +11,10 @@
                     </el-input>
                     <el-button @click="datechange" type="primary">查询</el-button>
                 </div>
-                <el-button @click="Skeclick" type="primary">生 成</el-button>
+                <div>
+                    <el-button style="margin-bottom: 10px;" @click="Skeclick(2)" type="primary">按搜索日期生成</el-button>
+                    <el-button style="margin-bottom: 10px;" @click="Skeclick(3)" type="primary">标注团组颜色生成</el-button>
+                </div>
             </div>
             <div class="hjbox">
                 应收合计:{{total_fr}} 已收合计:{{total_pr}} 余款合计:{{total_balance}}
@@ -141,7 +144,7 @@ export default {
     },
     methods:{
         changRed({ row }) {
-            if (row.frPrice == 0) { // 变颜色的条件
+            if (row.isChangeColorRed) { // 变颜色的条件
                 if(row.isChangeColor){
                     return {
                         color: "#ff9c02"  // 这个return的就是样式 可以是color 也可以是backgroundColor
@@ -166,10 +169,10 @@ export default {
             return y+'-'+m+'-'+d
         },
         //生成
-        Skeclick(){
+        Skeclick(val){
             var beginDt=this.getdate(this.value2[0]);
             var endDt=this.getdate(this.value2[1]);
-            var requestType=2;
+            // var requestType=2;
 
             if(beginDt=='NaN-NaN-NaN'||endDt=='NaN-NaN-NaN'){
                 this.$message.error('请选择时间段');
@@ -187,7 +190,7 @@ export default {
                     portType: 1,
                     beginDt: beginDt,
                     endDt: endDt,
-                    requestType: requestType,
+                    requestType: val,
                 }
             }).then(function (res) {
                 // console.log(res)