20240205
luoJunYong.123 3 years ago
parent f7b9800666
commit 792b663c0a
  1. 33
      src/pages/counter/list/index.vue
  2. 4
      src/store/modules/system.js

@ -537,6 +537,9 @@ export default {
}; };
}, },
computed: { computed: {
businessKey() {
return this.$store.state.system.businessKey
},
full: function () {// full: function () {//
return this.$store.state.system.fullScreen; return this.$store.state.system.fullScreen;
}, },
@ -908,6 +911,7 @@ export default {
goods:function () {/* 物品栏的物品 */ goods:function () {/* 物品栏的物品 */
return this.$store.state.system.goods return this.$store.state.system.goods
}, },
showGoods:function() { showGoods:function() {
return this.$store.state.system.showGoods return this.$store.state.system.showGoods
}, },
@ -992,6 +996,7 @@ export default {
}) })
}, },
mounted(){ mounted(){
this.showBusinessSelect(true)
let that = this let that = this
// - // -
new Sortable(this.$refs.goods, { new Sortable(this.$refs.goods, {
@ -1097,11 +1102,24 @@ export default {
} }
}, },
selectBusiness(myKey) { selectBusiness(myKey) {
if(!myKey) {
this.$message({
message: '请选择一个业务!',
type: 'warning'
});
return
}
this.setBusinessKey(myKey) this.setBusinessKey(myKey)
console.log(this.goods2)
this.showBusiness = false; this.showBusiness = false;
}, },
showBusinessSelect (judge) { showBusinessSelect (judge) {
if(!judge && !this.businessKey) {
this.$message({
message: '请选择一个业务!',
type: 'warning'
});
return
}
this.showBusiness = judge; this.showBusiness = judge;
}, },
dislodgeItem(index){ dislodgeItem(index){
@ -1422,7 +1440,6 @@ export default {
} }
}else if (this.$store.state.system.id == '62,1'){ }else if (this.$store.state.system.id == '62,1'){
this.nbm = 62 this.nbm = 62
console.log('62,11111111111111111111')
// this.goodsShelfTotalData = this.auditGoodsShelf // this.goodsShelfTotalData = this.auditGoodsShelf
if (this.receptionList.length >0){ if (this.receptionList.length >0){
sessionStorage.setItem('accountVoucher', JSON.stringify(this.receptionList)) sessionStorage.setItem('accountVoucher', JSON.stringify(this.receptionList))
@ -1455,11 +1472,7 @@ export default {
accountPasswordThree = this.passwordForm.passwordAgain accountPasswordThree = this.passwordForm.passwordAgain
sessionStorage.setItem('accountPasswordThree', accountPasswordThree) sessionStorage.setItem('accountPasswordThree', accountPasswordThree)
} }
} }else {
}
let formList = [] let formList = []
this.toggleGoods() this.toggleGoods()
this.$message.success(`${this.popText}操作成功!`) this.$message.success(`${this.popText}操作成功!`)
@ -1646,6 +1659,12 @@ export default {
this.goodsShelfTotalData = this.auditGoodsShelf this.goodsShelfTotalData = this.auditGoodsShelf
} }
}
}
this.$store.commit('system/changePop', {show: false, text: ''}) this.$store.commit('system/changePop', {show: false, text: ''})

@ -31,10 +31,6 @@ export default {
businessKey: '', businessKey: '',
businessSelect: { businessSelect: {
'': {
data: [],
needs: []
},
'项目一': { '项目一': {
data: [15, 13, 23, 14], data: [15, 13, 23, 14],
needs: [16, 17] needs: [16, 17]

Loading…
Cancel
Save