|
|
|
@ -1,12 +1,13 @@ |
|
|
|
|
// 存款 |
|
|
|
|
<template> |
|
|
|
|
<div class="body" v-if="!isNeedBefore"> |
|
|
|
|
<div class="body"> |
|
|
|
|
<el-form ref="form" :model="form" label-width="120px" :rules="rules"> |
|
|
|
|
<el-row :gutter="20"> |
|
|
|
|
<el-col :span="10"> |
|
|
|
|
<el-form-item label="币种"> |
|
|
|
|
<el-select v-model="form.identification" placeholder="请选择"> |
|
|
|
|
<el-option label="CNY人民币" value="CNY人民币"> </el-option> |
|
|
|
|
<el-form-item label="币种" prop="currency"> |
|
|
|
|
<el-select v-model="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 value="CNY人民币">CNY人民币</el-option> --> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
@ -128,12 +129,13 @@ |
|
|
|
|
</el-form> |
|
|
|
|
<my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" /> |
|
|
|
|
</div> |
|
|
|
|
<need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> |
|
|
|
|
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> --> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { tableRowClassName, headerCellStyle, cellStyle } from '@/assets/js/myConfig' |
|
|
|
|
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2 } from '@/utils/utilFunction.js' |
|
|
|
|
import { addOperation } from '@/api/http'; |
|
|
|
|
|
|
|
|
|
const moduleName = 'controlCash/cashOut' |
|
|
|
|
import { mapMutations, mapGetters } from 'vuex' |
|
|
|
@ -155,13 +157,13 @@ export default { |
|
|
|
|
isNeedBefore: '', |
|
|
|
|
needBefore: '', |
|
|
|
|
form:{ |
|
|
|
|
identification: 'CNY人民币', |
|
|
|
|
currency: 12, |
|
|
|
|
state: '正常', |
|
|
|
|
moneyTotal: '0', |
|
|
|
|
receiveCounter: '', |
|
|
|
|
}, |
|
|
|
|
formName:{ |
|
|
|
|
identification: '币种', |
|
|
|
|
currency: '币种', |
|
|
|
|
state: '状态', |
|
|
|
|
moneyTotal: '总金额', |
|
|
|
|
receiveCounter: '接收柜员', |
|
|
|
@ -253,6 +255,7 @@ export default { |
|
|
|
|
...mapGetters({ |
|
|
|
|
needsModule: 'system/needsModule', |
|
|
|
|
inMyWork: 'system/inMyWork', |
|
|
|
|
getSelectList: 'system/getSelectList' |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
watch: { |
|
|
|
@ -282,7 +285,40 @@ export default { |
|
|
|
|
this.visible = true |
|
|
|
|
}, this.$refs)); |
|
|
|
|
}, |
|
|
|
|
submitForm2() {}, |
|
|
|
|
submitForm2() { |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
const formList = [] |
|
|
|
|
|
|
|
|
|
// currency: 12, |
|
|
|
|
// state: '正常', |
|
|
|
|
// moneyTotal: 0, |
|
|
|
|
|
|
|
|
|
if(this.form.state) { |
|
|
|
|
formList.push({"answerId":'527',"emptyOne": "", "emptyTwo": "", "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,31,518,524,527","type": ""}) |
|
|
|
|
} |
|
|
|
|
formList.push({"answerId":'70',"emptyOne": 8, "emptyTwo": this.form.currency, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,31,518,524,70","type": "1"}) |
|
|
|
|
formList.push({"answerId":'109',"emptyOne": 45, "emptyTwo": this.form.moneyTotal + '', "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,31,518,524,109","type": "3"}) |
|
|
|
|
// receiveCounter |
|
|
|
|
if(this.form.receiveCounter) { |
|
|
|
|
formList.push({"answerId":'528',"emptyOne": 91, "emptyTwo": this.form.receiveCounter, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,31,518,524,528","type": "3"}) |
|
|
|
|
} |
|
|
|
|
let params= { |
|
|
|
|
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,31,518,524', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
// this.$message({ |
|
|
|
|
// message: '提交成功', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
this.setNeedsModule(moduleName) |
|
|
|
|
// this.setDataFlow({ ...this.form }) |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
tableRowClassName: tableRowClassName, |
|
|
|
|
checkName |
|
|
|
|
} |
|
|
|
|