|  | @@ -35,13 +35,6 @@
 | 
											
												
													
														|  |              :disabled="disabled || selectionList.length == 0"
 |  |              :disabled="disabled || selectionList.length == 0"
 | 
											
												
													
														|  |              v-if="selectTab === 1"
 |  |              v-if="selectTab === 1"
 | 
											
												
													
														|  |            >生成账单</el-button>
 |  |            >生成账单</el-button>
 | 
											
												
													
														|  | -    <!--      <el-button
 |  | 
 | 
											
												
													
														|  | -            type="info"
 |  | 
 | 
											
												
													
														|  | -            size="small"
 |  | 
 | 
											
												
													
														|  | -            @click.stop="rowAdd"
 |  | 
 | 
											
												
													
														|  | -            :disabled="disabled || selectionList.length == 0"
 |  | 
 | 
											
												
													
														|  | -            v-if="selectTab === 1"
 |  | 
 | 
											
												
													
														|  | -          >查看生成记录</el-button>-->
 |  | 
 | 
											
												
													
														|  |            <el-button
 |  |            <el-button
 | 
											
												
													
														|  |              type="warning"
 |  |              type="warning"
 | 
											
												
													
														|  |              size="small"
 |  |              size="small"
 | 
											
										
											
												
													
														|  | @@ -50,13 +43,6 @@
 | 
											
												
													
														|  |              :disabled="disabled || selectionList.length == 0"
 |  |              :disabled="disabled || selectionList.length == 0"
 | 
											
												
													
														|  |              v-if="selectTab === 2"
 |  |              v-if="selectTab === 2"
 | 
											
												
													
														|  |            >申请付费</el-button>
 |  |            >申请付费</el-button>
 | 
											
												
													
														|  | -     <!--     <el-button
 |  | 
 | 
											
												
													
														|  | -            type="info"
 |  | 
 | 
											
												
													
														|  | -            size="small"
 |  | 
 | 
											
												
													
														|  | -            @click.stop="rowAdd"
 |  | 
 | 
											
												
													
														|  | -            :disabled="disabled || selectionList.length == 0"
 |  | 
 | 
											
												
													
														|  | -            v-if="selectTab === 2"
 |  | 
 | 
											
												
													
														|  | -          >查看申请记录</el-button>-->
 |  | 
 | 
											
												
													
														|  |          </template>
 |  |          </template>
 | 
											
												
													
														|  |          <template slot="menu" slot-scope="{ row, index }">
 |  |          <template slot="menu" slot-scope="{ row, index }">
 | 
											
												
													
														|  |            <el-button
 |  |            <el-button
 | 
											
										
											
												
													
														|  | @@ -84,7 +70,7 @@
 | 
											
												
													
														|  |              v-model="row.corpId"
 |  |              v-model="row.corpId"
 | 
											
												
													
														|  |              :cropIndex="index"
 |  |              :cropIndex="index"
 | 
											
												
													
														|  |              @getCorpData="getCorpData"
 |  |              @getCorpData="getCorpData"
 | 
											
												
													
														|  | -            corpType="KH"
 |  | 
 | 
											
												
													
														|  | 
 |  | +            corpType="KG"
 | 
											
												
													
														|  |            ></crop-select>
 |  |            ></crop-select>
 | 
											
												
													
														|  |            <span v-else>{{ row.corpName }}</span>
 |  |            <span v-else>{{ row.corpName }}</span>
 | 
											
												
													
														|  |          </template>
 |  |          </template>
 | 
											
										
											
												
													
														|  | @@ -104,6 +90,7 @@
 | 
											
												
													
														|  |            <el-input
 |  |            <el-input
 | 
											
												
													
														|  |              v-if="row.$cellEdit"
 |  |              v-if="row.$cellEdit"
 | 
											
												
													
														|  |              v-model="row.price"
 |  |              v-model="row.price"
 | 
											
												
													
														|  | 
 |  | +            placeholder="请输入"
 | 
											
												
													
														|  |              size="small"
 |  |              size="small"
 | 
											
												
													
														|  |              oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
 |  |              oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
 | 
											
												
													
														|  |              @input="countChange(row)"
 |  |              @input="countChange(row)"
 | 
											
										
											
												
													
														|  | @@ -115,6 +102,7 @@
 | 
											
												
													
														|  |              v-if="row.$cellEdit"
 |  |              v-if="row.$cellEdit"
 | 
											
												
													
														|  |              v-model="row.quantity"
 |  |              v-model="row.quantity"
 | 
											
												
													
														|  |              size="small"
 |  |              size="small"
 | 
											
												
													
														|  | 
 |  | +            placeholder="请输入"
 | 
											
												
													
														|  |              oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
 |  |              oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
 | 
											
												
													
														|  |              @input="countChange(row)"
 |  |              @input="countChange(row)"
 | 
											
												
													
														|  |            ></el-input>
 |  |            ></el-input>
 | 
											
										
											
												
													
														|  | @@ -141,7 +129,7 @@
 | 
											
												
													
														|  |              filterable
 |  |              filterable
 | 
											
												
													
														|  |              allow-create
 |  |              allow-create
 | 
											
												
													
														|  |              default-first-option
 |  |              default-first-option
 | 
											
												
													
														|  | -            placeholder="请输入"
 |  | 
 | 
											
												
													
														|  | 
 |  | +            placeholder="请选择"
 | 
											
												
													
														|  |              size="small"
 |  |              size="small"
 | 
											
												
													
														|  |              @change="currencyChange(row)"
 |  |              @change="currencyChange(row)"
 | 
											
												
													
														|  |            >
 |  |            >
 | 
											
										
											
												
													
														|  | @@ -160,7 +148,7 @@
 | 
											
												
													
														|  |              v-if="row.$cellEdit"
 |  |              v-if="row.$cellEdit"
 | 
											
												
													
														|  |              v-model="row.unit"
 |  |              v-model="row.unit"
 | 
											
												
													
														|  |              filterable
 |  |              filterable
 | 
											
												
													
														|  | -            placeholder="请输入"
 |  | 
 | 
											
												
													
														|  | 
 |  | +            placeholder="请选择"
 | 
											
												
													
														|  |              size="small"
 |  |              size="small"
 | 
											
												
													
														|  |            >
 |  |            >
 | 
											
												
													
														|  |              <el-option
 |  |              <el-option
 | 
											
										
											
												
													
														|  | @@ -217,7 +205,7 @@
 | 
											
												
													
														|  |            </avue-crud>
 |  |            </avue-crud>
 | 
											
												
													
														|  |          </el-col>
 |  |          </el-col>
 | 
											
												
													
														|  |        </el-row>
 |  |        </el-row>
 | 
											
												
													
														|  | -      <span slot="footer" class="dialog-footer">
 |  | 
 | 
											
												
													
														|  | 
 |  | +      <div class="dialogButton">
 | 
											
												
													
														|  |          <el-button @click="feeDialog = false">取 消</el-button>
 |  |          <el-button @click="feeDialog = false">取 消</el-button>
 | 
											
												
													
														|  |          <el-button
 |  |          <el-button
 | 
											
												
													
														|  |            type="primary"
 |  |            type="primary"
 | 
											
										
											
												
													
														|  | @@ -226,7 +214,7 @@
 | 
											
												
													
														|  |          >
 |  |          >
 | 
											
												
													
														|  |            导入
 |  |            导入
 | 
											
												
													
														|  |          </el-button>
 |  |          </el-button>
 | 
											
												
													
														|  | -      </span>
 |  | 
 | 
											
												
													
														|  | 
 |  | +      </div>
 | 
											
												
													
														|  |      </el-dialog>
 |  |      </el-dialog>
 | 
											
												
													
														|  |      <crop-dialog ref="cropDialog" @importCorp="importCorp"></crop-dialog>
 |  |      <crop-dialog ref="cropDialog" @importCorp="importCorp"></crop-dialog>
 | 
											
												
													
														|  |    </div>
 |  |    </div>
 | 
											
										
											
												
													
														|  | @@ -357,6 +345,22 @@ export default {
 | 
											
												
													
														|  |      cropDialog,
 |  |      cropDialog,
 | 
											
												
													
														|  |      ApplyPayment
 |  |      ApplyPayment
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  | 
 |  | +  watch: {
 | 
											
												
													
														|  | 
 |  | +    orderFeesList: function(rows) {
 | 
											
												
													
														|  | 
 |  | +      this.allData = rows ? rows : [];
 | 
											
												
													
														|  | 
 |  | +      if(this.allData.length !=0){
 | 
											
												
													
														|  | 
 |  | +        this.data_one=this.allData.filter(item=>item.feesType === 1)  //应收
 | 
											
												
													
														|  | 
 |  | +        this.data_two=this.allData.filter(item=>item.feesType === 2)  //应付
 | 
											
												
													
														|  | 
 |  | +        if(this.isUpdata){
 | 
											
												
													
														|  | 
 |  | +          if(this.selectTab == 1){
 | 
											
												
													
														|  | 
 |  | +            this.feeData = this.data_one
 | 
											
												
													
														|  | 
 |  | +          }else{
 | 
											
												
													
														|  | 
 |  | +            this.feeData = this.data_two
 | 
											
												
													
														|  | 
 |  | +          }
 | 
											
												
													
														|  | 
 |  | +        }
 | 
											
												
													
														|  | 
 |  | +      }
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +  },
 | 
											
												
													
														|  |    methods: {
 |  |    methods: {
 | 
											
												
													
														|  |      //选择费用
 |  |      //选择费用
 | 
											
												
													
														|  |      selectValue(value,row){
 |  |      selectValue(value,row){
 | 
											
										
											
												
													
														|  | @@ -488,7 +492,8 @@ export default {
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      //新增
 |  |      //新增
 | 
											
												
													
														|  |      rowAdd() {
 |  |      rowAdd() {
 | 
											
												
													
														|  | -      this.$refs.cropDialog.init();
 |  | 
 | 
											
												
													
														|  | 
 |  | +      this.$refs.feeCrud.rowCellAdd();
 | 
											
												
													
														|  | 
 |  | +      // this.$refs.cropDialog.init();
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      onLoad(page) {
 |  |      onLoad(page) {
 | 
											
												
													
														|  |        this.loading = true;
 |  |        this.loading = true;
 | 
											
										
											
												
													
														|  | @@ -593,6 +598,9 @@ export default {
 | 
											
												
													
														|  |              if(this.selectionList[i].corpId != this.selectionList[0].corpId){
 |  |              if(this.selectionList[i].corpId != this.selectionList[0].corpId){
 | 
											
												
													
														|  |                return this.$message.error('批量操作结算单位必须一致')
 |  |                return this.$message.error('批量操作结算单位必须一致')
 | 
											
												
													
														|  |              }
 |  |              }
 | 
											
												
													
														|  | 
 |  | +            if(this.selectionList[i].isCheck == 1){
 | 
											
												
													
														|  | 
 |  | +              return this.$message.error('批量操作结算单位必须一致b')
 | 
											
												
													
														|  | 
 |  | +            }
 | 
											
												
													
														|  |            }
 |  |            }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |            this.isUpdata = false
 |  |            this.isUpdata = false
 | 
											
										
											
												
													
														|  | @@ -622,6 +630,22 @@ export default {
 | 
											
												
													
														|  |                applyLoan(data).then(res=>{
 |  |                applyLoan(data).then(res=>{
 | 
											
												
													
														|  |                  if(res.data.success){
 |  |                  if(res.data.success){
 | 
											
												
													
														|  |                    this.$message.success("操作成功!")
 |  |                    this.$message.success("操作成功!")
 | 
											
												
													
														|  | 
 |  | +                  //跳转付费申请页面
 | 
											
												
													
														|  | 
 |  | +                  if(this.$store.getters.pqStatus){
 | 
											
												
													
														|  | 
 |  | +                    this.$alert("无法自动跳,因为付费申请页面已存在!", "温馨提示", {
 | 
											
												
													
														|  | 
 |  | +                      confirmButtonText: "确定",
 | 
											
												
													
														|  | 
 |  | +                      type: 'warning',
 | 
											
												
													
														|  | 
 |  | +                      callback: action => {
 | 
											
												
													
														|  | 
 |  | +                      }
 | 
											
												
													
														|  | 
 |  | +                    });
 | 
											
												
													
														|  | 
 |  | +                  }else{
 | 
											
												
													
														|  | 
 |  | +                    //关闭一下存在的列表页  跳转
 | 
											
												
													
														|  | 
 |  | +                    this.$router.$avueRouter.closeTag('/financialManagement/paymentRequest/index');
 | 
											
												
													
														|  | 
 |  | +                    this.$router.push({
 | 
											
												
													
														|  | 
 |  | +                      path: "/financialManagement/paymentRequest/index",
 | 
											
												
													
														|  | 
 |  | +                      query: {params: res.data.data.id},
 | 
											
												
													
														|  | 
 |  | +                    });
 | 
											
												
													
														|  | 
 |  | +                  }
 | 
											
												
													
														|  |                  }
 |  |                  }
 | 
											
												
													
														|  |                }).finally(()=>{
 |  |                }).finally(()=>{
 | 
											
												
													
														|  |                  this.isUpdata = true
 |  |                  this.isUpdata = true
 | 
											
										
											
												
													
														|  | @@ -685,22 +709,6 @@ export default {
 | 
											
												
													
														|  |        }
 |  |        }
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  | -  watch: {
 |  | 
 | 
											
												
													
														|  | -    orderFeesList: function(rows) {
 |  | 
 | 
											
												
													
														|  | -      this.allData = rows ? rows : [];
 |  | 
 | 
											
												
													
														|  | -      if(this.allData.length !=0){
 |  | 
 | 
											
												
													
														|  | -        this.data_one=this.allData.filter(item=>item.feesType === 1)  //应收
 |  | 
 | 
											
												
													
														|  | -        this.data_two=this.allData.filter(item=>item.feesType === 2)  //应付
 |  | 
 | 
											
												
													
														|  | -        if(this.isUpdata){
 |  | 
 | 
											
												
													
														|  | -          if(this.selectTab == 1){
 |  | 
 | 
											
												
													
														|  | -            this.feeData = this.data_one
 |  | 
 | 
											
												
													
														|  | -          }else{
 |  | 
 | 
											
												
													
														|  | -            this.feeData = this.data_two
 |  | 
 | 
											
												
													
														|  | -          }
 |  | 
 | 
											
												
													
														|  | -        }
 |  | 
 | 
											
												
													
														|  | -      }
 |  | 
 | 
											
												
													
														|  | -    },
 |  | 
 | 
											
												
													
														|  | -  }
 |  | 
 | 
											
												
													
														|  |  };
 |  |  };
 | 
											
												
													
														|  |  </script>
 |  |  </script>
 | 
											
												
													
														|  |  
 |  |  
 |