物品栏更新

20240205
luoJunYong.123 3 years ago
parent db4189ff4e
commit 8cbc2122d8
  1. 458
      src/pages/counter/list/index.vue
  2. 48
      src/pages/lobbyManager/list/index.vue
  3. 4
      src/pages/manage/list/client/corporateClient.vue
  4. 66
      src/store/modules/system.js
  5. 4
      src/utils/utilFunction.js

@ -75,7 +75,7 @@
<div slot="content"> <div slot="content">
<div class="businessClass">展示业务列表</div> <div class="businessClass">展示业务列表</div>
</div> </div>
<img class="sth employee" v-lazy="lazyImg[21]" @click="selectBusiness(true)" alt="" /> <img class="sth employee" v-lazy="lazyImg[21]" @click="showBusinessSelect(true)" alt="" />
</el-tooltip> </el-tooltip>
@ -103,7 +103,7 @@
<!-- 物品栏 --> <!-- 物品栏 -->
<div ref="goods" class="goods-dia" :class="{ active: showGoods }"> <div ref="goods" class="goods-dia" :class="{ active: showGoods }">
<!-- goodsShelfTotalData --> <!-- goodsShelfTotalData goods2 -->
<div :id="item.name" v-for="(item, index) in goodsShelfTotalData" :key="index" class=" justify-center" :class="{ checked: checkList.includes(item.id),file:true }" @click="dblClickFn(item,'goods')"> <div :id="item.name" v-for="(item, index) in goodsShelfTotalData" :key="index" class=" justify-center" :class="{ checked: checkList.includes(item.id),file:true }" @click="dblClickFn(item,'goods')">
<img :style="item.name==='开户申请书'?'margin-top:10px;':''" :src="item.src" alt="" /> <img :style="item.name==='开户申请书'?'margin-top:10px;':''" :src="item.src" alt="" />
<p>{{item.name}}</p> <p>{{item.name}}</p>
@ -198,19 +198,19 @@
<el-dialog :visible.sync="showBusiness" style="width: 100%" @close="closeData" :close-on-click-modal="false" :show-close="false" custom-class="data-dia"> <el-dialog :visible.sync="showBusiness" style="width: 100%" @close="closeData" :close-on-click-modal="false" :show-close="false" custom-class="data-dia">
<div slot="title" class="dia-header2"> <div slot="title" class="dia-header2">
<div class="data-title2">请选择系统</div> <div class="data-title2">请选择系统</div>
<div class="close"><img v-lazy="lazyImg[28]" alt="" @click="selectBusiness(false)" /></div> <div class="close"><img v-lazy="lazyImg[28]" alt="" @click="showBusinessSelect(false)" /></div>
</div> </div>
<p class="tips2">python程序设计 | 请选择您要做的项目实验</p> <p class="tips2">python程序设计 | 请选择您要做的项目实验</p>
<ul class="take-list2"> <ul class="take-list2">
<li v-for="(item, index) in businessArr" :class="{checked: takeCheck == index}" :key="index" @click="checkTake(index)"> <li v-for="(item) in businessArr" :class="{checked: takeCheck == item.myKey}" :key="item.myKey" @click="checkTake(item.myKey)">
<img v-lazy="item.img" alt=""> <img v-lazy="item.img" alt="">
<p>{{ item.text}}</p> <p>{{ item.myKey + item.text}}</p>
</li> </li>
</ul> </ul>
<div class="dia-footer2"> <div class="dia-footer2">
<div class='busyButtonBox'> <div class='busyButtonBox'>
<el-button @click="selectBusiness(false)">取消</el-button> <el-button @click="showBusinessSelect(false)">取消</el-button>
<el-button type="primary" @click="selectBusiness(false)">确定</el-button> <el-button type="primary" @click="selectBusiness(takeCheck)">确定</el-button>
</div> </div>
</div> </div>
</el-dialog> </el-dialog>
@ -218,7 +218,7 @@
</template> </template>
<script> <script>
import { mapState, mapMutations } from 'vuex'; import { mapState, mapMutations, mapGetters } from 'vuex';
import Sortable from 'sortablejs' import Sortable from 'sortablejs'
import manage from '../../manage/index'; import manage from '../../manage/index';
import { addOperation, getOperation } from '@/api/http'; import { addOperation, getOperation } from '@/api/http';
@ -256,12 +256,143 @@ export default {
} }
}; };
return { return {
takeCheck: -1, // takeCheck: '', // myKey
businessArr: [ businessArr: [
{ {
img: require('@/assets/svg/cash.svg'), img: require('@/assets/svg/cash.svg'),
text: '第一个' myKey: '项目一',
text: ': 个人活期开户、存款'
}, },
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目二',
text: ': 个人活期转账、取款、销户'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目三',
text: ': 整存整取开户存款'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目四',
text: ': 整存整取部分提前支取'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目五',
text: ': 整存整取全部提前支取'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目六',
text: ': 零存整取开户'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目七',
text: ': 零存整取续存'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目八',
text: ': 零存整取销户'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目九',
text: ': 通知存款开户'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目十',
text: ': 通知存款销户'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目十一',
text: ': 公司基本户和开立'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目十二',
text: ': 公司存款'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目十三',
text: ': 公司现金支票取款'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目十四',
text: ': 公司现金支票转账'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目十五',
text: ': 密码修改'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目十六',
text: ': 密码挂失'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目十七',
text: ': 挂失解挂'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目十八',
text: ': 支票出售'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目十九',
text: ': 现金领用'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目二十',
text: ': 现金上缴'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目二十一',
text: ': 现金领用'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目二十二',
text: ': 现金调出'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目二十三',
text: ': 凭证调入'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目二十四',
text: ': 凭证调出'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目二十五',
text: ': 凭证上缴'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目二十六',
text: ': 柜员日中轧账'
},
{
img: require('@/assets/svg/cash.svg'),
myKey: '项目二十七',
text: ': 网点日中轧账'
}
], // ], //
showBusiness: false, showBusiness: false,
manageVisible: false, // manageVisible: false, //
@ -783,6 +914,9 @@ export default {
goodsOpen:function () {/* 物品栏的物品 */ goodsOpen:function () {/* 物品栏的物品 */
return this.$store.state.system.goodsOpen return this.$store.state.system.goodsOpen
}, },
...mapGetters({
goods2: 'system/goods2',
})
}, },
watch: { watch: {
'$route.path': function (val) { '$route.path': function (val) {
@ -940,12 +1074,24 @@ export default {
setGoodsOpen: 'system/setGoodsOpen', setGoodsOpen: 'system/setGoodsOpen',
removeGoodsOpen: 'system/removeGoodsOpen', removeGoodsOpen: 'system/removeGoodsOpen',
addGoodsOpen: 'system/addGoodsOpen', addGoodsOpen: 'system/addGoodsOpen',
setBusinessKey: 'system/setBusinessKey',
addGoods: 'system/addGoods',
deleteGoods: 'system/deleteGoods'
}), }),
checkTake(index){ checkTake(myKey){
this.takeCheck = index if(this.takeCheck === myKey) {
this.takeCheck = ''
}else {
this.takeCheck = myKey
}
},
selectBusiness(myKey) {
this.setBusinessKey(myKey)
console.log(this.goods2)
this.showBusiness = false;
}, },
selectBusiness(turn) { showBusinessSelect (judge) {
this.showBusiness = turn; this.showBusiness = judge;
}, },
dislodgeItem(index){ dislodgeItem(index){
this.receptionList.splice(index,1); this.receptionList.splice(index,1);
@ -1106,16 +1252,19 @@ export default {
this.popText==='重要空白凭证箱'?(goods=this.importanceArr,clickList=this.importantChecked):(goods=this.commonArr ,clickList = this.commonChecked) this.popText==='重要空白凭证箱'?(goods=this.importanceArr,clickList=this.importantChecked):(goods=this.commonArr ,clickList = this.commonChecked)
if(clickList.length===0) return this.$message.warning(`请选择物品后再确定!`) if(clickList.length===0) return this.$message.warning(`请选择物品后再确定!`)
// //
goods.map(e=>{ // goods.map(e=>{
clickList.map(el=>{ // clickList.map(el=>{
if(el===e.id){ // if(el===e.id){
arr.push(e) // arr.push(e)
} // }
}) // })
}) // })
this.$store.commit('system/changeGoods',{push:arr})
// 西 console.log(clickList)
this.auditGoodsShelf.push({name:'银行卡', src:require('@/assets/img/goods/bankCard.png'), id:16}) //
// this.$store.commit('system/changeGoods',{push:arr})
// // 西
// this.auditGoodsShelf.push({name:'', src:require('@/assets/img/goods/bankCard.png'), id:16}) //
this.closePop() this.closePop()
// this.changeShowGoods(false) // this.changeShowGoods(false)
clickList = [] clickList = []
@ -1139,6 +1288,137 @@ export default {
this.$message.error('请输入密码和确认密码'); this.$message.error('请输入密码和确认密码');
} }
}else{ }else{
console.log('...')
this.goodsShelfTotalData = this.auditGoodsShelf
if (this.$store.state.system.id == '33'){
this.nbm = 33
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomClientIdentity', JSON.stringify(this.receptionList))
}
}
if (this.$store.state.system.id == '34'){
this.nbm = 34
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('firmClientIdentity', JSON.stringify(this.receptionList))
}
}
if (this.$store.state.system.id == '63'){
this.nbm = 63
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomBusinessDepositCard', JSON.stringify(this.receptionList))
}
}
if (this.$store.state.system.id == '64'){
this.nbm = 64
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomCurrentWithdrawalCard', JSON.stringify(this.receptionList))
}
if (this.passwordForm.passwordAgain){
let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem('nomCurrentWithdrawalPassword', accountPassword)
}
}else if (this.$store.state.system.id == '65'){
this.nbm = 65
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomCurrentTransferCard', JSON.stringify(this.receptionList))
}
if (this.passwordForm.passwordAgain){
let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem('nomCurrentTransferPassword', accountPassword)
}
}else if (this.$store.state.system.id == '66'){
this.nbm = 66
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomCurrentSettleCard', JSON.stringify(this.receptionList))
}
if (this.passwordForm.passwordAgain){
let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem('nomCurrentSettlePassword', accountPassword)
}
}else if (this.$store.state.system.id == '67,1'){
this.nbm = 67
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomCurrentCancellCard1', JSON.stringify(this.receptionList))
}
}else if (this.$store.state.system.id == '67,2'){
this.nbm = 67
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomCurrentCancellCard2', JSON.stringify(this.receptionList))
}
}else if (myConfig[this.$store.state.system.id]){ // myConfig[this.$store.state.system.id]
const { nbm, name, isPassword } = myConfig[this.$store.state.system.id]
this.nbm = nbm
if(!isPassword) {
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem(name, JSON.stringify(this.receptionList))
}
}else {
if (this.passwordForm.passwordAgain){
let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem(name, accountPassword)
}
}
}else if (this.$store.state.system.id == '67,3'){
this.nbm = 67
if (this.passwordForm.passwordAgain){
let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem('nomCurrentCancellPassword', accountPassword)
}
}else if (this.$store.state.system.id == '62,1'){
this.nbm = 62
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('accountVoucher', JSON.stringify(this.receptionList))
}
if (this.passwordForm.passwordAgain){
let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem('accountPassword', accountPassword)
}
}else if (this.$store.state.system.id == '62,2'){
this.nbm = 62
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('accountVoucherTwo', JSON.stringify(this.receptionList))
}
if (this.passwordForm.passwordAgain){
let accountPasswordTwo = ''
accountPasswordTwo = this.passwordForm.passwordAgain
sessionStorage.setItem('accountPasswordTwo', accountPasswordTwo)
}
}else if (this.$store.state.system.id == '62,3'){
this.nbm = 62
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('accountVoucherThree', JSON.stringify(this.receptionList))
}
if (this.passwordForm.passwordAgain){
let accountPasswordThree = ''
accountPasswordThree = this.passwordForm.passwordAgain
sessionStorage.setItem('accountPasswordThree', accountPasswordThree)
}
}
}
if (this.receptionList.length >0){ if (this.receptionList.length >0){
let formList = [] let formList = []
this.toggleGoods() this.toggleGoods()
@ -1322,135 +1602,6 @@ export default {
}); });
}).catch((error)=>{ }).catch((error)=>{
}) })
}else{
this.goodsShelfTotalData = this.auditGoodsShelf
if (this.$store.state.system.id == '33'){
this.nbm = 33
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomClientIdentity', JSON.stringify(this.receptionList))
}
}
if (this.$store.state.system.id == '34'){
this.nbm = 34
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('firmClientIdentity', JSON.stringify(this.receptionList))
}
}
if (this.$store.state.system.id == '63'){
this.nbm = 63
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomBusinessDepositCard', JSON.stringify(this.receptionList))
}
}
if (this.$store.state.system.id == '64'){
this.nbm = 64
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomCurrentWithdrawalCard', JSON.stringify(this.receptionList))
}
if (this.passwordForm.passwordAgain){
let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem('nomCurrentWithdrawalPassword', accountPassword)
}
}else if (this.$store.state.system.id == '65'){
this.nbm = 65
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomCurrentTransferCard', JSON.stringify(this.receptionList))
}
if (this.passwordForm.passwordAgain){
let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem('nomCurrentTransferPassword', accountPassword)
}
}else if (this.$store.state.system.id == '66'){
this.nbm = 66
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomCurrentSettleCard', JSON.stringify(this.receptionList))
}
if (this.passwordForm.passwordAgain){
let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem('nomCurrentSettlePassword', accountPassword)
}
}else if (this.$store.state.system.id == '67,1'){
this.nbm = 67
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomCurrentCancellCard1', JSON.stringify(this.receptionList))
}
}else if (this.$store.state.system.id == '67,2'){
this.nbm = 67
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('nomCurrentCancellCard2', JSON.stringify(this.receptionList))
}
}else if (myConfig[this.$store.state.system.id]){ // myConfig[this.$store.state.system.id]
const { nbm, name, isPassword } = myConfig[this.$store.state.system.id]
this.nbm = nbm
if(!isPassword) {
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem(name, JSON.stringify(this.receptionList))
}
}else {
if (this.passwordForm.passwordAgain){
let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem(name, accountPassword)
}
}
}else if (this.$store.state.system.id == '67,3'){
this.nbm = 67
if (this.passwordForm.passwordAgain){
let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem('nomCurrentCancellPassword', accountPassword)
}
}else if (this.$store.state.system.id == '62,1'){
this.nbm = 62
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('accountVoucher', JSON.stringify(this.receptionList))
}
if (this.passwordForm.passwordAgain){
let accountPassword = '';
accountPassword = this.passwordForm.passwordAgain
sessionStorage.setItem('accountPassword', accountPassword)
}
}else if (this.$store.state.system.id == '62,2'){
this.nbm = 62
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('accountVoucherTwo', JSON.stringify(this.receptionList))
}
if (this.passwordForm.passwordAgain){
let accountPasswordTwo = ''
accountPasswordTwo = this.passwordForm.passwordAgain
sessionStorage.setItem('accountPasswordTwo', accountPasswordTwo)
}
}else if (this.$store.state.system.id == '62,3'){
this.nbm = 62
// this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){
sessionStorage.setItem('accountVoucherThree', JSON.stringify(this.receptionList))
}
if (this.passwordForm.passwordAgain){
let accountPasswordThree = ''
accountPasswordThree = this.passwordForm.passwordAgain
sessionStorage.setItem('accountPasswordThree', accountPasswordThree)
}
}
}
} }
} }
// this.toggleGoods() // this.toggleGoods()
@ -2562,6 +2713,7 @@ export default {
align-items: center; align-items: center;
width: 30%; width: 30%;
height: 10vh; height: 10vh;
margin: 1vh 0;
border: 4px solid #DBDBDB; border: 4px solid #DBDBDB;
border-radius: 20px; border-radius: 20px;
cursor: pointer; cursor: pointer;

@ -65,7 +65,6 @@
<ul class="list"> <ul class="list">
<li :class="{checked: checkList.includes(1)}" @click="checkData(1)"> <li :class="{checked: checkList.includes(1)}" @click="checkData(1)">
<el-image <el-image
style="margin-top: -10px"
:src="elImg[0]" :src="elImg[0]"
:fit="elImgFit" :fit="elImgFit"
></el-image> ></el-image>
@ -78,22 +77,26 @@
<p>密码挂失申请书</p> <p>密码挂失申请书</p>
</li> </li>
<li :class="{checked: checkList.includes(3)}" @click="checkData(3)"> <li :class="{checked: checkList.includes(3)}" @click="checkData(3)">
<img style="margin-top: 0" src="@/assets/img/goods/businessSpecialApplication.png" alt=""> <el-image
style="margin-top: 0"
:src="elImg[2]"
:fit="elImgFit"
></el-image>
<p>特殊业务申请书</p> <p>特殊业务申请书</p>
</li> </li>
<li :class="{checked: checkList.includes(4)}" @click="checkData(4)"> <li :class="{checked: checkList.includes(4)}" @click="checkData(4)">
<img style="margin-top: 32px" src="@/assets/img/goods/cash-sm.png" alt=""> <img style="margin-top: 32px" src="@/assets/img/goods/cash-sm.png" alt="">
<p style="font-size: 12px">开立单位银行结算账户申请书</p> <p style="font-size: 12px">开立单位银行结算账户申请书</p>
</li> </li>
<li :class="{checked: checkList.includes(1)}" @click="checkData(5)"> <li :class="{checked: checkList.includes(5)}" @click="checkData(5)">
<img src="@/assets/img/goods/CashCertificate.png" alt=""> <img src="@/assets/img/goods/CashCertificate.png" alt="">
<p>现金存款凭证</p> <p>现金存款凭证</p>
</li> </li>
<li :class="{checked: checkList.includes(2)}" @click="checkData(6)"> <li :class="{checked: checkList.includes(6)}" @click="checkData(6)">
<img src="@/assets/img/goods/zzpt.png" alt=""> <img src="@/assets/img/goods/zzpt.png" alt="">
<p>转账凭证</p> <p>转账凭证</p>
</li> </li>
<li :class="{checked: checkList.includes(3)}" @click="checkData(7)"> <li :class="{checked: checkList.includes(7)}" @click="checkData(7)">
<!-- <img style="margin-top: 0" src="@/assets/img/open-account-apply-sm.png" alt=""> --> <!-- <img style="margin-top: 0" src="@/assets/img/open-account-apply-sm.png" alt=""> -->
<el-image <el-image
:src="elImg[1]" :src="elImg[1]"
@ -101,15 +104,15 @@
lazy></el-image> lazy></el-image>
<p>现金支票</p> <p>现金支票</p>
</li> </li>
<li :class="{checked: checkList.includes(4)}" @click="checkData(8)"> <li :class="{checked: checkList.includes(8)}" @click="checkData(8)">
<img style="margin-top: 32px" src="@/assets/img/goods/cash-sm.png" alt=""> <img style="margin-top: 32px" src="@/assets/img/goods/cash-sm.png" alt="">
<p>转账支票</p> <p>转账支票</p>
</li> </li>
<li :class="{checked: checkList.includes(2)}" @click="checkData(6)"> <li :class="{checked: checkList.includes(9)}" @click="checkData(9)">
<img src="@/assets/img/idCard-copy-sm.png" alt=""> <img src="@/assets/img/idCard-copy-sm.png" alt="">
<p>支票领购单</p> <p>支票领购单</p>
</li> </li>
<li :class="{checked: checkList.includes(3)}" @click="checkData(7)"> <li :class="{checked: checkList.includes(10)}" @click="checkData(10)">
<!-- <img style="margin-top: 0" src="@/assets/img/open-account-apply-sm.png" alt=""> --> <!-- <img style="margin-top: 0" src="@/assets/img/open-account-apply-sm.png" alt=""> -->
<el-image <el-image
:src="elImg[1]" :src="elImg[1]"
@ -117,10 +120,12 @@
lazy></el-image> lazy></el-image>
<p>现金缴款单</p> <p>现金缴款单</p>
</li> </li>
<li :class="{checked: checkList.includes(4)}" @click="checkData(8)"> <li :class="{checked: checkList.includes(11)}" @click="checkData(11)">
<img style="margin-top: 32px" src="@/assets/img/goods/cash-sm.png" alt=""> <img style="margin-top: 32px" src="@/assets/img/goods/cash-sm.png" alt="">
<p>境外汇款申请书</p> <p>境外汇款申请书</p>
</li> </li>
<!-- 这个是占位的 -->
<li class="sitting2"></li>
</ul> </ul>
@ -201,7 +206,8 @@ export default {
elImgFit: 'contain', elImgFit: 'contain',
elImg: [ elImg: [
require('@/assets/img/goods/accountApplyBook.jpg'), require('@/assets/img/goods/accountApplyBook.jpg'),
require('@/assets/img/open-account-apply-sm.png') require('@/assets/img/open-account-apply-sm.png'),
require('@/assets/img/goods/businessSpecialApplication.png')
], ],
listLi1 : [ listLi1 : [
{checked: 1, click: 1, src: require('@/assets/img/goods/accountApplyBook.jpg'), title: '开户申请书'}, {checked: 1, click: 1, src: require('@/assets/img/goods/accountApplyBook.jpg'), title: '开户申请书'},
@ -436,7 +442,12 @@ export default {
overflow: auto; overflow: auto;
display: flex; display: flex;
justify-content: space-around; justify-content: space-around;
flex-wrap: wrap;
&>li { &>li {
width: 22%;
margin: 10px 0;
// common.js
box-sizing: border-box;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
@ -444,20 +455,25 @@ export default {
box-sizing: border-box; box-sizing: border-box;
overflow: hidden; overflow: hidden;
padding: 10px; padding: 10px;
&>img { // &>img {
width: 100%; // width: 100%;
//max-width: 90%; // //max-width: 90%;
} // }
&>.el-image { &>.el-image {
width: 90%; // width: 90%;
max-height: 75%; max-height: 75%;
overflow: hidden; overflow: hidden;
img { img {
transform: translateY(-35%); transform: translateY(-35%);
width: 100%; // width: 100%;
} }
} }
} }
} }
} }
.sitting2 {
opacity: 0;
cursor: default!important;
}
</style> </style>

@ -48,7 +48,7 @@
</div> </div>
<el-dialog <!-- <el-dialog
style="margin-top:10vh" style="margin-top:10vh"
:visible.sync="visible" :visible.sync="visible"
:modal="false" :modal="false"
@ -80,7 +80,7 @@
<el-button class="close btn" @click="[visible = false,authorization=false,success=false]"> </el-button> <el-button class="close btn" @click="[visible = false,authorization=false,success=false]"> </el-button>
<el-button class="sure btn" type="primary" @click="popSure"> </el-button> <el-button class="sure btn" type="primary" @click="popSure"> </el-button>
</div> </div>
</el-dialog> </el-dialog> -->
</div> </div>
</template> </template>

@ -6,6 +6,36 @@ export default {
popText:'钱箱', popText:'钱箱',
fullScreen:false,// 银行系统是否全屏 fullScreen:false,// 银行系统是否全屏
showGoods: false, // 物品栏的展开和关闭 showGoods: false, // 物品栏的展开和关闭
// 业务选择表:
businessKey: '',
allGoods:{/* 所有物品名字 */
16: {name:'银行卡',src:require('@/assets/img/goods/bankCard.png'),id:16},
19: {name:'定期存单',src:require('@/assets/img/seal/paid.png'),id:19},
'预留印签卡': {name:'预留印签卡',src:require('@/assets/img/seal/paid.png'),id:'预留印签卡'},
'转账支票': {name:'转账支票',src:require('@/assets/img/goods/xd-zzzp.png'),id:'转账支票'},
30: {name:'银行承兑汇票',src:require('@/assets/img/seal/paid.png'),id:30},
'现金支票': {name:'现金支票',src:require('@/assets/img/goods/xjzp.png'),id:'现金支票'},
'取款凭条': {name:'取款凭条',src:require('@/assets/img/goods/qkpt.png'),id:'取款凭条'},
'转账凭条': {name:'转账凭条',src:require('@/assets/img/goods/zzpt.png'),id:'转账凭条'},
'业务收费凭证': {name:'业务收费凭证',src:require('@/assets/img/goods/ywsfpz.png'),id:'业务收费凭证'},
'利息清单': {name:'利息清单',src:require('@/assets/img/goods/lxqd.png'),id:'利息清单'},
'普通空白凭证': {name:'普通空白凭证',src:require('@/assets/img/goods/ptkbpz.png'),id:'普通空白凭证'},
13: {name:'身份证',src:require('@/assets/img/goods/idcard.png'),id:13},
23: {name:'身份证复印件',src:require('@/assets/img/idCard-copy-sm.png'),id:23},
14: {name:'开户申请书',src:require('@/assets/img/goods/khsqs.png'),id:14},
15: {name:'现金',src:require('@/assets/img/goods/cash-sm.png'),id:15},
17: {name:'存款凭条',src:require('@/assets/img/goods/ckpt.png'),id:17},
},
businessSelect: {
'': {
data: [],
needs: []
},
'项目一': {
data: [14, 12, 11, 13],
needs: [0]
}
},
goods:[// 物品栏的物品 goods:[// 物品栏的物品
{ {
name:'身份证', name:'身份证',
@ -46,6 +76,31 @@ export default {
], ],
}, },
mutations: { mutations: {
setBusinessKey: (state, val) => {
state.businessKey = val
},
addGoods: (state, goods) => {
if(!(goods instanceof Array)) {
goods = [ goods ]
}
const needArr = [...state.businessSelect[state.businessKey].needs]
for(let i=0; i<goods.length; i++) {
for(let j=0; j<needArr.length; j++) {
if(goods[i].name === state.allGoods[needArr[j]].name) {
// 如果这个物品是这个项目需要添加的 就加进去 否则不添加
state.businessSelect[state.businessKey].data.push(needArr[j])
// 加进去了 下次就添加不了了
state.businessSelect[state.businessKey].needs.splice(j,1)
break;
}
}
}
state.businessSelect[state.businessKey].data.push(...goods)
},
deleteGoods: (state, index) => {
// 传个物品对象过来
state.businessSelect[state.businessKey].data.splice(index, 1)
},
changeFullscreen:(state,val) => { changeFullscreen:(state,val) => {
state.fullScreen = val state.fullScreen = val
}, },
@ -100,5 +155,16 @@ export default {
}, },
actions: { actions: {
},
getters: {
// 选择项目物品栏中的物品 根据myKey判断有什么
goods2(state) {
// 调试容错采用if-else
const arr = []
for(const item of state.businessSelect[state.businessKey].data) {
arr.push(state.allGoods[item])
}
return arr
}
} }
} }

@ -152,13 +152,15 @@ const autoPlay = (parentId, form, myTable2, myTable, cards=[]) => {
formList.push({ "answerId": myKey + '', "emptyOne": '' + subjectId, "emptyTwo": tmpJson, "operationIds": parentId + ',' + myKey, "type":5 }) formList.push({ "answerId": myKey + '', "emptyOne": '' + subjectId, "emptyTwo": tmpJson, "operationIds": parentId + ',' + myKey, "type":5 })
} }
console.log(formList)
let params= { let params= {
parentId, parentId,
lcJudgmentRuleReq:formList, lcJudgmentRuleReq:formList,
projectId:+projectId, projectId:+projectId,
startTime:startTime, startTime:startTime,
} }
console.log('---提交的')
console.log(formList)
addOperation(params).then((data)=>{ addOperation(params).then((data)=>{
Message.success({ Message.success({
center: true, center: true,

Loading…
Cancel
Save