20240205
luoJunYong.123 3 years ago
parent 4f44528560
commit 352086c190
  1. 3
      src/pages/counter/list/myConfig.js
  2. 140
      src/pages/manage/list/ImportantCash/controlCash3/index.vue
  3. 54
      src/pages/manage/list/servicesAccount/passwordChange.vue
  4. 2
      src/pages/manage/list/servicesAccount/passwordLost.vue
  5. 245
      src/pages/manage/list/servicesAccount/relieveLost.vue
  6. 46
      src/store/modules/system.js

@ -237,7 +237,7 @@ const myConfig = {
name: 'servicesPasswordRelieveLost', name: 'servicesPasswordRelieveLost',
parentId: '5,28,336', parentId: '5,28,336',
machine: '身份证扫描仪',
isPassword: false isPassword: false
}, },
'337': { '337': {
@ -245,6 +245,7 @@ const myConfig = {
name: 'servicesPasswordRelieveLost2', name: 'servicesPasswordRelieveLost2',
parentId: '5,28,336', parentId: '5,28,336',
machine: '刷卡器',
isPassword: false isPassword: false
}, },

@ -23,58 +23,143 @@
<el-form-item label="凭证起始号" prop="voucherStartType"> <el-form-item label="凭证起始号" prop="voucherStartType">
<el-input :value="form.voucherStartType" @input="val => checkHanzi(val, form, 'voucherStartType')" ref="voucherStartType"></el-input> <el-input :value="form.voucherStartType" @input="val => checkHanzi(val, form, 'voucherStartType')" ref="voucherStartType"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="收费类型" prop="chargeType"> <el-form-item label="收费类型" prop="drawWay">
<el-select v-model="form.chargeType" placeholder="请选择" ref="chargeType"> <el-select v-model="form.drawWay" placeholder="请选择" ref="drawWay">
<el-option label="现金" value="现金"> </el-option> <el-option label="现金" :value="93"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="手续费" prop="serviceCharge"> <el-form-item label="手续费" prop="serviceCharge">
<el-input disabled :value="form.serviceCharge" @input="(val) => ismoney(val, form, 'serviceCharge')" ref="serviceCharge"></el-input> <el-input :value="form.serviceCharge" @input="(val) => ismoney(val, form, 'serviceCharge')" ref="serviceCharge"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="客户名称" prop="customerName"> <el-form-item label="客户名称" prop="customerName">
<el-input disabled :value="form.customerName" @input="(val) => checkHanzi(val, form, 'customerName')" ref="customerName" ></el-input> <el-input :value="form.customerName" @input="(val) => checkHanzi(val, form, 'customerName')" ref="customerName" ></el-input>
</el-form-item>
<el-form-item label="凭证终止号" prop="voucherEndType">
<el-input :value="form.voucherEndType" @input="val => checkHanzi(val, form, 'voucherEndType')" ref="voucherEndType"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="数量" prop="number"> <el-form-item label="数量" prop="number">
<el-input disabled :value="form.number" @input="val => inputListen(val, form, 'number')" ref="number" ></el-input> <el-input :value="form.number" @input="val => inputListen(val, form, 'number')" ref="number" ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="工本费" prop="cost"> <el-form-item label="工本费" prop="cost">
<el-input disabled :value="form.cost" @input="val => ismoney(val, form, 'cost')" ref="cost" ></el-input> <el-input :value="form.cost" @input="val => ismoney(val, form, 'cost')" ref="cost" ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="摘要" prop="abstract"> <el-form-item label="摘要" prop="abstract">
<el-input disabled v-model="form.abstract" ></el-input> <el-input v-model="form.abstract" ></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">提交</el-button> <el-button @click="submitIt()" type="primary" class="submitBtn">提交</el-button>
<my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" />
</div> </div>
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" class="wrap" /> -->
</template> </template>
<script> <script>
import { myValidate, ismoney, checkHanzi, inputListen } from '@/utils/utilFunction.js' import { myValidate, ismoney, checkName, checkHanzi, autoPlay, autoPlay2, inputListen } from '@/utils/utilFunction.js'
import { addOperation, getOperation } from '@/api/http';
import MyTitle from '@/components/myTitle'
import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore'
import MyDialog from '@/components/dialog'
const moduleName = 'controlCash3/index'
export default { export default {
name: 'index', name: 'index',
components:{ components:{
NeedBefore,
MyDialog
}, },
data() { data() {
return { return {
visible: false,
unNeed: false,
isNeedBefore: '',
needBefore: '',
form:{ form:{
// //
username: '', // username: '', //
voucherStartType: '', // voucherStartType: '', //
voucherEndType: '', //
// //
voucherType: '', // voucherType: '', //
chargeType: '', // drawWay: 93, //
serviceCharge: '', // serviceCharge: 5.00, //
customerName: '', // customerName: '', //
number: '', // number: '', //
cost: '', // cost: '', //
abstract: '' // abstract: '' //
}, },
formName:{
//
username: '账号', //
voucherStartType: '凭证起始号', //
voucherEndType: '凭证终止号', //
//
voucherType: '凭证类型', //
drawWay: '收费类型', //
serviceCharge: '手续费', //
customerName: '客户名称', //
number: '数量', //
cost: '工本费', //
abstract: '摘要' //
},
myTable2: {
240: {
prop: 'username',
type: '3',
"subjectId": 84,
},
536: {
prop: 'voucherStartType',
type: '3',
"subjectId": 95,
},
//
},
myTable: {
241: {
prop: 'customerName',
type: '3',
"subjectId": 7,
},
253: {
prop: 'voucherType',
type: '1',
"subjectId": 11,
},
533: {
prop: 'number',
type: '3',
"subjectId": 94,
},
537: {
prop: 'cost',
type: '3',
"subjectId": 96,
},
538: {
prop: 'drawWay',
type: '1',
"subjectId": 90,
},
539: {
prop: 'abstract',
type: '3',
"subjectId": 97,
},
540: {
prop: 'serviceCharge',
type: '3',
"subjectId": 98,
},
},
rules: { rules: {
username: [ username: [
{ {
@ -95,24 +180,47 @@ export default {
}, },
created() { created() {
// this.handleSelect(1) // this.handleSelect(1)
if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') {
}else {
this.isNeedBefore = true
this.needBefore = this.needsModule(moduleName)
}
}else {
this.isNeedBefore = true
this.unNeed = true
}
}, },
mounted() { mounted() {
this.$refs.username.focus() this.$refs.username.focus()
}, },
methods: { methods: {
submitIt() { submitIt() {
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
// this.visible = true
this.$message({
message: '验证成功',
center: true
});
}, this.$refs)); }, this.$refs));
}, },
submitForm2() {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,31,520'
const cards = [
]
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
},
checkHanzi: checkHanzi, checkHanzi: checkHanzi,
inputListen: inputListen, inputListen: inputListen,
ismoney: ismoney ismoney: ismoney
},
computed: {
...mapGetters({
needsModule: 'system/needsModule',
inMyWork: 'system/inMyWork',
}),
} }
}; };
</script> </script>

@ -81,7 +81,6 @@ export default{
}, },
data(){ data(){
return{ return{
visible: false,
idNumberJudge: false, idNumberJudge: false,
cardNumberJudge: false, cardNumberJudge: false,
visible: false, visible: false,
@ -178,7 +177,6 @@ export default{
if(sessionStorage.getItem('servicesPasswordChange3')) { if(sessionStorage.getItem('servicesPasswordChange3')) {
this.form.payPassword = sessionStorage.getItem('servicesPasswordChange3') this.form.payPassword = sessionStorage.getItem('servicesPasswordChange3')
} }
console.log(sessionStorage.getItem('servicesPasswordChange4'))
if(sessionStorage.getItem('servicesPasswordChange4')) { if(sessionStorage.getItem('servicesPasswordChange4')) {
this.form.newPayPassword = sessionStorage.getItem('servicesPasswordChange4') this.form.newPayPassword = sessionStorage.getItem('servicesPasswordChange4')
} }
@ -252,52 +250,6 @@ export default{
submitForm() { submitForm() {
if(!this.form.idNumber) { if(!this.form.idNumber) {
messageIdCard('请输入证件号码') messageIdCard('请输入证件号码')
// let projectId = sessionStorage.getItem('projectId')
// let startTime = sessionStorage.getItem('startTime')
// let formList = [
// {
// "answerId":'320',
// "emptyOne": "",
// "emptyTwo": "",
// "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,28,316,320,13",
// "type": ""
// },
// ]
// let params= {
// parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,28,316,320',
// lcJudgmentRuleReq:formList,
// projectId:+projectId,
// startTime:startTime,
// }
// addOperation(params).then((data)=>{
// this.$message({
// message: '',
// type: 'success'
// });
// }).catch((error)=>{
// })
// let formLists = [
// {
// "answerId":'323',
// "emptyOne": "",
// "emptyTwo": "",
// "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,28,316,323,324",
// "type": ""
// },
// ]
// let param= {
// parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,28,316,323',
// lcJudgmentRuleReq:formLists,
// projectId:+projectId,
// startTime:startTime,
// }
// addOperation(param).then((data)=>{
// this.$message({
// message: '',
// type: 'success'
// });
// }).catch((error)=>{
// })
return return
} }
if(!this.form.voucherNumber) { if(!this.form.voucherNumber) {
@ -326,12 +278,6 @@ export default{
{ {
key: '323,324' key: '323,324'
} }
// { // //
// 320: servicesPasswordChange
// },
// { //
// 323: servicesPasswordChange2
// }
] ]
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards) autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
}, },

@ -117,6 +117,8 @@ export default{
if(this.inMyWork(moduleName)) { if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') { if(this.needsModule(moduleName) === '') {
if(sessionStorage.getItem('servicesPasswordLost')) { if(sessionStorage.getItem('servicesPasswordLost')) {
console.log('刷了的。。。。。。。。。。。。。。。。。')
this.cardNumberJudge = true this.cardNumberJudge = true
const { voucherNumber, userName } = this.dataFlow const { voucherNumber, userName } = this.dataFlow
this.form.customerName = userName this.form.customerName = userName

@ -10,9 +10,12 @@
<el-form ref="form" :model="form" label-width="120px" :rules="rules"> <el-form ref="form" :model="form" label-width="120px" :rules="rules">
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
<el-form-item label="账号" required> <el-form-item label="账号" required>
<div class="idCard" @click="popUp1('银行扫描器')"> <div v-if='!cardNumberJudge' class="idCard" @click="popUp1('刷卡器')">
<p>请刷银行卡</p> <p>请刷银行卡</p>
</div> </div>
<div v-else>
<el-input ref="voucherNumber" disabled :value="form.voucherNumber" @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input>
</div>
</el-form-item> </el-form-item>
<el-form-item label="证件类型" prop="certificateType"> <el-form-item label="证件类型" prop="certificateType">
<el-select v-model="form.certificateType" ref="certificateType"> <el-select v-model="form.certificateType" ref="certificateType">
@ -20,9 +23,12 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="支取密码" required> <el-form-item label="支取密码" required>
<div class="idCard" @click="popUp3('密码器')"> <div v-if='!form.payPassword' class="idCard" @click="popUp3('密码器')">
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else @click="popUp3('密码器')">
<el-input :value="form.payPassword" ref="payPassword" type="password"></el-input>
</div>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="10" :offset="1"> <el-col :span="10" :offset="1">
@ -30,9 +36,12 @@
<el-input :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')" ref="customerName"></el-input> <el-input :value="form.customerName" @input="(val) => checkName(val, form, 'customerName')" ref="customerName"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="身份证" required> <el-form-item label="身份证" required>
<div class="idCard" @click="popUp2('身份证扫描器')"> <div class="idCard" @click="popUp2('身份证扫描仪')" v-if='!idNumberJudge'>
<p>请刷身份证</p> <p>请刷身份证</p>
</div> </div>
<div v-else>
<el-input :value="form.idNumber" disabled ref="idNumber"></el-input>
</div>
</el-form-item> </el-form-item>
<el-form-item label="备注" prop="remark"> <el-form-item label="备注" prop="remark">
<el-input v-model="form.remark" ref="remark"></el-input> <el-input v-model="form.remark" ref="remark"></el-input>
@ -41,49 +50,58 @@
</el-form> </el-form>
</el-row> </el-row>
<el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button> <el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button>
<el-dialog <my-dialog v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" @submitIt="submitForm2" />
style="margin-top:10vh"
:visible.sync="visible"
:modal="false"
width="40%"
:close-on-click-modal="false"
:show-close="false"
custom-class="data-dia"
>
<div slot="title" class="dia-header">
<div class="data-title">提交</div>
</div>
<div class="popBody">
<h2>本业务需要授权</h2>
</div>
<div class="popBtns">
<el-button class="close btn" @click="visible = false"> </el-button>
<el-button class="sure btn" type="primary" @click="visible = false"> </el-button>
</div>
</el-dialog>
</div> </div>
<!-- <need-before v-else :moduleName='needBefore' :unNeed="unNeed" class="wrap" /> -->
</div> </div>
</template> </template>
<script> <script>
import { vercustomer } from '@/utils/verify.js' import { vercustomer } from '@/utils/verify.js'
import { myValidate, checkHanzi, checkName, autoPlay, autoPlay2 } from '@/utils/utilFunction.js' const moduleName = 'servicesAccount/relieveLost'
import { myValidate, checkHanzi, checkName, autoPlay, autoPlay2, messageIdCard, messageCard, messagePassword } from '@/utils/utilFunction.js'
import MyTitle from '@/components/myTitle' import MyTitle from '@/components/myTitle'
import { mapMutations, mapGetters } from 'vuex'
import NeedBefore from '@/components/needBefore'
import MyDialog from '@/components/dialog'
export default{ export default{
name:'', name:'',
props:{}, props:{},
components: { components: {
MyTitle MyTitle,
MyDialog,
NeedBefore
}, },
data(){ data(){
return{ return{
idNumberJudge: false,
cardNumberJudge: false,
visible: false,
unNeed: false,
isNeedBefore: '',
needBefore: '',
form:{ form:{
// //
customerName: '', // customerName: '', //
payPassword: '', //
idNumber: '', //
voucherNumber: '', //
// //
certificateType: '身份证', // certificateType: 83, //
remark: '', // remark: '', //
}, },
formName:{
//
customerName: '客户姓名', //
idNumber: '证件号码', //
voucherNumber: '账号', //
payPassword: '支取密码', //
certificateType: '证件类型', //
remark: '备注', //
},
rules: { rules: {
customerName: vercustomer customerName: vercustomer
}, },
@ -104,75 +122,75 @@ export default{
prop: 'customerName', // prop: 'customerName', //
type: '3', type: '3',
"subjectId": '7', "subjectId": '7',
},
343: {
prop: 'payPassword', //
type: '3',
"subjectId": '17',
} }
}, },
visible: false visible: false
} }
}, },
methods: { methods: {
...mapMutations({
changeShowGoods: 'system/changeShowGoods',
setDataFlow: 'system/setDataFlow',
setNeedsModule: 'system/setNeedsModule',
setPopId: 'system/setPopId'
}),
// popUp1(text) {
// this.$message.warning('');
// this.setPopId('329')
// sessionStorage.setItem('computerPath', this.$route.fullPath)
// this.$router.push('/counter/list/')
// },
popUp1(text) { popUp1(text) {
this.$store.commit('system/changePop',{show:true,text, id: '337'}) this.$message.warning('请刷银行卡');
this.setPopId('337')
sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/')
// this.$store.commit('system/changePop',{show:true,text, id: '337'})
}, },
popUp2(text) { popUp2(text) {
this.$store.commit('system/changePop',{show:true,text, id: '341'}) this.$message.warning('请刷身份证');
this.setPopId('341')
sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/')
// this.$store.commit('system/changePop',{show:true,text, id: '341'})
}, },
popUp3(text) { popUp3(text) {
this.$store.commit('system/changePop',{show:true,text, id: '343'}) this.$message.warning('在输入支付密码');
this.setPopId('343')
sessionStorage.setItem('computerPath', this.$route.fullPath)
this.$router.push('/counter/list/')
// this.$store.commit('system/changePop',{show:true,text, id: '343'})
}, },
submitForm() { submitForm() {
if(!this.form.idNumber) {
messageIdCard('请输入证件号码')
return
}
if(!this.form.voucherNumber) {
messageCard('请填写凭证号码')
return
}
if(!this.form.payPassword) {
messagePassword('新输入旧支付密码')
return
}
this.$refs.form.validate(myValidate(() => { this.$refs.form.validate(myValidate(() => {
//
let servicesPasswordRelieveLost = sessionStorage.getItem('servicesPasswordRelieveLost')
let servicesPasswordRelieveLost2 = sessionStorage.getItem('servicesPasswordRelieveLost2')
let servicesPasswordRelievePassword = sessionStorage.getItem('servicesPasswordRelievePassword')
// let projectId = sessionStorage.getItem('projectId')
// let startTime = sessionStorage.getItem('startTime')
// let formList = [
// {
// "answerId":'337',
// "emptyOne": "",
// "emptyTwo": "",
// "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,28,336,337,338",
// "type": ""
// }
// ]
// let params= {
// parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,28,336,337',
// lcJudgmentRuleReq:formList,
// projectId:+projectId,
// startTime:startTime,
// }
// addOperation(params).then((data)=>{
// this.$message({
// message: '',
// type: 'success'
// });
// }).catch((error)=>{
// })
// let formLists = [
// {
// "answerId":'341',
// "emptyOne": "",
// "emptyTwo": "",
// "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,5,28,336,341,13",
// "type": ""
// }
// ]
// let param= {
// parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,28,336,341',
// lcJudgmentRuleReq:formLists,
// projectId:+projectId,
// startTime:startTime,
// }
// addOperation(param).then((data)=>{
// this.$message({
// message: '',
// type: 'success'
// });
// }).catch((error)=>{
// })
this.visible = true; this.visible = true;
}, this.$refs));
},
submitForm2() {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,28,336' const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,28,336'
const cards = [ const cards = [
{ {
@ -181,32 +199,69 @@ export default{
{ {
key: '341,13' key: '341,13'
} }
// { // //
// 341: servicesPasswordRelieveLost
// },
// { //
// 337: servicesPasswordRelieveLost2
// },
// {
// 343: servicesPasswordRelievePassword,
// subjectId: '17'
// }
] ]
autoPlay(parentId, this.form, this.myTable2, this.myTable, cards) autoPlay(parentId, this.form, this.myTable2, this.myTable, cards)
}, this.$refs));
}, },
checkHanzi: checkHanzi, checkHanzi: checkHanzi,
checkName: checkName checkName: checkName
}, },
mounted() { created() {
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,28,336'
const cards = {
// 341: 'servicesPasswordRelieveLost', // 341: 'servicesPasswordRelieveLost',
// 337: 'servicesPasswordRelieveLost2', // 337: 'servicesPasswordRelieveLost2',
// 343: 'servicesPasswordRelievePassword', // 343: 'servicesPasswordRelievePassword',
console.log(this.dataFlow.idNumber)
if(this.inMyWork(moduleName)) {
if(this.needsModule(moduleName) === '') {
if(sessionStorage.getItem('servicesPasswordRelieveLost')) {
this.idNumberJudge = true
const { idNumber, userName } = this.dataFlow
this.form.idNumber = idNumber
this.form.customerName = userName
} }
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards) if(sessionStorage.getItem('servicesPasswordRelieveLost2')) {
// this.$refs.customerName.focus() this.cardNumberJudge = true
const { voucherNumber } = this.dataFlow
this.form.voucherNumber = voucherNumber
}
if(sessionStorage.getItem('servicesPasswordRelievePassword')) {
this.form.payPassword = sessionStorage.getItem('servicesPasswordRelievePassword')
}
const parentId = '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,5,28,336'
const cards = {
}
const callback = () => {
if(this.form.idNumber) {
this.idNumberJudge = true
}
if(this.form.voucherNumber) {
this.cardNumberJudge = true
}
if(sessionStorage.getItem('servicesPasswordRelievePassword')) {
this.form.payPassword = sessionStorage.getItem('servicesPasswordRelievePassword')
}
}
autoPlay2(parentId, this.form, this.myTable2, this.myTable, cards, callback)
}else {
this.isNeedBefore = true
this.needBefore = this.needsModule(moduleName)
}
}else {
this.isNeedBefore = true
this.unNeed = true
}
},
computed: {
...mapGetters({
dataFlow: 'system/dataFlow',
needsModule: 'system/needsModule',
idCardNumber: 'system/idCardNumber',
inMyWork: 'system/inMyWork',
})
} }
} }
</script> </script>

@ -1766,8 +1766,14 @@ export default {
needsModule: { needsModule: {
// 这个项目没出 // 这个项目没出
'servicesAccount/relieveLost': false
}, },
dataFlow: {
voucherNumber,
idNumber,
userName
}
}, },
// '项目十八': { // 现金领用 // '项目十八': { // 现金领用
@ -2003,7 +2009,34 @@ export default {
'controlCash2/cashOut' : false 'controlCash2/cashOut' : false
}, },
}, },
'项目二十六': { // 柜员日终扎帐 '项目二十六': { // 支票出售
id: 508,
data: [ 13, 23, 15, 413 ], // 身份证原件、复印件、现金、支票领购单
needs: [ 411, 479 ],
isStamp: {
'附件章': [ 23 ],
'业务专用章': [ 413, 479 ]
},
backPeople: [ 13, 480, 411, 481 ], // 少了身份证原件、支票领购单回单、现金支票、业务收费凭证回单
cultureArr: [ 23, 488, 488 ], // 少了复印件、支票领购单凭证联、业务收费凭证凭证联、
moneyBox: [ ], // 钱箱
needBackMoney: false, // 需要钱箱取钱
peopleSign: [ ], // 客户签字
cultureIn: [], // 传票栏
sealBox: [], // 印章盒
currencyDetector: [], // 验钞机
printer: [], // 打印机
resource: [], // 资料
importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱
needsModule: {
'controlCash3/index': false
},
},
'项目二十七': { // 柜员日终扎帐
id: 516, id: 516,
data: [ ], // data: [ ], //
needs: [ 438 ], needs: [ 438 ],
@ -2025,7 +2058,7 @@ export default {
importanceArr: [], // 重要空白凭证箱 importanceArr: [], // 重要空白凭证箱
commonArr: [], // 普通凭证箱 commonArr: [], // 普通凭证箱
}, },
'项目二十': { // 网点日中扎帐 '项目二十': { // 网点日中扎帐
id: 517, id: 517,
data: [ ], // data: [ ], //
needs: [ 438 ], needs: [ 438 ],
@ -2243,14 +2276,12 @@ export default {
}, },
stampJudge(state, sealArr) { stampJudge(state, sealArr) {
const needStamp = state.businessSelect[state.businessKey].isStamp // const needStamp = state.businessSelect[state.businessKey].isStamp
const id = state.businessSelect[state.businessKey].sealBox[0] const id = state.businessSelect[state.businessKey].sealBox[0]
let judgeDelete = true // 盖完章是否变化 let judgeDelete = true // 盖完章是否变化
let stampSuccess = '' // 盖章成功 let stampSuccess = '' // 盖章成功
console.log(sealArr)
if(sealArr.length === 1) { if(sealArr.length === 1) {
const seal = sealArr[0] const seal = sealArr[0]
if((seal in needStamp) && (needStamp[seal].findIndex(item => item === id) >= 0)) {
if(seal === '业务专用章') { if(seal === '业务专用章') {
if(id === 14) { if(id === 14) {
state.businessSelect[state.businessKey].data.push(24, 21) state.businessSelect[state.businessKey].data.push(24, 21)
@ -2338,7 +2369,6 @@ export default {
stampSuccess = '454' stampSuccess = '454'
} }
} }
}
}else if(sealArr.length === 2) { }else if(sealArr.length === 2) {
// sealArray 按顺序命名 // sealArray 按顺序命名
const index1 = sealArray.findIndex(item => item === sealArr[0]) const index1 = sealArray.findIndex(item => item === sealArr[0])
@ -2349,7 +2379,6 @@ export default {
}else { }else {
seal = sealArr[1] + sealArr[0] seal = sealArr[1] + sealArr[0]
} }
if(((seal in needStamp) && (needStamp[seal].findIndex(item => item === id) >= 0))) {
if(seal === '私章业务专用章') { if(seal === '私章业务专用章') {
if(id === 411) { if(id === 411) {
state.businessSelect[state.businessKey].data.push(473, 472) state.businessSelect[state.businessKey].data.push(473, 472)
@ -2364,7 +2393,6 @@ export default {
} }
} }
} }
}
if(stampSuccess) { if(stampSuccess) {
console.log('---stampSuccess') console.log('---stampSuccess')
console.log(stampSuccess) console.log(stampSuccess)

Loading…
Cancel
Save