修复bug,更新代码

This commit is contained in:
mkm 2024-06-09 17:56:06 +08:00
parent a75534084b
commit f278009f18
2 changed files with 540 additions and 515 deletions

View File

@ -434,12 +434,33 @@ onUnmounted(() => {
现金收款
</div>
</div>
<div>
<div v-if="form.activities==1" style="display: inline-block;margin-right: 20px">
<div style="display: inline-block;margin-right: 20px">
<div style="color: #999;padding: 2rem 0 0.3rem 0">原价:</div>
<div style="color: #f5222d; padding-bottom: 2rem">
¥<span style="font-size: 1.6rem">{{ form.original_price }}</span>
</div>
</div>
<div style="display: inline-block;">
<div style="color: #999;padding: 2rem 0 0.3rem 0">活动折扣:</div>
<div style="color: #f5222d; padding-bottom: 2rem">
{{ form.activity }}¥<span style="font-size: 1.6rem">{{ form.activity_price }}</span>
</div>
</div>
</div>
<div style="display: inline-block ">
<div style="color: #999; padding: 2rem 0 0.3rem 0">应收金额():</div>
<div style="color: #f5222d; padding-bottom: 2rem">
¥<span style="font-size: 1.6rem">{{ form.pay_price }}</span>
</div>
</div>
</div>
<div v-loading="loading" element-loading-text="支付中" class="card1" v-if="active == 1">
<el-input ref="codeRef" v-model="input" autofocus class="code-input" placeholder="请点击输入框聚焦扫码或输入编码号"
<el-input ref="codeRef" v-model="input" autofocus class="code-input"
placeholder="请点击输入框聚焦扫码或输入编码号"
@keyup.enter="handleEnter" @focus="isFocus = true" @blur="isFocus = false"/>
<div class="tips"></div>
</div>
@ -462,13 +483,17 @@ onUnmounted(() => {
</div>
<div class="keypad">
<div class="left">
<el-button v-for="item in numList" :key="item" @click="numTap(item)">{{ item
}}</el-button>
<el-button v-for="item in numList" :key="item" @click="numTap(item)">{{
item
}}
</el-button>
</div>
<div class="right">
<el-button @click="delNum"><el-icon>
<el-button @click="delNum">
<el-icon>
<Delete/>
</el-icon></el-button>
</el-icon>
</el-button>
<el-button @click="delNum(-1)">C</el-button>
<el-button class="enter" :class="{ 'enter-disable': +collection < +form.total }"
:disabled="+collection < +form.total" @click="cashBnt">

View File

@ -236,7 +236,7 @@ onUnmounted(() => {
.cahier {
&::before {
content: "收银";
content: "平台";
font-weight: 400;
font-size: 0.7rem;
padding: 0.1rem 0.1rem;