1.优化订单开票按钮显示 2.退出登录新增退出团购
This commit is contained in:
@@ -145,3 +145,16 @@ export function douyinbindstore(data) {
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 登出团购
|
||||
* @param {*} data
|
||||
* @returns
|
||||
*/
|
||||
export function tglogout(data) {
|
||||
return request_php({
|
||||
method: "post",
|
||||
url: "user/logout",
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -121,7 +121,11 @@
|
||||
|
||||
<div class="orderbox_right_button" ref="reforderboxrightbutton">
|
||||
<div class="orderbox_right_buttonbutton">
|
||||
<el-button style="width: 100%" type="warning" :loading="callLoading" @click="callNumberHandle">
|
||||
<el-button style="width: 100%" type="warning" :loading="callLoading" @click="callNumberHandle" v-if="
|
||||
orderDetaildata.orderType != 'return' &&
|
||||
(orderDetaildata.status == 'refund' ||
|
||||
orderDetaildata.status == 'closed')
|
||||
">
|
||||
叫号
|
||||
</el-button>
|
||||
</div>
|
||||
@@ -133,7 +137,11 @@
|
||||
" type="primary" @click="recharge = true">退单</el-button>
|
||||
</div>
|
||||
<div class="orderbox_right_buttonbutton">
|
||||
<el-button style="flex: 1" :loading="invoiceLoading" @click="invoiveHandle">开发票</el-button>
|
||||
<el-button style="flex: 1" :loading="invoiceLoading" @click="invoiveHandle" v-if="
|
||||
orderDetaildata.orderType != 'return' &&
|
||||
(orderDetaildata.status == 'refund' ||
|
||||
orderDetaildata.status == 'closed')
|
||||
">开发票</el-button>
|
||||
<el-button @click="print('normal')" style="flex: 1">重打小票</el-button>
|
||||
<el-button @click="print('label')" style="flex: 1">重打标签</el-button>
|
||||
</div>
|
||||
|
||||
@@ -137,6 +137,7 @@ import { ipcRenderer } from "electron";
|
||||
import { ref, onMounted } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import { ElMessage, dayjs } from 'element-plus'
|
||||
import { tglogout } from '@/api/group.js'
|
||||
import { shopInfoqueryDuty, loginlogout, handoverData, handoverprint } from '@/api/work/index.js'
|
||||
import useStorage from '@/utils/useStorage'
|
||||
import { useRouter } from "vue-router";
|
||||
@@ -244,6 +245,8 @@ const exit = async () => {
|
||||
console.log('云打印');
|
||||
loading.value = true;
|
||||
|
||||
await tglogout()
|
||||
|
||||
// 退出登录
|
||||
await loginlogout({
|
||||
status: 1
|
||||
|
||||
Reference in New Issue
Block a user