20240205
luoJunYong.123 3 years ago
parent 99949749c2
commit b42cc6074a
  1. 30
      src/pages/counter/list/index.vue
  2. BIN
      src/styles/font/苹方黑体-中粗-简.ttf
  3. BIN
      src/styles/font/苹方黑体-中粗-繁.ttf
  4. BIN
      src/styles/font/苹方黑体-中黑-简.ttf
  5. BIN
      src/styles/font/苹方黑体-中黑-繁.ttf
  6. BIN
      src/styles/font/苹方黑体-准-简.ttf
  7. BIN
      src/styles/font/苹方黑体-准-繁.ttf
  8. BIN
      src/styles/font/苹方黑体-极细-简.ttf
  9. BIN
      src/styles/font/苹方黑体-极细-繁.ttf
  10. BIN
      src/styles/font/苹方黑体-纤细-简.ttf
  11. BIN
      src/styles/font/苹方黑体-纤细-繁.ttf
  12. BIN
      src/styles/font/苹方黑体-细-简.ttf
  13. BIN
      src/styles/font/苹方黑体-细-繁.ttf

@ -137,7 +137,18 @@
<p v-if="popText=='密码器'" class="tips"></p> <p v-if="popText=='密码器'" class="tips"></p>
<p v-else-if="popText=='重要空白凭证箱'||popText=='普通凭证箱'" class="tips">- 请从以下物品中选取所需材料 -</p> <p v-else-if="popText=='重要空白凭证箱'||popText=='普通凭证箱'" class="tips">- 请从以下物品中选取所需材料 -</p>
<p v-else-if="needBackMoney" class="tips">- 请领取您所需要的现金 -</p> <div v-else-if="needBackMoney">
<p class="tips" v-if="backMoneyArr.length===0">- 请领取您所需要的现金 -</p>
<p class="tips" v-else style="text-align: left">
<span>您将领取:</span>
<span v-for="(item, index) in backMoneyArr" :key="item.key">
<span>{{ item.name + ' * ' + item.num + ' = ' + consumeMoney(item.name, item.num) }}</span>
<span v-if="index<backMoneyArr.length-1"></span>
<span v-else></span>
</span>
总金额为: {{ backMoneyTotal + '元' }}</p>
</div>
<p v-else class="tips">- 请从物品栏选中或拖拽所需材料 -</p> <p v-else class="tips">- 请从物品栏选中或拖拽所需材料 -</p>
<!-- 动画开始 --> <!-- 动画开始 -->
@ -719,13 +730,28 @@ export default {
}, },
computed: { computed: {
// //
consumeMoney() {
return (name, num) => {
if(name.includes('元')) {
return parseInt(name) * num + '元'
}else {
return (parseInt(name) * num * 0.1).toFixed(1) + '元'
}
}
},
backMoneyArr() { backMoneyArr() {
return this.cashboxGoodsShelf2.filter(item => item.num>0) return this.cashboxGoodsShelf2.filter(item => item.num>0)
}, },
backMoneyTotal() { backMoneyTotal() {
return this.cashboxGoodsShelf2.reduce((total, item) => { return this.cashboxGoodsShelf2.reduce((total, item) => {
return total + parseInt(item.name) * item.num if(item.name.includes('元')) {
return Number((total + Number((parseInt(item.name) * item.num).toFixed(1))).toFixed(1))
}else {
return Number((total + Number((parseInt(item.name) * item.num * 0.1).toFixed(1))).toFixed(1))
}
}, 0) }, 0)
// return 666
}, },
needPasswordAgain() { needPasswordAgain() {
if(this.id == '62,1' || this.id == '62,2' || this.id == '62,3' || this.id == '129' || this.id == '167' || this.id == '301') { if(this.id == '62,1' || this.id == '62,2' || this.id == '62,3' || this.id == '129' || this.id == '167' || this.id == '301') {

Loading…
Cancel
Save