|
|
@ -82,7 +82,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="sth currency-detector cp" @click="showData('验钞机',6)"> |
|
|
|
<div class="sth currency-detector cp" @click="showData('验钞机',6)"> |
|
|
|
<img v-lazy="lazyImg[16]" alt="" /> |
|
|
|
<img v-lazy="lazyImg[16]" alt="" /> |
|
|
|
<img v-lazy="finishPng" class="absolute" style="top: 0px;left: 0px;" v-if="finishGoods.checkMoneyMechine"> |
|
|
|
<img v-lazy="finishPng" class="absolute" style="top: 0px;left: 0px;" v-if="finishGoods.currencyDetector"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</el-tooltip> |
|
|
|
</el-tooltip> |
|
|
@ -93,7 +93,7 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="sth printer cp" @click="showData('打印机',7)"> |
|
|
|
<div class="sth printer cp" @click="showData('打印机',7)"> |
|
|
|
<img v-lazy="lazyImg[18]" alt="" /> |
|
|
|
<img v-lazy="lazyImg[18]" alt="" /> |
|
|
|
<img v-lazy="finishPng" class="absolute" style="top: 0px;left: 0px;" v-if="finishGoods.printMechine"> |
|
|
|
<img v-lazy="finishPng" class="absolute" style="top: 0px;left: 0px;" v-if="finishGoods.printer"> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
</el-tooltip> |
|
|
|
</el-tooltip> |
|
|
@ -402,28 +402,33 @@ |
|
|
|
<router-view></router-view> |
|
|
|
<router-view></router-view> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div v-show="showImg" style="background-color: blur;"> |
|
|
|
|
|
|
|
<div v-drag class="relative w-screen h-screen" ref="imgCheckDrag"> |
|
|
|
|
|
|
|
<check-photo :imgSrc="imgSrc" :imgSrcId='imgSrcId' :imgSrcName="imgSrcName" :showImg.sync="showImg" class="dia-header" style="width: 850px;z-index: 9999;" ref="photoCheck"> |
|
|
|
|
|
|
|
<div class="absolute flex justify-end w-full flex-wrap" style="bottom:7vh; right: 4vw"> |
|
|
|
|
|
|
|
<seal-name v-for="item in isSeal(imgSrcId)" :key="item.id" :item="item"> |
|
|
|
|
|
|
|
</seal-name> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</check-photo> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 图片查看器 --> |
|
|
|
<!-- 图片查看器 --> |
|
|
|
<el-dialog |
|
|
|
<!-- <el-dialog |
|
|
|
custom-class="data-dia " |
|
|
|
custom-class="data-dia " |
|
|
|
class="imgIndex" |
|
|
|
class="imgIndex" |
|
|
|
:visible.sync="showImg" |
|
|
|
:visible.sync="showImg" |
|
|
|
width="850px" |
|
|
|
width="850px" |
|
|
|
> |
|
|
|
> |
|
|
|
<!-- <p style="position: absolute;top: 350px; left: 90px;">test</p> --> |
|
|
|
<check-photo :imgSrc="imgSrc" :imgSrcId='imgSrcId' :imgSrcName="imgSrcName" class="dia-header"> |
|
|
|
<!-- <template v-if="428"> |
|
|
|
|
|
|
|
<h3 class="subpixel-antialiased text-4xl text-center" style="position: absolute;top: 10px;">你可能需要的信息: xxx</h3> |
|
|
|
|
|
|
|
</template> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <img :src="imgSrc" class="imgPop imgIndex min-w-full " alt=""> --> |
|
|
|
|
|
|
|
<check-photo :imgSrc="imgSrc" :imgSrcId='imgSrcId' :imgSrcName="imgSrcName"> |
|
|
|
|
|
|
|
<!-- <div name="" /> --> |
|
|
|
|
|
|
|
<div class="absolute flex justify-end w-full flex-wrap" style="bottom:7vh; right: 4vw"> |
|
|
|
<div class="absolute flex justify-end w-full flex-wrap" style="bottom:7vh; right: 4vw"> |
|
|
|
<seal-name v-for="item in isSeal(imgSrcId)" :key="item.id" :item="item"> |
|
|
|
<seal-name v-for="item in isSeal(imgSrcId)" :key="item.id" :item="item"> |
|
|
|
</seal-name> |
|
|
|
</seal-name> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</check-photo> |
|
|
|
</check-photo> |
|
|
|
</el-dialog> |
|
|
|
</el-dialog> --> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <tip-dialog /> --> |
|
|
|
<!-- <tip-dialog /> --> |
|
|
|
|
|
|
|
|
|
|
@ -732,7 +737,7 @@ export default { |
|
|
|
peopleSign: false, |
|
|
|
peopleSign: false, |
|
|
|
cultureIn: false, |
|
|
|
cultureIn: false, |
|
|
|
sealBox: false, |
|
|
|
sealBox: false, |
|
|
|
currencyDetector: false, |
|
|
|
// currencyDetector: false, |
|
|
|
printer: false, |
|
|
|
printer: false, |
|
|
|
resource: false, |
|
|
|
resource: false, |
|
|
|
backPeople: false, |
|
|
|
backPeople: false, |
|
|
@ -740,8 +745,8 @@ export default { |
|
|
|
proofImportantBox: false, |
|
|
|
proofImportantBox: false, |
|
|
|
swipingCard: false, |
|
|
|
swipingCard: false, |
|
|
|
idCard: false, |
|
|
|
idCard: false, |
|
|
|
checkMoneyMechine: false, |
|
|
|
currencyDetector: false, |
|
|
|
printMechine: false |
|
|
|
printer: false |
|
|
|
}, |
|
|
|
}, |
|
|
|
finishSealedArr: [], |
|
|
|
finishSealedArr: [], |
|
|
|
sealChecked:[],/* 印章盒选中 */ |
|
|
|
sealChecked:[],/* 印章盒选中 */ |
|
|
@ -819,15 +824,18 @@ export default { |
|
|
|
439: '销户章' |
|
|
|
439: '销户章' |
|
|
|
} |
|
|
|
} |
|
|
|
return (id) => { |
|
|
|
return (id) => { |
|
|
|
// finishSealedArr |
|
|
|
if(!this.finishSealedArr.includes(id)) { |
|
|
|
|
|
|
|
return [] |
|
|
|
|
|
|
|
}else { |
|
|
|
return this.sealArr.filter(item => { |
|
|
|
return this.sealArr.filter(item => { |
|
|
|
// && this.finishSealedArr.includes(item.id) |
|
|
|
// && this.finishSealedArr.includes(item.id) |
|
|
|
if(item.name.includes(stampMap2[id])) { |
|
|
|
if(item.name.includes(stampMap2[id])) { |
|
|
|
console.log(item.id) |
|
|
|
|
|
|
|
return item |
|
|
|
return item |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
// sealChecked 印章盒选中的印章盖上去 |
|
|
|
// sealChecked 印章盒选中的印章盖上去 |
|
|
|
sealCoverIt() { |
|
|
|
sealCoverIt() { |
|
|
@ -946,7 +954,10 @@ export default { |
|
|
|
peopleSign: 'system/peopleSign', |
|
|
|
peopleSign: 'system/peopleSign', |
|
|
|
goodState: 'system/goodState', |
|
|
|
goodState: 'system/goodState', |
|
|
|
getSelectList: 'system/getSelectList', |
|
|
|
getSelectList: 'system/getSelectList', |
|
|
|
needBackMoney: 'system/needBackMoney' |
|
|
|
needBackMoney: 'system/needBackMoney', |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
...mapState({ |
|
|
|
|
|
|
|
businessKey: state => state.system.businessKey |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
watch: { |
|
|
@ -1023,6 +1034,12 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
id(newVal) { |
|
|
|
id(newVal) { |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
businessKey: { |
|
|
|
|
|
|
|
handler(newVal) { |
|
|
|
|
|
|
|
this.getThingsCache() |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
immediate: true |
|
|
|
|
|
|
|
}, |
|
|
|
// 'passwordForm.password'(newVal) { |
|
|
|
// 'passwordForm.password'(newVal) { |
|
|
|
// // passwordForm:{ |
|
|
|
// // passwordForm:{ |
|
|
|
// // password:'', |
|
|
|
// // password:'', |
|
|
@ -1071,6 +1088,160 @@ export default { |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.startPlay() |
|
|
|
this.startPlay() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.getThingsCache(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
mounted(){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let that = this |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 图片查看器允许拖拽 |
|
|
|
|
|
|
|
new Sortable(this.$refs.imgCheckDrag, { |
|
|
|
|
|
|
|
animation: 150, |
|
|
|
|
|
|
|
group: { |
|
|
|
|
|
|
|
name:'shared', |
|
|
|
|
|
|
|
pull:'clone',// 是否可以被移出或克隆 |
|
|
|
|
|
|
|
put:false// 禁止拖入 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
// 拖拽-物品栏 |
|
|
|
|
|
|
|
new Sortable(this.$refs.goods, { |
|
|
|
|
|
|
|
animation: 150, |
|
|
|
|
|
|
|
group: { |
|
|
|
|
|
|
|
name:'shared', |
|
|
|
|
|
|
|
pull:'clone',// 是否可以被移出或克隆 |
|
|
|
|
|
|
|
put:false// 禁止拖入 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
sort: false,// 禁止排序 |
|
|
|
|
|
|
|
onEnd: function (/**Event*/evt) { // 结束拖拽 |
|
|
|
|
|
|
|
// 判断拖拽的地址 popUp和popUpSeal都是可以被拖拽上去的 |
|
|
|
|
|
|
|
if(!that.$refs.popUp && !that.$refs.popUpSeal) return that.setTipsOperate('非可拖拽的交互!') |
|
|
|
|
|
|
|
let targetDom |
|
|
|
|
|
|
|
if(that.$refs.popUp) { |
|
|
|
|
|
|
|
targetDom = that.$refs.popUp.getBoundingClientRect() |
|
|
|
|
|
|
|
}else if(that.$refs.popUpSeal) { |
|
|
|
|
|
|
|
targetDom = that.$refs.popUpSeal.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(that.goodsShelfTotalData[evt.oldIndex].name,'执行拖拽2'); |
|
|
|
|
|
|
|
// that.clickList.push(that.goodsShelfTotalData[evt.oldIndex].name) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(that.$refs.popUp) { |
|
|
|
|
|
|
|
if(that.myMap) { |
|
|
|
|
|
|
|
const id = that.goodsShelfTotalData[evt.oldIndex].id |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
that.outThingsGoods([id]) |
|
|
|
|
|
|
|
that.pushThings({ idArr: [id], name: that.myMap}) |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
for(var i=0;i<that.popArr.length;i++){ |
|
|
|
|
|
|
|
if (that.goodsShelfTotalData[evt.oldIndex].name == that.popArr[i].name){ |
|
|
|
|
|
|
|
if (that.receptionList == null){ |
|
|
|
|
|
|
|
that.receptionList = [] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (that.receptionList.length){ |
|
|
|
|
|
|
|
for(var j=0;j< that.receptionList.length;j++){ |
|
|
|
|
|
|
|
if (that.receptionList[j].name == that.goodsShelfTotalData[evt.oldIndex].name){ |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
that.receptionList.push(that.popArr[i]) |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
that.receptionList.push(that.popArr[i]) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 印章的拖拽 |
|
|
|
|
|
|
|
else if(that.$refs.popUpSeal) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const id = that.goodsShelfTotalData[evt.oldIndex].id |
|
|
|
|
|
|
|
that.outThingsGoods([ id ]) |
|
|
|
|
|
|
|
that.pushThings({ idArr: [ id ], name: that.myMap}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
// (item, index) in importanceArr" :ref="'importanceArr'+index |
|
|
|
|
|
|
|
// 拖拽-弹框 |
|
|
|
|
|
|
|
new Sortable(this.$refs.popUp, { |
|
|
|
|
|
|
|
animation: 150, |
|
|
|
|
|
|
|
group: { |
|
|
|
|
|
|
|
name:'shared', |
|
|
|
|
|
|
|
pull:'clone',// 是否可以被移出或克隆 |
|
|
|
|
|
|
|
put:false |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
sort: false,// 禁止排序 |
|
|
|
|
|
|
|
// 结束拖拽 |
|
|
|
|
|
|
|
onEnd: function (/**Event*/evt) { |
|
|
|
|
|
|
|
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){ |
|
|
|
|
|
|
|
/* oldindex识别是拖拽了哪个文件 */ |
|
|
|
|
|
|
|
that.checkList.push(that.importanceArr[evt.oldIndex].name) |
|
|
|
|
|
|
|
if(that.goodsShelfTotalData.length > 0){ |
|
|
|
|
|
|
|
for(var i=0;i<that.goodsShelfTotalData.length;i++){ |
|
|
|
|
|
|
|
if(that.goodsShelfTotalData[i].name == that.importanceArr[evt.oldIndex].name){ |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// that.goodsShelfTotalData.push(that.importanceArr[evt.oldIndex]) |
|
|
|
|
|
|
|
that.addGoods(that.importanceArr[evt.oldIndex]) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// // console.log(refParamBox,'目标dom',refParamBox.getBoundingClientRect()); |
|
|
|
|
|
|
|
// // 判断拖拽的地址 |
|
|
|
|
|
|
|
// let targetDom = that.$refs.goods.getBoundingClientRect() |
|
|
|
|
|
|
|
// console.log(evt.oldIndex) |
|
|
|
|
|
|
|
// if(evt.originalEvent.pageX<targetDom.right&&evt.originalEvent.pageX>targetDom.left){ |
|
|
|
|
|
|
|
// if(evt.originalEvent.pageY<targetDom.bottom&&evt.originalEvent.pageY>targetDom.top){ |
|
|
|
|
|
|
|
// console.log(evt) |
|
|
|
|
|
|
|
// // this.importanceArr[evt.oldIndex] |
|
|
|
|
|
|
|
// // this.importanceArr |
|
|
|
|
|
|
|
// alert('拉入到弹框') |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
|
|
|
|
...mapMutations({ |
|
|
|
|
|
|
|
startPlay: 'system/startPlay', |
|
|
|
|
|
|
|
replaceThingsGoods: 'system/replaceThingsGoods', |
|
|
|
|
|
|
|
replaceThings: 'system/replaceThings', |
|
|
|
|
|
|
|
setShowBusiness: 'system/setShowBusiness', |
|
|
|
|
|
|
|
changeShowGoods: 'system/changeShowGoods', |
|
|
|
|
|
|
|
setGoodsOpen: 'system/setGoodsOpen', |
|
|
|
|
|
|
|
removeGoodsOpen: 'system/removeGoodsOpen', |
|
|
|
|
|
|
|
addGoodsOpen: 'system/addGoodsOpen', |
|
|
|
|
|
|
|
setBusinessKey: 'system/setBusinessKey', |
|
|
|
|
|
|
|
addGoods: 'system/addGoods', |
|
|
|
|
|
|
|
deleteGoods: 'system/deleteGoods', |
|
|
|
|
|
|
|
stampJudge: 'system/stampJudge', |
|
|
|
|
|
|
|
payMoney: 'system/payMoney', |
|
|
|
|
|
|
|
backPeople: 'system/backPeople', |
|
|
|
|
|
|
|
backCulture: 'system/backCulture', |
|
|
|
|
|
|
|
pushThings: 'system/pushThings', |
|
|
|
|
|
|
|
pushThingsGoods: 'system/pushThingsGoods', |
|
|
|
|
|
|
|
outThings: 'system/outThings', |
|
|
|
|
|
|
|
outThings2: 'system/outThings2', |
|
|
|
|
|
|
|
outThingsGoods: 'system/outThingsGoods', |
|
|
|
|
|
|
|
setTipsOperate: 'system/setTipsOperate' |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
getThingsCache() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 初始化印章缓存 |
|
|
|
|
|
|
|
this.finishSealedArr.splice(0, this.finishSealedArr.length) |
|
|
|
|
|
|
|
|
|
|
|
// 传票栏 |
|
|
|
// 传票栏 |
|
|
|
getOperation({ |
|
|
|
getOperation({ |
|
|
|
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,4' |
|
|
|
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,4' |
|
|
@ -1082,6 +1253,8 @@ export default { |
|
|
|
this.pushThings({ idArr: [...list], name: 'cultureIn'}) |
|
|
|
this.pushThings({ idArr: [...list], name: 'cultureIn'}) |
|
|
|
} |
|
|
|
} |
|
|
|
this.finishGoods.cultureIn = true |
|
|
|
this.finishGoods.cultureIn = true |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.finishGoods.cultureIn = false |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
// 重要空白凭证箱 |
|
|
|
// 重要空白凭证箱 |
|
|
@ -1095,6 +1268,8 @@ export default { |
|
|
|
this.pushThingsGoods([...list]) |
|
|
|
this.pushThingsGoods([...list]) |
|
|
|
} |
|
|
|
} |
|
|
|
this.finishGoods.proofImportantBox = true |
|
|
|
this.finishGoods.proofImportantBox = true |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.finishGoods.proofImportantBox = false |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
@ -1108,6 +1283,8 @@ export default { |
|
|
|
this.pushThingsGoods([...list]) |
|
|
|
this.pushThingsGoods([...list]) |
|
|
|
} |
|
|
|
} |
|
|
|
this.finishGoods.proofBox = true |
|
|
|
this.finishGoods.proofBox = true |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.finishGoods.proofBox = false |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
@ -1161,6 +1338,8 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.finishGoods.sealBox = true |
|
|
|
this.finishGoods.sealBox = true |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.finishGoods.sealBox = false |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
@ -1180,6 +1359,8 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
this.finishGoods.moneyBox = true |
|
|
|
this.finishGoods.moneyBox = true |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.finishGoods.moneyBox = false |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
@ -1203,6 +1384,8 @@ export default { |
|
|
|
}).then((data)=>{ |
|
|
|
}).then((data)=>{ |
|
|
|
if(data.status == 200 && data.data.judgmentRuleReqs) { |
|
|
|
if(data.status == 200 && data.data.judgmentRuleReqs) { |
|
|
|
this.finishGoods.swipingCard = true |
|
|
|
this.finishGoods.swipingCard = true |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.finishGoods.swipingCard = false |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
@ -1212,6 +1395,8 @@ export default { |
|
|
|
}).then((data)=>{ |
|
|
|
}).then((data)=>{ |
|
|
|
if(data.status == 200 && data.data.judgmentRuleReqs) { |
|
|
|
if(data.status == 200 && data.data.judgmentRuleReqs) { |
|
|
|
this.finishGoods.idCard = true |
|
|
|
this.finishGoods.idCard = true |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
this.finishGoods.idCard = false |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
@ -1220,7 +1405,9 @@ export default { |
|
|
|
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,9' |
|
|
|
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,9' |
|
|
|
}).then((data)=>{ |
|
|
|
}).then((data)=>{ |
|
|
|
if(data.status == 200 && data.data.judgmentRuleReqs) { |
|
|
|
if(data.status == 200 && data.data.judgmentRuleReqs) { |
|
|
|
this.finishGoods.checkMoneyMechine = true |
|
|
|
this.finishGoods.currencyDetector = true |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.finishGoods.currencyDetector = false |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
@ -1229,148 +1416,12 @@ export default { |
|
|
|
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,10' |
|
|
|
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,10' |
|
|
|
}).then((data)=>{ |
|
|
|
}).then((data)=>{ |
|
|
|
if(data.status == 200 && data.data.judgmentRuleReqs) { |
|
|
|
if(data.status == 200 && data.data.judgmentRuleReqs) { |
|
|
|
console.log(data) |
|
|
|
this.finishGoods.printer = true |
|
|
|
this.finishGoods.printMechine = true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
mounted(){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let that = this |
|
|
|
|
|
|
|
// 拖拽-物品栏 |
|
|
|
|
|
|
|
new Sortable(this.$refs.goods, { |
|
|
|
|
|
|
|
animation: 150, |
|
|
|
|
|
|
|
group: { |
|
|
|
|
|
|
|
name:'shared', |
|
|
|
|
|
|
|
pull:'clone',// 是否可以被移出或克隆 |
|
|
|
|
|
|
|
put:false// 禁止拖入 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
sort: false,// 禁止排序 |
|
|
|
|
|
|
|
onEnd: function (/**Event*/evt) { // 结束拖拽 |
|
|
|
|
|
|
|
// 判断拖拽的地址 popUp和popUpSeal都是可以被拖拽上去的 |
|
|
|
|
|
|
|
if(!that.$refs.popUp && !that.$refs.popUpSeal) return that.setTipsOperate('非可拖拽的交互!') |
|
|
|
|
|
|
|
let targetDom |
|
|
|
|
|
|
|
if(that.$refs.popUp) { |
|
|
|
|
|
|
|
targetDom = that.$refs.popUp.getBoundingClientRect() |
|
|
|
|
|
|
|
}else if(that.$refs.popUpSeal) { |
|
|
|
|
|
|
|
targetDom = that.$refs.popUpSeal.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(that.goodsShelfTotalData[evt.oldIndex].name,'执行拖拽2'); |
|
|
|
|
|
|
|
// that.clickList.push(that.goodsShelfTotalData[evt.oldIndex].name) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(that.$refs.popUp) { |
|
|
|
|
|
|
|
if(that.myMap) { |
|
|
|
|
|
|
|
const id = that.goodsShelfTotalData[evt.oldIndex].id |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
that.outThingsGoods([id]) |
|
|
|
|
|
|
|
that.pushThings({ idArr: [id], name: that.myMap}) |
|
|
|
|
|
|
|
}else { |
|
|
|
}else { |
|
|
|
for(var i=0;i<that.popArr.length;i++){ |
|
|
|
this.finishGoods.printer = false |
|
|
|
if (that.goodsShelfTotalData[evt.oldIndex].name == that.popArr[i].name){ |
|
|
|
|
|
|
|
if (that.receptionList == null){ |
|
|
|
|
|
|
|
that.receptionList = [] |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (that.receptionList.length){ |
|
|
|
|
|
|
|
for(var j=0;j< that.receptionList.length;j++){ |
|
|
|
|
|
|
|
if (that.receptionList[j].name == that.goodsShelfTotalData[evt.oldIndex].name){ |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
that.receptionList.push(that.popArr[i]) |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
that.receptionList.push(that.popArr[i]) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 印章的拖拽 |
|
|
|
|
|
|
|
else if(that.$refs.popUpSeal) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const id = that.goodsShelfTotalData[evt.oldIndex].id |
|
|
|
|
|
|
|
that.outThingsGoods([ id ]) |
|
|
|
|
|
|
|
that.pushThings({ idArr: [ id ], name: that.myMap}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
// (item, index) in importanceArr" :ref="'importanceArr'+index |
|
|
|
|
|
|
|
// 拖拽-弹框 |
|
|
|
|
|
|
|
new Sortable(this.$refs.popUp, { |
|
|
|
|
|
|
|
animation: 150, |
|
|
|
|
|
|
|
group: { |
|
|
|
|
|
|
|
name:'shared', |
|
|
|
|
|
|
|
pull:'clone',// 是否可以被移出或克隆 |
|
|
|
|
|
|
|
put:false |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
sort: false,// 禁止排序 |
|
|
|
|
|
|
|
// 结束拖拽 |
|
|
|
|
|
|
|
onEnd: function (/**Event*/evt) { |
|
|
|
|
|
|
|
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){ |
|
|
|
|
|
|
|
/* oldindex识别是拖拽了哪个文件 */ |
|
|
|
|
|
|
|
that.checkList.push(that.importanceArr[evt.oldIndex].name) |
|
|
|
|
|
|
|
if(that.goodsShelfTotalData.length > 0){ |
|
|
|
|
|
|
|
for(var i=0;i<that.goodsShelfTotalData.length;i++){ |
|
|
|
|
|
|
|
if(that.goodsShelfTotalData[i].name == that.importanceArr[evt.oldIndex].name){ |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// that.goodsShelfTotalData.push(that.importanceArr[evt.oldIndex]) |
|
|
|
|
|
|
|
that.addGoods(that.importanceArr[evt.oldIndex]) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
// // console.log(refParamBox,'目标dom',refParamBox.getBoundingClientRect()); |
|
|
|
|
|
|
|
// // 判断拖拽的地址 |
|
|
|
|
|
|
|
// let targetDom = that.$refs.goods.getBoundingClientRect() |
|
|
|
|
|
|
|
// console.log(evt.oldIndex) |
|
|
|
|
|
|
|
// if(evt.originalEvent.pageX<targetDom.right&&evt.originalEvent.pageX>targetDom.left){ |
|
|
|
|
|
|
|
// if(evt.originalEvent.pageY<targetDom.bottom&&evt.originalEvent.pageY>targetDom.top){ |
|
|
|
|
|
|
|
// console.log(evt) |
|
|
|
|
|
|
|
// // this.importanceArr[evt.oldIndex] |
|
|
|
|
|
|
|
// // this.importanceArr |
|
|
|
|
|
|
|
// alert('拉入到弹框') |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
|
|
|
|
...mapMutations({ |
|
|
|
|
|
|
|
startPlay: 'system/startPlay', |
|
|
|
|
|
|
|
replaceThingsGoods: 'system/replaceThingsGoods', |
|
|
|
|
|
|
|
replaceThings: 'system/replaceThings', |
|
|
|
|
|
|
|
setShowBusiness: 'system/setShowBusiness', |
|
|
|
|
|
|
|
changeShowGoods: 'system/changeShowGoods', |
|
|
|
|
|
|
|
setGoodsOpen: 'system/setGoodsOpen', |
|
|
|
|
|
|
|
removeGoodsOpen: 'system/removeGoodsOpen', |
|
|
|
|
|
|
|
addGoodsOpen: 'system/addGoodsOpen', |
|
|
|
|
|
|
|
setBusinessKey: 'system/setBusinessKey', |
|
|
|
|
|
|
|
addGoods: 'system/addGoods', |
|
|
|
|
|
|
|
deleteGoods: 'system/deleteGoods', |
|
|
|
|
|
|
|
stampJudge: 'system/stampJudge', |
|
|
|
|
|
|
|
payMoney: 'system/payMoney', |
|
|
|
|
|
|
|
backPeople: 'system/backPeople', |
|
|
|
|
|
|
|
backCulture: 'system/backCulture', |
|
|
|
|
|
|
|
pushThings: 'system/pushThings', |
|
|
|
|
|
|
|
pushThingsGoods: 'system/pushThingsGoods', |
|
|
|
|
|
|
|
outThings: 'system/outThings', |
|
|
|
|
|
|
|
outThings2: 'system/outThings2', |
|
|
|
|
|
|
|
outThingsGoods: 'system/outThingsGoods', |
|
|
|
|
|
|
|
setTipsOperate: 'system/setTipsOperate' |
|
|
|
|
|
|
|
}), |
|
|
|
|
|
|
|
voucherCardGetIt(number) { |
|
|
|
voucherCardGetIt(number) { |
|
|
|
if(number === 2) { |
|
|
|
if(number === 2) { |
|
|
|
|
|
|
|
|
|
|
@ -2019,59 +2070,13 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
// 进去会排序 多的不用管 |
|
|
|
// 进去会排序 多的不用管 |
|
|
|
const sealArr = [...this.sealChecked] |
|
|
|
const sealArr = [...this.sealChecked] |
|
|
|
this.stampJudge(sealArr) |
|
|
|
this.stampJudge({ |
|
|
|
this.sealChecked = [] |
|
|
|
sealArr, |
|
|
|
// this.sealChecked = [] |
|
|
|
cb: (successId) => { |
|
|
|
// this.$store.commit('system/changePop', {show: false, text: ''}) |
|
|
|
this.finishSealedArr.push(successId) |
|
|
|
this.$nextTick(() => { |
|
|
|
|
|
|
|
getOperation({ |
|
|
|
|
|
|
|
parentId: '285,' + this.$store.state.system.businessSelect[this.$store.state.system.businessKey].id + ',287,8' |
|
|
|
|
|
|
|
}).then((data)=>{ |
|
|
|
|
|
|
|
const stampJudge = { |
|
|
|
|
|
|
|
18: {add:[24, 21], delete: [14]}, |
|
|
|
|
|
|
|
452:{ add: [432, 433] }, |
|
|
|
|
|
|
|
458:{ add: [419, 418], delete: [426]}, |
|
|
|
|
|
|
|
459:{ add: [478, 477], delete: [407]}, |
|
|
|
|
|
|
|
460:{ add: [466,468,467], delete: [406]}, |
|
|
|
|
|
|
|
463:{ add: [480, 488], delete: [413]}, |
|
|
|
|
|
|
|
464:{ add: [482, 481], delete: [479]}, |
|
|
|
|
|
|
|
444:{ add: [420, 421], delete: [425]}, |
|
|
|
|
|
|
|
445:{ add: [422, 424], delete: [427]}, |
|
|
|
|
|
|
|
446:{ add: [419, 418], delete: [426]}, |
|
|
|
|
|
|
|
447:{ add: [269, 22], delete: [17]}, |
|
|
|
|
|
|
|
455:{ add: [487, 441], delete: [409]}, |
|
|
|
|
|
|
|
456:{ add: [473, 472], delete: [411]}, |
|
|
|
|
|
|
|
457:{ add: [476, 474], delete: [412]} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
const stampMap = { |
|
|
|
|
|
|
|
449: 429, |
|
|
|
|
|
|
|
19: 428, |
|
|
|
|
|
|
|
452: 432, |
|
|
|
|
|
|
|
465: 438, |
|
|
|
|
|
|
|
461: 467, |
|
|
|
|
|
|
|
20: 23, |
|
|
|
|
|
|
|
435: 435, |
|
|
|
|
|
|
|
436: 437, |
|
|
|
|
|
|
|
484: 431, |
|
|
|
|
|
|
|
462: 468, |
|
|
|
|
|
|
|
448: 430, |
|
|
|
|
|
|
|
454: 439 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(data.status == 200 && data.data.judgmentRuleReqs) { |
|
|
|
|
|
|
|
const list = data.data.judgmentRuleReqs.map(item => item.answerId) |
|
|
|
|
|
|
|
const allKeys = Object.keys(stampJudge) |
|
|
|
|
|
|
|
if(list.length) { |
|
|
|
|
|
|
|
for(let i=0; i<list.length; i++) { |
|
|
|
|
|
|
|
if(allKeys.includes(list[i])) { |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.finishSealedArr.push(stampMap[list[i]]) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.sealChecked = [] |
|
|
|
}else if (this.nbm == 6){ //验钞机 |
|
|
|
}else if (this.nbm == 6){ //验钞机 |
|
|
|
if(this.goodState.length === 0 || this.goodState[0].id !== 15) { |
|
|
|
if(this.goodState.length === 0 || this.goodState[0].id !== 15) { |
|
|
|
this.setTipsOperate('请放入现金!') |
|
|
|
this.setTipsOperate('请放入现金!') |
|
|
|