|
|
|
@ -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" v-if="receptionList.length" > |
|
|
|
|
<div class="img-wrap" :class="{ checked: commonChecked.includes(item.id),'img-wrap':true }" @click='dislodgeItem(index)' v-for="(item, index) in receptionList" :key="index" > |
|
|
|
|
<img :src="item.src" class="file" alt="" /> |
|
|
|
|
<p class="text">{{item.name}}</p> |
|
|
|
|
</div> |
|
|
|
@ -205,7 +205,7 @@ |
|
|
|
|
<div class="data-title2">请选择系统</div> |
|
|
|
|
<div class="close"><img v-lazy="lazyImg[28]" alt="" @click="showBusinessSelect(false)" /></div> |
|
|
|
|
</div> |
|
|
|
|
<p class="tips2">python程序设计 | 请选择您要做的项目实验</p> |
|
|
|
|
<p class="tips2">请选择您要办理的业务</p> |
|
|
|
|
<ul class="take-list2"> |
|
|
|
|
<li v-for="(item) in businessArr" :class="{checked: takeCheck == item.myKey}" :key="item.myKey" @click="checkTake(item.myKey)"> |
|
|
|
|
<img v-lazy="item.img" alt=""> |
|
|
|
@ -261,6 +261,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
return { |
|
|
|
|
moneyBox: [], |
|
|
|
|
takeCheck: '', // 选择业务逻辑 myKey用来确定选择哪个项目 |
|
|
|
|
businessArr: [ |
|
|
|
|
{ |
|
|
|
@ -461,6 +462,11 @@ export default { |
|
|
|
|
{name:'开户申请书',src:require('@/assets/img/goods/khsqs.png'),id:14}, |
|
|
|
|
{name:'现金',src:require('@/assets/img/goods/cash-sm.png'),id:15}, |
|
|
|
|
{name:'存款凭条',src:require('@/assets/img/goods/ckpt.png'),id:17}, |
|
|
|
|
// 以下是我自己加的 本来没有,业务需要 |
|
|
|
|
{name:'开户申请书凭证联',src:require('@/assets/img/goods/khsqs.png'),id:141}, |
|
|
|
|
{name:'开户申请书回单',src:require('@/assets/img/goods/khsqs.png'),id:142}, |
|
|
|
|
{name:'存款凭条凭证联',src:require('@/assets/img/goods/ckpt.png'),id:171}, |
|
|
|
|
{name:'存款凭条回单',src:require('@/assets/img/goods/ckpt.png'),id:172}, |
|
|
|
|
], |
|
|
|
|
receptionList:[ |
|
|
|
|
|
|
|
|
@ -911,6 +917,9 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(this.$store.state.system.popText == '钱箱') { |
|
|
|
|
// this.receptionList.push(...this.moneyBox) |
|
|
|
|
} |
|
|
|
|
if(!this.showGoods) this.checkList = [] |
|
|
|
|
return this.$store.state.system.showPop; |
|
|
|
|
}, |
|
|
|
@ -1033,8 +1042,8 @@ export default { |
|
|
|
|
/* oldindex识别是拖拽了哪个文件 */ |
|
|
|
|
// console.log(that.goodsShelfTotalData[evt.oldIndex].name,'执行拖拽2'); |
|
|
|
|
that.checkList.push(that.goodsShelfTotalData[evt.oldIndex].name) |
|
|
|
|
console.log('checkList') |
|
|
|
|
console.log(that.checkList) |
|
|
|
|
// 钱箱等的拖拽 |
|
|
|
|
if(that.$refs.popUp) { |
|
|
|
|
for(var i=0;i<that.popArr.length;i++){ |
|
|
|
|
if (that.goodsShelfTotalData[evt.oldIndex].name == that.popArr[i].name){ |
|
|
|
|
if (that.receptionList == null){ |
|
|
|
@ -1052,6 +1061,18 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
console.log('whata') |
|
|
|
|
console.log(that.receptionList) |
|
|
|
|
} |
|
|
|
|
// 印章的拖拽 |
|
|
|
|
else if(that.$refs.popUpSeal) { |
|
|
|
|
for(var i=0;i<that.popArr.length;i++){ |
|
|
|
|
if (that.goodsShelfTotalData[evt.oldIndex].name == that.popArr[i].name){ |
|
|
|
|
that.receptionList.splice(0, that.receptionList.length, that.popArr[i]) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -1073,10 +1094,6 @@ export default { |
|
|
|
|
if(evt.originalEvent.pageX<targetDom.right&&evt.originalEvent.pageX>targetDom.left){ |
|
|
|
|
if(evt.originalEvent.pageY<targetDom.bottom&&evt.originalEvent.pageY>targetDom.top){ |
|
|
|
|
/* oldindex识别是拖拽了哪个文件 */ |
|
|
|
|
console.log(evt) |
|
|
|
|
console.log(that.importanceArr) |
|
|
|
|
console.log(that.goodsShelfTotalData) |
|
|
|
|
console.log(that.importanceArr[evt.oldIndex].name,'执行拖拽2'); |
|
|
|
|
that.checkList.push(that.importanceArr[evt.oldIndex].name) |
|
|
|
|
if(that.goodsShelfTotalData.length > 0){ |
|
|
|
|
for(var i=0;i<that.goodsShelfTotalData.length;i++){ |
|
|
|
@ -1085,7 +1102,9 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// that.goodsShelfTotalData.push(that.importanceArr[evt.oldIndex]) |
|
|
|
|
// that.addGoods(that.importanceArr[evt.oldIndex]) |
|
|
|
|
console.log(that.importanceArr[evt.oldIndex]) |
|
|
|
|
console.log('---xxxxxxssss') |
|
|
|
|
that.addGoods(that.importanceArr[evt.oldIndex]) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -1113,7 +1132,9 @@ export default { |
|
|
|
|
addGoodsOpen: 'system/addGoodsOpen', |
|
|
|
|
setBusinessKey: 'system/setBusinessKey', |
|
|
|
|
addGoods: 'system/addGoods', |
|
|
|
|
deleteGoods: 'system/deleteGoods' |
|
|
|
|
deleteGoods: 'system/deleteGoods', |
|
|
|
|
stampJudge: 'system/stampJudge', |
|
|
|
|
payMoney: 'system/payMoney' |
|
|
|
|
}), |
|
|
|
|
checkTake(myKey){ |
|
|
|
|
if(this.takeCheck === myKey) { |
|
|
|
@ -1124,9 +1145,17 @@ export default { |
|
|
|
|
}, |
|
|
|
|
selectBusiness(myKey) { |
|
|
|
|
if(!myKey) { |
|
|
|
|
this.$message({ |
|
|
|
|
message: '请选择一个业务!', |
|
|
|
|
this.$confirm('由于您未选择一个业务,系统将返回主界面, 是否继续?', '提示', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
cancelButtonText: '取消', |
|
|
|
|
type: 'warning' |
|
|
|
|
}).then(() => { |
|
|
|
|
this.$router.push('/index') |
|
|
|
|
}).catch(() => { |
|
|
|
|
this.$message({ |
|
|
|
|
type: 'info', |
|
|
|
|
message: '请选择一个业务' |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
@ -1272,8 +1301,6 @@ export default { |
|
|
|
|
}, |
|
|
|
|
checkSeal(id) {/* 选中印章 */ |
|
|
|
|
this.sealChecked.includes(id) ? this.sealChecked.splice(this.sealChecked.indexOf(id), 1) : this.sealChecked.push(id); |
|
|
|
|
console.log('---') |
|
|
|
|
console.log(this.sealChecked) |
|
|
|
|
}, |
|
|
|
|
checkImportant(id){/* 选中重空凭证 */ |
|
|
|
|
this.importantChecked.includes(id) ? this.importantChecked.splice(this.importantChecked.indexOf(id), 1) : this.importantChecked.push(id); |
|
|
|
@ -1338,6 +1365,21 @@ export default { |
|
|
|
|
}else{ |
|
|
|
|
this.$message.error('请输入密码和确认密码'); |
|
|
|
|
} |
|
|
|
|
}else if(this.popText == '印章盒') { |
|
|
|
|
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++) { |
|
|
|
|
if(this.receptionList[i].id === 15) { |
|
|
|
|
this.payMoney() |
|
|
|
|
this.moneyBox.push(...this.receptionList) |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
console.log('-刷卡确认') |
|
|
|
|
// this.goodsShelfTotalData = this.auditGoodsShelf |
|
|
|
|