feat 打印请求
This commit is contained in:
parent
56686dc243
commit
4b94c31f91
@ -120,4 +120,15 @@ export function checkMaterialPack(data: any) {
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 打印标签
|
||||
* */
|
||||
export function printStorage(data: any) {
|
||||
return request({
|
||||
url: '/api/api/label/storagePrint',
|
||||
method: 'post',
|
||||
data: data,
|
||||
});
|
||||
}
|
@ -93,6 +93,25 @@
|
||||
<pagination v-if="total > 0" :total="total" v-model:pageNumTo="queryParams.pageNum"
|
||||
v-model:pageSizeTo="queryParams.pageSize" @pagination="handleQuery" />
|
||||
</div>
|
||||
<!-- 打印机 -->
|
||||
<div class="vue-element-page-table">
|
||||
<el-row class="page-search" justify="space-between" align="middle">
|
||||
<el-form ref="operateFormRef" :model="operateParams" :inline="true">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="4">
|
||||
<el-form-item label="选择打印机" v-model="state.PRINTNAME">
|
||||
<el-select v-model="state.PRINTNAME" placeholder="请选择打印机" style="width: 240px">
|
||||
<el-option v-for="item in state.PRINTLIST" :key="item.VALUE" :label="item.LABEL" :value="item.VALUE" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="1">
|
||||
<el-button type="primary" @click="print" :disabled="state.button_print" v-loading="state.loadings">打印</el-button>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
</el-row>
|
||||
</div>
|
||||
|
||||
<!-- 新增或编辑 -->
|
||||
<el-drawer :title="dialog.title" v-model="dialog.visible" @close="cancel" @opened="dialogOpend">
|
||||
@ -119,12 +138,14 @@ export default {
|
||||
<script lang="ts" setup>
|
||||
import { reactive, ref, onMounted, toRefs, getCurrentInstance, nextTick } from "vue";
|
||||
import { ElForm, ElMessageBox, ElTable } from "element-plus";
|
||||
import { getQueryPageList, BpelEvent } from '@/api/common';
|
||||
import { getQueryPageList, BpelEvent, getQueryList } from '@/api/common'
|
||||
import { bTableHeight } from "../../../../composables/calcTableHeight";
|
||||
import { getORG } from '@/api/auth'
|
||||
import { createStorage, delStorage, editStorage } from '@/api/basics/storage/index'
|
||||
import { localStorage as ls } from "@/utils/storage";
|
||||
import { printStorage } from '@/api/label'
|
||||
|
||||
const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(180);
|
||||
const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(300);
|
||||
const queryFormRef = ref(ElForm);
|
||||
const formDataRef = ref(ElForm);
|
||||
const { proxy }: any = getCurrentInstance();
|
||||
@ -211,14 +232,27 @@ const state = reactive({
|
||||
STORAGENAME: '',//库位名称
|
||||
}
|
||||
},
|
||||
// 打印机 start
|
||||
operateParams: {
|
||||
date: new Date()
|
||||
},
|
||||
PRINTNAME: '',
|
||||
PRINTLIST: [] as any,//打印机
|
||||
button_print:false,
|
||||
// 打印机 end
|
||||
wareHouseList: [] as any,
|
||||
total: 0,
|
||||
selectItem: undefined as any
|
||||
selectItem: undefined as any,
|
||||
multipleSelection: [] as any
|
||||
})
|
||||
|
||||
const {
|
||||
ERPFactoryList,
|
||||
rsa,
|
||||
// 打印机 start
|
||||
operateParams,
|
||||
button_print,
|
||||
// 打印机 end
|
||||
queryParams,
|
||||
total,
|
||||
dialog,
|
||||
|
Loading…
x
Reference in New Issue
Block a user