差个传票栏

20240205
luoJunYong.123 3 years ago
parent a7cb1b2909
commit 4c657e23ba
  1. 45
      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. 28
      src/store/modules/system.js

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

@ -16,7 +16,9 @@
<el-input v-model="form.customerNumber"></el-input> <el-input v-model="form.customerNumber"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currency"> <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>
<el-form-item label="通知类型" prop="noticeType"> <el-form-item label="通知类型" prop="noticeType">
<el-select v-model="form.noticeType" placeholder="请选择" ref="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-input :value="form.clientNumber" @input="(val) => checkHanzi(val, form, 'clientNumber')" ref="clientNumber"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="币种" prop="currency"> <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>
<el-form-item label="凭证类型" prop="voucherType"> <el-form-item label="凭证类型" prop="voucherType">
<el-select disabled v-model="form.voucherType" placeholder="请选择" ref="voucherType"> <el-select disabled v-model="form.voucherType" placeholder="请选择" ref="voucherType">

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

Loading…
Cancel
Save