差个传票栏

20240205
luoJunYong.123 3 years ago
parent a7cb1b2909
commit 4c657e23ba
  1. 47
      src/pages/counter/list/index.vue
  2. 4
      src/pages/manage/list/personal/callDeposits/accountClosed.vue
  3. 4
      src/pages/manage/list/personal/callDeposits/openAccount.vue
  4. 8
      src/pages/manage/list/personal/currentAccount/openAccount.vue
  5. 42
      src/store/modules/system.js

@ -5,7 +5,7 @@
<!-- <img class="sth guide" src="@/assets/img/guide.png" alt="" /> -->
<img class="sth man cp" v-lazy="lazyImg[0]" alt="" @click="showData('客户签字',0)"/>
<img class="sth counter" v-lazy="lazyImg[1]" alt="" />
<img class="sth glass" v-lazy="lazyImg[2]" alt="" />
<img class="sth glass" v-lazy="lazyImg[2]" alt="" @click="showData('客户签字',0)"/>
<!-- 系统录入 -->
<el-tooltip placement="top" popper-class="sth-popper">
@ -173,7 +173,7 @@
</div>
<!-- 暂时未确定是否公共使用一个弹框 -->
<div v-else class="list" ref="popUp"><!-- 钱箱 / 传票栏 ... 一系列可存物品弹框 -->
<div class="img-wrap" :class="{ checked: commonChecked.includes(item.id),'img-wrap':true }" @click='dislodgeItem(index)' v-for="(item, index) in receptionList" :key="index" >
<div class="img-wrap" :class="{ checked: commonChecked.includes(item.id),'img-wrap':true }" @click='dislodgeItem(index)' v-for="(item, index) in receptionList" :key="item.id">
<img :src="item.src" class="file" alt="" />
<p class="text">{{item.name}}</p>
</div>
@ -261,6 +261,7 @@ export default {
}
};
return {
peopleSign: [],
moneyBox: [],
takeCheck: '', // myKey
businessArr: [
@ -918,7 +919,10 @@ export default {
}
}
if(this.$store.state.system.popText == '钱箱') {
// this.receptionList.push(...this.moneyBox)
this.receptionList.splice(0, this.receptionList.length, ...this.moneyBox)
}
if(this.$store.state.system.popText == '客户签字') {
this.receptionList.splice(0, this.receptionList.length, ...this.peopleSign)
}
if(!this.showGoods) this.checkList = []
return this.$store.state.system.showPop;
@ -1061,8 +1065,13 @@ export default {
}
}
}
console.log('whata')
console.log(that.receptionList)
if(that.popText == '钱箱') {
// that.moneyBox.splice(0, that.moneyBox.length, ...that.receptionList)
that.moneyBox = that.receptionList
}
if(that.popText == '客户签字') {
that.peopleSign = that.receptionList
}
}
//
else if(that.$refs.popUpSeal) {
@ -1134,7 +1143,8 @@ export default {
addGoods: 'system/addGoods',
deleteGoods: 'system/deleteGoods',
stampJudge: 'system/stampJudge',
payMoney: 'system/payMoney'
payMoney: 'system/payMoney',
backPeople: 'system/backPeople'
}),
checkTake(myKey){
if(this.takeCheck === myKey) {
@ -1148,7 +1158,8 @@ export default {
this.$confirm('由于您未选择一个业务,系统将返回主界面, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
type: 'warning',
center: true
}).then(() => {
this.$router.push('/index')
}).catch(() => {
@ -1164,9 +1175,18 @@ export default {
},
showBusinessSelect (judge) {
if(!judge && !this.businessKey) {
this.$message({
message: '请选择一个业务!',
type: 'warning'
this.$confirm('由于您未选择一个业务,系统将返回主界面, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
center: true
}).then(() => {
this.$router.push('/index')
}).catch(() => {
this.$message({
type: 'info',
message: '请选择一个业务'
});
});
return
}
@ -1369,8 +1389,6 @@ export default {
const id = this.receptionList[0].id
const sealArr = [...this.sealChecked]
this.stampJudge({ sealArr, id})
console.log(this.receptionList)
console.log(this.sealChecked)
}else if(this.popText == '钱箱') {
console.log(this.receptionList)
for(let i=0; i<this.receptionList.length; i++) {
@ -1380,6 +1398,10 @@ export default {
break;
}
}
}else if(this.popText == '客户签字') {
const idArr = this.receptionList.map(item => item.id)
this.backPeople(idArr)
// this.stampJudge()
}else{
console.log('-刷卡确认')
// this.goodsShelfTotalData = this.auditGoodsShelf
@ -1783,6 +1805,7 @@ export default {
position: absolute;
}
.glass {
cursor: pointer;
//
top: 16vh;
left: 50vw;

@ -16,7 +16,9 @@
<el-input v-model="form.customerNumber"></el-input>
</el-form-item>
<el-form-item label="币种" prop="currency">
<el-input ref="currency" :value="form.currency" @input="(val) => checkName(val, form, 'currency')"></el-input>
<el-select v-model="form.currency" placeholder="请选择" ref="currency">
<el-option value="CYC人民币">CYC人民币</el-option>
</el-select>
</el-form-item>
<el-form-item label="通知类型" prop="noticeType">
<el-select v-model="form.noticeType" placeholder="请选择" ref="noticeType">

@ -13,7 +13,9 @@
<el-input :value="form.clientNumber" @input="(val) => checkHanzi(val, form, 'clientNumber')" ref="clientNumber"></el-input>
</el-form-item>
<el-form-item label="币种" prop="currency">
<el-input ref="currency" :value="form.currency" @input="(val) => checkName(val, form, 'currency')"></el-input>
<el-select v-model="form.currency" placeholder="请选择" ref="currency">
<el-option value="CYC人民币">CYC人民币</el-option>
</el-select>
</el-form-item>
<el-form-item label="凭证类型" prop="voucherType">
<el-select disabled v-model="form.voucherType" placeholder="请选择" ref="voucherType">

@ -10,10 +10,10 @@
<el-input :value="form.userNumber" @input="(val) => checkHanzi(val, form, 'userNumber')" ref="userNumber"></el-input>
</el-form-item>
<el-form-item label="币种" prop="currency">
<el-select v-model="form.currency" placeholder="请选择" ref="currency">
<el-option value="CYC人民币">CYC人民币</el-option>
</el-select>
</el-form-item>
<el-select v-model="form.currency" placeholder="请选择" ref="currency">
<el-option value="CYC人民币">CYC人民币</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="10" :offset="1">
<el-form-item label="客户姓名" prop="userName">

@ -49,7 +49,8 @@ export default {
isStamp: {
'业务专用章': [14, 17],
'附件章': [23]
}
},
backPeople: [142, 13, 172, 16]
},
},
goods:[// 物品栏的物品
@ -92,6 +93,17 @@ export default {
],
},
mutations: {
backPeople(state, idArr) {
for(let i=0; i<idArr.length; i++) {
const index = state.businessSelect[state.businessKey].backPeople.findIndex(item => item === idArr[i])
if(index !== -1) {
const index2 = state.businessSelect[state.businessKey].data.findIndex(item => item === idArr[i])
console.log(index2)
state.businessSelect[state.businessKey].backPeople.splice(index, 1)
state.businessSelect[state.businessKey].data.splice(index2, 1)
}
}
},
payMoney(state) {
const index = state.businessSelect[state.businessKey].data.findIndex(item => item === 15)
if(index !== -1) {
@ -103,28 +115,22 @@ export default {
for(let seal in needStamp) {
for(let i=0; i<sealArr.length; i++ ) {
if(sealArr[i] in needStamp && needStamp[sealArr[i]].includes(id)) {
this.commit('system/stampSure', { seal, id})
const index = state.businessSelect[state.businessKey].data.findIndex(item => item === id)
if(seal === '业务专用章') {
if(id === 14) {
state.businessSelect[state.businessKey].data.splice(index, 1, 141)
state.businessSelect[state.businessKey].data.push(142)
}
if(id === 17) {
state.businessSelect[state.businessKey].data.splice(index, 1, 171)
state.businessSelect[state.businessKey].data.push(172)
}
}
}
}
}
console.log('gai')
},
// 在盖章
stampSure(state, { seal, id }) {
// 先检查是否是需要的再传进来
const index = state.businessSelect[state.businessKey].data.findIndex(item => item === id)
console.log(index)
if(seal === '业务专用章') {
if(id === 14) {
state.businessSelect[state.businessKey].data.splice(index, 1, 141)
state.businessSelect[state.businessKey].data.push(142)
}
if(id === 17) {
state.businessSelect[state.businessKey].data.splice(index, 1, 171)
state.businessSelect[state.businessKey].data.push(172)
}
}
},
setBusinessKey: (state, val) => {
// 这个是容错的 后面可以删掉
if(!state.businessSelect[val]) {

Loading…
Cancel
Save