20240205 V3.0.0
yujialong 10 months ago
parent b60282b643
commit 74f9ae8920
  1. 2
      src/components/case/index.vue
  2. 2
      src/pages/lobbyManager/list/index.vue
  3. 477
      src/pages/manage/list/dayEnd/tellerCertificate.vue
  4. 3
      src/store/modules/system.js

@ -11,7 +11,7 @@
<el-select v-model.trim="projectId" <el-select v-model.trim="projectId"
placeholder="请选择" placeholder="请选择"
class="select" class="select"
:disabled="projectPermissions != 0" disabled
@change="selectProject"> @change="selectProject">
<el-option v-for="item in topicList" <el-option v-for="item in topicList"
:key="item.projectId" :key="item.projectId"

@ -521,7 +521,7 @@ export default {
} }
}) })
const params= { const params= {
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',286, 553', parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',286,553',
lcJudgmentRuleReq:formList, lcJudgmentRuleReq:formList,
projectId:+projectId, projectId:+projectId,
startTime:startTime, startTime:startTime,

@ -1,78 +1,93 @@
<template> <template>
<div class="wrap2 myPadding"> <div class="wrap2 myPadding">
<my-title :titleArr="['日终管理', '柜员凭证轧账']"/> <my-title :titleArr="['日终管理', '柜员凭证轧账']" />
<!-- 存款 --> <!-- 存款 -->
<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="日期" required> :model="form"
<!-- <el-date-picker type="date" placeholder="选择日期" v-model.trim="form.date" style="width: 100%;"></el-date-picker> --> label-width="120px"
<el-input :value="form.date" disabled ref="date"></el-input> :rules="rules">
</el-form-item> <el-col :span="10"
</el-col> :offset="1">
<el-col :span="10" :offset="1"> <el-form-item label="日期"
<el-form-item label="柜员号" prop="counterNumber"> required>
<el-input disabled :value="form.counterNumber" @input="(val) => checkHanzi(val, form, 'counterNumber')"></el-input> <!-- <el-date-picker type="date" placeholder="选择日期" v-model.trim="form.date" style="width: 100%;"></el-date-picker> -->
</el-form-item> <el-input :value="form.date"
</el-col> disabled
<!-- <el-col :span="20" :offset="2"> ref="date"></el-input>
</el-form-item>
</el-col>
<el-col :span="10"
:offset="1">
<el-form-item label="柜员号"
prop="counterNumber">
<el-input disabled
:value="form.counterNumber"
@input="(val) => checkHanzi(val, form, 'counterNumber')"></el-input>
</el-form-item>
</el-col>
<!-- <el-col :span="20" :offset="2">
</el-col> --> </el-col> -->
<el-table <el-table ref="filterTable"
ref="filterTable" :data="tableData"
:data="tableData" max-height="550"
max-height="550" :header-cell-style="headerCellStyle"
:header-cell-style="headerCellStyle" style="width: 95%"
style="width: 95%" :rules="rules">
:rules="rules"> <el-table-column prop="certificateName"
<el-table-column label="凭证类型"
prop="certificateName" align="center">
label="凭证类型" </el-table-column>
align="center" <el-table-column prop="stockNum"
> label="库存数量"
</el-table-column> align="center">
<el-table-column </el-table-column>
prop="stockNum" <el-table-column prop="startNumber"
label="库存数量" label="起始号码"
align="center" align="center">
> </el-table-column>
</el-table-column> <el-table-column prop="endNumber"
<el-table-column label="终止号码"
prop="startNumber" align="center">
label="起始号码" </el-table-column>
align="center" <el-table-column label="钱箱数量"
> align="center"
</el-table-column> width="230"
<el-table-column prop="boxNumber">
prop="endNumber" <template slot-scope="scope">
label="终止号码" <el-form-item :label="scope.row.certificateName + '数量'"
align="center" required>
> <el-input type='text'
</el-table-column> @input="val => inputListen(val, scope.row)"
<el-table-column min="0"
label="钱箱数量" :value="scope.row.cashBoxNum"
align="center" class='numrule'></el-input>
width="230" </el-form-item>
prop="boxNumber" </template>
> </el-table-column>
<template slot-scope="scope"> </el-table>
<el-form-item :label="scope.row.certificateName + '数量'" required>
<el-input type='text' @input="val => inputListen(val, scope.row)" min="0" :value="scope.row.cashBoxNum" class='numrule'></el-input>
</el-form-item>
</template>
</el-table-column>
</el-table>
</el-form>
</el-row>
<el-button @click="submitForm" type="primary" class="submitBtn" style="margin-top: 20px;" v-throttle>提交</el-button>
<my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" />
</div>
</el-form>
</el-row>
<el-button @click="submitForm"
type="primary"
class="submitBtn"
style="margin-top: 20px;"
v-throttle>提交</el-button>
<my-dialog :moduleName="moduleName"
v-if="visible"
:visible.sync="visible"
:showForm="form"
:formName="formName"
@submitIt="submitForm2" />
</div> </div>
</div>
</template> </template>
<script> <script>
@ -84,178 +99,180 @@ import MyDialog from '@/components/dialogTwo'
import { Message } from 'element-ui'; import { Message } from 'element-ui';
import { addOperation } from '@/api/http'; import { addOperation } from '@/api/http';
export default { export default {
name: 'index', name: 'index',
components:{ components: {
MyTitle, MyTitle,
MyDialog MyDialog
}, },
data() { data () {
return { return {
headerCellStyle: headerCellStyle, headerCellStyle: headerCellStyle,
moduleName: 'tellerCertificate', moduleName: 'tellerCertificate',
visible: false, visible: false,
form:{ form: {
date: '', date: '',
counterNumber: '002288', counterNumber: '002288',
}, },
formName:{ formName: {
date: '日期', date: '日期',
counterNumber: '柜员号' counterNumber: '柜员号'
}, },
rules: { rules: {
date: [ date: [
{ {
required: true, required: true,
message: '请输入日期', message: '请输入日期',
trigger: 'blur' trigger: 'blur'
} }
], ],
counterNumber: [ counterNumber: [
{ {
required: true, required: true,
message: '请输入柜员号', message: '请输入柜员号',
trigger: 'blur' trigger: 'blur'
} }
], ],
boxNumber: [ boxNumber: [
{ {
required: true, required: true,
message: '请输入钱箱数量', message: '请输入钱箱数量',
trigger: 'blur' trigger: 'blur'
} }
] ]
}, },
tableData: [ tableData: [
{ {
certificateName: '银行卡', certificateName: '银行卡',
stockNum: 19, stockNum: 19,
startNumber: '003001', startNumber: '003001',
endNumber: '003019', endNumber: '003019',
cashBoxNum: '', cashBoxNum: '',
name2: 'bankCard', name2: 'bankCard',
}, },
{ {
certificateName: '定期存单', certificateName: '定期存单',
stockNum: 20, stockNum: 20,
startNumber: '003501', startNumber: '003501',
endNumber: '003520', endNumber: '003520',
cashBoxNum: '', cashBoxNum: '',
name2: 'depositReceipt', name2: 'depositReceipt',
}, },
{ {
certificateName: '现金支票', certificateName: '现金支票',
stockNum: 20, stockNum: 20,
startNumber: '003601', startNumber: '003601',
endNumber: '003620', endNumber: '003620',
cashBoxNum: '', cashBoxNum: '',
name2: 'cashCheck', name2: 'cashCheck',
}, },
{ {
certificateName: '转账支票', certificateName: '转账支票',
stockNum: 20, stockNum: 20,
startNumber: '003701', startNumber: '003701',
endNumber: '003720', endNumber: '003720',
cashBoxNum: '', cashBoxNum: '',
name2: 'transCheck', name2: 'transCheck',
}
],
submited: 0
} }
],
submited: 0
}
},
created () {
const tmpFunc = () => {
const date = new Date()
var y = date.getFullYear();
var m = date.getMonth() + 1;
m = m < 10 ? '0' + m : m;
var d = date.getDate();
d = d < 10 ? ('0' + d) : d;
return y + '-' + m + '-' + d;
}
this.form.date = tmpFunc()
},
methods: {
...mapMutations({
setTipsOperate: 'system/setTipsOperate'
}),
inputListen (val, row) {
row.cashBoxNum = Number(val.replace(/\D+/, ''))
}, },
created() { submitForm () {
const tmpFunc = () => { if (this.submited) return this.$message.error('已提交!')
const date = new Date() this.$refs.form.validate(myValidate(() => {
var y = date.getFullYear(); for (const item of this.tableData) {
var m = date.getMonth() + 1; if (item.cashBoxNum === '') {
m = m < 10 ? '0' + m : m; Message.warning({
var d = date.getDate(); center: true,
d = d < 10 ? ('0' + d) : d; message: '请输入' + item.certificateName + '数量'
return y + '-' + m + '-' + d; })
return;
}
} }
this.form.date = tmpFunc() const obj1 = {}
const obj2 = {}
for (const item of this.tableData) {
console.log(item)
const { cashBoxNum, name2, certificateName } = item;
obj1[name2] = cashBoxNum + '张'
obj2[name2] = certificateName
}
this.form = { ...this.form, ...obj1 }
this.formName = { ...this.formName, ...obj2 }
this.visible = true
}, this.$refs));
}, },
methods: { submitForm2 () {
...mapMutations({ let projectId = sessionStorage.getItem('projectId')
setTipsOperate: 'system/setTipsOperate' let startTime = sessionStorage.getItem('startTime')
}), const formList = []
inputListen(val, row) {
row.cashBoxNum = Number(val.replace(/\D+/, ''))
},
submitForm() {
if (this.submited) return this.$message.error('已提交!')
this.$refs.form.validate(myValidate(() => {
for(const item of this.tableData) {
if(item.cashBoxNum === '') {
Message.warning({
center: true,
message: '请输入' + item.certificateName + '数量'
})
return;
}
}
const obj1 = {}
const obj2 = {}
for(const item of this.tableData) {
console.log(item)
const { cashBoxNum, name2, certificateName } = item;
obj1[name2] = cashBoxNum + '张'
obj2[name2] = certificateName
}
this.form = { ...this.form, ...obj1 }
this.formName = { ...this.formName, ...obj2 }
console.log(obj1)
console.log(obj2)
this.visible = true
}, this.$refs));
},
submitForm2() {
let projectId = sessionStorage.getItem('projectId')
let startTime = sessionStorage.getItem('startTime')
const formList = []
formList.push({"answerId":'544',"emptyOne": 99, "emptyTwo": this.form.date, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,32,542,544","type": "3"}) formList.push({ "answerId": '544', "emptyOne": 99, "emptyTwo": this.form.date, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,32,542,544", "type": "3" })
formList.push({"answerId":'545',"emptyOne": 100, "emptyTwo": this.form.counterNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,32,542,545","type": "3"}) formList.push({ "answerId": '545', "emptyOne": 100, "emptyTwo": this.form.counterNumber, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,32,542,545", "type": "3" })
let params= { formList.push({ "answerId": '572', "emptyOne": 106, "emptyTwo": this.tableData[0].cashBoxNum, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,32,542,572", "type": "3" })
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,32,542', formList.push({ "answerId": '573', "emptyOne": 107, "emptyTwo": this.tableData[1].cashBoxNum, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,32,542,573", "type": "3" })
lcJudgmentRuleReq:formList, formList.push({ "answerId": '574', "emptyOne": 108, "emptyTwo": this.tableData[2].cashBoxNum, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,32,542,574", "type": "3" })
projectId:+projectId, formList.push({ "answerId": '575', "emptyOne": 109, "emptyTwo": this.tableData[3].cashBoxNum, "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ",287,5,32,542,575", "type": "3" })
startTime:startTime,
} let params = {
addOperation(params).then((data)=>{ parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,32,542',
this.submited = 1 lcJudgmentRuleReq: formList,
// this.$message({ projectId: +projectId,
// message: '', startTime: startTime,
// type: 'success' }
// }); addOperation(params).then((data) => {
// this.setNeedsModule(moduleName) this.submited = 1
// this.setDataFlow({ ...this.form }) // this.$message({
}).catch((error)=>{ // message: '',
}) // type: 'success'
}, // });
tableRowClassName: tableRowClassName, // this.setNeedsModule(moduleName)
checkHanzi: checkHanzi // this.setDataFlow({ ...this.form })
} }).catch((error) => {
})
},
tableRowClassName: tableRowClassName,
checkHanzi: checkHanzi
}
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import '@/assets/css/tablebg.scss'; @import '@/assets/css/tablebg.scss';
.myPadding {
padding: 24px 0 24px 24px;
}
/deep/.numrule input { .myPadding {
appearance: textField!important; padding: 24px 0 24px 24px;
-webkit-appearance: textField!important; }
width: 100px;
}
/deep/.el-input input { /deep/.numrule input {
text-align: center; appearance: textField !important;
} -webkit-appearance: textField !important;
width: 100px;
}
/deep/.el-input input {
text-align: center;
}
</style> </style>

@ -2514,7 +2514,7 @@ export default {
} }
}, },
'业务三十二': { // 银行承兑汇票签发 '业务三十二': { // 银行承兑汇票签发
id: 5771, id: 577,
name: '银行承兑汇票签发', name: '银行承兑汇票签发',
data: [ 13, 587 ], // data: [ 13, 587 ], //
needs: [ ], needs: [ ],
@ -3074,7 +3074,6 @@ export default {
} }
} }
} }
console.log('arr=',arr)
return arr return arr
}, },

Loading…
Cancel
Save