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