20240205
yujialong 1 year ago
parent a437e809d0
commit 42eba9d7f8
  1. 7
      src/App.vue
  2. 5
      src/components/case/index.vue
  3. 1
      src/components/selectBusiness/index.vue
  4. 2
      src/pages/index/list/index.vue
  5. 727
      src/pages/manage/list/personal/currentAccount/openAccount.vue
  6. 220
      src/pages/manage/list/personal/timeDeposit/withdrawal.vue
  7. 290
      src/pages/manage/navbar/index.vue
  8. 19
      src/pages/report/index.vue
  9. 1
      src/store/modules/system.js

@ -2,7 +2,7 @@
<div id="app"> <div id="app">
<select-business class="selectBusiness" <select-business class="selectBusiness"
:showIt.sync="showIt" :showIt.sync="showIt"
v-show="!showIt && showBusiness" /> v-show="!showIt && showBusiness && !submited" />
<router-view></router-view> <router-view></router-view>
<vCase :showIt.sync="showIt"></vCase> <vCase :showIt.sync="showIt"></vCase>
<tip-dialog class="Z-9999" /> <tip-dialog class="Z-9999" />
@ -44,7 +44,8 @@ export default {
data () { data () {
return { return {
showIt: true, showIt: true,
showSelect: false showSelect: false,
submited: false
} }
}, },
methods: { methods: {
@ -56,7 +57,7 @@ export default {
watch: { watch: {
showIt: { showIt: {
handler (newVal) { handler (newVal) {
console.log("🚀 ~ file: App.vue:58 ~ handler ~ newVal:", newVal, this.businessKey, sessionStorage.getItem('submited')) this.submited = sessionStorage.getItem('submited')
if (!newVal && !this.businessKey && !sessionStorage.getItem('submited')) { if (!newVal && !this.businessKey && !sessionStorage.getItem('submited')) {
this.setShowBusiness(true) this.setShowBusiness(true)
} else { } else {

@ -368,7 +368,6 @@ export default {
if (sessionStorage.getItem('projectId')) { if (sessionStorage.getItem('projectId')) {
projectId = sessionStorage.getItem('projectId') projectId = sessionStorage.getItem('projectId')
} }
console.log('mounted', projectId)
let assessmentId = sessionStorage.getItem('assessmentId') || this.getQueryVariable('assessmentId') let assessmentId = sessionStorage.getItem('assessmentId') || this.getQueryVariable('assessmentId')
let competitionId = sessionStorage.getItem('competitionId') || this.getQueryVariable('competitionId') let competitionId = sessionStorage.getItem('competitionId') || this.getQueryVariable('competitionId')
let stageId = sessionStorage.getItem('stageId') || this.getQueryVariable('stageId') let stageId = sessionStorage.getItem('stageId') || this.getQueryVariable('stageId')
@ -415,7 +414,6 @@ export default {
this.getData() this.getData()
} }
} }
console.log(2222, this.showIt)
}, },
methods: { methods: {
...mapMutations({ ...mapMutations({
@ -516,8 +514,6 @@ export default {
} }
} }
console.log('---this.topicList')
console.log(this.topicList)
if (this.topicList.length > 0) { if (this.topicList.length > 0) {
const storeProjectId = sessionStorage.getItem('storeProjectId') || this.$route.query.projectId const storeProjectId = sessionStorage.getItem('storeProjectId') || this.$route.query.projectId
if (storeProjectId) { if (storeProjectId) {
@ -758,7 +754,6 @@ export default {
} }
this.loading = true; this.loading = true;
submit(params).then((data) => { submit(params).then((data) => {
console.log(4, data)
if (data.status == 200) { if (data.status == 200) {
sessionStorage.setItem('firstLoad2', true) sessionStorage.setItem('firstLoad2', true)
// this.clearStore() // this.clearStore()

@ -146,6 +146,7 @@ export default {
sessionStorage.setItem('cid', cid) sessionStorage.setItem('cid', cid)
sessionStorage.setItem('systemId', systemId) sessionStorage.setItem('systemId', systemId)
sessionStorage.setItem('projectId', projectId) sessionStorage.setItem('projectId', projectId)
sessionStorage.setItem('firstLoad2', true)
sessionStorage.removeItem('submited') sessionStorage.removeItem('submited')
if (assessmentId) { if (assessmentId) {
sessionStorage.setItem('assessmentId', assessmentId) sessionStorage.setItem('assessmentId', assessmentId)

@ -101,7 +101,7 @@ export default {
}, 1000); }, 1000);
} }
if (!this.businessKey) { if (!this.businessKey && this.$route.path !== '/index/report' && !sessionStorage.getItem('submited')) {
this.setShowBusiness(true) this.setShowBusiness(true)
} }
// //

@ -1,79 +1,145 @@
// > // >
<template> <template>
<div class="body"> <div class="body">
<el-row :gutter="20" style="margin: 0"> <el-row :gutter="20"
<el-form ref="form" :model="form" label-width="120px" :rules="rules"> style="margin: 0">
<el-col :span="10" :offset="1"> <el-form ref="form"
<el-form-item label="凭证号码" prop="voucherNumber"> :model="form"
label-width="120px"
:rules="rules">
<el-col :span="10"
:offset="1">
<el-form-item label="凭证号码"
prop="voucherNumber">
<!-- <div v-if='!cardNumberJudge' class="idCard" @click="popUp('刷卡器')"> <!-- <div v-if='!cardNumberJudge' class="idCard" @click="popUp('刷卡器')">
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else> <div v-else>
<el-input @blur="getDataBlur" ref="voucherNumber" disabled :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> <el-input @blur="getDataBlur" ref="voucherNumber" disabled :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input>
</div> --> </div> -->
<el-input @blur="getDataBlur" ref="voucherNumber" :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> <el-input @blur="getDataBlur"
ref="voucherNumber"
:value="form.voucherNumber"
@input="(val) => inputListen(val, form, 'voucherNumber')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currency"> <el-form-item label="币种"
<el-select v-model.trim="form.currency" placeholder="请选择" ref="currency"> prop="currency">
<el-option v-for="item in getSelectList.currencySelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> <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-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="定存编号" prop="depositNumber"> <el-form-item label="定存编号"
<el-input ref="depositNumber" disabled :value="form.depositNumber" @input="(val) => checkHanzi(val, form, 'depositNumber')"></el-input> prop="depositNumber">
<el-input ref="depositNumber"
disabled
:value="form.depositNumber"
@input="(val) => checkHanzi(val, form, 'depositNumber')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="支取方式" prop="withdrawWay"> <el-form-item label="支取方式"
<el-radio-group v-model.trim="form.withdrawWay" ref="withdrawWay"> prop="withdrawWay">
<el-radio-group v-model.trim="form.withdrawWay"
ref="withdrawWay">
<el-radio :label="125">部分支取</el-radio> <el-radio :label="125">部分支取</el-radio>
<el-radio :label="126">全部支取并销户</el-radio> <el-radio :label="126">全部支取并销户</el-radio>
</el-radio-group> </el-radio-group>
</el-form-item> </el-form-item>
<el-form-item label="支取类别" prop="withdrawType"> <el-form-item label="支取类别"
<el-select v-model.trim="form.withdrawType" placeholder="请选择" ref="withdrawType"> prop="withdrawType">
<el-option label="现金" :value="124"> </el-option> <el-select v-model.trim="form.withdrawType"
placeholder="请选择"
ref="withdrawType">
<el-option label="现金"
:value="124"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="支取密码" required> <el-form-item label="支取密码"
<div v-if='!form.drawPassword' class="idCard" @click="popUp2('密码器')"> required>
<div v-if='!form.drawPassword'
class="idCard"
@click="popUp2('密码器')">
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else @click="popUp2('密码器')"> <div v-else
<el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input> @click="popUp2('密码器')">
<el-input :value="form.drawPassword"
ref="drawPassword"
type="password"></el-input>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10"
<el-form-item label="客户姓名" prop="customerName"> :offset="1">
<el-input :value="form.customerName" disabled @input="(val) => checkName(val, form, 'customerName')" ref="customerName"></el-input> <el-form-item label="客户姓名"
prop="customerName">
<el-input :value="form.customerName"
disabled
@input="(val) => checkName(val, form, 'customerName')"
ref="customerName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="钞汇标识" prop="goldLogo"> <el-form-item label="钞汇标识"
<el-select v-model.trim="form.goldLogo" placeholder="请选择" ref="goldLogo"> prop="goldLogo">
<el-option v-for="item in getSelectList.goldLogoSelectList" :label="item.options" :value="item.itemId" :key="item.itemId"> </el-option> <el-select v-model.trim="form.goldLogo"
placeholder="请选择"
ref="goldLogo">
<el-option v-for="item in getSelectList.goldLogoSelectList"
:label="item.options"
:value="item.itemId"
:key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="本金" prop="capital"> <el-form-item label="本金"
<el-input :value="form.capital" disabled @input="val => ismoney(val, form, 'capital')" ref="capital" ></el-input> prop="capital">
<el-input :value="form.capital"
disabled
@input="val => ismoney(val, form, 'capital')"
ref="capital"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="支取金额" prop="withdrawAmount"> <el-form-item label="支取金额"
<el-input ref="withdrawAmount" :value="form.withdrawAmount" :disabled="capitalDisabled" @input="val => getMoneyJudge(val)"></el-input> prop="withdrawAmount">
<el-input ref="withdrawAmount"
:value="form.withdrawAmount"
:disabled="capitalDisabled"
@input="val => getMoneyJudge(val)"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="利息" prop="interest"> <el-form-item label="利息"
<el-input :value="form.interest" disabled @input="(val) => rateListen(val, form, 'interest')" ref="interest"></el-input> prop="interest">
<el-input :value="form.interest"
disabled
@input="(val) => rateListen(val, form, 'interest')"
ref="interest"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="新凭证号码" prop="newVoucherNumber" v-show="form.withdrawWay===125"> <el-form-item label="新凭证号码"
<el-input :value="form.newVoucherNumber" @input="(val) => inputListen(val, form, 'newVoucherNumber')" ref="newVoucherNumber"></el-input> prop="newVoucherNumber"
v-show="form.withdrawWay===125">
<el-input :value="form.newVoucherNumber"
@input="(val) => inputListen(val, form, 'newVoucherNumber')"
ref="newVoucherNumber"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-form> </el-form>
</el-row> </el-row>
<el-button @click="submitIt" type="primary" class="submitBtn" v-throttle>提交</el-button> <el-button @click="submitIt"
<my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" /> 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>
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> --> <!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" /> -->
</template> </template>
<script> <script>
import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, rateListen, inputListen,messageCard, messagePassword} from '@/utils/utilFunction.js'; import { myValidate, checkHanzi, checkName, ismoney, autoPlay, autoPlay2, rateListen, inputListen, messageCard, messagePassword } from '@/utils/utilFunction.js';
import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js' import { mobPattern, namePattern, ratePattern, vercustomer } from '@/utils/verify.js'
const moduleName = 'timeDeposit/withdrawal' const moduleName = 'timeDeposit/withdrawal'
@ -81,28 +147,28 @@ import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore' import NeedBefore from '@/components/needBefore'
import MyDialog from '@/components/dialog' import MyDialog from '@/components/dialog'
import TipsBefore from '@/mixins/tipsBefore' import TipsBefore from '@/mixins/tipsBefore'
export default{ export default {
name:'', name: '',
props:{}, props: {},
mixins: [ TipsBefore ], mixins: [TipsBefore],
components: { components: {
NeedBefore, NeedBefore,
MyDialog MyDialog
}, },
created() { created () {
if(this.form.depositNumber) { if (this.form.depositNumber) {
this.form.depositNumber = '0912' this.form.depositNumber = '0912'
} }
if(sessionStorage.getItem('nomtimeDepositWithdrawalPassword')) { if (sessionStorage.getItem('nomtimeDepositWithdrawalPassword')) {
this.form.drawPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword') this.form.drawPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword')
} }
const { withdrawWay } = this.dataFlow const { withdrawWay } = this.dataFlow
if(withdrawWay === 126) { if (withdrawWay === 126) {
this.form.interest = '15.00' this.form.interest = '15.00'
// this.rules.withdrawAmount[0].required = false // this.rules.withdrawAmount[0].required = false
if(sessionStorage.getItem('nomtimeDepositWithdrawal2')) { if (sessionStorage.getItem('nomtimeDepositWithdrawal2')) {
this.cardNumberJudge = true this.cardNumberJudge = true
const { userName, currency, goldLogo, interest, depositNumber, capital, withdrawType, voucherNumber } = this.dataFlow const { userName, currency, goldLogo, interest, depositNumber, capital, withdrawType, voucherNumber } = this.dataFlow
this.form.voucherNumber = voucherNumber this.form.voucherNumber = voucherNumber
@ -117,10 +183,10 @@ export default{
} }
}else { } else {
this.form.interest = 0.00 this.form.interest = 0.00
if(sessionStorage.getItem('nomtimeDepositWithdrawal1')) { if (sessionStorage.getItem('nomtimeDepositWithdrawal1')) {
this.cardNumberJudge = true this.cardNumberJudge = true
const { userName, currency, goldLogo, interest, depositNumber, capital, withdrawType, voucherNumber } = this.dataFlow const { userName, currency, goldLogo, interest, depositNumber, capital, withdrawType, voucherNumber } = this.dataFlow
this.form.voucherNumber = voucherNumber this.form.voucherNumber = voucherNumber
@ -134,27 +200,27 @@ export default{
// this.form.withdrawWay = withdrawWay // this.form.withdrawWay = withdrawWay
} }
} }
if(!this.form.withdrawWay) { if (!this.form.withdrawWay) {
this.form.withdrawWay = 125 this.form.withdrawWay = 125
} }
this.getFormData() this.getFormData()
}, },
data(){ data () {
const withdrawAmountValidator = (rule, value, cb) => { const withdrawAmountValidator = (rule, value, cb) => {
const maxMoney = Number(this.form.capital) + Number(this.form.interest) const maxMoney = Number(this.form.capital) + Number(this.form.interest)
if(Number(value) > maxMoney) { if (Number(value) > maxMoney) {
cb(new Error('支取金额不应超过本金与利息之和')) cb(new Error('支取金额不应超过本金与利息之和'))
}else { } else {
cb() cb()
} }
} }
return{ return {
moduleName: 'timeDeposit/withdrawal', moduleName: 'timeDeposit/withdrawal',
visible: false, visible: false,
capitalDisabled: false, // capitalDisabled: false, //
cardNumberJudge: false, cardNumberJudge: false,
form:{ form: {
// //
drawPassword: '', // drawPassword: '', //
cardNumber: '', // cardNumber: '', //
@ -180,7 +246,7 @@ export default{
// withdrawType: '', // // withdrawType: '', //
// withdrawWay: '', // // withdrawWay: '', //
}, },
formName:{ formName: {
// //
drawPassword: '凭证密码', // drawPassword: '凭证密码', //
cardNumber: '凭证号码', // cardNumber: '凭证号码', //
@ -311,7 +377,7 @@ export default{
submited: 0 submited: 0
} }
}, },
mounted() { mounted () {
}, },
methods: { methods: {
...mapMutations({ ...mapMutations({
@ -321,25 +387,25 @@ export default{
setPopId: 'system/setPopId', setPopId: 'system/setPopId',
setTipsOperate: 'system/setTipsOperate' setTipsOperate: 'system/setTipsOperate'
}), }),
getMoneyJudge(val) { getMoneyJudge (val) {
// //
const tmpCheck = val.substr(val.length-1, 1); const tmpCheck = val.substr(val.length - 1, 1);
// //
if(tmpCheck === ' ') { if (tmpCheck === ' ') {
return; return;
} }
// 15 // 15
if(val.length === 15) { if (val.length === 15) {
return return
} }
// const reg = /([1-9]\d{0,9}|0)(\.\d{1,2})?$/ // // const reg = /([1-9]\d{0,9}|0)(\.\d{1,2})?$/ //
const reg2 = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; // const reg2 = /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/; //
if (reg2.test(Number(val)) || val==='') { if (reg2.test(Number(val)) || val === '') {
this.form.withdrawAmount = val this.form.withdrawAmount = val
} }
}, },
getDataBlur() { getDataBlur () {
if(!this.form.voucherNumber) { if (!this.form.voucherNumber) {
return return
} }
// 0912 // 0912
@ -350,28 +416,28 @@ export default{
this.form.goldLogo = goldLogo this.form.goldLogo = goldLogo
// this.form.interest = interest // this.form.interest = interest
this.form.depositNumber = depositNumber this.form.depositNumber = depositNumber
this.form.capital = money || 0 this.form.capital = money || 1000000
this.form.withdrawType = withdrawType this.form.withdrawType = withdrawType
// this.form.withdrawAmount = Number(this.form.interest) + Number(this.form.capital) // this.form.withdrawAmount = Number(this.form.interest) + Number(this.form.capital)
}, },
getFormData(){ getFormData () {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,58,120' const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,58,120'
const cards = { const cards = {
// 144: 'nomtimeDepositWithdrawal1', // 144: 'nomtimeDepositWithdrawal1',
// 154: 'nomtimeDepositWithdrawalPassword' // 154: 'nomtimeDepositWithdrawalPassword'
} }
const callback = () => { const callback = () => {
if(this.form.depositNumber) { if (this.form.depositNumber) {
this.form.depositNumber = '0912' this.form.depositNumber = '0912'
} }
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback) autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
}, },
popUp(text) { popUp (text) {
const { withdrawWay } = this.dataFlow const { withdrawWay } = this.dataFlow
if(withdrawWay === 126) { if (withdrawWay === 126) {
this.setPopId('144,2') this.setPopId('144,2')
}else { } else {
this.setPopId('144,1') this.setPopId('144,1')
} }
@ -381,7 +447,7 @@ export default{
sessionStorage.setItem('computerPath', this.$route.fullPath) sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
popUp2(text) { popUp2 (text) {
// this.$store.commit('system/changePop',{show:true,text, id: '154'}) // this.$store.commit('system/changePop',{show:true,text, id: '154'})
// if(this.isNeedBefore) { // if(this.isNeedBefore) {
// this.setPopId('154') // this.setPopId('154')
@ -399,13 +465,13 @@ export default{
sessionStorage.setItem('computerPath', this.$route.fullPath) sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/') this.$router.push('/counter/list/')
}, },
submitIt() { submitIt () {
// if(!this.form.voucherNumber) { // if(!this.form.voucherNumber) {
// messageCard() // messageCard()
// return // return
// } // }
if (this.submited) return this.$message.error('已提交!') if (this.submited) return this.$message.error('已提交!')
if(!this.form.drawPassword) { if (!this.form.drawPassword) {
messagePassword() messagePassword()
return return
} }
@ -414,7 +480,7 @@ export default{
this.visible = true; this.visible = true;
}, this.$refs)); }, this.$refs));
}, },
submitForm2() { submitForm2 () {
// let nomtimeDepositWithdrawal1 = sessionStorage.getItem('nomtimeDepositWithdrawal1') // let nomtimeDepositWithdrawal1 = sessionStorage.getItem('nomtimeDepositWithdrawal1')
// let nomtimeDepositWithdrawalPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword') // let nomtimeDepositWithdrawalPassword = sessionStorage.getItem('nomtimeDepositWithdrawalPassword')
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,58,120' const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,26,58,120'
@ -448,10 +514,10 @@ export default{
}, },
watch: { watch: {
'form.withdrawWay': { 'form.withdrawWay': {
handler(newVal, oldVal) { handler (newVal, oldVal) {
// withdrawWay // withdrawWay
// const { withdrawWay } = this.dataFlow // const { withdrawWay } = this.dataFlow
if(newVal === 126) { if (newVal === 126) {
this.capitalDisabled = true this.capitalDisabled = true
this.form.interest = '15.00' this.form.interest = '15.00'
@ -461,11 +527,11 @@ export default{
//this.rules.withdrawAmount[0].required = false //this.rules.withdrawAmount[0].required = false
// //
this.form.withdrawAmount = Number(this.form.interest) + Number(this.form.capital) this.form.withdrawAmount = Number(this.form.interest) + Number(this.form.capital)
}else { } else {
if(sessionStorage.getItem('newVoucherNumber')) { if (sessionStorage.getItem('newVoucherNumber')) {
this.form.newVoucherNumber = sessionStorage.getItem('newVoucherNumber') this.form.newVoucherNumber = sessionStorage.getItem('newVoucherNumber')
} }
if(oldVal === 126) { if (oldVal === 126) {
this.form.withdrawAmount = '' this.form.withdrawAmount = ''
} }

@ -1,41 +1,41 @@
<template> <template>
<!-- 商业银行系统菜单文件 --> <!-- 商业银行系统菜单文件 -->
<el-menu class="sidebar-el-menu" :default-active="onRoutes" @select="select" router background-color="#313540" text-color="#fff" active-text-color="#ffd04b" unique-opened> <el-menu class="sidebar-el-menu"
:default-active="onRoutes"
@select="select"
router
background-color="#313540"
text-color="#fff"
active-text-color="#ffd04b"
unique-opened>
<template v-for="(item,index) in menus"> <template v-for="(item,index) in menus">
<template v-if="item.children"> <template v-if="item.children">
<el-submenu :index="item.index" :key="item.index"> <el-submenu :index="item.index"
:key="item.index">
<template slot="title"> <template slot="title">
<el-image <el-image style="width: 22px; height: 22px; margin-right: 10px;"
style="width: 22px; height: 22px; margin-right: 10px;"
class="align-middle" class="align-middle"
:src="item.logo" :src="item.logo"></el-image>
></el-image>
<span slot="title">{{ item.title }}</span> <span slot="title">{{ item.title }}</span>
</template> </template>
<template v-for="(subItem,index) in item.children"> <template v-for="(subItem,index) in item.children">
<el-submenu <el-submenu v-if="subItem.children"
v-if="subItem.children"
:index="subItem.index" :index="subItem.index"
:key="subItem.index" :key="subItem.index">
>
<template slot="title">{{ subItem.title }}</template> <template slot="title">{{ subItem.title }}</template>
<el-menu-item <el-menu-item v-for="(threeItem,i) in subItem.children"
v-for="(threeItem,i) in subItem.children"
:key="i" :key="i"
:index="threeItem.index" :index="threeItem.index">{{ threeItem.title }}</el-menu-item>
>{{ threeItem.title }}</el-menu-item>
</el-submenu> </el-submenu>
<el-menu-item <el-menu-item v-else
v-else
:index="subItem.index" :index="subItem.index"
:key="subItem.index" :key="subItem.index">{{ subItem.title }}</el-menu-item>
>{{ subItem.title }}</el-menu-item>
</template> </template>
</el-submenu> </el-submenu>
</template> </template>
<template v-else> <template v-else>
<el-menu-item :index="item.index" :key="item.index"> <el-menu-item :index="item.index"
:key="item.index">
<i :class="item.icon"></i> <i :class="item.icon"></i>
<span slot="title">{{ item.title }}</span> <span slot="title">{{ item.title }}</span>
</el-menu-item> </el-menu-item>
@ -56,7 +56,7 @@ export default {
// required: true // required: true
// } // }
// }, // },
data() { data () {
return { return {
// onRoutes:'/counter/list/manage/consumerClient', // onRoutes:'/counter/list/manage/consumerClient',
onRoutes: '', onRoutes: '',
@ -70,7 +70,7 @@ export default {
{ {
index: '/counter/list/manage/consumerClient', index: '/counter/list/manage/consumerClient',
title: '个人客户信息建立', title: '个人客户信息建立',
},{ }, {
index: '/counter/list/manage/corporateClient', index: '/counter/list/manage/corporateClient',
title: '公司客户信息建立', title: '公司客户信息建立',
}, },
@ -81,7 +81,7 @@ export default {
index: '/index/list1', index: '/index/list1',
title: '个人业务', title: '个人业务',
logo: require('@/assets/img/systemInput/个人业务.svg'), logo: require('@/assets/img/systemInput/个人业务.svg'),
children:[ children: [
{ {
index: '/counter/list/manage/currentAccount', index: '/counter/list/manage/currentAccount',
title: '活期业务', title: '活期业务',
@ -109,22 +109,22 @@ export default {
index: '/index/list2', index: '/index/list2',
title: '公司业务', title: '公司业务',
logo: require('@/assets/img/systemInput/公司业务.svg'), logo: require('@/assets/img/systemInput/公司业务.svg'),
children:[ children: [
{ {
index:"/counter/list/manage/business-openAccount", index: "/counter/list/manage/business-openAccount",
title:'开户' title: '开户'
}, },
{ {
index:"/counter/list/manage/business-deposit", index: "/counter/list/manage/business-deposit",
title:'存款' title: '存款'
}, },
{ {
index:"/counter/list/manage/business-withdrawal", index: "/counter/list/manage/business-withdrawal",
title:'取款' title: '取款'
}, },
{ {
index:"/counter/list/manage/business-transfer", index: "/counter/list/manage/business-transfer",
title:'转账' title: '转账'
}, },
] ]
}, },
@ -133,18 +133,18 @@ export default {
index: '/index/list3', index: '/index/list3',
title: '账户服务', title: '账户服务',
logo: require('@/assets/img/systemInput/账户服务.svg'), logo: require('@/assets/img/systemInput/账户服务.svg'),
children:[ children: [
{ {
index:"/counter/list/manage/servicesAccount-passwordChange", index: "/counter/list/manage/servicesAccount-passwordChange",
title:'密码修改' title: '密码修改'
}, },
{ {
index:"/counter/list/manage/servicesAccount-passwordLost", index: "/counter/list/manage/servicesAccount-passwordLost",
title:'密码挂失' title: '密码挂失'
}, },
{ {
index:"/counter/list/manage/servicesAccount-relieveLost", index: "/counter/list/manage/servicesAccount-relieveLost",
title:'挂失解挂' title: '挂失解挂'
} }
] ]
}, },
@ -153,14 +153,14 @@ export default {
index: '/index/list4', index: '/index/list4',
title: '同城交互', title: '同城交互',
logo: require('@/assets/img/systemInput/同城交互.svg'), logo: require('@/assets/img/systemInput/同城交互.svg'),
children:[ children: [
{ {
index:"/counter/list/manage/cityWide-out", index: "/counter/list/manage/cityWide-out",
title:'同城提出' title: '同城提出'
}, },
{ {
index:"/counter/list/manage/cityWide-in", index: "/counter/list/manage/cityWide-in",
title:'同城提入' title: '同城提入'
} }
] ]
}, },
@ -169,10 +169,10 @@ export default {
index: '/index/list5', index: '/index/list5',
title: '银行承兑汇票', title: '银行承兑汇票',
logo: require('@/assets/img/systemInput/承兑汇票.svg'), logo: require('@/assets/img/systemInput/承兑汇票.svg'),
children:[ children: [
{ {
index:"/counter/list/manage/acceptanceDraft-invoice", index: "/counter/list/manage/acceptanceDraft-invoice",
title:'承兑汇票开票' title: '承兑汇票开票'
} }
] ]
}, },
@ -181,18 +181,18 @@ export default {
index: '/index/list6', index: '/index/list6',
title: '重控现金', title: '重控现金',
logo: require('@/assets/img/systemInput/重空现金.svg'), logo: require('@/assets/img/systemInput/重空现金.svg'),
children:[ children: [
{ {
index:"/counter/list/manage/importantCash-cashRecipients", index: "/counter/list/manage/importantCash-cashRecipients",
title:'现金管理' title: '现金管理'
}, },
{ {
index:"/counter/list/manage/importantCash-cashRecipients2", index: "/counter/list/manage/importantCash-cashRecipients2",
title:'凭证管理' title: '凭证管理'
}, },
{ {
index:"/counter/list/manage/importantCash-cashRecipients3", index: "/counter/list/manage/importantCash-cashRecipients3",
title:'支票管理' title: '支票管理'
} }
] ]
}, },
@ -201,18 +201,18 @@ export default {
index: '/index/list7', index: '/index/list7',
title: '日终管理', title: '日终管理',
logo: require('@/assets/img/systemInput/日终管理.svg'), logo: require('@/assets/img/systemInput/日终管理.svg'),
children:[ children: [
{ {
index:"/counter/list/manage/dayEnd-tellerCash", index: "/counter/list/manage/dayEnd-tellerCash",
title:'柜员现金轧帐' title: '柜员现金轧帐'
}, },
{ {
index:"/counter/list/manage/dayEnd-tellerCertificate", index: "/counter/list/manage/dayEnd-tellerCertificate",
title:'柜员凭证轧帐' title: '柜员凭证轧帐'
}, },
{ {
index:"/counter/list/manage/dayEnd-branchDayEnd", index: "/counter/list/manage/dayEnd-branchDayEnd",
title:'网点日终轧帐' title: '网点日终轧帐'
} }
] ]
}, },
@ -223,15 +223,15 @@ export default {
// '$route.path':function (val) { // '$route.path':function (val) {
// this.onRoutes = val // this.onRoutes = val
// }, // },
needIndex(newVal) { needIndex (newVal) {
this.onRoutes = newVal this.onRoutes = newVal
} }
}, },
created() { created () {
const path = sessionStorage.getItem('computerPath') const path = sessionStorage.getItem('computerPath')
if(path) { if (path) {
this.onRoutes = path this.onRoutes = path
}else { } else {
this.onRoutes = this.$route.path this.onRoutes = this.$route.path
} }
// this.onRoutes = this.$route.path // this.onRoutes = this.$route.path
@ -242,105 +242,103 @@ export default {
// this.onRoutes = this.$route.path // this.onRoutes = this.$route.path
}, },
methods: { methods: {
select(path) { select (path) {
this.onRoutes = path this.onRoutes = path
} }
}, },
beforeDestroy() { beforeDestroy () {
sessionStorage.setItem('computerPath', this.onRoutes) sessionStorage.setItem('computerPath', this.onRoutes)
this.$router.push('/counter/list/') sessionStorage.getItem('submited') || this.$router.push('/counter/list/')
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// /dee/ .el-menu { // /dee/ .el-menu {
// color: red!important; // color: red!important;
// overflow: auto; // overflow: auto;
// } // }
// .sidebar-el-menu { // .sidebar-el-menu {
// // max-height: calc(100vh - 110px); // // max-height: calc(100vh - 110px);
// overflow: auto; // overflow: auto;
// } // }
// .nav{ // .nav{
// background-color: #141414; // background-color: #141414;
// overflow: auto; // overflow: auto;
// .logo{ // .logo{
// padding: 20px 0; // padding: 20px 0;
// text-align: center; // text-align: center;
// } // }
// /deep/.el-menu{ // /deep/.el-menu{
// border-right: 0 !important; // border-right: 0 !important;
// .el-menu-item{ // .el-menu-item{
// display: flex; // display: flex;
// align-items: center; // align-items: center;
// &.is-active{ // &.is-active{
// background-color: #CC221C !important; // background-color: #CC221C !important;
// } // }
// // .menu-icon{ // // .menu-icon{
// // width: 24px; // // width: 24px;
// // height: 24px; // // height: 24px;
// // margin-right: 12px; // // margin-right: 12px;
// // background: url(../../assets/img/home.png) no-repeat; // // background: url(../../assets/img/home.png) no-repeat;
// // &.icon-ques{ // // &.icon-ques{
// // background-image: url(../../assets/img/ques.png); // // background-image: url(../../assets/img/ques.png);
// // } // // }
// // &.icon-testpaper{ // // &.icon-testpaper{
// // background-image: url(../../assets/img/paper.png); // // background-image: url(../../assets/img/paper.png);
// // } // // }
// // &.icon-practise{ // // &.icon-practise{
// // background-image: url(../../assets/img/practise.png); // // background-image: url(../../assets/img/practise.png);
// // } // // }
// // &.icon-exam{ // // &.icon-exam{
// // background-image: url(../../assets/img/exam.png); // // background-image: url(../../assets/img/exam.png);
// // } // // }
// // &.icon-ache{ // // &.icon-ache{
// // background-image: url(../../assets/img/ache.png); // // background-image: url(../../assets/img/ache.png);
// // } // // }
// // &.icon-msg{ // // &.icon-msg{
// // background-image: url(../../assets/img/msg.png); // // background-image: url(../../assets/img/msg.png);
// // } // // }
// // &.icon-student{ // // &.icon-student{
// // background-image: url(../../assets/img/student.png); // // background-image: url(../../assets/img/student.png);
// // } // // }
// // &.icon-system{ // // &.icon-system{
// // background-image: url(../../assets/img/system.png); // // background-image: url(../../assets/img/system.png);
// // } // // }
// // } // // }
// // span{ // // span{
// // font-size: 15px; // // font-size: 15px;
// // } // // }
// } // }
// } // }
// } // }
.sidebar::-webkit-scrollbar { .sidebar::-webkit-scrollbar {
width: 0; width: 0;
} }
.sidebar-el-menu:not(.el-menu--collapse) { .sidebar-el-menu:not(.el-menu--collapse) {
width: 100%; width: 100%;
border: 0; border: 0;
border-bottom-left-radius: 20px; border-bottom-left-radius: 20px;
} }
.sidebar > ul { .sidebar > ul {
height: 100%; height: 100%;
} }
/deep/.el-menu{ /deep/.el-menu {
border: 0; border: 0;
} }
// menu // menu
/deep/ .el-submenu__title span { /deep/ .el-submenu__title span {
font-size: 18px; font-size: 18px;
}
} /deep/.el-menu-item {
font-size: 18px !important;
/deep/.el-menu-item { }
font-size: 18px!important; // .myOver {
// overflow: hidden;
} // }
// .myOver {
// overflow: hidden;
// }
</style> </style>

@ -125,8 +125,7 @@
label="判分点" label="判分点"
width="200" width="200"
align="center"></el-table-column> align="center"></el-table-column>
<el-table-column v-if='project' <el-table-column prop="judgmentName"
prop="judgmentName"
label="考核点" label="考核点"
align="center" align="center"
width="150"> width="150">
@ -156,6 +155,22 @@
v-html="scope.row.referenceAnswer"></div> v-html="scope.row.referenceAnswer"></div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="userAnswer"
label="学生答案">
<template slot-scope="scope">
<div v-if='scope.row.lcRuleRecords'>
<div v-for="(item, index) in scope.row.lcRuleRecords"
:key="index">
<span v-if='item.userAnswer'>
<span>{{index+1}}. </span>{{item.userAnswer}}
</span>
<span v-else>
<span>{{index+1}}. </span>未填写
</span>
</div>
</div>
</template>
</el-table-column>
<el-table-column prop="quesScore" <el-table-column prop="quesScore"
label="分值" label="分值"
width="80" width="80"

@ -454,6 +454,7 @@ const myInitState = {
// 身份证号码、客户号、客户姓名、币种(人民币)、钞汇标识(钞户) // 身份证号码、客户号、客户姓名、币种(人民币)、钞汇标识(钞户)
currency:12, currency:12,
goldLogo:13, goldLogo:13,
capital: 1000000,
userName, userName,
peopleNumber, peopleNumber,
idNumber, idNumber,

Loading…
Cancel
Save