|
|
|
@ -20,7 +20,7 @@ |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="签发日期" prop="signDate"> |
|
|
|
|
<el-date-picker |
|
|
|
|
v-model="signDate" |
|
|
|
|
v-model="form.signDate" |
|
|
|
|
type="date" |
|
|
|
|
placeholder="选择日期" |
|
|
|
|
ref="signDate"> |
|
|
|
@ -100,7 +100,7 @@ |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { mapState } from 'vuex' |
|
|
|
|
import { myValidate, ismoney, checkHanzi, checkName } from '@/utils/utilFunction.js' |
|
|
|
|
import { myValidate, ismoney, checkHanzi, checkName, autoPlay, autoPlay2 } from '@/utils/utilFunction.js' |
|
|
|
|
import { vercustomer } from '@/utils/verify.js' |
|
|
|
|
export default { |
|
|
|
|
name: 'index', |
|
|
|
@ -166,53 +166,51 @@ export default { |
|
|
|
|
|
|
|
|
|
], |
|
|
|
|
myTable: { |
|
|
|
|
// transoutNum: '', // 转出账号 |
|
|
|
|
// certificateNum: '', // 凭证号码 |
|
|
|
|
// customerName: '', // 客户姓名 |
|
|
|
|
// transinNum: '', // 转入账号 |
|
|
|
|
// transinName: '', // 转入户名 |
|
|
|
|
// money: '', // 金额 |
|
|
|
|
247: { |
|
|
|
|
prop: 'username', |
|
|
|
|
257: { |
|
|
|
|
prop: 'transoutNum', |
|
|
|
|
type: '3' |
|
|
|
|
}, |
|
|
|
|
248: { |
|
|
|
|
258: { |
|
|
|
|
prop: 'customerName', |
|
|
|
|
type: '3' |
|
|
|
|
}, |
|
|
|
|
249: { |
|
|
|
|
prop: 'voucherNum', |
|
|
|
|
259: { |
|
|
|
|
prop: 'certificateNum', |
|
|
|
|
type: '3' |
|
|
|
|
}, |
|
|
|
|
254: { |
|
|
|
|
prop: 'money', |
|
|
|
|
265: { |
|
|
|
|
prop: 'transinNum', |
|
|
|
|
type: '3' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
myTable2: { |
|
|
|
|
250: { |
|
|
|
|
prop: 'issueDate', |
|
|
|
|
266: { |
|
|
|
|
prop: 'transinName', |
|
|
|
|
type: '3' |
|
|
|
|
}, |
|
|
|
|
251: { |
|
|
|
|
prop: 'currency', |
|
|
|
|
267: { |
|
|
|
|
prop: 'money', |
|
|
|
|
type: '3' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
252: { |
|
|
|
|
prop: 'currencyMark', |
|
|
|
|
type: '3' |
|
|
|
|
myTable2: { |
|
|
|
|
260: { |
|
|
|
|
prop: 'certificateType', // 1 |
|
|
|
|
type: '1' |
|
|
|
|
}, |
|
|
|
|
255: { |
|
|
|
|
prop: 'payWay', |
|
|
|
|
type: '3' |
|
|
|
|
261: { |
|
|
|
|
prop: 'signDate', |
|
|
|
|
type: '1' |
|
|
|
|
}, |
|
|
|
|
253: { |
|
|
|
|
prop: 'certificateType', |
|
|
|
|
type: '3' |
|
|
|
|
262: { |
|
|
|
|
prop: 'currencyType', // 1 |
|
|
|
|
type: '1' |
|
|
|
|
}, |
|
|
|
|
256: { |
|
|
|
|
prop: 'abstract', |
|
|
|
|
type: '3' |
|
|
|
|
263: { |
|
|
|
|
prop: 'currencyMark', // 1 |
|
|
|
|
type: '1' |
|
|
|
|
}, |
|
|
|
|
264: { |
|
|
|
|
prop: 'payWay', // 1 |
|
|
|
|
type: '1' |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -222,29 +220,12 @@ export default { |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
this.$refs.transoutNum.focus() |
|
|
|
|
this.getFormData() |
|
|
|
|
}, |
|
|
|
|
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 |
|
|
|
|
for (var i = 0; i < list.length; i++) { |
|
|
|
|
const { answerId, emptyTwo } = list[i] |
|
|
|
|
if (answerId === '242') {this.form.currency = emptyTwo} |
|
|
|
|
else if (answerId === '243') {this.form.currencyMark = emptyTwo} |
|
|
|
|
else if (answerId === '245') {this.form.interestRate = emptyTwo;} |
|
|
|
|
else if (answerId === '246') {this.form.abstract = emptyTwo} |
|
|
|
|
else { |
|
|
|
|
this.form[this.myTable[answerId].prop] = emptyTwo |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
const parentId = '0,5,27,227' |
|
|
|
|
autoPlay2(parentId, this.form, this.myTable2, this.myTable) |
|
|
|
|
}, |
|
|
|
|
submitForm() { |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
@ -252,39 +233,8 @@ export default { |
|
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
|
// 验证通过逻辑写在这 |
|
|
|
|
this.visible = true; |
|
|
|
|
let formList = []; |
|
|
|
|
const parentId = '0,5,27,225' |
|
|
|
|
if(this.form.currency){ |
|
|
|
|
formList.push({ "answerId":'242', "emptyOne": "19", "emptyTwo": this.form.currency, "operationIds": parentId + ',242', "type": "1" })//客户号 |
|
|
|
|
} |
|
|
|
|
if(this.form.currencyMark){ |
|
|
|
|
formList.push({ "answerId":'243', "emptyOne": "7", "emptyTwo": this.form.currencyMark, "operationIds": parentId + ',243', "type": "3" })//统计代码 |
|
|
|
|
} |
|
|
|
|
if(this.form.interestRate){ |
|
|
|
|
formList.push( {"answerId":'245',"emptyOne": "5", "emptyTwo": this.form.interestRate, "operationIds": parentId + ",245", "type": "3"})//外汇核准号 |
|
|
|
|
} |
|
|
|
|
if(this.form.abstract){ |
|
|
|
|
formList.push( {"answerId":'246',"emptyOne": "5", "emptyTwo": this.form.abstract, "operationIds": parentId + ",246", "type": "3"})//外汇证号 |
|
|
|
|
} |
|
|
|
|
let tmpIndex = 100; |
|
|
|
|
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)=>{ |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
const parentId = '0,5,27,227' |
|
|
|
|
autoPlay(parentId, this.form, this.myTable2, this.myTable, projectId, startTime) |
|
|
|
|
}, this.$refs)); |
|
|
|
|
}, |
|
|
|
|
ismoney: ismoney, |
|
|
|
|