|
|
|
@ -96,7 +96,7 @@ |
|
|
|
|
|
|
|
|
|
<!-- 物品栏 --> |
|
|
|
|
<div ref="goods" class="goods-dia" :class="{ active: showGoods }"> |
|
|
|
|
<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 goods" :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="" /> |
|
|
|
|
<p>{{item.name}}</p> |
|
|
|
|
</div> |
|
|
|
@ -141,7 +141,7 @@ |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div v-else-if="popText==='重要空白凭证箱'" class="seal" style="width:1200px;" ref="popUpImportanceArr"> |
|
|
|
|
<div v-else-if="popText==='重要空白凭证箱'" class="seal" style="width:1200px;"> |
|
|
|
|
<div class="left else"> |
|
|
|
|
<div v-for="(item, index) in importanceArr" :key="index" :class="{ checked: importantChecked.includes(item.id),file:true, importanceArrClass: true }" @click="dblClickFn(item)"> |
|
|
|
|
<img :src="item.src" alt="" /> |
|
|
|
@ -764,23 +764,6 @@ export default { |
|
|
|
|
if(newVal) { |
|
|
|
|
this.$nextTick(() => { |
|
|
|
|
const importanceArrClassArr = document.getElementsByClassName('importanceArrClass') |
|
|
|
|
new Sortable(this.$refs.popUpImportanceArr, { |
|
|
|
|
animation: 150, |
|
|
|
|
group: { |
|
|
|
|
name:'shared', |
|
|
|
|
pull:'clone',// 是否可以被移出或克隆 |
|
|
|
|
put:true |
|
|
|
|
}, |
|
|
|
|
sort: false,// 禁止排序 |
|
|
|
|
// 结束拖拽 |
|
|
|
|
onAdd: evt => { |
|
|
|
|
if(!importanceArrClassArr.length) return that.$message.warning('非可拖拽的交互!') |
|
|
|
|
console.log('what the fuck') |
|
|
|
|
console.log(this.goodsShelfTotalData) |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// popUpImportanceArr |
|
|
|
|
for(let i=0;i<this.importanceArr.length;i++) { |
|
|
|
|
new Sortable(importanceArrClassArr[i], { |
|
|
|
|
animation: 150, |
|
|
|
@ -791,42 +774,27 @@ export default { |
|
|
|
|
}, |
|
|
|
|
sort: false,// 禁止排序 |
|
|
|
|
onEnd: evt => { // 结束拖拽 |
|
|
|
|
console.log('???') |
|
|
|
|
// 判断拖拽的地址 |
|
|
|
|
if(!this.$refs.popUpImportanceArr) return this.$message.warning('非可拖拽的交互!') |
|
|
|
|
let targetDom = this.$refs.popUpImportanceArr.getBoundingClientRect() |
|
|
|
|
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(this.goodsShelfTotalData[evt.oldIndex].name,'执行拖拽2'); |
|
|
|
|
this.checkList.push(this.goodsShelfTotalData[evt.oldIndex].name) |
|
|
|
|
let ifElse = 0; |
|
|
|
|
for(var i=0;i<this.popArr.length;i++){ |
|
|
|
|
if (this.goodsShelfTotalData[evt.oldIndex].name == this.popArr[i].name){ |
|
|
|
|
if (this.receptionList == null){ |
|
|
|
|
this.receptionList = [] |
|
|
|
|
if(this.judgePosition(evt)){ |
|
|
|
|
console.log(evt) |
|
|
|
|
const getIt = evt.target.textContent |
|
|
|
|
for(var i=0;i<this.goods.length;i++){ |
|
|
|
|
if (this.goods[i].name == getIt){ |
|
|
|
|
return this.$message.warning('物品栏中已有该物品') |
|
|
|
|
} |
|
|
|
|
if (this.receptionList.length){ |
|
|
|
|
for(var j=0;j< this.receptionList.length;j++){ |
|
|
|
|
if (this.receptionList[j].name == this.goodsShelfTotalData[evt.oldIndex].name){ |
|
|
|
|
ifElse = ifElse+1 |
|
|
|
|
} |
|
|
|
|
// console.log(this.goodsShelfTotalData) |
|
|
|
|
for(let i=0;i<this.popArr.length; i++) { |
|
|
|
|
if(this.popArr[i].name === getIt) { |
|
|
|
|
this.$store.commit('system/changeGoods',{push:[this.popArr[i]]}) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
if(ifElse > 0){ |
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
this.receptionList.push(this.popArr[i]) |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
this.receptionList.push(this.popArr[i]) |
|
|
|
|
} |
|
|
|
|
this.$message.warning('非可拖拽的交互!') |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}; |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -859,9 +827,8 @@ 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(that.goodsShelfTotalData[evt.oldIndex].name,'执行拖拽2'); |
|
|
|
|
// console.log(that.goodsShelfTotalData[evt.oldIndex].name,'执行拖拽2'); |
|
|
|
|
that.checkList.push(that.goodsShelfTotalData[evt.oldIndex].name) |
|
|
|
|
let ifElse = 0; |
|
|
|
|
for(var i=0;i<that.popArr.length;i++){ |
|
|
|
|
if (that.goodsShelfTotalData[evt.oldIndex].name == that.popArr[i].name){ |
|
|
|
|
if (that.receptionList == null){ |
|
|
|
@ -870,14 +837,10 @@ export default { |
|
|
|
|
if (that.receptionList.length){ |
|
|
|
|
for(var j=0;j< that.receptionList.length;j++){ |
|
|
|
|
if (that.receptionList[j].name == that.goodsShelfTotalData[evt.oldIndex].name){ |
|
|
|
|
ifElse = ifElse+1 |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if(ifElse > 0){ |
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
that.receptionList.push(that.popArr[i]) |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
that.receptionList.push(that.popArr[i]) |
|
|
|
|
} |
|
|
|
@ -904,19 +867,17 @@ 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) |
|
|
|
|
let ifElse = 0; |
|
|
|
|
if(that.goodsShelfTotalData.length > 0){ |
|
|
|
|
for(var i=0;i<that.goodsShelfTotalData.length;i++){ |
|
|
|
|
if(that.goodsShelfTotalData[i].name == that.importanceArr[evt.oldIndex].name){ |
|
|
|
|
ifElse = ifElse+1 |
|
|
|
|
}else{ |
|
|
|
|
|
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (ifElse == 0){ |
|
|
|
|
that.goodsShelfTotalData.push(that.importanceArr[evt.oldIndex]) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -1101,19 +1062,19 @@ export default { |
|
|
|
|
// 把确定的数据传输进物品栏 |
|
|
|
|
goods.map(e=>{ |
|
|
|
|
clickList.map(el=>{ |
|
|
|
|
console.log(el) |
|
|
|
|
if(el===e.id){ |
|
|
|
|
arr.push(e) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}) |
|
|
|
|
this.$store.commit('system/changeGoods',{push:arr}) |
|
|
|
|
clickList.length = 0 |
|
|
|
|
clickList = [] |
|
|
|
|
}else{ |
|
|
|
|
if (this.$store.state.system.id == '33'){ |
|
|
|
|
this.nbm = 33 |
|
|
|
|
this.goodsShelfTotalData = this.auditGoodsShelf |
|
|
|
|
if (this.receptionList.length >0){ |
|
|
|
|
console.log(this.receptionList) |
|
|
|
|
sessionStorage.setItem('nomClientIdentity', JSON.stringify(this.receptionList)) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -1238,220 +1199,224 @@ export default { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// this.toggleGoods() |
|
|
|
|
if(this.popText == '密码器'){ |
|
|
|
|
if (this.nbm == 8){ |
|
|
|
|
let formList = [] |
|
|
|
|
let ruleReqs = sessionStorage.getItem('ruleReqs') |
|
|
|
|
if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []} |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "18", "emptyTwo": this.passwordForm.passwordAgain, "operationIds": "287,282,"+this.receptionList[i].id,"type": "3"})} |
|
|
|
|
sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
} |
|
|
|
|
if(this.passwordForm.password && this.passwordForm.passwordAgain){ |
|
|
|
|
if(this.passwordForm.password.length >=6 && this.passwordForm.passwordAgain.length >=6){ |
|
|
|
|
if(this.passwordForm.password == this.passwordForm.passwordAgain) { |
|
|
|
|
this.$store.commit('system/changePop', {show: false, text: ''}) |
|
|
|
|
this.$message.success(`${this.popText}操作成功!`) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
this.$message.error('请输入密码和确认密码'); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
if (this.receptionList.length >0){ |
|
|
|
|
let formList = [] |
|
|
|
|
this.toggleGoods() |
|
|
|
|
this.$message.success(`${this.popText}操作成功!`) |
|
|
|
|
if (this.nbm == 0){ //用户 |
|
|
|
|
}else if (this.nbm == 1){ //传票箱 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id,"emptyOne": "", "emptyTwo": "", "operationIds": "287,4,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'287,4', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 2){ //普通凭证箱 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({ "answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "287,3,"+this.receptionList[i].id, "type": "" })} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'287,3', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 3){ //重要空白凭证箱 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({ "answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "287,2,"+this.receptionList[i].id, "type": "" })} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'287,2', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 4){ //钱箱 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
let formList = []; |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({ |
|
|
|
|
"answerId":this.receptionList[i].id, |
|
|
|
|
"emptyOne": "", |
|
|
|
|
"emptyTwo": "", |
|
|
|
|
"operationIds": "287,1,"+this.receptionList[i].id, |
|
|
|
|
"type": "" })} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'287,1', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 5){ //印章盒 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "287,8,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'287,8', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 6){ //验钞机 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "287,9,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'287,9', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 7){ //打印机 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "287,10,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'0,10', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 9){//资料 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,11,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'0,11', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 10){ //刷卡器 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,6,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'0,6', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else if (this.nbm == 11){ //身份证扫描仪 |
|
|
|
|
let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,7,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
let params= { |
|
|
|
|
parentId:'0,7', |
|
|
|
|
lcJudgmentRuleReq:formList, |
|
|
|
|
projectId:+projectId, |
|
|
|
|
startTime:startTime, |
|
|
|
|
} |
|
|
|
|
addOperation(params).then((data)=>{ |
|
|
|
|
this.$message({ |
|
|
|
|
message: '提交成功', |
|
|
|
|
type: 'success' |
|
|
|
|
}); |
|
|
|
|
}).catch((error)=>{ |
|
|
|
|
}) |
|
|
|
|
}else{ |
|
|
|
|
// else if(this.popText == '密码器'){ |
|
|
|
|
// if (this.nbm == 8){ |
|
|
|
|
// let formList = [] |
|
|
|
|
// let ruleReqs = sessionStorage.getItem('ruleReqs') |
|
|
|
|
// if (ruleReqs){formList = JSON.parse(ruleReqs);}else{formList = []} |
|
|
|
|
// for (var i=0;i<this.receptionList.length;i++){formList.push({"emptyOne": "18", "emptyTwo": this.passwordForm.passwordAgain, "operationIds": "287,282,"+this.receptionList[i].id,"type": "3"})} |
|
|
|
|
// sessionStorage.setItem('ruleReqs', JSON.stringify(formList)) |
|
|
|
|
// } |
|
|
|
|
// if(this.passwordForm.password && this.passwordForm.passwordAgain){ |
|
|
|
|
// if(this.passwordForm.password.length >=6 && this.passwordForm.passwordAgain.length >=6){ |
|
|
|
|
// if(this.passwordForm.password == this.passwordForm.passwordAgain) { |
|
|
|
|
// this.$store.commit('system/changePop', {show: false, text: ''}) |
|
|
|
|
// this.$message.success(`${this.popText}操作成功!`) |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
// }else{ |
|
|
|
|
// this.$message.error('请输入密码和确认密码'); |
|
|
|
|
// } |
|
|
|
|
// }else{ |
|
|
|
|
// if (this.receptionList.length >0){ |
|
|
|
|
// let formList = [] |
|
|
|
|
// this.toggleGoods() |
|
|
|
|
// this.$message.success(`${this.popText}操作成功!`) |
|
|
|
|
// if (this.nbm == 0){ //用户 |
|
|
|
|
// }else if (this.nbm == 1){ //传票箱 |
|
|
|
|
// let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
// let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
// for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id,"emptyOne": "", "emptyTwo": "", "operationIds": "287,4,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
// let params= { |
|
|
|
|
// parentId:'287,4', |
|
|
|
|
// lcJudgmentRuleReq:formList, |
|
|
|
|
// projectId:+projectId, |
|
|
|
|
// startTime:startTime, |
|
|
|
|
// } |
|
|
|
|
// addOperation(params).then((data)=>{ |
|
|
|
|
// this.$message({ |
|
|
|
|
// message: '提交成功', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
// }).catch((error)=>{ |
|
|
|
|
// }) |
|
|
|
|
// }else if (this.nbm == 2){ //普通凭证箱 |
|
|
|
|
// let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
// let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
// for (var i=0;i<this.receptionList.length;i++){formList.push({ "answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "287,3,"+this.receptionList[i].id, "type": "" })} |
|
|
|
|
// let params= { |
|
|
|
|
// parentId:'287,3', |
|
|
|
|
// lcJudgmentRuleReq:formList, |
|
|
|
|
// projectId:+projectId, |
|
|
|
|
// startTime:startTime, |
|
|
|
|
// } |
|
|
|
|
// addOperation(params).then((data)=>{ |
|
|
|
|
// this.$message({ |
|
|
|
|
// message: '提交成功', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
// }).catch((error)=>{ |
|
|
|
|
// }) |
|
|
|
|
// }else if (this.nbm == 3){ //重要空白凭证箱 |
|
|
|
|
// let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
// let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
// for (var i=0;i<this.receptionList.length;i++){formList.push({ "answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "287,2,"+this.receptionList[i].id, "type": "" })} |
|
|
|
|
// let params= { |
|
|
|
|
// parentId:'287,2', |
|
|
|
|
// lcJudgmentRuleReq:formList, |
|
|
|
|
// projectId:+projectId, |
|
|
|
|
// startTime:startTime, |
|
|
|
|
// } |
|
|
|
|
// addOperation(params).then((data)=>{ |
|
|
|
|
// this.$message({ |
|
|
|
|
// message: '提交成功', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
// }).catch((error)=>{ |
|
|
|
|
// }) |
|
|
|
|
// }else if (this.nbm == 4){ //钱箱 |
|
|
|
|
// let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
// let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
// let formList = []; |
|
|
|
|
// for (var i=0;i<this.receptionList.length;i++){formList.push({ |
|
|
|
|
// "answerId":this.receptionList[i].id, |
|
|
|
|
// "emptyOne": "", |
|
|
|
|
// "emptyTwo": "", |
|
|
|
|
// "operationIds": "287,1,"+this.receptionList[i].id, |
|
|
|
|
// "type": "" })} |
|
|
|
|
// let params= { |
|
|
|
|
// parentId:'287,1', |
|
|
|
|
// lcJudgmentRuleReq:formList, |
|
|
|
|
// projectId:+projectId, |
|
|
|
|
// startTime:startTime, |
|
|
|
|
// } |
|
|
|
|
// addOperation(params).then((data)=>{ |
|
|
|
|
// this.$message({ |
|
|
|
|
// message: '提交成功', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
// }).catch((error)=>{ |
|
|
|
|
// }) |
|
|
|
|
// }else if (this.nbm == 5){ //印章盒 |
|
|
|
|
// let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
// let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
// for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "287,8,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
// let params= { |
|
|
|
|
// parentId:'287,8', |
|
|
|
|
// lcJudgmentRuleReq:formList, |
|
|
|
|
// projectId:+projectId, |
|
|
|
|
// startTime:startTime, |
|
|
|
|
// } |
|
|
|
|
// addOperation(params).then((data)=>{ |
|
|
|
|
// this.$message({ |
|
|
|
|
// message: '提交成功', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
// }).catch((error)=>{ |
|
|
|
|
// }) |
|
|
|
|
// }else if (this.nbm == 6){ //验钞机 |
|
|
|
|
// let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
// let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
// for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "287,9,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
// let params= { |
|
|
|
|
// parentId:'287,9', |
|
|
|
|
// lcJudgmentRuleReq:formList, |
|
|
|
|
// projectId:+projectId, |
|
|
|
|
// startTime:startTime, |
|
|
|
|
// } |
|
|
|
|
// addOperation(params).then((data)=>{ |
|
|
|
|
// this.$message({ |
|
|
|
|
// message: '提交成功', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
// }).catch((error)=>{ |
|
|
|
|
// }) |
|
|
|
|
// }else if (this.nbm == 7){ //打印机 |
|
|
|
|
// let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
// let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
// for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "287,10,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
// let params= { |
|
|
|
|
// parentId:'0,10', |
|
|
|
|
// lcJudgmentRuleReq:formList, |
|
|
|
|
// projectId:+projectId, |
|
|
|
|
// startTime:startTime, |
|
|
|
|
// } |
|
|
|
|
// addOperation(params).then((data)=>{ |
|
|
|
|
// this.$message({ |
|
|
|
|
// message: '提交成功', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
// }).catch((error)=>{ |
|
|
|
|
// }) |
|
|
|
|
// }else if (this.nbm == 9){//资料 |
|
|
|
|
// let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
// let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
// for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,11,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
// let params= { |
|
|
|
|
// parentId:'0,11', |
|
|
|
|
// lcJudgmentRuleReq:formList, |
|
|
|
|
// projectId:+projectId, |
|
|
|
|
// startTime:startTime, |
|
|
|
|
// } |
|
|
|
|
// addOperation(params).then((data)=>{ |
|
|
|
|
// this.$message({ |
|
|
|
|
// message: '提交成功', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
// }).catch((error)=>{ |
|
|
|
|
// }) |
|
|
|
|
// }else if (this.nbm == 10){ //刷卡器 |
|
|
|
|
// let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
// let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
// for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,6,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
// let params= { |
|
|
|
|
// parentId:'0,6', |
|
|
|
|
// lcJudgmentRuleReq:formList, |
|
|
|
|
// projectId:+projectId, |
|
|
|
|
// startTime:startTime, |
|
|
|
|
// } |
|
|
|
|
// addOperation(params).then((data)=>{ |
|
|
|
|
// this.$message({ |
|
|
|
|
// message: '提交成功', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
// }).catch((error)=>{ |
|
|
|
|
// }) |
|
|
|
|
// }else if (this.nbm == 11){ //身份证扫描仪 |
|
|
|
|
// let projectId = sessionStorage.getItem('projectId') |
|
|
|
|
// let startTime = sessionStorage.getItem('startTime') |
|
|
|
|
// for (var i=0;i<this.receptionList.length;i++){formList.push({"answerId":this.receptionList[i].id, "emptyOne": "", "emptyTwo": "", "operationIds": "0,7,"+this.receptionList[i].id,"type": ""})} |
|
|
|
|
// let params= { |
|
|
|
|
// parentId:'0,7', |
|
|
|
|
// lcJudgmentRuleReq:formList, |
|
|
|
|
// projectId:+projectId, |
|
|
|
|
// startTime:startTime, |
|
|
|
|
// } |
|
|
|
|
// addOperation(params).then((data)=>{ |
|
|
|
|
// this.$message({ |
|
|
|
|
// message: '提交成功', |
|
|
|
|
// type: 'success' |
|
|
|
|
// }); |
|
|
|
|
// }).catch((error)=>{ |
|
|
|
|
// }) |
|
|
|
|
// }else{ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
this.$store.commit('system/changePop',{show:false,text:''}) |
|
|
|
|
this.receptionList = []; |
|
|
|
|
}else{ |
|
|
|
|
this.$message.error('请从物品栏中拖拽所需资料'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// } |
|
|
|
|
// this.$store.commit('system/changePop',{show:false,text:''}) |
|
|
|
|
// this.receptionList = []; |
|
|
|
|
// }else{ |
|
|
|
|
// this.$message.error('请从物品栏中拖拽所需资料'); |
|
|
|
|
// } |
|
|
|
|
// } |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
toPart(){ |
|
|
|
|
this.$router.push('/index') |
|
|
|
|
}, |
|
|
|
|
judgePosition(evt) { |
|
|
|
|
const targetDom = this.$refs.goods.getBoundingClientRect() |
|
|
|
|
return evt.originalEvent.pageX<targetDom.right&&evt.originalEvent.pageX>targetDom.left && evt.originalEvent.pageY<targetDom.bottom&&evt.originalEvent.pageY>targetDom.top |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
</script> |
|
|
|
@ -2418,7 +2383,11 @@ export default { |
|
|
|
|
width: 95%; |
|
|
|
|
max-height: 105px; |
|
|
|
|
margin: auto; |
|
|
|
|
margin-top: 40px; |
|
|
|
|
position: absolute; |
|
|
|
|
top: .5vh; |
|
|
|
|
left: 50%; |
|
|
|
|
transform: translateX(-50%); |
|
|
|
|
// margin-top: 40px; |
|
|
|
|
} |
|
|
|
|
p { |
|
|
|
|
position: absolute; |
|
|
|
@ -2451,16 +2420,16 @@ export default { |
|
|
|
|
// 兼容小屏幕的goods-dia |
|
|
|
|
@media screen and (min-width: 1200px) and (max-width: 1919px) { |
|
|
|
|
.goods-dia { |
|
|
|
|
//height: 15vh; |
|
|
|
|
height: 15vh; |
|
|
|
|
width: 100%; |
|
|
|
|
.justify-center { |
|
|
|
|
//max-height: 13vh; |
|
|
|
|
max-height: 13vh; |
|
|
|
|
} |
|
|
|
|
.file { |
|
|
|
|
top: 0; |
|
|
|
|
//max-height: 13vh; |
|
|
|
|
max-height: 13vh; |
|
|
|
|
img { |
|
|
|
|
//max-height: 8vh; |
|
|
|
|
max-height: 8vh; |
|
|
|
|
margin: auto; |
|
|
|
|
margin-top: 1vh; |
|
|
|
|
} |
|
|
|
|