新增订单开票
This commit is contained in:
@@ -133,7 +133,7 @@
|
||||
" type="primary" @click="recharge = true">退单</el-button>
|
||||
</div>
|
||||
<div class="orderbox_right_buttonbutton">
|
||||
<!-- <el-button style="flex: 1" @click="invoiveHandle">开发票</el-button> -->
|
||||
<el-button style="flex: 1" :loading="invoiceLoading" @click="invoiveHandle">开发票</el-button>
|
||||
<el-button @click="print('normal')" style="flex: 1">重打小票</el-button>
|
||||
<el-button @click="print('label')" style="flex: 1">重打标签</el-button>
|
||||
</div>
|
||||
@@ -274,6 +274,7 @@
|
||||
</el-dialog>
|
||||
</div>
|
||||
<takeFoodCode ref="takeFoodCodeRef" title="支付密码" type="password" placeholder="请输入支付密码" @success="passwordSuccess" />
|
||||
<invoice ref="invoiceRef" @load-complete="invoiceLoading = false" />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
@@ -294,10 +295,12 @@ import cashTable from "@/views/order/components/cashTable.vue";
|
||||
import { clearNoNum } from "@/utils";
|
||||
import md5 from "js-md5";
|
||||
import dateRange from './components/dateRange.vue'
|
||||
|
||||
import { useGlobal } from "@/store/global.js";
|
||||
|
||||
import takeFoodCode from "@/components/takeFoodCode.vue";
|
||||
import invoice from './components/invoice.vue'
|
||||
|
||||
const invoiceLoading = ref(false)
|
||||
const invoiceRef = ref(null)
|
||||
const takeFoodCodeRef = ref(null);
|
||||
|
||||
const global = useGlobal();
|
||||
@@ -330,16 +333,10 @@ const handlerecharge = () => {
|
||||
const buttonloading = ref(); //loading
|
||||
|
||||
|
||||
// 获取开票人列表
|
||||
async function invoiveHandle() {
|
||||
try {
|
||||
const res = await issuedby({
|
||||
store_id: store.userInfo.loginName,
|
||||
is_pc: 1
|
||||
})
|
||||
} catch (error) {
|
||||
console.log(error);
|
||||
}
|
||||
// 显示开票人列表
|
||||
function invoiveHandle() {
|
||||
invoiceLoading.value = true
|
||||
invoiceRef.value.show(printLabelOrder.value)
|
||||
}
|
||||
|
||||
// 确认选择时间
|
||||
|
||||
Reference in New Issue
Block a user