|
@@ -19,16 +19,32 @@
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
<el-form-item label="融资金额" prop="zfrAmount">
|
|
|
- <el-input v-model="form.zfrAmount" placeholder="请输入融资金额" />
|
|
|
+ <el-input v-model="form.zfrAmount" placeholder="请输入融资金额" style="width: 284px;"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="融资账户" prop="zfrCollectionAccount">
|
|
|
- <el-input v-model="form.zfrCollectionAccount" placeholder="请输入融资账户" />
|
|
|
+ <el-form-item label="融资账户" prop="zfrCollectionAccount" v-if="this.form.zfpcrLoantype != '0'">
|
|
|
+ <el-input v-model="form.zfrCollectionAccount" placeholder="请输入融资账户" style="width: 284px;"/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="承诺还款日" prop="zfrRepaymentDate" v-if="false">
|
|
|
+ <el-input v-model="form.zfrRepaymentDate" placeholder="请输入承诺还款日" style="width: 284px;"/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="融资利率" prop="zfrRate" v-if="false">
|
|
|
+ <el-input v-model="form.zfrRate" placeholder="请输入融资利率" style="width: 284px;"/>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="融资放款方式" prop="zfpcrLoantype" label-width="90px" v-if="false">
|
|
|
+ <el-input v-model="form.zfpcrLoantype" placeholder="请输入融资账户" style="width: 284px;"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
-
|
|
|
|
|
|
</el-form>
|
|
|
<div slot="footer" class="dialog-footer">
|
|
@@ -39,10 +55,10 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { listRecord, getRecord, delRecord, addRecord, updateRecord } from "@/api/service/financeRecord/record";
|
|
|
+import { listRecord, getRecord, delRecord, addRecord, updateRecord ,listBillInf} from "@/api/service/financeRecord/record";
|
|
|
import { listFinanceInf } from "@/api/common/financeInf";
|
|
|
export default {
|
|
|
- name: "finaceRecord",
|
|
|
+ name: "financeRecord",
|
|
|
components: {
|
|
|
},
|
|
|
data() {
|
|
@@ -63,6 +79,8 @@ export default {
|
|
|
recordList: [],
|
|
|
//融信编号数据
|
|
|
financeInfList: [],
|
|
|
+ //应收账款
|
|
|
+ billInfList: [],
|
|
|
// 弹出层标题
|
|
|
title: "",
|
|
|
// 是否显示弹出层
|
|
@@ -89,20 +107,11 @@ export default {
|
|
|
// 表单校验
|
|
|
rules: {
|
|
|
zfrFinanceId: [
|
|
|
- { required: true, message: "融信ID(zc_finance_inf.zfi_id)不能为空", trigger: "blur" }
|
|
|
+ { required: true, message: "融信编号不能为空", trigger: "blur" }
|
|
|
],
|
|
|
zfrAmount: [
|
|
|
{ required: true, message: "融资金额不能为空", trigger: "blur" }
|
|
|
],
|
|
|
- zfrRate: [
|
|
|
- { required: true, message: "融资利率不能为空", trigger: "blur" }
|
|
|
- ],
|
|
|
- zfrHandler: [
|
|
|
- { required: true, message: "经办人不能为空", trigger: "blur" }
|
|
|
- ],
|
|
|
- zfrStatus: [
|
|
|
- { required: true, message: "状态不能为空", trigger: "blur" }
|
|
|
- ],
|
|
|
}
|
|
|
};
|
|
|
},
|
|
@@ -114,7 +123,6 @@ export default {
|
|
|
getFinanceInf(){
|
|
|
this.loading = true;
|
|
|
listFinanceInf().then(response => {
|
|
|
- debugger
|
|
|
this.financeInfList = response.data;
|
|
|
this.loading = false;
|
|
|
});
|
|
@@ -138,7 +146,7 @@ export default {
|
|
|
zfrLoanDate: null,
|
|
|
zfrApplyAmount: null,
|
|
|
zfrApplyType: null,
|
|
|
- zfrStatus: "0",
|
|
|
+ zfrStatus: "00",
|
|
|
zfrApproveStt: null,
|
|
|
zfrProfitSpare1: null,
|
|
|
zfrProfitSpare2: null,
|
|
@@ -172,27 +180,20 @@ export default {
|
|
|
this.single = selection.length!==1
|
|
|
this.multiple = !selection.length
|
|
|
},
|
|
|
- /** 新增按钮操作 */
|
|
|
- handleAdd() {
|
|
|
- this.reset();
|
|
|
- this.open = true;
|
|
|
- this.title = "添加融资记录";
|
|
|
- },
|
|
|
- /** 修改按钮操作 */
|
|
|
- handleUpdate(row) {
|
|
|
- this.reset();
|
|
|
- const zfrId = row.zfrId || this.ids
|
|
|
- getRecord(zfrId).then(response => {
|
|
|
- this.form = response.data;
|
|
|
- this.open = true;
|
|
|
- this.title = "修改融资记录";
|
|
|
- });
|
|
|
- },
|
|
|
/* 融信编号赋值融资金额 */
|
|
|
amount(item) {
|
|
|
this.$set(this.form, "zfrAmount", item.zfiAmount);
|
|
|
- // this.form.zfrAmount = item.zfiAmount;
|
|
|
- },
|
|
|
+ this.$set(this.form, "zfrRepaymentDate", item.zfiExpireDate);
|
|
|
+ this.$set(this.form, "zfrRate", item.zfpcrRate);
|
|
|
+ this.$set(this.form, "zfpcrLoantype", item.zfpcrLoantype);
|
|
|
+ if(item.zfiId){
|
|
|
+ listBillInf().then(response => {
|
|
|
+ debugger
|
|
|
+ this.financeInfList = response.data;
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
/** 提交按钮 */
|
|
|
submitForm() {
|
|
|
this.$refs["form"].validate(valid => {
|
|
@@ -213,20 +214,6 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- /** 删除按钮操作 */
|
|
|
- handleDelete(row) {
|
|
|
- const zfrIds = row.zfrId || this.ids;
|
|
|
- this.$confirm('是否确认删除融资记录编号为"' + zfrIds + '"的数据项?', "警告", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(function() {
|
|
|
- return delRecord(zfrIds);
|
|
|
- }).then(() => {
|
|
|
- this.getList();
|
|
|
- this.msgSuccess("删除成功");
|
|
|
- })
|
|
|
- },
|
|
|
/** 导出按钮操作 */
|
|
|
handleExport() {
|
|
|
this.download('sc-service/record/export', {
|