|
|
|
@ -160,8 +160,15 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="box right" ref="popUpSeal"> |
|
|
|
|
<!-- receptionList --> |
|
|
|
|
<div class="img-wrap2" :class="{ checked: commonChecked.includes(item.id) }" v-for="(item, index) in goodState" @click='dislodgeItem(index)' :key="item.id" > |
|
|
|
|
<img :src="item.src" class="fileSeal" alt="" /> |
|
|
|
|
<div class="img-wrap2 max-h-96" :class="{ checked: commonChecked.includes(item.id) }" v-for="(item, index) in goodState" @click='dislodgeItem(index)' :key="item.id" > |
|
|
|
|
<img v-if="item.name.includes('复印件')" :src="item.src" class="fileSeal" :alt="item.name" :title="item.name" /> |
|
|
|
|
<el-image |
|
|
|
|
v-else |
|
|
|
|
:src="item.src" |
|
|
|
|
class="fileSeal" |
|
|
|
|
:alt="item.name" |
|
|
|
|
:title="item.name" |
|
|
|
|
fit="contain"></el-image> |
|
|
|
|
<p class="text">{{item.name}}</p> |
|
|
|
|
</div> |
|
|
|
|
<!-- <div v-for="(item, index) in goods" :key="index" :class="{ checked: checkList.includes(item.id),file:true }" @click="dblClickFn(item)">--> |
|
|
|
@ -171,8 +178,8 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div v-else-if="popText==='重要空白凭证箱'" class="seal " style="width:1200px;"> |
|
|
|
|
<div class="left else"> |
|
|
|
|
<div v-else-if="popText==='重要空白凭证箱'" class="seal content-center" style="width:1200px;"> |
|
|
|
|
<div class="left else content-center justify-center"> |
|
|
|
|
<div v-for="(item) in importanceArr" :key="item.id" :class="{ checked: importantChecked.includes(item.id),file:true, importanceArrClass: true }" @click="dblClickFn(item)"> |
|
|
|
|
<!-- <img :src="item.src" alt="" /> --> |
|
|
|
|
<el-image |
|
|
|
@ -183,8 +190,8 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div v-else-if="popText==='普通凭证箱'" class="seal " style="width:1200px;"> |
|
|
|
|
<div class="left else"> |
|
|
|
|
<div v-else-if="popText==='普通凭证箱'" class="seal content-center" style="width:1200px;"> |
|
|
|
|
<div class="left else content-center justify-center"> |
|
|
|
|
<div v-for="(item) in commonArr" :key="item.id" :class="{ checked: commonChecked.includes(item.id),file:true }" @click="dblClickFn(item)"> |
|
|
|
|
<!-- <img :src="item.src" alt="" /> --> |
|
|
|
|
<el-image |
|
|
|
@ -242,9 +249,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="dia-footer3"> |
|
|
|
|
<!-- <button v-throttle @click="popSure" type="button">确定</button> --> |
|
|
|
|
<el-button type="primary" v-throttle @click="popSure">确定</el-button> |
|
|
|
|
<div class="dia-footer"> |
|
|
|
|
<button v-throttle @click="popSure" type="button">确定</button> |
|
|
|
|
<!-- <el-button type="primary" v-throttle @click="popSure">确定</el-button> --> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
@ -1078,7 +1085,7 @@ export default { |
|
|
|
|
const getIt = evt.target.textContent |
|
|
|
|
for(var i=0;i<this.goods.length;i++){ |
|
|
|
|
if (this.goods[i].name == getIt){ |
|
|
|
|
return this.$message.warning('物品栏中已有该物品') |
|
|
|
|
return this.setTipsOperate('物品栏中已有该物品') |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
for(let i=0;i<this.popArr.length; i++) { |
|
|
|
@ -1088,7 +1095,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
this.$message.warning('非可拖拽的交互!') |
|
|
|
|
this.setTipsOperate('非可拖拽的交互!') |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
@ -1176,7 +1183,7 @@ export default { |
|
|
|
|
sort: false,// 禁止排序 |
|
|
|
|
onEnd: function (/**Event*/evt) { // 结束拖拽 |
|
|
|
|
// 判断拖拽的地址 popUp和popUpSeal都是可以被拖拽上去的 |
|
|
|
|
if(!that.$refs.popUp && !that.$refs.popUpSeal) return that.$message.warning('非可拖拽的交互!') |
|
|
|
|
if(!that.$refs.popUp && !that.$refs.popUpSeal) return that.setTipsOperate('非可拖拽的交互!') |
|
|
|
|
let targetDom |
|
|
|
|
if(that.$refs.popUp) { |
|
|
|
|
targetDom = that.$refs.popUp.getBoundingClientRect() |
|
|
|
@ -1239,7 +1246,7 @@ export default { |
|
|
|
|
sort: false,// 禁止排序 |
|
|
|
|
// 结束拖拽 |
|
|
|
|
onEnd: function (/**Event*/evt) { |
|
|
|
|
if(!that.$refs.goods) return that.$message.warning('非可拖拽的交互!') |
|
|
|
|
if(!that.$refs.goods) return that.setTipsOperate('非可拖拽的交互!') |
|
|
|
|
let targetDom = that.$refs.goods.getBoundingClientRect() |
|
|
|
|
if(evt.originalEvent.pageX<targetDom.right&&evt.originalEvent.pageX>targetDom.left){ |
|
|
|
|
if(evt.originalEvent.pageY<targetDom.bottom&&evt.originalEvent.pageY>targetDom.top){ |
|
|
|
@ -1530,25 +1537,15 @@ export default { |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
if(this.passwordForm.passwordAgain.length !== 6) { |
|
|
|
|
this.$message({ |
|
|
|
|
center: true, |
|
|
|
|
showClose: true, |
|
|
|
|
message: '您输入的密码不足6位!', |
|
|
|
|
type: 'error' |
|
|
|
|
}); |
|
|
|
|
this.setTipsOperate('您输入的密码不足6位!') |
|
|
|
|
return |
|
|
|
|
}else if(this.passwordForm.password2 !== this.passwordForm.passwordAgain) { |
|
|
|
|
this.$message({ |
|
|
|
|
center: true, |
|
|
|
|
showClose: true, |
|
|
|
|
message: '您输入的密码和确认密码不一致!', |
|
|
|
|
type: 'error' |
|
|
|
|
}); |
|
|
|
|
this.setTipsOperate('您输入的密码和确认密码不一致!') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
}else if(this.popText.includes('身份证扫描')) { |
|
|
|
|
if(this.receptionList.length === 0) { |
|
|
|
|
this.setTipsOperate('刷卡失败!请放入银行卡或存折!') |
|
|
|
|
this.setTipsOperate('刷卡失败!请放入身份证!') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
for (let i=0;i<this.receptionList.length;i++){ |
|
|
|
@ -1785,6 +1782,11 @@ export default { |
|
|
|
|
|
|
|
|
|
// 如果是在签字,返还资料。 |
|
|
|
|
if(this.peopleDo === 1) { |
|
|
|
|
if(this.goodState.length === 0) { |
|
|
|
|
this.setTipsOperate('请放入签字物品!') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for (var i=0;i<this.goodState.length;i++){formList.push({"answerId":this.goodState[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,555,"+this.goodState[i].id,"type": ""})} |
|
|
|
|
const tmpGoods = this.goodState.map(item => item.id) |
|
|
|
|
// this.outThings({name: this.myMap, idArr: [ ...tmpGoods ]}) |
|
|
|
@ -1800,6 +1802,10 @@ export default { |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else { |
|
|
|
|
if(this.goodState.length === 0) { |
|
|
|
|
this.setTipsOperate('请放入返还资料!') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
for (var i=0;i<this.goodState.length;i++){formList.push({"answerId":this.goodState[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,556,"+this.goodState[i].id,"type": ""})} |
|
|
|
|
let params= { |
|
|
|
|
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,556', |
|
|
|
@ -1834,7 +1840,7 @@ export default { |
|
|
|
|
}else if (this.nbm == 2){ //普通凭证箱 |
|
|
|
|
let clickList = this.commonChecked |
|
|
|
|
this.pushThingsGoods([...clickList]) |
|
|
|
|
if(clickList.length===0) return this.$message.warning(`请选择物品后再确定!`) |
|
|
|
|
if(clickList.length===0) return this.setTipsOperate(`请选择物品后再确定!`) |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
let formList = [] |
|
|
|
@ -1860,7 +1866,7 @@ export default { |
|
|
|
|
}else if (this.nbm == 3){ //重要空白凭证箱 |
|
|
|
|
let clickList=this.importantChecked |
|
|
|
|
this.pushThingsGoods([...clickList]) |
|
|
|
|
if(clickList.length===0) return this.$message.warning(`请选择物品后再确定!`) |
|
|
|
|
if(clickList.length===0) return this.setTipsOperate(`请选择物品后再确定!`) |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
let formList = [] |
|
|
|
@ -1917,12 +1923,7 @@ export default { |
|
|
|
|
}else { |
|
|
|
|
for (var i=0;i<this.goodState.length;i++){ |
|
|
|
|
if(this.goodState[i].id !== 15) { |
|
|
|
|
this.$message({ |
|
|
|
|
center: true, |
|
|
|
|
showClose: true, |
|
|
|
|
message: '请放入现金!', |
|
|
|
|
type: 'error' |
|
|
|
|
}); |
|
|
|
|
this.setTipsOperate('请放入现金!') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
formList.push( |
|
|
|
@ -1968,12 +1969,7 @@ export default { |
|
|
|
|
// this.$store.commit('system/changePop', {show: false, text: ''}) |
|
|
|
|
}else if (this.nbm == 6){ //验钞机 |
|
|
|
|
if(this.goodState.length === 0 || this.goodState[0].id !== 15) { |
|
|
|
|
this.$message({ |
|
|
|
|
center: true, |
|
|
|
|
showClose: true, |
|
|
|
|
message: '请放入现金!', |
|
|
|
|
type: 'error' |
|
|
|
|
}); |
|
|
|
|
this.setTipsOperate('请放入现金!') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
@ -1993,12 +1989,7 @@ export default { |
|
|
|
|
// that.outThingsGoods([that.goodsShelfTotalData[evt.oldIndex].id]) |
|
|
|
|
}else if (this.nbm == 7){ //打印机 |
|
|
|
|
if(this.goodState.length === 0) { |
|
|
|
|
this.$message({ |
|
|
|
|
center: true, |
|
|
|
|
showClose: true, |
|
|
|
|
message: '请放入证件!', |
|
|
|
|
type: 'error' |
|
|
|
|
}); |
|
|
|
|
this.setTipsOperate('请放入证件!') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
@ -2032,6 +2023,10 @@ export default { |
|
|
|
|
this.setTipsOperate('您输入的密码和确认密码不一致!') |
|
|
|
|
} |
|
|
|
|
}else if (this.nbm == 9){//资料 |
|
|
|
|
if(this.goodState.length === 0) { |
|
|
|
|
this.setTipsOperate('请放入资料!') |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.goodState.length;i++){formList.push({"answerId":this.goodState[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "285," + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id +",287,11,"+this.goodState[i].id,"type": ""})} |
|
|
|
@ -3214,7 +3209,7 @@ export default { |
|
|
|
|
line-height: 30px; |
|
|
|
|
text-align: center; |
|
|
|
|
color: #fff; |
|
|
|
|
font-size: 24px; |
|
|
|
|
font-size: 18px; |
|
|
|
|
background: url(../../../assets/img/dia-title.png) 0 0 / cover no-repeat; |
|
|
|
|
// background: url(../../../assets/img/dia-title.png); |
|
|
|
|
background-size: 200px 30px; |
|
|
|
@ -3453,6 +3448,14 @@ export default { |
|
|
|
|
width: 300px; |
|
|
|
|
height: 200px; |
|
|
|
|
} |
|
|
|
|
// .el-image { |
|
|
|
|
// img { |
|
|
|
|
// min-height: 500px; |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// .fileSeal { |
|
|
|
|
// min-height: 50%; |
|
|
|
|
// } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.dia-footer { |
|
|
|
|