Commit 409a5640 authored by Zhang Xiaojie's avatar Zhang Xiaojie

贷款产品新增,修改的请求函数参数类型更改

parent 03e4d4fa
...@@ -20,15 +20,15 @@ export default class LoanProductService { ...@@ -20,15 +20,15 @@ export default class LoanProductService {
guarantee_type: eGuaranteeType guarantee_type: eGuaranteeType
inst_name: string inst_name: string
loan_type: eProductType loan_type: eProductType
max_amount: string max_amount: number
max_date: string max_date: number
product_name: string product_name: string
products: string products: string
rate_lower: string rate_lower: number
rate_upper: string rate_upper: number
submit_cond: string submit_cond: string
min_date: string min_date: number
min_amount: string min_amount: number
} }
) { ) {
return baseAxios({ return baseAxios({
...@@ -46,15 +46,15 @@ export default class LoanProductService { ...@@ -46,15 +46,15 @@ export default class LoanProductService {
guarantee_type: eGuaranteeType guarantee_type: eGuaranteeType
inst_name: string inst_name: string
product_type: eProductType product_type: eProductType
max_amount: string max_amount: number
max_date: string max_date: number
product_name: string product_name: string
products: string products: string
rate_lower: string rate_lower: number
rate_upper: string rate_upper: number
submit_cond: string submit_cond: string
min_amount: string min_amount: number
min_date: string min_date: number
uuid:string uuid:string
} }
) { ) {
......
...@@ -7,16 +7,16 @@ export interface iListItem { ...@@ -7,16 +7,16 @@ export interface iListItem {
features: string, features: string,
guarantee_type: number, guarantee_type: number,
inst_name: string, inst_name: string,
max_amount: string, max_amount: number,
max_date: string, max_date: number,
min_amount: string, min_amount: number,
min_date: string, min_date: number,
product_name: string, product_name: string,
product_status: number, product_status: number,
product_type: number, product_type: number,
products: string, products: string,
rate_lower: string, rate_lower: number,
rate_upper: string, rate_upper: number,
submit_cond: string, submit_cond: string,
update_at: number, update_at: number,
uuid: string uuid: string
......
...@@ -155,12 +155,12 @@ export default Vue.extend({ ...@@ -155,12 +155,12 @@ export default Vue.extend({
form: { form: {
name: "", name: "",
orgnization: "", orgnization: "",
startTime: 0 as number | string, startTime: 0,
endTime: 0 as number | string, endTime: 0 ,
interstMax: 0 as number | string, interstMax: 0,
interstMin: 0 as number | string, interstMin: 0,
limitMax: 0 as number | string, limitMax: 0 as number,
limitMin: 0 as number | string, limitMin: 0,
guarantee: eGuaranteeType.credit, guarantee: eGuaranteeType.credit,
type: eProductType.company, type: eProductType.company,
introduction: "", introduction: "",
...@@ -238,16 +238,16 @@ export default Vue.extend({ ...@@ -238,16 +238,16 @@ export default Vue.extend({
features: this.form.characteristic, features: this.form.characteristic,
guarantee_type: this.form.guarantee as eGuaranteeType, guarantee_type: this.form.guarantee as eGuaranteeType,
inst_name: this.form.orgnization, inst_name: this.form.orgnization,
max_amount: this.form.limitMax.toString(), max_amount: this.form.limitMax,
max_date: this.form.endTime.toString(), max_date: this.form.endTime,
product_name: this.form.name, product_name: this.form.name,
products: this.form.introduction, products: this.form.introduction,
product_type: this.form.type, product_type: this.form.type,
rate_lower: this.form.interstMin.toString(), rate_lower: this.form.interstMin,
rate_upper: this.form.interstMax.toString(), rate_upper: this.form.interstMax,
submit_cond: this.form.submissionCon, submit_cond: this.form.submissionCon,
min_amount: this.form.limitMin.toString(), min_amount: this.form.limitMin,
min_date: this.form.startTime.toString(), min_date: this.form.startTime,
uuid: this.uuid, uuid: this.uuid,
}) })
.then((ret) => { .then((ret) => {
...@@ -267,15 +267,15 @@ export default Vue.extend({ ...@@ -267,15 +267,15 @@ export default Vue.extend({
features: this.form.characteristic, features: this.form.characteristic,
guarantee_type: this.form.guarantee as eGuaranteeType, guarantee_type: this.form.guarantee as eGuaranteeType,
inst_name: this.form.orgnization, inst_name: this.form.orgnization,
max_amount: this.form.limitMax.toString(), max_amount: this.form.limitMax,
max_date: this.form.endTime.toString(), max_date: this.form.endTime,
min_amount: this.form.limitMin.toString(), min_amount: this.form.limitMin,
min_date: this.form.startTime.toString(), min_date: this.form.startTime,
loan_type: this.form.type as eProductType, loan_type: this.form.type as eProductType,
product_name: this.form.name, product_name: this.form.name,
products: this.form.introduction, products: this.form.introduction,
rate_lower: this.form.interstMin.toString(), rate_lower: this.form.interstMin,
rate_upper: this.form.interstMax.toString(), rate_upper: this.form.interstMax,
submit_cond: this.form.submissionCon, submit_cond: this.form.submissionCon,
}) })
.then((ret) => { .then((ret) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment