|
|
|
@ -15,10 +15,10 @@ |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="金额" required> |
|
|
|
|
<el-input :value="form.money" @input="val => ismoney(val, form, 'money')"></el-input> |
|
|
|
|
<el-input :value="form.money" @input="val => ismoney(val, form, 'money')" ref="money"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="收款卡号" required> |
|
|
|
|
<el-input v-model="form.shroffAccount"></el-input> |
|
|
|
|
<el-input v-model="form.shroffAccount" ref="shroffAccount"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
@ -26,8 +26,8 @@ |
|
|
|
|
<el-input v-model="form.userName" disabled></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="钞汇标识" required> |
|
|
|
|
<el-select disabled v-model="form.goldLogo" placeholder="请选择"> |
|
|
|
|
<el-option label="钞户" value="钞户"> </el-option> |
|
|
|
|
<el-select disabled v-model="form.goldLogo" placeholder="请选择" ref="goldLogo"> |
|
|
|
|
<el-option label="钞户" value="钞户" ref="goldLogo"> </el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="支取密码" required> |
|
|
|
@ -36,7 +36,7 @@ |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="收款人名称" required prop="payeeName" :rules="rules.payeeName" > |
|
|
|
|
<el-input v-model="form.payeeName"></el-input> |
|
|
|
|
<el-input v-model="form.payeeName" ref="payeeName"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="21" :offset="1"> |
|
|
|
@ -50,7 +50,6 @@ |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import { EventBus } from "@/utils/event-bus.js"; |
|
|
|
|
import { vername } from '@/utils/verify.js' |
|
|
|
|
import { checkRequired, ismoney } from '@/utils/utilFunction.js' |
|
|
|
|
export default{ |
|
|
|
@ -74,34 +73,59 @@ export default{ |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
|
|
|
|
|
this.$refs.money.focus() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
//提交表单 |
|
|
|
|
submitForm(){ |
|
|
|
|
let ruleReqs = sessionStorage.getItem('ruleReqs') |
|
|
|
|
let formList = JSON.parse(ruleReqs); |
|
|
|
|
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('有必填项未填哦~'); |
|
|
|
|
} |
|
|
|
|
let ruleReqs = sessionStorage.getItem('ruleReqs') |
|
|
|
|
let formList = JSON.parse(ruleReqs); |
|
|
|
|
const requiredField = { |
|
|
|
|
goldLogo: '客户姓名', |
|
|
|
|
money: '金额', |
|
|
|
|
shroffAccount: '收款卡号', |
|
|
|
|
payeeName: '收款人名称' |
|
|
|
|
} |
|
|
|
|
const judgeRef = checkRequired(this.form, requiredField) |
|
|
|
|
if(judgeRef === '') { |
|
|
|
|
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.$refs[judgeRef].focus(); |
|
|
|
|
} |
|
|
|
|
// 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('有必填项未填哦~'); |
|
|
|
|
// } |
|
|
|
|
}, |
|
|
|
|
popUo() { |
|
|
|
|
EventBus.$emit("changeShowGoods", true); |
|
|
|
|
popUp(text) { |
|
|
|
|
this.$store.commit('system/changePop',{show:true,text}) |
|
|
|
|
}, |
|
|
|
|
ismoney: ismoney |
|
|
|
|
}, |
|
|
|
|