|
|
|
@ -51,7 +51,7 @@ |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' |
|
|
|
|
import { myValidate, checkHanzi, ismoney, checkName } from '@/utils/utilFunction.js' |
|
|
|
|
import { myValidate, checkHanzi, ismoney, checkName, autoPlay, autoPlay2 } from '@/utils/utilFunction.js' |
|
|
|
|
export default{ |
|
|
|
|
name:'', |
|
|
|
|
props:{}, |
|
|
|
@ -93,61 +93,67 @@ export default{ |
|
|
|
|
trigger: 'blur' |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
}, |
|
|
|
|
myTable2: { |
|
|
|
|
100: { |
|
|
|
|
prop: 'shroffAccount', |
|
|
|
|
type: '1' |
|
|
|
|
}, |
|
|
|
|
101: { |
|
|
|
|
prop: 'payeeName', |
|
|
|
|
type: '1' |
|
|
|
|
}, |
|
|
|
|
102: { |
|
|
|
|
prop: 'remark', |
|
|
|
|
type: '1' |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
myTable: { |
|
|
|
|
95: { |
|
|
|
|
prop: 'userName', |
|
|
|
|
type: '3' |
|
|
|
|
}, |
|
|
|
|
97: { |
|
|
|
|
prop: 'goldLogo', |
|
|
|
|
type: '1' |
|
|
|
|
}, |
|
|
|
|
98: { |
|
|
|
|
prop: 'money', |
|
|
|
|
type: '3' |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
this.$refs.money.focus() |
|
|
|
|
const parentId = '0,5,26,57,65' |
|
|
|
|
const cardArr = { |
|
|
|
|
94: 'nomCurrentTransferCard', |
|
|
|
|
99: 'nomCurrentTransferPassword' |
|
|
|
|
} |
|
|
|
|
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cardArr) |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
//提交表单 |
|
|
|
|
submitForm(){ |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
const formList = [] |
|
|
|
|
let nomCurrentTransferCard = sessionStorage.getItem('nomCurrentTransferCard') |
|
|
|
|
let nomCurrentTransferCards = JSON.parse(nomCurrentTransferCard); |
|
|
|
|
let nomCurrentTransferPassword = sessionStorage.getItem('nomCurrentTransferPassword') |
|
|
|
|
let nomCurrentTransferPasswords = JSON.parse(nomCurrentTransferPassword); |
|
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
|
// 验证通过逻辑写在这 |
|
|
|
|
if (nomCurrentTransferCards && nomCurrentTransferCards.length > 0 && nomCurrentTransferPasswords){ |
|
|
|
|
if (this.form.userName){formList.push({"emptyOne": "16", "emptyTwo": this.form.userName, "operationIds": "26,57,64,93", "type": "3"})}//客户姓名 |
|
|
|
|
if (this.form.currency){formList.push({"emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "26,57,64,87","type": "3"})}//币种 |
|
|
|
|
if (this.form.remark){formList.push({"emptyOne": "16", "emptyTwo": this.form.remark, "operationIds": "26,57,64,93", "type": "3"})}//摘要 |
|
|
|
|
formList.push( |
|
|
|
|
{"emptyOne": "9", "emptyTwo": this.form.goldLogo, "operationIds": "26,57,64,88", "type": "3"},//钞汇标识 |
|
|
|
|
{"emptyOne": "7", "emptyTwo": this.form.money, "operationIds": "26,57,64,86", "type": "3"},//金额 |
|
|
|
|
{"emptyOne": "15", "emptyTwo": this.form.shroffAccount, "operationIds": "26,57,64,90", "type": "3"},//收款卡号 |
|
|
|
|
{"emptyOne": "15", "emptyTwo": this.form.payeeName, "operationIds": "26,57,64,92", "type": "3"},//收款人名称 |
|
|
|
|
) |
|
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}else{ |
|
|
|
|
this.$message.error('有必填项未填哦~'); |
|
|
|
|
const cards = [ |
|
|
|
|
{ |
|
|
|
|
94: nomCurrentTransferCard |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
99: nomCurrentTransferPassword |
|
|
|
|
} |
|
|
|
|
] |
|
|
|
|
const parentId = '0,5,26,57,65' |
|
|
|
|
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards) |
|
|
|
|
}, this.$refs)); |
|
|
|
|
// if(this.form.goldLogo && this.form.money && this.form.shroffAccount && this.form.payeeName){ |
|
|
|
|
// if (this.form.userName){formList.push({"emptyOne": "16", "emptyTwo": this.form.userName, "operationIds": "26,57,64,93", "type": "3"})}//客户姓名 |
|
|
|
|
// if (this.form.currency){formList.push({"emptyOne": "8", "emptyTwo": this.form.currency, "operationIds": "26,57,64,87","type": "3"})}//币种 |
|
|
|
|
// if (this.form.remark){formList.push({"emptyOne": "16", "emptyTwo": this.form.remark, "operationIds": "26,57,64,93", "type": "3"})}//摘要 |
|
|
|
|
// formList.push( |
|
|
|
|
// {"emptyOne": "9", "emptyTwo": this.form.goldLogo, "operationIds": "26,57,64,88", "type": "3"},//钞汇标识 |
|
|
|
|
// {"emptyOne": "7", "emptyTwo": this.form.money, "operationIds": "26,57,64,86", "type": "3"},//金额 |
|
|
|
|
// {"emptyOne": "15", "emptyTwo": this.form.shroffAccount, "operationIds": "26,57,64,90", "type": "3"},//收款卡号 |
|
|
|
|
// {"emptyOne": "15", "emptyTwo": this.form.payeeName, "operationIds": "26,57,64,92", "type": "3"},//收款人名称 |
|
|
|
|
// ) |
|
|
|
|
// sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
// this.$message({ |
|
|
|
|
// message: '提交成功', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
// }else{ |
|
|
|
|
// this.$message.error('有必填项未填哦~'); |
|
|
|
|
// } |
|
|
|
|
}, |
|
|
|
|
popUp(text) { |
|
|
|
|
this.$store.commit('system/changePop',{show:true,text, id: 65}) |
|
|
|
|