|
|
|
@ -1,79 +1,133 @@ |
|
|
|
|
// 存款 |
|
|
|
|
<template> |
|
|
|
|
<div class="wrap wrap2"> |
|
|
|
|
<MyTitle :titleArr="['同城交互', '同城提出']"/> |
|
|
|
|
<MyTitle :titleArr="['同城交互', '同城提出']" /> |
|
|
|
|
|
|
|
|
|
<!-- 存款 --> |
|
|
|
|
<div class="body"> |
|
|
|
|
<el-row :gutter="20" style="margin: 0"> |
|
|
|
|
<el-form ref="form" :model="form" label-width="150px" :rules="rules"> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="本行收款账号" prop="shroffAccountNumber"> |
|
|
|
|
<el-input @blur="getBlur" :value="form.shroffAccountNumber" @input="val => checkHanzi(val, form, 'shroffAccountNumber')" ref="shroffAccountNumber"></el-input> |
|
|
|
|
<el-row :gutter="20" |
|
|
|
|
style="margin: 0"> |
|
|
|
|
<el-form ref="form" |
|
|
|
|
:model="form" |
|
|
|
|
label-width="150px" |
|
|
|
|
:rules="rules"> |
|
|
|
|
<el-col :span="10" |
|
|
|
|
:offset="1"> |
|
|
|
|
<el-form-item label="本行收款账号" |
|
|
|
|
prop="shroffAccountNumber"> |
|
|
|
|
<el-input @blur="getBlur" |
|
|
|
|
:value="form.shroffAccountNumber" |
|
|
|
|
@input="val => checkHanzi(val, form, 'shroffAccountNumber')" |
|
|
|
|
ref="shroffAccountNumber"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="币种" prop="currency"> |
|
|
|
|
<el-select v-model.trim="form.currency" placeholder="请选择" ref="currency"> |
|
|
|
|
<el-option v-for="item in getSelectList.currencySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> |
|
|
|
|
<el-form-item label="币种" |
|
|
|
|
prop="currency"> |
|
|
|
|
<el-select v-model.trim="form.currency" |
|
|
|
|
placeholder="请选择" |
|
|
|
|
ref="currency"> |
|
|
|
|
<el-option v-for="item in getSelectList.currencySelectList" |
|
|
|
|
:label="item.options" |
|
|
|
|
:value="item.itemId" |
|
|
|
|
:key="item.itemId"> </el-option> |
|
|
|
|
<!-- <el-option label="CNY人民币" value="12"></el-option> --> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="提出场次" prop="proposeTime"> |
|
|
|
|
<el-input :value="form.proposeTime" @input="val => inputListen(val, form, 'proposeTime')" ref="proposeTime"></el-input> |
|
|
|
|
<el-form-item label="提出场次" |
|
|
|
|
prop="proposeTime"> |
|
|
|
|
<el-input :value="form.proposeTime" |
|
|
|
|
@input="val => inputListen(val, form, 'proposeTime')" |
|
|
|
|
ref="proposeTime"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="他行收款账号" prop="otherAccountNumber"> |
|
|
|
|
<el-input :value="form.otherAccountNumber" @input="val => checkHanzi(val, form, 'otherAccountNumber')" ref="otherAccountNumber"></el-input> |
|
|
|
|
<el-form-item label="他行收款账号" |
|
|
|
|
prop="otherAccountNumber"> |
|
|
|
|
<el-input :value="form.otherAccountNumber" |
|
|
|
|
@input="val => checkHanzi(val, form, 'otherAccountNumber')" |
|
|
|
|
ref="otherAccountNumber"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="票据类型" prop="billType"> |
|
|
|
|
<el-select v-model.trim="form.billType" placeholder="请选择" ref="billType"> |
|
|
|
|
<el-option v-for="item in getSelectList.billTypeSelect" :label="item.options" :key="item.itemId" :value="item.itemId" ></el-option> |
|
|
|
|
<el-form-item label="票据类型" |
|
|
|
|
prop="billType"> |
|
|
|
|
<el-select v-model.trim="form.billType" |
|
|
|
|
placeholder="请选择" |
|
|
|
|
ref="billType"> |
|
|
|
|
<el-option v-for="item in getSelectList.billTypeSelect" |
|
|
|
|
:label="item.options" |
|
|
|
|
:key="item.itemId" |
|
|
|
|
:value="item.itemId"></el-option> |
|
|
|
|
<!-- <el-option :label="119" :key="item.itemId" :value="item.itemId" ></el-option> --> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="出票日期" prop="drawBillDate"> |
|
|
|
|
<el-form-item label="出票日期" |
|
|
|
|
prop="drawBillDate"> |
|
|
|
|
|
|
|
|
|
<el-date-picker |
|
|
|
|
v-model.trim="form.drawBillDate" |
|
|
|
|
<el-date-picker v-model.trim="form.drawBillDate" |
|
|
|
|
type="date" |
|
|
|
|
placeholder="选择日期" |
|
|
|
|
ref="drawBillDate" |
|
|
|
|
format="yyyy-MM-dd" |
|
|
|
|
value-format="yyyy-MM-dd" |
|
|
|
|
> |
|
|
|
|
value-format="yyyy-MM-dd"> |
|
|
|
|
</el-date-picker> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="10" :offset="1"> |
|
|
|
|
<el-form-item label="本行收款户名" prop="shroffAccountUsername"> |
|
|
|
|
<el-input @focus="getFocus" disabled :value="form.shroffAccountUsername" @input="val => checkName(val, form, 'shroffAccountUsername')" ref="shroffAccountUsername"></el-input> |
|
|
|
|
<el-col :span="10" |
|
|
|
|
:offset="1"> |
|
|
|
|
<el-form-item label="本行收款户名" |
|
|
|
|
prop="shroffAccountUsername"> |
|
|
|
|
<el-input @focus="getFocus" |
|
|
|
|
disabled |
|
|
|
|
:value="form.shroffAccountUsername" |
|
|
|
|
@input="val => checkName(val, form, 'shroffAccountUsername')" |
|
|
|
|
ref="shroffAccountUsername"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="金额" prop="money"> |
|
|
|
|
<el-input :value="form.money" @input="val => ismoney(val, form, 'money')" ref="money"></el-input> |
|
|
|
|
<el-form-item label="金额" |
|
|
|
|
prop="money"> |
|
|
|
|
<el-input :value="form.money" |
|
|
|
|
@input="val => ismoney(val, form, 'money')" |
|
|
|
|
ref="money"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="提出日期" prop="proposeDate"> |
|
|
|
|
<el-form-item label="提出日期" |
|
|
|
|
prop="proposeDate"> |
|
|
|
|
<!-- <el-date-picker |
|
|
|
|
v-model.trim="form.proposeDate" |
|
|
|
|
type="date" |
|
|
|
|
placeholder="选择日期" |
|
|
|
|
ref="proposeDate"> |
|
|
|
|
</el-date-picker> --> |
|
|
|
|
<el-input :value="form.proposeDate" disabled ref="proposeDate"></el-input> |
|
|
|
|
<el-input :value="form.proposeDate" |
|
|
|
|
disabled |
|
|
|
|
ref="proposeDate"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="他行收款户名" prop="otherAccountUsername"> |
|
|
|
|
<el-input :value="form.otherAccountUsername" @input="val => checkName(val, form, 'otherAccountUsername')" ref="otherAccountUsername"></el-input> |
|
|
|
|
<el-form-item label="他行收款户名" |
|
|
|
|
prop="otherAccountUsername"> |
|
|
|
|
<el-input :value="form.otherAccountUsername" |
|
|
|
|
@input="val => checkName(val, form, 'otherAccountUsername')" |
|
|
|
|
ref="otherAccountUsername"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="凭证号码" prop="voucherNumber"> |
|
|
|
|
<el-input :value="form.voucherNumber" @input="val => checkHanzi(val, form, 'voucherNumber')" ref="voucherNumber"></el-input> |
|
|
|
|
<el-form-item label="凭证号码" |
|
|
|
|
prop="voucherNumber"> |
|
|
|
|
<el-input :value="form.voucherNumber" |
|
|
|
|
@input="val => checkHanzi(val, form, 'voucherNumber')" |
|
|
|
|
ref="voucherNumber"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="摘要" prop="abstract"> |
|
|
|
|
<el-input v-model.trim="form.abstract" ref="abstract"></el-input> |
|
|
|
|
<el-form-item label="摘要" |
|
|
|
|
prop="abstract"> |
|
|
|
|
<el-input v-model.trim="form.abstract" |
|
|
|
|
ref="abstract"></el-input> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-form> |
|
|
|
|
</el-row> |
|
|
|
|
<el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button> |
|
|
|
|
<my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" /> |
|
|
|
|
<el-button @click="submitForm" |
|
|
|
|
type="primary" |
|
|
|
|
class="submitBtn" |
|
|
|
|
v-throttle>提交</el-button> |
|
|
|
|
<my-dialog :moduleName="moduleName" |
|
|
|
|
v-if="visible" |
|
|
|
|
:visible.sync="visible" |
|
|
|
|
:showForm="form" |
|
|
|
|
:formName="formName" |
|
|
|
|
@submitIt="submitForm2" /> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
@ -88,18 +142,18 @@ const moduleName = "cityWide/cityWideOut" |
|
|
|
|
import { getSubjectInfo, addOperation, getOperation } from '@/api/http'; |
|
|
|
|
export default { |
|
|
|
|
name: 'index', |
|
|
|
|
components:{ |
|
|
|
|
components: { |
|
|
|
|
MyTitle, |
|
|
|
|
MyDialog |
|
|
|
|
}, |
|
|
|
|
mixins: [ TipsBefore ], |
|
|
|
|
data() { |
|
|
|
|
mixins: [TipsBefore], |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
|
text:'存款',/* 顶部文字 */ |
|
|
|
|
text: '存款',/* 顶部文字 */ |
|
|
|
|
visible: false, |
|
|
|
|
// billTypeSelect: [], |
|
|
|
|
moduleName, |
|
|
|
|
form:{ |
|
|
|
|
form: { |
|
|
|
|
// 必填项 |
|
|
|
|
shroffAccountNumber: '', // 本行收款账号 |
|
|
|
|
money: '', // 金额 |
|
|
|
@ -283,11 +337,11 @@ export default { |
|
|
|
|
"subjectId": '61', |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
visible:false, |
|
|
|
|
visible: false, |
|
|
|
|
submited: 0 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
created () { |
|
|
|
|
const tmpFunc = () => { |
|
|
|
|
const date = new Date() |
|
|
|
|
var y = date.getFullYear(); |
|
|
|
@ -301,14 +355,14 @@ export default { |
|
|
|
|
|
|
|
|
|
// this.form.billType = this.billTypeSelect[0].itemId; |
|
|
|
|
}, |
|
|
|
|
mounted() { |
|
|
|
|
mounted () { |
|
|
|
|
|
|
|
|
|
this.$refs.shroffAccountNumber.focus() |
|
|
|
|
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,29,345,346' |
|
|
|
|
autoPlay2(parentId, this.form, this.myTable2, this.myTable) |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
submitForm() { |
|
|
|
|
submitForm () { |
|
|
|
|
if (this.submited) return this.$message.error('已提交!') |
|
|
|
|
this.$refs.form.validate(myValidate(() => { |
|
|
|
|
// 验证通过逻辑写在这 |
|
|
|
@ -316,49 +370,42 @@ export default { |
|
|
|
|
this.visible = true; |
|
|
|
|
}, this.$refs)); |
|
|
|
|
}, |
|
|
|
|
submitForm2() { |
|
|
|
|
submitForm2 () { |
|
|
|
|
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,29,345,346' |
|
|
|
|
autoPlay(parentId, this.form, this.myTable2, this.myTable) |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
const formList = [] |
|
|
|
|
formList.push({"answerId":'347',"emptyOne": 54, "emptyTwo": this.form.shroffAccountNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"}) |
|
|
|
|
formList.push({"answerId":'348',"emptyOne": 8, "emptyTwo": +this.form.currency, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"}) |
|
|
|
|
formList.push({ "answerId": '347', "emptyOne": 54, "emptyTwo": this.form.shroffAccountNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" }) |
|
|
|
|
formList.push({ "answerId": '348', "emptyOne": 8, "emptyTwo": +this.form.currency, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" }) |
|
|
|
|
|
|
|
|
|
formList.push({"answerId":'349',"emptyOne": 14, "emptyTwo": this.form.money, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"}) |
|
|
|
|
formList.push({"answerId":'350',"emptyOne": 55, "emptyTwo": this.form.proposeTime, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"}) |
|
|
|
|
formList.push({"answerId":'351',"emptyOne": 56, "emptyTwo": this.form.proposeDate, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"}) |
|
|
|
|
formList.push({"answerId":'352',"emptyOne": 57, "emptyTwo": +this.form.billType, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"}) |
|
|
|
|
formList.push({"answerId":'353',"emptyOne": 58, "emptyTwo": this.form.shroffAccountUsername, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"}) |
|
|
|
|
formList.push({"answerId":'354',"emptyOne": 59, "emptyTwo": this.form.otherAccountNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"}) |
|
|
|
|
formList.push({ "answerId": '349', "emptyOne": 14, "emptyTwo": this.form.money, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" }) |
|
|
|
|
formList.push({ "answerId": '350', "emptyOne": 55, "emptyTwo": this.form.proposeTime, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" }) |
|
|
|
|
formList.push({ "answerId": '351', "emptyOne": 56, "emptyTwo": this.form.proposeDate, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" }) |
|
|
|
|
formList.push({ "answerId": '352', "emptyOne": 57, "emptyTwo": +this.form.billType, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" }) |
|
|
|
|
formList.push({ "answerId": '353', "emptyOne": 58, "emptyTwo": this.form.shroffAccountUsername, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" }) |
|
|
|
|
formList.push({ "answerId": '354', "emptyOne": 59, "emptyTwo": this.form.otherAccountNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" }) |
|
|
|
|
|
|
|
|
|
formList.push({"answerId":'355',"emptyOne": 60, "emptyTwo": this.form.drawBillDate, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"}) |
|
|
|
|
formList.push({"answerId":'356',"emptyOne": 44, "emptyTwo": this.form.voucherNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"}) |
|
|
|
|
formList.push({"answerId":'357',"emptyOne": 61, "emptyTwo": this.form.shroffAccountUsername, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"}) |
|
|
|
|
formList.push({"answerId":'358',"emptyOne": 16, "emptyTwo": this.form.abstract, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346","type": "3"}) |
|
|
|
|
formList.push({ "answerId": '355', "emptyOne": 60, "emptyTwo": this.form.drawBillDate, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" }) |
|
|
|
|
formList.push({ "answerId": '356', "emptyOne": 44, "emptyTwo": this.form.voucherNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" }) |
|
|
|
|
formList.push({ "answerId": '357', "emptyOne": 61, "emptyTwo": this.form.shroffAccountUsername, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" }) |
|
|
|
|
formList.push({ "answerId": '358', "emptyOne": 16, "emptyTwo": this.form.abstract, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", "type": "3" }) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let params= { |
|
|
|
|
parentId: "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,29,345,346", |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
let params = { |
|
|
|
|
parentId: "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,29,345,346", |
|
|
|
|
lcJudgmentRuleReq: formList, |
|
|
|
|
projectId: +projectId, |
|
|
|
|
startTime: startTime, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.submited = 1 |
|
|
|
|
// this.$message({ |
|
|
|
|
// message: '提交成功', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
// this.setNeedsModule(moduleName) |
|
|
|
|
// this.setDataFlow({ ...this.form }) |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
// addOperation(params).then((data) => { |
|
|
|
|
// this.submited = 1 |
|
|
|
|
// }).catch((error) => { |
|
|
|
|
// }) |
|
|
|
|
}, |
|
|
|
|
getFocus() { |
|
|
|
|
getFocus () { |
|
|
|
|
// console.log('test') |
|
|
|
|
if(!this.form.shroffAccountNumber) { |
|
|
|
|
if (!this.form.shroffAccountNumber) { |
|
|
|
|
this.$message({ |
|
|
|
|
message: '请先输入本行收款账号', |
|
|
|
|
center: true, |
|
|
|
@ -368,8 +415,8 @@ export default { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
getBlur() { |
|
|
|
|
if(this.form.shroffAccountNumber) { |
|
|
|
|
getBlur () { |
|
|
|
|
if (this.form.shroffAccountNumber) { |
|
|
|
|
this.form.shroffAccountUsername = this.dataFlow.userName |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -391,16 +438,16 @@ export default { |
|
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
|
.wrap{ |
|
|
|
|
.wrap { |
|
|
|
|
width: 100%; |
|
|
|
|
display: flex; |
|
|
|
|
flex-direction: column; |
|
|
|
|
overflow: auto; |
|
|
|
|
padding: 24px 0 24px 24px; |
|
|
|
|
.body{ |
|
|
|
|
.body { |
|
|
|
|
margin-top: 50px; |
|
|
|
|
overflow-y: auto; |
|
|
|
|
overflow-x: hidden; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</style> |
|
|
|
|