|
@@ -35,13 +35,6 @@
|
|
|
:disabled="disabled || selectionList.length == 0"
|
|
|
v-if="selectTab === 1"
|
|
|
>生成账单</el-button>
|
|
|
- <!-- <el-button
|
|
|
- type="info"
|
|
|
- size="small"
|
|
|
- @click.stop="rowAdd"
|
|
|
- :disabled="disabled || selectionList.length == 0"
|
|
|
- v-if="selectTab === 1"
|
|
|
- >查看生成记录</el-button>-->
|
|
|
<el-button
|
|
|
type="warning"
|
|
|
size="small"
|
|
@@ -50,13 +43,6 @@
|
|
|
:disabled="disabled || selectionList.length == 0"
|
|
|
v-if="selectTab === 2"
|
|
|
>申请付费</el-button>
|
|
|
- <!-- <el-button
|
|
|
- type="info"
|
|
|
- size="small"
|
|
|
- @click.stop="rowAdd"
|
|
|
- :disabled="disabled || selectionList.length == 0"
|
|
|
- v-if="selectTab === 2"
|
|
|
- >查看申请记录</el-button>-->
|
|
|
</template>
|
|
|
<template slot="menu" slot-scope="{ row, index }">
|
|
|
<el-button
|
|
@@ -84,7 +70,7 @@
|
|
|
v-model="row.corpId"
|
|
|
:cropIndex="index"
|
|
|
@getCorpData="getCorpData"
|
|
|
- corpType="KH"
|
|
|
+ corpType="KG"
|
|
|
></crop-select>
|
|
|
<span v-else>{{ row.corpName }}</span>
|
|
|
</template>
|
|
@@ -104,6 +90,7 @@
|
|
|
<el-input
|
|
|
v-if="row.$cellEdit"
|
|
|
v-model="row.price"
|
|
|
+ placeholder="请输入"
|
|
|
size="small"
|
|
|
oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
|
|
|
@input="countChange(row)"
|
|
@@ -115,6 +102,7 @@
|
|
|
v-if="row.$cellEdit"
|
|
|
v-model="row.quantity"
|
|
|
size="small"
|
|
|
+ placeholder="请输入"
|
|
|
oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d).*$/, "$1.$2")'
|
|
|
@input="countChange(row)"
|
|
|
></el-input>
|
|
@@ -141,7 +129,7 @@
|
|
|
filterable
|
|
|
allow-create
|
|
|
default-first-option
|
|
|
- placeholder="请输入"
|
|
|
+ placeholder="请选择"
|
|
|
size="small"
|
|
|
@change="currencyChange(row)"
|
|
|
>
|
|
@@ -160,7 +148,7 @@
|
|
|
v-if="row.$cellEdit"
|
|
|
v-model="row.unit"
|
|
|
filterable
|
|
|
- placeholder="请输入"
|
|
|
+ placeholder="请选择"
|
|
|
size="small"
|
|
|
>
|
|
|
<el-option
|
|
@@ -217,7 +205,7 @@
|
|
|
</avue-crud>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
+ <div class="dialogButton">
|
|
|
<el-button @click="feeDialog = false">取 消</el-button>
|
|
|
<el-button
|
|
|
type="primary"
|
|
@@ -226,7 +214,7 @@
|
|
|
>
|
|
|
导入
|
|
|
</el-button>
|
|
|
- </span>
|
|
|
+ </div>
|
|
|
</el-dialog>
|
|
|
<crop-dialog ref="cropDialog" @importCorp="importCorp"></crop-dialog>
|
|
|
</div>
|
|
@@ -357,6 +345,22 @@ export default {
|
|
|
cropDialog,
|
|
|
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: {
|
|
|
//选择费用
|
|
|
selectValue(value,row){
|
|
@@ -488,7 +492,8 @@ export default {
|
|
|
},
|
|
|
//新增
|
|
|
rowAdd() {
|
|
|
- this.$refs.cropDialog.init();
|
|
|
+ this.$refs.feeCrud.rowCellAdd();
|
|
|
+ // this.$refs.cropDialog.init();
|
|
|
},
|
|
|
onLoad(page) {
|
|
|
this.loading = true;
|
|
@@ -593,6 +598,9 @@ export default {
|
|
|
if(this.selectionList[i].corpId != this.selectionList[0].corpId){
|
|
|
return this.$message.error('批量操作结算单位必须一致')
|
|
|
}
|
|
|
+ if(this.selectionList[i].isCheck == 1){
|
|
|
+ return this.$message.error('批量操作结算单位必须一致b')
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
this.isUpdata = false
|
|
@@ -622,6 +630,22 @@ export default {
|
|
|
applyLoan(data).then(res=>{
|
|
|
if(res.data.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(()=>{
|
|
|
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>
|
|
|
|