代码备份
This commit is contained in:
parent
0069490db0
commit
7ccac952b8
@ -8,4 +8,4 @@ VITE_API_File1 = https://maxcessth.gatedge.cn
|
||||
|
||||
|
||||
VITE_API_File = https://maxcessth.gatedge.cn
|
||||
VITE_API_URL = http://58.252.252.77:91
|
||||
VITE_API_URL = https://maxcessth.gatedge.cn:91
|
||||
@ -7,4 +7,4 @@ VITE_API_URL2 = https://maxcessth.gatedge.cn:91
|
||||
VITE_API_File1 = https://maxcessth.gatedge.cn
|
||||
|
||||
VITE_API_File = https://maxcess.gatedge.cn
|
||||
VITE_API_URL = http://58.252.252.77:90
|
||||
VITE_API_URL = https://maxcess.gatedge.cn:91
|
||||
@ -6,7 +6,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts" name="app">
|
||||
import { defineAsyncComponent, computed, ref, onBeforeMount, onMounted, onUnmounted, nextTick, watch, getCurrentInstance } from 'vue';
|
||||
import { defineAsyncComponent, computed, ref, onBeforeMount, onMounted, onUnmounted, nextTick, watch } from 'vue';
|
||||
import { useRoute } from 'vue-router';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes';
|
||||
|
||||
@ -47,12 +47,12 @@
|
||||
<template #prepend>{{ t('message.tiaoma.grn') }}</template>
|
||||
</el-input>
|
||||
</div>
|
||||
<div class="selectItem">
|
||||
<el-select v-model="state.printSelection" clearable :placeholder="t('message.tiaoma.qxzdymb')" size="default" style="width: 150px">
|
||||
<el-option :label="t('message.tiaoma.zhuhai')" value="0" />
|
||||
<el-option :label="t('message.tiaoma.taiguo')" value="1" />
|
||||
</el-select>
|
||||
</div>
|
||||
<!-- <div class="selectItem">-->
|
||||
<!-- <el-select v-model="state.printSelection" clearable :placeholder="t('message.tiaoma.qxzdymb')" size="default" style="width: 150px">-->
|
||||
<!-- <el-option :label="t('message.tiaoma.zhuhai')" value="0" />-->
|
||||
<!-- <el-option :label="t('message.tiaoma.taiguo')" value="1" />-->
|
||||
<!-- </el-select>-->
|
||||
<!-- </div>-->
|
||||
<el-button type="primary" size="default" @click="printCheckAllFun">{{ t('message.tiaoma.zddy') }}</el-button>
|
||||
<el-button type="primary" size="default" @click="printCheckAllFun">{{ t('message.tiaoma.tjdy') }}</el-button>
|
||||
<el-button type="primary" size="default" @click="defaultPrinterFun">{{ t('message.tiaoma.xzdyj') }} </el-button>
|
||||
@ -70,6 +70,7 @@ import { listApi } from '/@/api/list';
|
||||
import barCode from './barCode.vue';
|
||||
import { ElMessage, ElMessageBox, } from 'element-plus';
|
||||
import { getLodop } from '../../utils/LodopFuncs.js';
|
||||
import {Local} from "/@/utils/storage";
|
||||
// const LODOP = window.LODOP;
|
||||
const barCodeRef = ref();
|
||||
const LODOP = ref();
|
||||
@ -92,6 +93,7 @@ const state: any = reactive({
|
||||
printerList: [],
|
||||
timer: null,
|
||||
allSetTime: null,
|
||||
userInfo: {}
|
||||
});
|
||||
|
||||
const expandOption = computed(() => ({
|
||||
@ -157,13 +159,14 @@ onMounted(() => {
|
||||
setTimeout(() => {
|
||||
LODOP.value = getLodop();
|
||||
}, 1000);
|
||||
state.userInfo = Local.get('setUserInfo');
|
||||
});
|
||||
//打印校验
|
||||
const printVerification = () => {
|
||||
if (state.printSelection === '') {
|
||||
ElMessage.warning(t('message.tiaoma.qxzdymb'));
|
||||
return false;
|
||||
}
|
||||
// if (state.printSelection === '') {
|
||||
// ElMessage.warning(t('message.tiaoma.qxzdymb'));
|
||||
// return false;
|
||||
// }
|
||||
if (state.timer !== null) {
|
||||
ElMessage.warning(t('message.tiaoma.dyjzzgzz'));
|
||||
return false;
|
||||
@ -244,7 +247,7 @@ const dataExtractFun = (list: any = []) => {
|
||||
state.printState = '1';
|
||||
let mainState = list.length === 1;
|
||||
state.timer = setInterval(() => {
|
||||
if (state.printSelection === '0') {
|
||||
if (String(state.userInfo.ifForeign) === '0') {
|
||||
LODOP.value.PRINT_INITA(0, 0, 0, 0, 'L4');
|
||||
LODOP.value.SET_PRINT_PAGESIZE(1, 1000, 500, '');
|
||||
AddPrintContentZhuhai(list[stepCounter], mainState);
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<el-dialog :model-value="props.showes" @close="closeFun" width="90%">
|
||||
|
||||
<avue-crud ref="crudRef" :data="state.data" :option="tableOption">
|
||||
<template #fSupplierLot="{ row }">
|
||||
<div style="display: flex; align-items: center; justify-content: center">
|
||||
|
||||
@ -29,7 +29,7 @@ const viteConfig = defineConfig((mode: ConfigEnv) => {
|
||||
hmr: true,
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'https://58.252.252.77:91',
|
||||
target: 'https://maxcessth.gatedge.cn:91',
|
||||
ws: true,
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user