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