优化打印效果
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
<div class="number" @click="takeFoodCodeRef.show()">
|
||||
<el-text class="t">{{ masterId }}</el-text>
|
||||
</div>
|
||||
<div class="select_user" @click="membershow = true">
|
||||
<!-- <div class="select_user" @click="membershow = true">
|
||||
<el-icon class="icon">
|
||||
<UserFilled />
|
||||
</el-icon>
|
||||
@@ -19,7 +19,7 @@
|
||||
<el-icon class="arrow">
|
||||
<ArrowRight />
|
||||
</el-icon>
|
||||
</div>
|
||||
</div> -->
|
||||
</div>
|
||||
<div class="shop_operation">
|
||||
<div class="shop_list">
|
||||
@@ -78,7 +78,7 @@
|
||||
@click="createOrderHandle">
|
||||
<div class="js">
|
||||
<el-text class="t">¥{{ cartInfo.totalAmount }}</el-text>
|
||||
<el-text class="t" style="margin-left: 250px;">
|
||||
<el-text class="t" style="margin-left: 30px">
|
||||
<span v-if="!createOrderLoading">结算</span>
|
||||
<span v-else>下单中...</span>
|
||||
</el-text>
|
||||
@@ -142,7 +142,6 @@ const createOrderLoading = ref(false)
|
||||
|
||||
// 取餐码
|
||||
const masterId = ref('')
|
||||
const uuid = ref('')
|
||||
|
||||
// 挂单量
|
||||
const pendingCartNum = ref(0)
|
||||
@@ -212,7 +211,8 @@ async function delCartHandle(params) {
|
||||
masterId: params.masterId,
|
||||
cartId: params.id
|
||||
})
|
||||
queryCartAjax()
|
||||
await queryCartAjax()
|
||||
cartListActive.value = 0
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
@@ -226,6 +226,7 @@ function giftPackHandle(key, item) {
|
||||
|
||||
// 打包全选
|
||||
const allSelectedHandle = async () => {
|
||||
if (!cartList.value.length) return
|
||||
allSelected.value = !allSelected.value
|
||||
await packall({
|
||||
shopId: store.userInfo.shopId,
|
||||
@@ -258,7 +259,8 @@ async function addCart(params, type = 'add') {
|
||||
isPack: params.isPack || false,
|
||||
isGift: params.isGift || false,
|
||||
cartId: type == 'add' ? '' : params.id,
|
||||
uuid: params.uuid || store.userInfo.uuid
|
||||
uuid: params.uuid || store.userInfo.uuid,
|
||||
type: type
|
||||
})
|
||||
masterId.value = res
|
||||
goodsRef.value.updateData()
|
||||
@@ -287,11 +289,11 @@ async function queryCartAjax() {
|
||||
// 获取取餐码
|
||||
async function createCodeAjax() {
|
||||
try {
|
||||
const res = await createCode({
|
||||
shopId: store.userInfo.shopId
|
||||
})
|
||||
masterId.value = res.code
|
||||
// masterId.value = '#13'
|
||||
// const res = await createCode({
|
||||
// shopId: store.userInfo.shopId
|
||||
// })
|
||||
// masterId.value = res.code
|
||||
masterId.value = '#50'
|
||||
queryCartAjax()
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
@@ -305,7 +307,7 @@ onMounted(() => {
|
||||
|
||||
<style scoped lang="scss">
|
||||
.cart_wrap {
|
||||
width: 550px;
|
||||
flex: 1.5;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -519,7 +521,7 @@ onMounted(() => {
|
||||
}
|
||||
|
||||
.shop_manage {
|
||||
flex: 1;
|
||||
flex: 2;
|
||||
margin-left: 20px;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user