包装40%
This commit is contained in:
45
src/views/base/packagingPrintLog2/components/InputArea.vue
Normal file
45
src/views/base/packagingPrintLog2/components/InputArea.vue
Normal file
@@ -0,0 +1,45 @@
|
||||
<template>
|
||||
<div class="tableInner">
|
||||
<el-input
|
||||
v-if="list.isEdit"
|
||||
type="number"
|
||||
v-model="list[itemProp]"
|
||||
@blur="changeInput" />
|
||||
<span v-else>{{ list[itemProp] }}</span>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
name: 'InputArea',
|
||||
props: {
|
||||
injectData: {
|
||||
type: Object,
|
||||
default: () => ({}),
|
||||
},
|
||||
itemProp: {
|
||||
type: String,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
list: {},
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.initData();
|
||||
},
|
||||
watch: {
|
||||
injectData() {
|
||||
this.initData();
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
initData() {
|
||||
this.list = this.injectData;
|
||||
},
|
||||
changeInput() {
|
||||
this.$emit('emitData', this.list);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
226
src/views/base/packagingPrintLog2/components/OtherMsg.vue
Normal file
226
src/views/base/packagingPrintLog2/components/OtherMsg.vue
Normal file
@@ -0,0 +1,226 @@
|
||||
<template>
|
||||
<div class="other-msg-box">
|
||||
<el-radio-group
|
||||
v-model="chooseMsg"
|
||||
@change="changeChoose">
|
||||
<el-radio :label="1">
|
||||
<div style="display: inline-block">
|
||||
<el-form
|
||||
:inline="true"
|
||||
:model="printMsg1"
|
||||
class="demo-form-inline">
|
||||
<el-form-item label="客户">
|
||||
<el-select
|
||||
size="small"
|
||||
v-model="printMsg1.customerId"
|
||||
filterable
|
||||
placeholder="客户">
|
||||
<el-option
|
||||
v-for="item in customerList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="封箱人员工号">
|
||||
<el-input
|
||||
v-model="printMsg1.sealWorker"
|
||||
size="small"
|
||||
placeholder="封箱人员工号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="打包人员工号">
|
||||
<el-input
|
||||
v-model="printMsg1.packWorker"
|
||||
size="small"
|
||||
placeholder="打包人员工号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="流程卡号">
|
||||
<el-input
|
||||
v-model="printMsg1.processCard"
|
||||
size="small"
|
||||
style="width: 120px"
|
||||
placeholder="流程卡号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="托盘规格">
|
||||
<el-input
|
||||
v-model="printMsg1.pallet"
|
||||
size="small"
|
||||
style="width: 120px"
|
||||
placeholder="托盘规格"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注">
|
||||
<el-input
|
||||
v-model="printMsg1.remark"
|
||||
size="small"
|
||||
placeholder="备注"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</el-radio>
|
||||
<el-radio :label="2">
|
||||
<div style="display: inline-block">
|
||||
<el-form
|
||||
:inline="true"
|
||||
:model="printMsg2"
|
||||
class="demo-form-inline">
|
||||
<el-form-item label="客户">
|
||||
<el-select
|
||||
size="small"
|
||||
v-model="printMsg2.customerId"
|
||||
filterable
|
||||
placeholder="客户">
|
||||
<el-option
|
||||
v-for="item in customerList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="封箱人员工号">
|
||||
<el-input
|
||||
v-model="printMsg2.sealWorker"
|
||||
size="small"
|
||||
placeholder="封箱人员工号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="打包人员工号">
|
||||
<el-input
|
||||
v-model="printMsg2.packWorker"
|
||||
size="small"
|
||||
placeholder="打包人员工号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="流程卡号">
|
||||
<el-input
|
||||
v-model="printMsg2.processCard"
|
||||
size="small"
|
||||
style="width: 120px"
|
||||
placeholder="流程卡号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="托盘规格">
|
||||
<el-input
|
||||
v-model="printMsg2.pallet"
|
||||
size="small"
|
||||
style="width: 120px"
|
||||
placeholder="托盘规格"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注">
|
||||
<el-input
|
||||
v-model="printMsg2.remark"
|
||||
size="small"
|
||||
placeholder="备注"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</el-radio>
|
||||
<el-radio :label="3">
|
||||
<div style="display: inline-block">
|
||||
<el-form
|
||||
:inline="true"
|
||||
:model="printMsg3"
|
||||
class="demo-form-inline">
|
||||
<el-form-item label="客户">
|
||||
<el-select
|
||||
size="small"
|
||||
v-model="printMsg3.customerId"
|
||||
filterable
|
||||
placeholder="客户">
|
||||
<el-option
|
||||
v-for="item in customerList"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:value="item.id"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="封箱人员工号">
|
||||
<el-input
|
||||
v-model="printMsg3.sealWorker"
|
||||
size="small"
|
||||
placeholder="封箱人员工号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="打包人员工号">
|
||||
<el-input
|
||||
v-model="printMsg3.packWorker"
|
||||
size="small"
|
||||
placeholder="打包人员工号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="流程卡号">
|
||||
<el-input
|
||||
v-model="printMsg3.processCard"
|
||||
size="small"
|
||||
style="width: 120px"
|
||||
placeholder="流程卡号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="托盘规格">
|
||||
<el-input
|
||||
v-model="printMsg3.pallet"
|
||||
size="small"
|
||||
style="width: 120px"
|
||||
placeholder="托盘规格"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注">
|
||||
<el-input
|
||||
v-model="printMsg3.remark"
|
||||
size="small"
|
||||
placeholder="备注"></el-input>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</div>
|
||||
</el-radio>
|
||||
</el-radio-group>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { getCustomerList } from '@/api/base/packingInfo';
|
||||
export default {
|
||||
name: 'OtherMsg',
|
||||
props: {
|
||||
printMsg1: {
|
||||
type: Object,
|
||||
default: () => ({}),
|
||||
},
|
||||
printMsg2: {
|
||||
type: Object,
|
||||
default: () => ({}),
|
||||
},
|
||||
printMsg3: {
|
||||
type: Object,
|
||||
default: () => ({}),
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
chooseMsg: 1,
|
||||
customerList: [],
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.getCList();
|
||||
},
|
||||
methods: {
|
||||
getCList() {
|
||||
getCustomerList().then((res) => {
|
||||
console.log(res);
|
||||
console.log('customer');
|
||||
this.customerList = res.data;
|
||||
});
|
||||
},
|
||||
changeChoose(val) {
|
||||
this.$emit('changeChoose', val);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.other-msg-box {
|
||||
.el-radio {
|
||||
display: block;
|
||||
line-height: 36px;
|
||||
.demo-form-inline {
|
||||
width: 100%;
|
||||
white-space: normal;
|
||||
}
|
||||
.el-form-item {
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
182
src/views/base/packagingPrintLog2/components/Printed.vue
Normal file
182
src/views/base/packagingPrintLog2/components/Printed.vue
Normal file
@@ -0,0 +1,182 @@
|
||||
<template>
|
||||
<div class="show-box">
|
||||
<!-- 搜索工作栏 -->
|
||||
<search-bar
|
||||
:formConfigs="formConfig"
|
||||
ref="searchBarForm"
|
||||
@headBtnClick="buttonClick2" />
|
||||
<!-- 列表 -->
|
||||
<base-table
|
||||
:page="queryParams2.pageNo"
|
||||
:limit="queryParams2.pageSize"
|
||||
:table-props="tableProps"
|
||||
:table-data="list2">
|
||||
<method-btn
|
||||
v-if="tableBtn2.length"
|
||||
slot="handleBtn"
|
||||
:width="240"
|
||||
label="操作"
|
||||
:method-list="tableBtn2"
|
||||
@clickBtn="handleClick2" />
|
||||
</base-table>
|
||||
<pagination
|
||||
:page.sync="queryParams2.pageNo"
|
||||
:limit.sync="queryParams2.pageSize"
|
||||
:total="total2"
|
||||
@pagination="getList2" />
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { parseTime } from '@/utils/ruoyi';
|
||||
import { getPackingPage } from '@/api/base/packingInfo';
|
||||
import { getCorePLList } from '@/api/base/coreProductionLine';
|
||||
const tableProps = [
|
||||
{
|
||||
prop: 'packagingCode',
|
||||
label: '成品周转编号',
|
||||
minWidth: 180,
|
||||
showOverflowtooltip: true,
|
||||
},
|
||||
{
|
||||
prop: 'lineId',
|
||||
label: '产线',
|
||||
showOverflowtooltip: true,
|
||||
},
|
||||
{
|
||||
prop: 'specifications',
|
||||
label: '规格',
|
||||
showOverflowtooltip: true,
|
||||
},
|
||||
{
|
||||
prop: 'check',
|
||||
label: '判定',
|
||||
showOverflowtooltip: true,
|
||||
},
|
||||
{
|
||||
prop: 'workStation',
|
||||
label: '工位号',
|
||||
showOverflowtooltip: true,
|
||||
},
|
||||
{
|
||||
prop: 'num',
|
||||
label: '片数',
|
||||
},
|
||||
{
|
||||
prop: 'remark',
|
||||
label: '备注1',
|
||||
showOverflowtooltip: true,
|
||||
},
|
||||
{
|
||||
prop: 'printStatus',
|
||||
label: '打印状态',
|
||||
filter: (val) => (val == 1 ? '未打印' : '已打印'),
|
||||
},
|
||||
{
|
||||
prop: 'createTime',
|
||||
label: '时间',
|
||||
filter: parseTime,
|
||||
minWidth: 160,
|
||||
showOverflowtooltip: true,
|
||||
},
|
||||
{
|
||||
prop: 'groupClass',
|
||||
label: '班次',
|
||||
showOverflowtooltip: true,
|
||||
},
|
||||
];
|
||||
export default {
|
||||
name: 'Printed',
|
||||
data() {
|
||||
return {
|
||||
formConfig: [
|
||||
{
|
||||
type: 'select',
|
||||
label: '产线',
|
||||
selectOptions: [],
|
||||
param: 'lineId',
|
||||
filterable: true,
|
||||
},
|
||||
{
|
||||
type: 'datePicker',
|
||||
label: '时间段',
|
||||
dateType: 'daterange',
|
||||
format: 'yyyy-MM-dd HH:mm:ss',
|
||||
valueFormat: 'yyyy-MM-dd HH:mm:ss',
|
||||
rangeSeparator: '-',
|
||||
startPlaceholder: '开始时间',
|
||||
endPlaceholder: '结束时间',
|
||||
param: 'timeVal',
|
||||
defaultSelect: [],
|
||||
width: 350,
|
||||
},
|
||||
{
|
||||
type: 'button',
|
||||
btnName: '查询',
|
||||
name: 'search',
|
||||
color: 'primary',
|
||||
},
|
||||
],
|
||||
// 查询参数
|
||||
queryParams2: {
|
||||
pageNo: 1,
|
||||
pageSize: 20,
|
||||
printStatus: '2',
|
||||
lineId: '',
|
||||
createTime: [],
|
||||
},
|
||||
total2: 0,
|
||||
tableProps,
|
||||
list2: [],
|
||||
tableBtn2: [
|
||||
this.$auth.hasPermi('base:order-group:update')
|
||||
? {
|
||||
type: 'reprint',
|
||||
btnName: '重打',
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermi('base:order-group:query')
|
||||
? {
|
||||
type: 'detail',
|
||||
btnName: '详情',
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermiAnd([
|
||||
'base:order-group:update',
|
||||
'base:core-product:query',
|
||||
'base:core-customer:query',
|
||||
])
|
||||
? {
|
||||
type: 'edit',
|
||||
btnName: '编辑',
|
||||
}
|
||||
: undefined,
|
||||
].filter((v) => v),
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.getLineList();
|
||||
},
|
||||
methods: {
|
||||
getLineList() {
|
||||
getCorePLList().then((res) => {
|
||||
console.log(res);
|
||||
this.formConfig[0].selectOptions = res.data;
|
||||
});
|
||||
},
|
||||
getList2() {
|
||||
getPackingPage({ ...this.queryParams2 }).then((res) => {
|
||||
console.log(res);
|
||||
this.list2 = res.data.records || [];
|
||||
this.total2 = res.data.total;
|
||||
});
|
||||
},
|
||||
buttonClick2(val) {
|
||||
console.log(val);
|
||||
this.queryParams2.lineId = val.lineId;
|
||||
this.queryParams2.createTime = val.timeVal;
|
||||
this.getList2();
|
||||
},
|
||||
handleClick2() {},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
332
src/views/base/packagingPrintLog2/components/UnPrint.vue
Normal file
332
src/views/base/packagingPrintLog2/components/UnPrint.vue
Normal file
@@ -0,0 +1,332 @@
|
||||
<template>
|
||||
<div class="show-box">
|
||||
<!-- 单选 -->
|
||||
<other-msg
|
||||
:printMsg1="printMsg1"
|
||||
:printMsg2="printMsg2"
|
||||
:printMsg3="printMsg3"
|
||||
@changeChoose="changeChoose" />
|
||||
<!-- 搜索工作栏 -->
|
||||
<search-bar
|
||||
:formConfigs="formConfig"
|
||||
ref="searchBarForm"
|
||||
@headBtnClick="buttonClick" />
|
||||
<!-- 列表 -->
|
||||
<base-table
|
||||
:page="queryParams.pageNo"
|
||||
:limit="queryParams.pageSize"
|
||||
:table-props="tableProps"
|
||||
:table-data="list"
|
||||
@emitFun="inputChange">
|
||||
<method-btn
|
||||
v-if="tableBtn.length"
|
||||
slot="handleBtn"
|
||||
:width="260"
|
||||
label="操作"
|
||||
:method-list="tableBtn"
|
||||
@clickBtn="handleClick" />
|
||||
</base-table>
|
||||
<pagination
|
||||
:page.sync="queryParams.pageNo"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
:total="total"
|
||||
@pagination="getList" />
|
||||
<!-- 预览 -->
|
||||
<print-preview ref="preView" />
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { parseTime } from '@/utils/ruoyi';
|
||||
import inputArea from './InputArea.vue';
|
||||
const tableProps = [
|
||||
{
|
||||
prop: 'packagingCode',
|
||||
label: '成品周转编号',
|
||||
minWidth: 160,
|
||||
showOverflowtooltip: true,
|
||||
},
|
||||
{
|
||||
prop: 'lineId',
|
||||
label: '产线',
|
||||
showOverflowtooltip: true,
|
||||
},
|
||||
{
|
||||
prop: 'specifications',
|
||||
label: '规格',
|
||||
showOverflowtooltip: true,
|
||||
},
|
||||
{
|
||||
prop: 'check',
|
||||
label: '判定',
|
||||
showOverflowtooltip: true,
|
||||
},
|
||||
{
|
||||
prop: 'workStation',
|
||||
label: '工位号',
|
||||
showOverflowtooltip: true,
|
||||
},
|
||||
{
|
||||
prop: 'num',
|
||||
label: '片数',
|
||||
subcomponent: inputArea,
|
||||
minWidth: 120,
|
||||
},
|
||||
{
|
||||
prop: 'remark',
|
||||
label: '备注1',
|
||||
showOverflowtooltip: true,
|
||||
},
|
||||
{
|
||||
prop: 'printStatus',
|
||||
label: '打印状态',
|
||||
filter: (val) => (val == 1 ? '未打印' : '已打印'),
|
||||
},
|
||||
{
|
||||
prop: 'createTime',
|
||||
label: '时间',
|
||||
filter: parseTime,
|
||||
minWidth: 160,
|
||||
showOverflowtooltip: true,
|
||||
},
|
||||
{
|
||||
prop: 'groupClass',
|
||||
label: '班次',
|
||||
showOverflowtooltip: true,
|
||||
},
|
||||
];
|
||||
import OtherMsg from './OtherMsg';
|
||||
import { getPackingPage, updatePacking } from '@/api/base/packingInfo';
|
||||
import { getCorePLList } from '@/api/base/coreProductionLine';
|
||||
import printPreview from './preview';
|
||||
import printTemplate from '../print-template';
|
||||
export default {
|
||||
name: 'UnPrint',
|
||||
components: { OtherMsg, printPreview },
|
||||
data() {
|
||||
return {
|
||||
printMsg1: {
|
||||
customerId: '',
|
||||
sealWorker: '',
|
||||
packWorker: '',
|
||||
processCard: '',
|
||||
pallet: '',
|
||||
remark: '',
|
||||
},
|
||||
printMsg2: {
|
||||
customerId: '',
|
||||
sealWorker: '',
|
||||
packWorker: '',
|
||||
processCard: '',
|
||||
pallet: '',
|
||||
remark: '',
|
||||
},
|
||||
printMsg3: {
|
||||
customerId: '',
|
||||
sealWorker: '',
|
||||
packWorker: '',
|
||||
processCard: '',
|
||||
pallet: '',
|
||||
remark: '',
|
||||
},
|
||||
chooseMsg: 1, //单选
|
||||
formConfig: [
|
||||
{
|
||||
type: 'select',
|
||||
label: '产线',
|
||||
selectOptions: [],
|
||||
param: 'lineId',
|
||||
filterable: true,
|
||||
},
|
||||
{
|
||||
type: 'datePicker',
|
||||
label: '时间段',
|
||||
dateType: 'daterange',
|
||||
format: 'yyyy-MM-dd HH:mm:ss',
|
||||
valueFormat: 'yyyy-MM-dd HH:mm:ss',
|
||||
rangeSeparator: '-',
|
||||
startPlaceholder: '开始时间',
|
||||
endPlaceholder: '结束时间',
|
||||
param: 'timeVal',
|
||||
defaultSelect: [],
|
||||
width: 350,
|
||||
},
|
||||
{
|
||||
type: 'button',
|
||||
btnName: '查询',
|
||||
name: 'search',
|
||||
color: 'primary',
|
||||
},
|
||||
],
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNo: 1,
|
||||
pageSize: 20,
|
||||
printStatus: '1',
|
||||
lineId: '',
|
||||
createTime: [],
|
||||
},
|
||||
total: 0,
|
||||
tableProps,
|
||||
list: [],
|
||||
tableBtn: [
|
||||
this.$auth.hasPermiAnd([
|
||||
'base:order:query',
|
||||
'base:order-con-group-order:create',
|
||||
])
|
||||
? {
|
||||
type: 'view',
|
||||
btnName: '预览',
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermi('base:order-group:update')
|
||||
? {
|
||||
type: 'print',
|
||||
btnName: '打印',
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermi('base:order-group:update')
|
||||
? {
|
||||
type: 'printed',
|
||||
btnName: '已打印',
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermiAnd([
|
||||
'base:order-group:update',
|
||||
'base:core-product:query',
|
||||
'base:core-customer:query',
|
||||
])
|
||||
? {
|
||||
type: 'edit',
|
||||
btnName: '编辑',
|
||||
showParam: {
|
||||
type: '&',
|
||||
data: [
|
||||
{
|
||||
type: 'unequal',
|
||||
name: 'isEdit',
|
||||
value: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermiAnd([
|
||||
'base:order-group:update',
|
||||
'base:core-product:query',
|
||||
'base:core-customer:query',
|
||||
])
|
||||
? {
|
||||
type: 'save',
|
||||
btnName: '保存',
|
||||
showParam: {
|
||||
type: '&',
|
||||
data: [
|
||||
{
|
||||
type: 'equal',
|
||||
name: 'isEdit',
|
||||
value: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
}
|
||||
: undefined,
|
||||
this.$auth.hasPermi('base:order-group:query')
|
||||
? {
|
||||
type: 'delete',
|
||||
btnName: '删除',
|
||||
}
|
||||
: undefined,
|
||||
].filter((v) => v),
|
||||
printData: {},
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.getLineList();
|
||||
console.log(printTemplate);
|
||||
console.log('================printTemplate');
|
||||
},
|
||||
methods: {
|
||||
getLineList() {
|
||||
getCorePLList().then((res) => {
|
||||
this.formConfig[0].selectOptions = res.data;
|
||||
});
|
||||
},
|
||||
getList() {
|
||||
getPackingPage({ ...this.queryParams }).then((res) => {
|
||||
this.list = res.data.records || [];
|
||||
this.total = res.data.total;
|
||||
});
|
||||
},
|
||||
// 单选
|
||||
changeChoose(val) {
|
||||
this.chooseMsg = val;
|
||||
},
|
||||
buttonClick(val) {
|
||||
this.queryParams.lineId = val.lineId;
|
||||
this.queryParams.createTime = val.timeVal;
|
||||
this.getList();
|
||||
},
|
||||
handleClick(val) {
|
||||
console.log(val);
|
||||
switch (val.type) {
|
||||
case 'edit':
|
||||
this.editNum(val.data);
|
||||
break;
|
||||
case 'save':
|
||||
this.saveNum(val.data);
|
||||
break;
|
||||
case 'view':
|
||||
this.preView();
|
||||
break;
|
||||
case 'print':
|
||||
this.printTemp();
|
||||
break;
|
||||
default:
|
||||
}
|
||||
},
|
||||
// 编辑
|
||||
editNum(val) {
|
||||
let obj = this.list[val._pageIndex - 1];
|
||||
obj.isEdit = true;
|
||||
this.$set(this.list, val._pageIndex - 1, obj);
|
||||
},
|
||||
// 保存
|
||||
saveNum(val) {
|
||||
// 调用修改接口
|
||||
updatePacking({ id: val.id, num: val.num }).then(() => {
|
||||
this.getList();
|
||||
});
|
||||
},
|
||||
// 输入框改变num
|
||||
inputChange(val) {
|
||||
this.list[val._pageIndex - 1][val.prop] = val[val.prop];
|
||||
},
|
||||
// 预览
|
||||
preView() {
|
||||
var hiprintTemplate = new hiprint.PrintTemplate({
|
||||
template: printTemplate,
|
||||
});
|
||||
this.$refs.preView.show(hiprintTemplate);
|
||||
},
|
||||
// 打印
|
||||
printTemp() {
|
||||
console.log('11');
|
||||
var printData = {};
|
||||
let hiprintTemplate = this.$print(
|
||||
undefined,
|
||||
printTemplate,
|
||||
printData,
|
||||
{},
|
||||
{
|
||||
styleHandler: () => {
|
||||
let css =
|
||||
'<link href="http://hiprint.io/Content/hiprint/css/print-lock.css" media="print" rel="stylesheet">';
|
||||
return css;
|
||||
},
|
||||
}
|
||||
);
|
||||
console.log(hiprintTemplate);
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
69
src/views/base/packagingPrintLog2/components/UnPrintEdit.vue
Normal file
69
src/views/base/packagingPrintLog2/components/UnPrintEdit.vue
Normal file
@@ -0,0 +1,69 @@
|
||||
<template>
|
||||
<el-form
|
||||
ref="unPrintEdit"
|
||||
:rules="rules"
|
||||
label-width="130px"
|
||||
:model="form">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="24">
|
||||
<el-form-item
|
||||
label="成品周转编号"
|
||||
prop="packagingCode">
|
||||
<el-input
|
||||
readonly
|
||||
v-model="form.packagingCode"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="24">
|
||||
<el-form-item
|
||||
label="片数"
|
||||
prop="num">
|
||||
<el-input-number
|
||||
v-model="form.num"
|
||||
:min="0"
|
||||
:max="999999"
|
||||
style="width: 100%"
|
||||
label="片数"></el-input-number>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
</template>
|
||||
<script>
|
||||
import { getPacking } from '@/api/base/packingInfo';
|
||||
export default {
|
||||
name: 'UnPrintEdit',
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
id: '',
|
||||
packagingCode: '',
|
||||
num: null,
|
||||
},
|
||||
rules: {
|
||||
num: [{ required: true, message: '片数不能为空', trigger: 'blur' }],
|
||||
},
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
init(id) {
|
||||
console.log('init');
|
||||
this.form.id = id;
|
||||
getPacking(id).then((res) => {
|
||||
console.log(res);
|
||||
});
|
||||
},
|
||||
submitForm() {
|
||||
this.$refs['unPrintEdit'].validate((valid) => {
|
||||
if (valid) {
|
||||
console.log('保存');
|
||||
this.$emit('successSubmit');
|
||||
}
|
||||
});
|
||||
},
|
||||
formClear() {
|
||||
this.$refs.unPrintEdit.resetFields();
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
100
src/views/base/packagingPrintLog2/components/preview.vue
Normal file
100
src/views/base/packagingPrintLog2/components/preview.vue
Normal file
@@ -0,0 +1,100 @@
|
||||
<template>
|
||||
<base-dialog
|
||||
dialogTitle="预览"
|
||||
:dialogVisible="visible"
|
||||
width="50%"
|
||||
@cancel="hideModal"
|
||||
:before-close="hideModal">
|
||||
<!-- <div>
|
||||
<el-button
|
||||
:loading="waitShowPrinter"
|
||||
type="primary"
|
||||
icon="printer"
|
||||
@click.stop="print">
|
||||
打印
|
||||
</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
icon="printer"
|
||||
@click.stop="toPdf">
|
||||
pdf
|
||||
</el-button>
|
||||
</div> -->
|
||||
<div id="preview_content" />
|
||||
<template slot="footer">
|
||||
<el-button
|
||||
key="close"
|
||||
@click="hideModal">
|
||||
关闭
|
||||
</el-button>
|
||||
</template>
|
||||
</base-dialog>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
name: 'PrintPreview',
|
||||
props: {},
|
||||
data() {
|
||||
return {
|
||||
visible: false,
|
||||
spinning: true,
|
||||
waitShowPrinter: false,
|
||||
// 纸张宽 mm
|
||||
width: 0,
|
||||
// 模板
|
||||
hiprintTemplate: {},
|
||||
// 数据
|
||||
printData: {},
|
||||
};
|
||||
},
|
||||
computed: {},
|
||||
watch: {},
|
||||
created() {},
|
||||
mounted() {},
|
||||
methods: {
|
||||
hideModal() {
|
||||
this.visible = false;
|
||||
},
|
||||
show(hiprintTemplate, printData, width = '210') {
|
||||
this.visible = true;
|
||||
this.spinning = true;
|
||||
this.width = width;
|
||||
this.hiprintTemplate = hiprintTemplate;
|
||||
this.printData = printData;
|
||||
console.log(hiprintTemplate);
|
||||
console.log(printData);
|
||||
setTimeout(() => {
|
||||
// eslint-disable-next-line no-undef
|
||||
$('#preview_content').html(hiprintTemplate.getHtml(printData));
|
||||
this.spinning = false;
|
||||
}, 500);
|
||||
},
|
||||
print() {
|
||||
this.waitShowPrinter = true;
|
||||
this.hiprintTemplate.print(
|
||||
this.printData,
|
||||
{},
|
||||
{
|
||||
callback: () => {
|
||||
console.log('callback');
|
||||
this.waitShowPrinter = false;
|
||||
},
|
||||
}
|
||||
);
|
||||
},
|
||||
toPdf() {
|
||||
this.hiprintTemplate.toPdf({}, '打印预览');
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<!-- <style lang="less" scoped>
|
||||
/deep/ .ant-modal-body {
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
/deep/ .ant-modal-content {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
</style> -->
|
||||
47
src/views/base/packagingPrintLog2/index.vue
Normal file
47
src/views/base/packagingPrintLog2/index.vue
Normal file
@@ -0,0 +1,47 @@
|
||||
<template>
|
||||
<div class="packagingPrintLog-box">
|
||||
<div style="width: 100%">
|
||||
<ButtonNav
|
||||
:menus="['未打印', '已打印']"
|
||||
:button-mode="true"
|
||||
@change="currentMenu"></ButtonNav>
|
||||
</div>
|
||||
<!-- 未打印 -->
|
||||
<UnPrint v-if="activeMenu == '未打印'" />
|
||||
<!-- 已打印 -->
|
||||
<Printed v-else />
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import ButtonNav from '@/components/ButtonNav';
|
||||
import UnPrint from './components/UnPrint';
|
||||
import Printed from './components/Printed';
|
||||
export default {
|
||||
name: 'packagingPrintLog',
|
||||
components: { ButtonNav, UnPrint, Printed },
|
||||
data() {
|
||||
return {
|
||||
activeMenu: '未打印',
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
currentMenu(val) {
|
||||
console.log(val);
|
||||
this.activeMenu = val;
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.packagingPrintLog-box {
|
||||
min-height: calc(100vh - 120px - 8px);
|
||||
background-color: #f2f4f9;
|
||||
.show-box {
|
||||
min-height: calc(100vh - 128px - 52px);
|
||||
margin-top: 8px;
|
||||
padding: 16px;
|
||||
border-radius: 8px;
|
||||
background-color: #fff;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
554
src/views/base/packagingPrintLog2/print-template.js
Normal file
554
src/views/base/packagingPrintLog2/print-template.js
Normal file
@@ -0,0 +1,554 @@
|
||||
export default {
|
||||
panels: [
|
||||
{
|
||||
index: 0,
|
||||
name: 1,
|
||||
height: 125,
|
||||
width: 95,
|
||||
paperHeader: 0,
|
||||
paperFooter: 354.33070866141736,
|
||||
printElements: [
|
||||
{
|
||||
options: {
|
||||
left: 5,
|
||||
top: 5,
|
||||
height: 30,
|
||||
width: 256.5,
|
||||
right: 262.2421875,
|
||||
bottom: 34.9921875,
|
||||
vCenter: 133.9921875,
|
||||
hCenter: 19.9921875,
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
borderColor: 'green',
|
||||
backgroundColor: 'green',
|
||||
},
|
||||
printElementType: { title: '矩形', type: 'rect' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 35,
|
||||
top: 15,
|
||||
height: 20,
|
||||
width: 195,
|
||||
title: '厂内镀膜/钢化片周转标签',
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
fontSize: 16.5,
|
||||
color: '#ffffff',
|
||||
qrCodeLevel: 0,
|
||||
right: 232.9921875,
|
||||
bottom: 35.24609375,
|
||||
vCenter: 135.4921875,
|
||||
hCenter: 25.24609375,
|
||||
},
|
||||
printElementType: { title: '文本', type: 'text' },
|
||||
},
|
||||
{
|
||||
options: { left: 50, top: 35, height: 52.5, width: 9 },
|
||||
printElementType: { title: '竖线', type: 'vline' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 5,
|
||||
top: 35,
|
||||
height: 309,
|
||||
width: 256.5,
|
||||
right: 261.4921875,
|
||||
bottom: 343.9921875,
|
||||
vCenter: 133.2421875,
|
||||
hCenter: 189.4921875,
|
||||
},
|
||||
printElementType: { title: '矩形', type: 'rect' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 10,
|
||||
top: 42.5,
|
||||
height: 18,
|
||||
width: 36,
|
||||
title: '线别',
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
fontSize: 12,
|
||||
qrCodeLevel: 0,
|
||||
right: 45.99609375,
|
||||
bottom: 60.4921875,
|
||||
vCenter: 27.99609375,
|
||||
hCenter: 51.4921875,
|
||||
},
|
||||
printElementType: { title: '文本', type: 'text' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 55,
|
||||
top: 42.5,
|
||||
height: 18,
|
||||
width: 200,
|
||||
title: '判定:良品/保留/再检',
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
fontSize: 12,
|
||||
qrCodeLevel: 0,
|
||||
right: 93.4921875,
|
||||
bottom: 59.25,
|
||||
vCenter: 75.4921875,
|
||||
hCenter: 50.25,
|
||||
},
|
||||
printElementType: { title: '文本', type: 'text' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 5,
|
||||
top: 62.5,
|
||||
height: 9,
|
||||
width: 256.5,
|
||||
right: 259.9921875,
|
||||
bottom: 72.4921875,
|
||||
vCenter: 132.4921875,
|
||||
hCenter: 67.9921875,
|
||||
},
|
||||
printElementType: { title: '横线', type: 'hline' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 55,
|
||||
top: 70,
|
||||
height: 18,
|
||||
width: 46,
|
||||
title: '备注:',
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
fontSize: 12,
|
||||
qrCodeLevel: 0,
|
||||
right: 91.2421875,
|
||||
bottom: 86.25,
|
||||
vCenter: 73.2421875,
|
||||
hCenter: 77.25,
|
||||
},
|
||||
printElementType: { title: '文本', type: 'text' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 190,
|
||||
top: 87.5,
|
||||
height: 169.5,
|
||||
width: 9,
|
||||
right: 199.74609375,
|
||||
bottom: 255.75,
|
||||
vCenter: 195.24609375,
|
||||
hCenter: 171,
|
||||
},
|
||||
printElementType: { title: '竖线', type: 'vline' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 5,
|
||||
top: 87.5,
|
||||
height: 9,
|
||||
width: 256.5,
|
||||
right: 260.7421875,
|
||||
bottom: 96.75,
|
||||
vCenter: 132.4921875,
|
||||
hCenter: 92.25,
|
||||
},
|
||||
printElementType: { title: '横线', type: 'hline' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 77.5,
|
||||
top: 90,
|
||||
height: 15,
|
||||
width: 36,
|
||||
title: '规格',
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
fontSize: 12,
|
||||
qrCodeLevel: 0,
|
||||
right: 113.49609375,
|
||||
bottom: 105.4921875,
|
||||
vCenter: 95.49609375,
|
||||
hCenter: 97.9921875,
|
||||
},
|
||||
printElementType: { title: '文本', type: 'text' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 207.5,
|
||||
top: 100,
|
||||
height: 18,
|
||||
width: 36,
|
||||
title: '用户',
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
fontSize: 12,
|
||||
qrCodeLevel: 0,
|
||||
right: 242.7421875,
|
||||
bottom: 116.25,
|
||||
vCenter: 224.7421875,
|
||||
hCenter: 107.25,
|
||||
},
|
||||
printElementType: { title: '文本', type: 'text' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 25,
|
||||
top: 102.5,
|
||||
height: 15,
|
||||
width: 156,
|
||||
title: '长*宽*厚度(单位:mm)',
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
fontSize: 12,
|
||||
qrCodeLevel: 0,
|
||||
right: 179.25,
|
||||
bottom: 117.4921875,
|
||||
vCenter: 101.25,
|
||||
hCenter: 109.9921875,
|
||||
},
|
||||
printElementType: { title: '文本', type: 'text' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 5,
|
||||
top: 117.5,
|
||||
height: 9,
|
||||
width: 256.5,
|
||||
right: 263.7421875,
|
||||
bottom: 125.7421875,
|
||||
vCenter: 135.4921875,
|
||||
hCenter: 121.2421875,
|
||||
},
|
||||
printElementType: { title: '横线', type: 'hline' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 130,
|
||||
top: 145,
|
||||
height: 55.5,
|
||||
width: 9,
|
||||
right: 138.99609375,
|
||||
bottom: 199.5,
|
||||
vCenter: 134.49609375,
|
||||
hCenter: 171.75,
|
||||
},
|
||||
printElementType: { title: '竖线', type: 'vline' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 5,
|
||||
top: 145,
|
||||
height: 9,
|
||||
width: 256.5,
|
||||
right: 260.25,
|
||||
bottom: 154.2421875,
|
||||
vCenter: 132,
|
||||
hCenter: 149.7421875,
|
||||
},
|
||||
printElementType: { title: '横线', type: 'hline' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 45,
|
||||
top: 155,
|
||||
height: 18,
|
||||
width: 36,
|
||||
title: '编号',
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
fontSize: 12,
|
||||
qrCodeLevel: 0,
|
||||
right: 82.2421875,
|
||||
bottom: 171.75,
|
||||
vCenter: 64.2421875,
|
||||
hCenter: 162.75,
|
||||
},
|
||||
printElementType: { title: '文本', type: 'text' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 135,
|
||||
top: 155,
|
||||
height: 18,
|
||||
width: 49.5,
|
||||
title: '工位号',
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
fontSize: 12,
|
||||
qrCodeLevel: 0,
|
||||
right: 186,
|
||||
bottom: 172.9921875,
|
||||
vCenter: 161.25,
|
||||
hCenter: 163.9921875,
|
||||
},
|
||||
printElementType: { title: '文本', type: 'text' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 197.5,
|
||||
top: 155,
|
||||
height: 18,
|
||||
width: 60,
|
||||
title: '流程卡号',
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
fontSize: 12,
|
||||
qrCodeLevel: 0,
|
||||
right: 256.74609375,
|
||||
bottom: 143.7421875,
|
||||
vCenter: 226.74609375,
|
||||
hCenter: 134.7421875,
|
||||
},
|
||||
printElementType: { title: '文本', type: 'text' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 5,
|
||||
top: 175,
|
||||
height: 9,
|
||||
width: 256.5,
|
||||
right: 259.2421875,
|
||||
bottom: 183.75,
|
||||
vCenter: 130.9921875,
|
||||
hCenter: 179.25,
|
||||
},
|
||||
printElementType: { title: '横线', type: 'hline' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 50,
|
||||
top: 200,
|
||||
height: 58.5,
|
||||
width: 9,
|
||||
right: 58.9921875,
|
||||
bottom: 259.5,
|
||||
vCenter: 54.4921875,
|
||||
hCenter: 230.25,
|
||||
},
|
||||
printElementType: { title: '竖线', type: 'vline' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 110,
|
||||
top: 200,
|
||||
height: 58.5,
|
||||
width: 9,
|
||||
right: 117.75,
|
||||
bottom: 256.9921875,
|
||||
vCenter: 113.25,
|
||||
hCenter: 227.7421875,
|
||||
},
|
||||
printElementType: { title: '竖线', type: 'vline' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 5,
|
||||
top: 200,
|
||||
height: 9,
|
||||
width: 256.5,
|
||||
right: 262.9921875,
|
||||
bottom: 210.24609375,
|
||||
vCenter: 134.7421875,
|
||||
hCenter: 205.74609375,
|
||||
},
|
||||
printElementType: { title: '横线', type: 'hline' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 10,
|
||||
top: 210,
|
||||
height: 18,
|
||||
width: 36,
|
||||
title: '日期',
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
fontSize: 12,
|
||||
qrCodeLevel: 0,
|
||||
right: 45.99609375,
|
||||
bottom: 228,
|
||||
vCenter: 27.99609375,
|
||||
hCenter: 219,
|
||||
},
|
||||
printElementType: { title: '文本', type: 'text' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 67.5,
|
||||
top: 210,
|
||||
height: 18,
|
||||
width: 36,
|
||||
title: '班次',
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
fontSize: 12,
|
||||
qrCodeLevel: 0,
|
||||
right: 103.5,
|
||||
bottom: 228,
|
||||
vCenter: 85.5,
|
||||
hCenter: 219,
|
||||
},
|
||||
printElementType: { title: '文本', type: 'text' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 207.5,
|
||||
top: 210,
|
||||
height: 18,
|
||||
width: 36,
|
||||
title: '片数',
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
fontSize: 12,
|
||||
qrCodeLevel: 0,
|
||||
right: 243.4921875,
|
||||
bottom: 228,
|
||||
vCenter: 225.4921875,
|
||||
hCenter: 219,
|
||||
},
|
||||
printElementType: { title: '文本', type: 'text' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 5,
|
||||
top: 230,
|
||||
height: 9,
|
||||
width: 256.5,
|
||||
right: 261.4921875,
|
||||
bottom: 239.25,
|
||||
vCenter: 133.2421875,
|
||||
hCenter: 234.75,
|
||||
},
|
||||
printElementType: { title: '横线', type: 'hline' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 5,
|
||||
top: 257.5,
|
||||
height: 9,
|
||||
width: 256.5,
|
||||
right: 261.4921875,
|
||||
bottom: 266.49609375,
|
||||
vCenter: 133.2421875,
|
||||
hCenter: 261.99609375,
|
||||
},
|
||||
printElementType: { title: '横线', type: 'hline' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 10,
|
||||
top: 262.5,
|
||||
height: 18,
|
||||
width: 87,
|
||||
title: '封箱人员工号:',
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
fontSize: 12,
|
||||
qrCodeLevel: 0,
|
||||
right: 46.9921875,
|
||||
bottom: 279.24609375,
|
||||
vCenter: 28.9921875,
|
||||
hCenter: 270.24609375,
|
||||
},
|
||||
printElementType: { title: '文本', type: 'text' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 5,
|
||||
top: 280,
|
||||
height: 9,
|
||||
width: 256.5,
|
||||
right: 262.2421875,
|
||||
bottom: 289.2421875,
|
||||
vCenter: 133.9921875,
|
||||
hCenter: 284.7421875,
|
||||
},
|
||||
printElementType: { title: '横线', type: 'hline' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 10,
|
||||
top: 285,
|
||||
height: 18,
|
||||
width: 87,
|
||||
title: '打包人员工号:',
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
fontSize: 12,
|
||||
qrCodeLevel: 0,
|
||||
right: 96.4921875,
|
||||
bottom: 301.74609375,
|
||||
vCenter: 52.9921875,
|
||||
hCenter: 292.74609375,
|
||||
},
|
||||
printElementType: { title: '文本', type: 'text' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 5,
|
||||
top: 300,
|
||||
height: 9,
|
||||
width: 256.5,
|
||||
right: 264.4921875,
|
||||
bottom: 308.49609375,
|
||||
vCenter: 136.2421875,
|
||||
hCenter: 303.99609375,
|
||||
},
|
||||
printElementType: { title: '横线', type: 'hline' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 10,
|
||||
top: 305,
|
||||
height: 18,
|
||||
width: 247.5,
|
||||
title: '备注1:单层镀/双层镀/丝印打孔/打孔钢片',
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
fontSize: 12,
|
||||
qrCodeLevel: 0,
|
||||
right: 96.99609375,
|
||||
bottom: 322.9921875,
|
||||
vCenter: 53.49609375,
|
||||
hCenter: 313.9921875,
|
||||
},
|
||||
printElementType: { title: '文本', type: 'text' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 5,
|
||||
top: 322.5,
|
||||
height: 9,
|
||||
width: 256.5,
|
||||
right: 262.2421875,
|
||||
bottom: 332.7421875,
|
||||
vCenter: 133.9921875,
|
||||
hCenter: 328.2421875,
|
||||
},
|
||||
printElementType: { title: '横线', type: 'hline' },
|
||||
},
|
||||
{
|
||||
options: {
|
||||
left: 10,
|
||||
top: 327.5,
|
||||
height: 18,
|
||||
width: 87,
|
||||
title: '备注2:',
|
||||
coordinateSync: false,
|
||||
widthHeightSync: false,
|
||||
fontSize: 12,
|
||||
qrCodeLevel: 0,
|
||||
right: 97.9921875,
|
||||
bottom: 343.74609375,
|
||||
vCenter: 54.4921875,
|
||||
hCenter: 334.74609375,
|
||||
},
|
||||
printElementType: { title: '文本', type: 'text' },
|
||||
},
|
||||
],
|
||||
paperNumberLeft: 372.5,
|
||||
paperNumberTop: 337.5,
|
||||
paperNumberContinue: true,
|
||||
watermarkOptions: {},
|
||||
},
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user