|
|
@@ -32,18 +32,20 @@ |
|
|
|
</van-col> |
|
|
|
<van-col span="18"> |
|
|
|
<p v-show="processList.乡镇审批==1">乡镇审批</p> |
|
|
|
<p v-show="processList.乡镇审批==2">乡镇审批</p> |
|
|
|
<p v-show="processList.乡镇审批==3">乡镇审批</p> |
|
|
|
<p v-show="processList.乡镇审批==2" class="textBlue">乡镇审批</p> |
|
|
|
<p v-show="processList.乡镇审批==3" class="textRed">乡镇审批</p> |
|
|
|
<van-row> |
|
|
|
<van-col span="10" style="padding: 0;" v-if="processList.待申请==2"> |
|
|
|
<van-col span="24" style="padding: 0;" v-if="processList.待申请==2"> |
|
|
|
<p v-show="processList.乡镇审批==1">审批人:{{processList.乡镇审批人}}</p> |
|
|
|
<p v-show="processList.乡镇审批==2">审批人:{{processList.乡镇审批人}}</p> |
|
|
|
<p v-show="processList.乡镇审批==3">审批人:{{processList.乡镇审批人}}</p> |
|
|
|
<p v-show="processList.乡镇审批==2" class="textBlue">审批人:{{processList.乡镇审批人}}</p> |
|
|
|
<p v-show="processList.乡镇审批==3" class="textRed">审批人:{{processList.乡镇审批人}}</p> |
|
|
|
</van-col> |
|
|
|
<van-col span="14" style="padding: 0;" v-if="processList.待申请==2"> |
|
|
|
</van-row> |
|
|
|
<van-row> |
|
|
|
<van-col span="24" style="padding: 0;" v-if="processList.待申请==2"> |
|
|
|
<p v-show="processList.乡镇审批==1">审批时间:{{processList.乡镇审批时间}}</p> |
|
|
|
<p v-show="processList.乡镇审批==2">审批时间:{{processList.乡镇审批时间}}</p> |
|
|
|
<p v-show="processList.乡镇审批==3">审批时间:{{processList.乡镇审批时间}}</p> |
|
|
|
<p v-show="processList.乡镇审批==2" class="textBlue">审批时间:{{processList.乡镇审批时间}}</p> |
|
|
|
<p v-show="processList.乡镇审批==3" class="textRed">审批时间:{{processList.乡镇审批时间}}</p> |
|
|
|
</van-col> |
|
|
|
</van-row> |
|
|
|
</van-col> |
|
|
@@ -56,18 +58,21 @@ |
|
|
|
</van-col> |
|
|
|
<van-col span="18"> |
|
|
|
<p v-show="processList.区县审批==1">区县审批</p> |
|
|
|
<p v-show="processList.区县审批==2">区县审批</p> |
|
|
|
<p v-show="processList.区县审批==3">区县审批</p> |
|
|
|
<p v-show="processList.区县审批==2" class="textBlue">区县审批</p> |
|
|
|
<p v-show="processList.区县审批==3" class="textRed">区县审批</p> |
|
|
|
<van-row> |
|
|
|
<van-col span="10" style="padding: 0;"> |
|
|
|
<van-col span="24" style="padding: 0;"> |
|
|
|
<p v-show="processList.区县审批==1">审批人:{{processList.区县审批人}}</p> |
|
|
|
<p v-show="processList.区县审批==2">审批人:{{processList.区县审批人}}</p> |
|
|
|
<p v-show="processList.区县审批==3">审批人:{{processList.区县审批人}}</p> |
|
|
|
<p v-show="processList.区县审批==2" class="textBlue">审批人:{{processList.区县审批人}}</p> |
|
|
|
<p v-show="processList.区县审批==3" class="textRed">审批人:{{processList.区县审批人}}</p> |
|
|
|
</van-col> |
|
|
|
<van-col span="14" style="padding: 0;"> |
|
|
|
</van-row> |
|
|
|
<van-row> |
|
|
|
|
|
|
|
<van-col span="24" style="padding: 0;"> |
|
|
|
<p v-show="processList.区县审批==1">审批时间:{{processList.区县审批时间}}</p> |
|
|
|
<p v-show="processList.区县审批==2">审批时间:{{processList.区县审批时间}}</p> |
|
|
|
<p v-show="processList.区县审批==3">审批时间:{{processList.区县审批时间}}</p> |
|
|
|
<p v-show="processList.区县审批==2" class="textBlue">审批时间:{{processList.区县审批时间}}</p> |
|
|
|
<p v-show="processList.区县审批==3" class="textRed">审批时间:{{processList.区县审批时间}}</p> |
|
|
|
</van-col> |
|
|
|
</van-row> |
|
|
|
</van-col> |
|
|
@@ -80,8 +85,8 @@ |
|
|
|
</van-col> |
|
|
|
<van-col span="18"> |
|
|
|
<p v-show="processList.支付状态==1">待支付</p> |
|
|
|
<p v-show="processList.支付状态==2">支付成功</p> |
|
|
|
<p v-show="processList.支付状态==3">支付异常</p> |
|
|
|
<p v-show="processList.支付状态==2" class="textBlue">支付成功</p> |
|
|
|
<p v-show="processList.支付状态==3" class="textRed">支付异常</p> |
|
|
|
<van-row> |
|
|
|
<van-col span="24" style="padding: 0;"> |
|
|
|
<p v-show="processList.支付状态==2||processList.支付状态==3">支付时间:{{processList.支付时间}}</p> |
|
|
@@ -97,8 +102,8 @@ |
|
|
|
</van-col> |
|
|
|
<van-col span="18"> |
|
|
|
<p v-show="processList.入账状态==1">未入账</p> |
|
|
|
<p v-show="processList.入账状态==2">入账成功</p> |
|
|
|
<p v-show="processList.入账状态==3">入账异常</p> |
|
|
|
<p v-show="processList.入账状态==2" class="textBlue">入账成功</p> |
|
|
|
<p v-show="processList.入账状态==3" class="textRed">入账异常</p> |
|
|
|
<van-row> |
|
|
|
<van-col span="24" style="padding: 0;"> |
|
|
|
<p v-show="processList.入账状态==2||processList.入账状态==3">入账时间:{{processList.入账时间}}</p> |
|
|
@@ -113,224 +118,66 @@ |
|
|
|
<script> |
|
|
|
import { |
|
|
|
getTransferProcess, |
|
|
|
getTransfer, |
|
|
|
getProjectto, |
|
|
|
getCashProcess |
|
|
|
queryTransferDetail |
|
|
|
} from "@/api/onlineHome/bankAgriculture/paymentApproval"; |
|
|
|
export default { |
|
|
|
name: "approvalProcess", |
|
|
|
data() { |
|
|
|
return { |
|
|
|
// 工程项目关联信息 |
|
|
|
capitalExpenditureOpen:false, |
|
|
|
isAudit:false, |
|
|
|
//收款方记录 |
|
|
|
chargeItme: [], |
|
|
|
// 资金支出类别 |
|
|
|
capitalExpenditureTypeOptions: [], |
|
|
|
bankTypeList: [], |
|
|
|
accountTypeList: [], |
|
|
|
transferTypeList:[], |
|
|
|
projectFundTypeOptions:[], |
|
|
|
expands: [], |
|
|
|
// 审核意见默认值 |
|
|
|
pass: "true", |
|
|
|
comment: "同意", |
|
|
|
getRowKeys(row) { |
|
|
|
return row.id; |
|
|
|
}, |
|
|
|
// 表单参数 |
|
|
|
form: { |
|
|
|
id: null, |
|
|
|
orderId: null, |
|
|
|
payer: null, |
|
|
|
payerAccount: null, |
|
|
|
expenditureAmount: null, |
|
|
|
remark: null, |
|
|
|
transferStatus: "0", |
|
|
|
auditStatus: "0", |
|
|
|
paymentState: "1", |
|
|
|
bankPriority: "0", |
|
|
|
clientPriority: "0", |
|
|
|
createBy: null, |
|
|
|
createTime: null, |
|
|
|
updateBy: null, |
|
|
|
updateTime: null, |
|
|
|
}, |
|
|
|
// 关联工程项目信息 |
|
|
|
projectForm:{ |
|
|
|
projectId:null, |
|
|
|
projectName:null, |
|
|
|
projectContractor:null, |
|
|
|
projectAmount:null, |
|
|
|
projectBillNum:null, |
|
|
|
projectFundType:null, |
|
|
|
outId:null, |
|
|
|
ynType:'1' |
|
|
|
}, |
|
|
|
auditStatus:false, |
|
|
|
processList:{}, |
|
|
|
form:{} |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.getDicts("capital_expenditure_type").then(response => { |
|
|
|
this.capitalExpenditureTypeOptions = response.data; |
|
|
|
for(let j of this.capitalExpenditureTypeOptions){ |
|
|
|
if(j.dictValue==this.form.capitalExpenditureType){ |
|
|
|
this.form.capitalExpenditureType = j.dictLabel |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
this.getDicts("bank_type").then(response => { |
|
|
|
this.bankTypeList = response.data; |
|
|
|
for(let i of this.chargeItme){ |
|
|
|
for(let j of this.bankTypeList){ |
|
|
|
if(j.dictValue==i.bankType){ |
|
|
|
i.bankType = j.dictLabel |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
this.getDicts("bank_account_type").then(response => { |
|
|
|
this.accountTypeList = response.data; |
|
|
|
}); |
|
|
|
this.getDicts("transfer_type").then(response => { |
|
|
|
this.transferTypeList = response.data; |
|
|
|
for(let j of this.transferTypeList){ |
|
|
|
if(j.dictValue==this.form.transferType){ |
|
|
|
this.form.transferType = j.dictLabel |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
this.form = this.formList; |
|
|
|
if(this.form.cashType==1){ |
|
|
|
this.form.cashType = "现金提现" |
|
|
|
}else if(this.form.cashType==2){ |
|
|
|
this.form.cashType = "现金使用" |
|
|
|
}else if(this.form.cashType==3){ |
|
|
|
this.form.cashType = "汇票支出" |
|
|
|
} |
|
|
|
|
|
|
|
this.chargeItme = this.lists; |
|
|
|
if (this.formType == "audit") { |
|
|
|
// 如果是审核表单 |
|
|
|
this.auditStatus=true; |
|
|
|
this.isAudit=true; |
|
|
|
}else{ |
|
|
|
this.isAudit=false; |
|
|
|
if(this.form.transferType!=null){ |
|
|
|
this.getTransferProcess(this.form.id) |
|
|
|
}else{ |
|
|
|
this.getCashProcess(this.form.id) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(this.form.capitalExpenditureType==2){ |
|
|
|
this.capitalExpenditureOpen=true |
|
|
|
let params |
|
|
|
if(this.form.transferType!=null){ |
|
|
|
params = { |
|
|
|
'outId':this.form.id, |
|
|
|
'ynType':'1' |
|
|
|
} |
|
|
|
}else { |
|
|
|
params = { |
|
|
|
'outId':this.form.id, |
|
|
|
'ynType':'2' |
|
|
|
} |
|
|
|
} |
|
|
|
getProjectto(params).then(res => { |
|
|
|
this.projectForm = res.data |
|
|
|
this.getDicts("project_fund_type").then(response => { |
|
|
|
this.projectFundTypeOptions = response.data; |
|
|
|
for(let j of this.projectFundTypeOptions){ |
|
|
|
if(j.dictValue==this.projectForm.projectFundType){ |
|
|
|
this.projectForm.projectFundType = j.dictLabel |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
this.capitalExpenditureOpen=false |
|
|
|
} |
|
|
|
// this.getCashProcess(this.form.id) |
|
|
|
this.handleUpdate(this.$route.query.id); |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
//查询审批进程 |
|
|
|
getTransferProcess(id){ |
|
|
|
getTransferProcess(id).then(res => { |
|
|
|
this.processList = res.data.processSchedule |
|
|
|
console.log(res.data.processSchedule) |
|
|
|
this.processList.乡镇审批时间 = this.processList.乡镇审批时间?this.format(this.processList.乡镇审批时间, "yyyy-MM-dd HH:mm:ss"):"" |
|
|
|
this.processList.区县审批时间 = this.processList.区县审批时间?this.format(this.processList.区县审批时间, "yyyy-MM-dd HH:mm:ss"):"" |
|
|
|
this.processList.支付状态时间 = this.processList.支付状态时间?this.format(this.processList.支付状态时间, "yyyy-MM-dd HH:mm:ss"):"" |
|
|
|
this.processList.入账状态时间 = this.processList.入账状态时间?this.format(this.processList.入账状态时间, "yyyy-MM-dd HH:mm:ss"):"" |
|
|
|
}) |
|
|
|
}, |
|
|
|
//查询审批进程 |
|
|
|
getCashProcess(id){ |
|
|
|
getCashProcess(id).then(res => { |
|
|
|
this.processList = res.data.processSchedule |
|
|
|
this.processList.乡镇审批时间 = this.processList.乡镇审批时间?this.format(this.processList.乡镇审批时间, "yyyy-MM-dd HH:mm:ss"):"" |
|
|
|
this.processList.区县审批时间 = this.processList.区县审批时间?this.format(this.processList.区县审批时间, "yyyy-MM-dd HH:mm:ss"):"" |
|
|
|
this.processList.支付状态时间 = this.processList.支付状态时间?this.format(this.processList.支付状态时间, "yyyy-MM-dd HH:mm:ss"):"" |
|
|
|
this.processList.入账状态时间 = this.processList.入账状态时间?this.format(this.processList.入账状态时间, "yyyy-MM-dd HH:mm:ss"):"" |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 取消按钮 |
|
|
|
cancel() { |
|
|
|
this.recordOpen = false; |
|
|
|
this.reset(); |
|
|
|
this.$emit("refreshList"); |
|
|
|
}, |
|
|
|
// 表单重置 |
|
|
|
reset() { |
|
|
|
this.form = { |
|
|
|
id: null, |
|
|
|
orderId: null, |
|
|
|
payer: null, |
|
|
|
payerAccount: null, |
|
|
|
expenditureAmount: null, |
|
|
|
remark: null, |
|
|
|
transferStatus: "0", |
|
|
|
auditStatus: "0", |
|
|
|
paymentState: "1", |
|
|
|
bankPriority: "0", |
|
|
|
clientPriority: "0", |
|
|
|
createBy: null, |
|
|
|
createTime: null, |
|
|
|
updateBy: null, |
|
|
|
updateTime: null, |
|
|
|
}; |
|
|
|
this.resetForm("form"); |
|
|
|
}, |
|
|
|
/** 提交按钮 */ |
|
|
|
submitForm() { |
|
|
|
const data = { |
|
|
|
taskId: this.form.taskId, |
|
|
|
instanceId: this.form.instanceId, |
|
|
|
variables: JSON.stringify({ |
|
|
|
comment: this.comment, |
|
|
|
pass: this.pass, |
|
|
|
//"formData": this.row, |
|
|
|
}), |
|
|
|
}; |
|
|
|
return request({ |
|
|
|
url: "/activiti/process/complete", |
|
|
|
method: "post", |
|
|
|
params: data, |
|
|
|
}).then((response) => { |
|
|
|
if(response.code==200 && response.msg=="操作成功"){ |
|
|
|
this.msgSuccess("操作成功"); |
|
|
|
} else{ |
|
|
|
this.msgSuccess("操作失败"); |
|
|
|
handleUpdate(id) { |
|
|
|
getTransfer(id).then((response) => { |
|
|
|
this.form = response.data; |
|
|
|
this.processList = {} |
|
|
|
this.getTransferProcess(this.$route.query.id); |
|
|
|
if(this.form.capitalExpenditureType==2){ |
|
|
|
this.capitalExpenditureOpen = true |
|
|
|
let param={ |
|
|
|
'outId' : this.form.id, |
|
|
|
'ynType' : '1' |
|
|
|
} |
|
|
|
getProjectto(param).then(res => { |
|
|
|
this.projectForm = res.data |
|
|
|
this.projectForm.projectFundType+="" |
|
|
|
queryTransferDetail(id).then((r) => { |
|
|
|
this.chargeItme = r.rows; |
|
|
|
this.length = this.chargeItme.length; |
|
|
|
this.detailTotal = r.total; |
|
|
|
this.loading = false; |
|
|
|
}); |
|
|
|
}) |
|
|
|
}else{ |
|
|
|
this.capitalExpenditureOpen = false |
|
|
|
queryTransferDetail(id).then((r) => { |
|
|
|
this.chargeItme = r.rows; |
|
|
|
this.length = this.chargeItme.length; |
|
|
|
this.detailTotal = r.total; |
|
|
|
this.loading = false; |
|
|
|
}); |
|
|
|
} |
|
|
|
this.$emit("getList"); |
|
|
|
this.$emit("refreshList"); |
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
pass: function (val) { |
|
|
|
this.comment = val === "true" ? "同意" : "驳回"; |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
} |
|
|
|