|
|
@ -90,8 +90,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import { mapState } from 'vuex' |
|
|
|
import { mapState } from 'vuex' |
|
|
|
import { myValidate, ismoney, checkName, checkHanzi } from '@/utils/utilFunction.js' |
|
|
|
import { myValidate, ismoney, checkName, checkHanzi, autoPlay, autoPlay2 } from '@/utils/utilFunction.js' |
|
|
|
import { vercustomer, verrate } from '@/utils/verify.js' |
|
|
|
import { vercustomer, verrate } from '@/utils/verify.js' |
|
|
|
|
|
|
|
import { addOperation, getOperation } from '@/api/http'; |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'index', |
|
|
|
name: 'index', |
|
|
|
components:{}, |
|
|
|
components:{}, |
|
|
@ -146,6 +147,51 @@ export default { |
|
|
|
second:[// 二级卡数组 |
|
|
|
second:[// 二级卡数组 |
|
|
|
|
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
|
|
|
|
myTable: { |
|
|
|
|
|
|
|
247: { |
|
|
|
|
|
|
|
prop: 'username', |
|
|
|
|
|
|
|
type: '3' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
248: { |
|
|
|
|
|
|
|
prop: 'customerName', |
|
|
|
|
|
|
|
type: '3' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
249: { |
|
|
|
|
|
|
|
prop: 'voucherNum', |
|
|
|
|
|
|
|
type: '3' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
254: { |
|
|
|
|
|
|
|
prop: 'money', |
|
|
|
|
|
|
|
type: '3' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
myTable2: { |
|
|
|
|
|
|
|
250: { |
|
|
|
|
|
|
|
prop: 'issueDate', |
|
|
|
|
|
|
|
type: '3' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
251: { |
|
|
|
|
|
|
|
prop: 'currency', |
|
|
|
|
|
|
|
type: '3' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
252: { |
|
|
|
|
|
|
|
prop: 'currencyMark', |
|
|
|
|
|
|
|
type: '3' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
255: { |
|
|
|
|
|
|
|
prop: 'payWay', |
|
|
|
|
|
|
|
type: '3' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
253: { |
|
|
|
|
|
|
|
prop: 'certificateType', |
|
|
|
|
|
|
|
type: '3' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
256: { |
|
|
|
|
|
|
|
prop: 'abstract', |
|
|
|
|
|
|
|
type: '3' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
created() { |
|
|
@ -153,17 +199,92 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
this.$refs.username.focus() |
|
|
|
this.$refs.username.focus() |
|
|
|
|
|
|
|
this.getFormData() |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
getFormData(){ |
|
|
|
|
|
|
|
// let param= { |
|
|
|
|
|
|
|
// parentId: '0,5,27,226' |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// getOperation(param).then((data)=>{ |
|
|
|
|
|
|
|
// // console.log(data) |
|
|
|
|
|
|
|
// if(data.status == 200) { |
|
|
|
|
|
|
|
// var list = data.data.judgmentRuleReqs |
|
|
|
|
|
|
|
// const tmpObj = Object.assign(this.myTable, this.myTable2) |
|
|
|
|
|
|
|
// for (var i = 0; i < list.length; i++) { |
|
|
|
|
|
|
|
// const { answerId, emptyTwo } = list[i] |
|
|
|
|
|
|
|
// this.form[tmpObj[answerId].prop] = emptyTwo |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// }).catch((error)=>{ |
|
|
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
const parentId = '0,5,27,226' |
|
|
|
|
|
|
|
autoPlay2(parentId, this.form, this.myTable2, this.myTable) |
|
|
|
|
|
|
|
}, |
|
|
|
submitForm() { |
|
|
|
submitForm() { |
|
|
|
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
// 验证通过逻辑写在这 |
|
|
|
// 验证通过逻辑写在这 |
|
|
|
this.$message({ |
|
|
|
this.visible = true; |
|
|
|
message: '验证成功', |
|
|
|
const formList = [] |
|
|
|
center: true |
|
|
|
const parentId = '0,5,27,226' |
|
|
|
}); |
|
|
|
autoPlay(parentId, this.form, this.myTable2, this.myTable, projectId, startTime) |
|
|
|
}, this.$refs)); |
|
|
|
// let tmpIndex = 100; |
|
|
|
|
|
|
|
// for(const key in this.myTable2) { |
|
|
|
|
|
|
|
// const { prop, type } = this.myTable2[key] |
|
|
|
|
|
|
|
// if(this.form[prop]){ |
|
|
|
|
|
|
|
// formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": this.form[prop], "operationIds": parentId + ',' + key, type }) |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// for(const key in this.myTable) { |
|
|
|
|
|
|
|
// const { prop, type } = this.myTable[key] |
|
|
|
|
|
|
|
// formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": this.form[prop], "operationIds": parentId + ',' + key, type }) |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// let params= { |
|
|
|
|
|
|
|
// parentId, |
|
|
|
|
|
|
|
// lcJudgmentRuleReq:formList, |
|
|
|
|
|
|
|
// projectId:+projectId, |
|
|
|
|
|
|
|
// startTime:startTime, |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// addOperation(params).then((data)=>{ |
|
|
|
|
|
|
|
// this.$message({ |
|
|
|
|
|
|
|
// message: '提交成功', |
|
|
|
|
|
|
|
// type: 'success' |
|
|
|
|
|
|
|
// }); |
|
|
|
|
|
|
|
// }).catch((error)=>{ |
|
|
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 因为没说emptyOne是多少 |
|
|
|
|
|
|
|
// let tmpIndex = 100; |
|
|
|
|
|
|
|
// for(const key in this.myTable2) { |
|
|
|
|
|
|
|
// const { prop, type } = this.myTable[key] |
|
|
|
|
|
|
|
// if(this.form[prop]){ |
|
|
|
|
|
|
|
// formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": this.form[prop], "operationIds": parentId + ',' + key, type }) |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// for(const key in this.myTable) { |
|
|
|
|
|
|
|
// const { prop, type } = this.myTable[key] |
|
|
|
|
|
|
|
// formList.push({ answerId: key + '', "emptyOne": '' + tmpIndex++, "emptyTwo": this.form[prop], "operationIds": parentId + ',' + key, type }) |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// let params= { |
|
|
|
|
|
|
|
// parentId, |
|
|
|
|
|
|
|
// lcJudgmentRuleReq:formList, |
|
|
|
|
|
|
|
// projectId:+projectId, |
|
|
|
|
|
|
|
// startTime:startTime, |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// addOperation(params).then((data)=>{ |
|
|
|
|
|
|
|
// this.$message({ |
|
|
|
|
|
|
|
// message: '提交成功', |
|
|
|
|
|
|
|
// type: 'success' |
|
|
|
|
|
|
|
// }); |
|
|
|
|
|
|
|
// }).catch((error)=>{ |
|
|
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, this.$refs)); |
|
|
|
}, |
|
|
|
}, |
|
|
|
ismoney: ismoney, |
|
|
|
ismoney: ismoney, |
|
|
|
checkName: checkName, |
|
|
|
checkName: checkName, |
|
|
|