|
|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div style="overflow:hidden;">
|
|
|
|
|
<div style="overflow:hidden;" v-loading="loading">
|
|
|
|
|
<div class="top">
|
|
|
|
|
<div style="line-height: 60px;margin-left: 12px;">
|
|
|
|
|
<el-button-group>
|
|
|
|
|
@ -20,14 +20,15 @@
|
|
|
|
|
<el-input v-model="zoomInput" disabled style="margin-left: 8px;width:100px" />
|
|
|
|
|
<el-button @click="zoomChange(0.1)" icon="ZoomIn" circle style="margin-left: 8px;" />
|
|
|
|
|
<el-button type="primary" @click="view" style="margin-left: 12px;">预览</el-button>
|
|
|
|
|
<el-button type="primary" @click="imp" style="margin-left: 12px;">场景1</el-button>
|
|
|
|
|
<!-- <el-button type="primary" @click="imp" style="margin-left: 12px;">场景1</el-button>-->
|
|
|
|
|
<el-button type="primary" @click="save" style="margin-left: 12px;">保存</el-button>
|
|
|
|
|
<el-button type="primary" @click="clear" style="margin-left: 12px;">清空</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="bottom">
|
|
|
|
|
<div class="leftPanel">
|
|
|
|
|
<h4>基础组件</h4>
|
|
|
|
|
<!-- <h4>基础组件</h4>-->
|
|
|
|
|
<h4>组件</h4>
|
|
|
|
|
<el-tag :draggable="true" @dragstart="onDragStart($event, 'text',pid)" class="mx-1" size="large">文字</el-tag>
|
|
|
|
|
<el-tag :draggable="true" @dragstart="onDragStart($event, 'image',pid)" class="mx-1" size="large">图片</el-tag>
|
|
|
|
|
<el-tag :draggable="true" @dragstart="onDragStart($event, 'barCode',pid)" class="mx-1" size="large">条形码
|
|
|
|
|
@ -50,11 +51,11 @@
|
|
|
|
|
<!-- </el-tag>-->
|
|
|
|
|
<!-- <el-tag :draggable="true" @dragstart="onDragStart($event, 'circle',pid)" class="mx-1" size="large">圆形-->
|
|
|
|
|
<!-- </el-tag>-->
|
|
|
|
|
<h4>表单组件</h4>
|
|
|
|
|
<el-tag :draggable="true" @dragstart="onDragStart($event, 'text',pid,{name:'deviceName'})" class="mx-1"
|
|
|
|
|
size="large">
|
|
|
|
|
设备名称
|
|
|
|
|
</el-tag>
|
|
|
|
|
<!-- <h4>表单组件</h4>-->
|
|
|
|
|
<!-- <el-tag :draggable="true" @dragstart="onDragStart($event, 'text',pid,{name:'deviceName'})" class="mx-1"-->
|
|
|
|
|
<!-- size="large">-->
|
|
|
|
|
<!-- 设备名称-->
|
|
|
|
|
<!-- </el-tag>-->
|
|
|
|
|
</div>
|
|
|
|
|
<div class="content" @drop="onDrop">
|
|
|
|
|
<div class="flowArea" :style="{width:zoom * cmToPx(pageWidth)+'px',height:zoom * cmToPx(pageHeight)+'px'}">
|
|
|
|
|
@ -149,6 +150,9 @@
|
|
|
|
|
<el-input-number :min="12" :controls="false" v-model="nodeAttrForm.fontSize"
|
|
|
|
|
style="width: 100%" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="是否加粗" v-if="Object.keys(nodeAttrForm).includes('isBold')">
|
|
|
|
|
<el-switch v-model="nodeAttrForm.isBold" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="使用字典" v-if="Object.keys(nodeAttrForm).includes('dic')">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="nodeAttrForm.dic"
|
|
|
|
|
@ -176,6 +180,15 @@
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="时间" v-if="Object.keys(nodeAttrForm).includes('dateTime')">
|
|
|
|
|
<el-date-picker
|
|
|
|
|
v-model="nodeAttrForm.dateTime"
|
|
|
|
|
type="datetime"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="时间格式" v-if="Object.keys(nodeAttrForm).includes('dateTimeFormat')">
|
|
|
|
|
<el-input v-model="nodeAttrForm.dateTimeFormat" style="width: 100%" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item v-if="Object.keys(nodeAttrForm).includes('selectOptions')" label="选项集合">
|
|
|
|
|
<el-input-tag
|
|
|
|
|
v-model="nodeAttrForm.selectOptions"
|
|
|
|
|
@ -409,7 +422,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
import { v4 as uuidv4 } from 'uuid';
|
|
|
|
|
import { useRouter } from 'vue-router';
|
|
|
|
|
import { useRoute } from 'vue-router';
|
|
|
|
|
import { useVueFlow, VueFlow } from '@vue-flow/core';
|
|
|
|
|
import { Background } from '@vue-flow/background';
|
|
|
|
|
import tool, { options } from './tool';
|
|
|
|
|
@ -426,13 +439,499 @@ import { updatePrintTemplateList } from '@/api/system/printTemplateList';
|
|
|
|
|
import { getPrintTemplateInfo, listPrintTemplateInfo, updatePrintTemplateInfo } from '@/api/system/printTemplateInfo';
|
|
|
|
|
import { getPrintTemplateNode, getSysPrintTemplateNodeList, updateTemplateNode } from '@/api/system/printTemplateNode';
|
|
|
|
|
import { listType } from '@/api/system/dict/type';
|
|
|
|
|
import { ElMessage } from 'element-plus';
|
|
|
|
|
|
|
|
|
|
const router = useRouter();
|
|
|
|
|
|
|
|
|
|
let obj = [
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_94b0f100_e009_4f05_8e9e_b5fb47ee1ce9',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 396.8503937007874,
|
|
|
|
|
'y': 264.56692913385825,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"操作人","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_409bdd88_a0c1_401b_9358_4cf79e44cafc',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 37.79527559055118,
|
|
|
|
|
'y': 321.25984251968504,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"自检结果","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":true,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'select_a7ccbaaf_911c_4c81_ab88_a853503be3b0',
|
|
|
|
|
'type': 'select',
|
|
|
|
|
'name': 'select',
|
|
|
|
|
'width': 245,
|
|
|
|
|
'height': 56,
|
|
|
|
|
'x': 510.2362204724409,
|
|
|
|
|
'y': 264.56692913385825,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"UserListSel","dic":"","default":"","JScript":"","selectField":"UserList","selectOptions":[],"horizontalAlign":"center","verticalAlign":"center","border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'select_ee7c1e26_818d_45e6_95c5_e5f21413ce57',
|
|
|
|
|
'type': 'select',
|
|
|
|
|
'name': 'select',
|
|
|
|
|
'width': 245,
|
|
|
|
|
'height': 56,
|
|
|
|
|
'x': 151.1811023622047,
|
|
|
|
|
'y': 321.25984251968504,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"ResultListSel","dic":"","default":"","JScript":"","selectField":"ResultList","selectOptions":["合格","不合格"],"horizontalAlign":"center","verticalAlign":"center","border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_daf9fa77_5763_4ec8_a458_6c8188df6ffd',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 396.8503937007874,
|
|
|
|
|
'y': 321.25984251968504,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"有效期/天","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'inputNode_1cffa360_de94_40cd_8afb_90e0f0d3df08',
|
|
|
|
|
'type': 'inputNode',
|
|
|
|
|
'name': 'inputNode',
|
|
|
|
|
'width': 245,
|
|
|
|
|
'height': 56,
|
|
|
|
|
'x': 510.2362204724409,
|
|
|
|
|
'y': 321.25984251968504,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"default":"","horizontalAlign":"center","verticalAlign":"center","border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_20742495_3bef_4eb1_b270_a5b593f01b05',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 37.79527559055118,
|
|
|
|
|
'y': 377.95275590551176,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"工装编号","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":true,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'inputNode_1fc55162_082b_42a3_b0b2_c20b5b40aaf9',
|
|
|
|
|
'type': 'inputNode',
|
|
|
|
|
'name': 'inputNode',
|
|
|
|
|
'width': 245,
|
|
|
|
|
'height': 56,
|
|
|
|
|
'x': 151.1811023622047,
|
|
|
|
|
'y': 377.95275590551176,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"default":"","horizontalAlign":"center","verticalAlign":"center","border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_1df92c08_fb99_461b_9832_40e29ef6bd5e',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 396.8503937007874,
|
|
|
|
|
'y': 377.95275590551176,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"宽度/mm","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_7d8ead78_2f05_47d3_a2e4_bf04e16ccf4b',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 37.79527559055118,
|
|
|
|
|
'y': 434.64566929133855,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"开始时间","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":true,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_6d815e1f_3df9_465e_8c2f_242a77581921',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 604,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 151.1811023622047,
|
|
|
|
|
'y': 434.64566929133855,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":" ","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_09537908_518c_4d40_aeac_21ed2c334cfd',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 37.79527559055118,
|
|
|
|
|
'y': 491.33858267716533,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"结束时间","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":true,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_12baf7dc_d8ea_4306_aca0_1da27748624b',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 604,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 151.1811023622047,
|
|
|
|
|
'y': 491.33858267716533,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":" ","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_da7367c2_4ea1_49e3_8410_071396e02e1d',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 37.79527559055118,
|
|
|
|
|
'y': 548.0314960629921,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"数量","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":true,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_77a8a5b8_1331_4223_b0bd_bc2422046cd2',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 396.8503937007874,
|
|
|
|
|
'y': 548.0314960629921,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"单位","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_1179727a_8d5f_4831_a35b_0ebab4a34947',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 37.79527559055118,
|
|
|
|
|
'y': 604.7244094488188,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"车次/批次","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":true,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_dd1cf0cc_3d03_4bf3_90f8_41a96a59d727',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 396.8503937007874,
|
|
|
|
|
'y': 604.7244094488188,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"连续打印数","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'inputNode_2d06f82c_469e_4244_9127_9683949fe34e',
|
|
|
|
|
'type': 'inputNode',
|
|
|
|
|
'name': 'inputNode',
|
|
|
|
|
'width': 245,
|
|
|
|
|
'height': 56,
|
|
|
|
|
'x': 151.1811023622047,
|
|
|
|
|
'y': 548.0314960629921,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"default":"","horizontalAlign":"center","verticalAlign":"center","border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'select_5e3c5ac3_7c11_4a72_8201_6a7bf472f4e3',
|
|
|
|
|
'type': 'select',
|
|
|
|
|
'name': 'select',
|
|
|
|
|
'width': 245,
|
|
|
|
|
'height': 56,
|
|
|
|
|
'x': 510.2362204724409,
|
|
|
|
|
'y': 548.0314960629921,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"UnitListSel","dic":"","default":"","JScript":"","selectField":"UnitList","selectOptions":[],"horizontalAlign":"center","verticalAlign":"center","border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'inputNode_582e7d7a_a65b_413a_b9cb_8d695554dc6d',
|
|
|
|
|
'type': 'inputNode',
|
|
|
|
|
'name': 'inputNode',
|
|
|
|
|
'width': 245,
|
|
|
|
|
'height': 56,
|
|
|
|
|
'x': 151.1811023622047,
|
|
|
|
|
'y': 604.7244094488188,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"default":"","horizontalAlign":"center","verticalAlign":"center","border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'inputNode_5bb7be18_19f3_48ad_baed_99bcbc00bc9b',
|
|
|
|
|
'type': 'inputNode',
|
|
|
|
|
'name': 'inputNode',
|
|
|
|
|
'width': 245,
|
|
|
|
|
'height': 56,
|
|
|
|
|
'x': 510.2362204724409,
|
|
|
|
|
'y': 604.7244094488188,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"default":"","horizontalAlign":"center","verticalAlign":"center","border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_e085f85d_5313_4564_8bfe_6edb367d81cd',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 37.79527559055118,
|
|
|
|
|
'y': 661.4173228346456,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"备注","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":true,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'inputNode_d9318360_2e28_468c_afb2_a2d91d6f4715',
|
|
|
|
|
'type': 'inputNode',
|
|
|
|
|
'name': 'inputNode',
|
|
|
|
|
'width': 245,
|
|
|
|
|
'height': 56,
|
|
|
|
|
'x': 151.1811023622047,
|
|
|
|
|
'y': 661.4173228346456,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"default":"","horizontalAlign":"center","verticalAlign":"center","border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_7225b39c_d9b0_4b0d_b37d_61b2b8a1421c',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 396.8503937007874,
|
|
|
|
|
'y': 661.4173228346456,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"工位","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'select_7633de51_0735_43fb_86f2_bcff43ca1bcd',
|
|
|
|
|
'type': 'select',
|
|
|
|
|
'name': 'select',
|
|
|
|
|
'width': 245,
|
|
|
|
|
'height': 56,
|
|
|
|
|
'x': 510.2362204724409,
|
|
|
|
|
'y': 661.4173228346456,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"StationListSel","dic":"","default":"","JScript":"","selectField":"StationList","selectOptions":[],"horizontalAlign":"center","verticalAlign":"center","border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_c6360050_c623_497a_be89_1f33d57e5294',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 37.79527559055118,
|
|
|
|
|
'y': 718.1102362204724,
|
|
|
|
|
'parentNode': 'area_4be8ea51_d03c_4d9b_833a_decf81486a93',
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"条形码","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":true,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'barCode_30a0ac1d_e823_423c_9103_2485ab83e78a',
|
|
|
|
|
'type': 'barCode',
|
|
|
|
|
'name': 'barCode',
|
|
|
|
|
'width': 604,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 151.1811023622047,
|
|
|
|
|
'y': 718.1102362204724,
|
|
|
|
|
'parentNode': null,
|
|
|
|
|
'data': '{"options":{"field":"","default":"","border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_e9531742_1a0e_4081_92c0_a3078b6d565d',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 58,
|
|
|
|
|
'x': 37.79527559055118,
|
|
|
|
|
'y': 263.66929133858264,
|
|
|
|
|
'parentNode': null,
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"机台","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":true,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_d4a02b06_9879_4391_96b2_a88e65d5ec45',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 245,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 151.1811023622047,
|
|
|
|
|
'y': 264.56692913385825,
|
|
|
|
|
'parentNode': null,
|
|
|
|
|
'data': '{"options":{"field":"MachineName","horizontalAlign":"center","default":" ","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_da74eee9_cd5f_42ff_91d4_7a4ba4dad25f',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 58,
|
|
|
|
|
'x': 37.79527559055118,
|
|
|
|
|
'y': 207.87401574803147,
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"物料规格","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":true,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_02410e87_87b6_48f8_9d11_19d0c2bfc13d',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 604,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 151.1811023622047,
|
|
|
|
|
'y': 207.87401574803147,
|
|
|
|
|
'data': '{"options":{"field":"MaterialSpec","horizontalAlign":"center","default":"","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_c013b2fe_8ded_48d6_a9b3_53ab66355c17',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 37.79527559055118,
|
|
|
|
|
'y': 151.1811023622047,
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"班次","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":true,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_2910ecd1_e0b1_4de0_8e97_c3117c09df78',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 245,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 151.1811023622047,
|
|
|
|
|
'y': 151.1811023622047,
|
|
|
|
|
'data': '{"options":{"field":"ClassesName","horizontalAlign":"center","default":" ","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_a0e85857_475f_4693_806c_786a895d399a',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 396.8503937007874,
|
|
|
|
|
'y': 151.1811023622047,
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"班组","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_8a3c400c_1cb2_4ca0_bce8_0ec8f1c18867',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 245,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 510.2362204724409,
|
|
|
|
|
'y': 151.1811023622047,
|
|
|
|
|
'data': '{"options":{"field":"TeamName","horizontalAlign":"center","default":" ","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_6c5b0121_5a90_47f2_b3d6_0688e1d7ede1',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 58,
|
|
|
|
|
'x': 37.79527559055118,
|
|
|
|
|
'y': 94.48818897637794,
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"计划号","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":true,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_568e98ea_0e2d_4af1_b06a_d581323faa1c',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 245,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 151.1811023622047,
|
|
|
|
|
'y': 94.48818897637794,
|
|
|
|
|
'data': '{"options":{"field":"PlanCode","horizontalAlign":"center","default":" ","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_cabf1e71_f957_4a79_9ffb_c1e5c165e8f3',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 113,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 396.8503937007874,
|
|
|
|
|
'y': 94.48818897637794,
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"卡片编号","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_dc409f72_a849_4100_a328_c6407f3c075e',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 245,
|
|
|
|
|
'height': 57,
|
|
|
|
|
'x': 510.2362204724409,
|
|
|
|
|
'y': 94.48818897637794,
|
|
|
|
|
'data': '{"options":{"field":"CardRecordCode","horizontalAlign":"center","default":" ","isBold":false,"fontSize":14,"border":[{"type":"top","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'text_20440da6_4bd0_4b16_aa2e_ee9d0bc6339a',
|
|
|
|
|
'type': 'text',
|
|
|
|
|
'name': 'text',
|
|
|
|
|
'width': 793,
|
|
|
|
|
'height': 94,
|
|
|
|
|
'x': 0,
|
|
|
|
|
'y': 0,
|
|
|
|
|
'data': '{"options":{"field":"","horizontalAlign":"center","default":"生产流转卡","isBold":true,"fontSize":24,"border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'templateInfoId': 5,
|
|
|
|
|
'id': 'inputNode_3f98a70f_be42_4bfc_9e5d_007d57eb929b',
|
|
|
|
|
'type': 'inputNode',
|
|
|
|
|
'name': 'inputNode',
|
|
|
|
|
'width': 245,
|
|
|
|
|
'height': 56,
|
|
|
|
|
'x': 510.2362204724409,
|
|
|
|
|
'y': 377.95275590551176,
|
|
|
|
|
'data': '{"options":{"default":"","horizontalAlign":"center","verticalAlign":"center","border":[{"type":"top","isShow":false,"width":1,"color":"#000","borderType":"solid"},{"type":"right","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"bottom","isShow":true,"width":1,"color":"#000","borderType":"solid"},{"type":"left","isShow":false,"width":1,"color":"#000","borderType":"solid"}]},"outputData":{}}'
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const router = useRoute();
|
|
|
|
|
const { updateNode } = useVueFlow();
|
|
|
|
|
// 获取自定义的方法
|
|
|
|
|
const { onDragStart, onDrop, onDragOver } = tool();
|
|
|
|
|
const { cmToPx } = options;
|
|
|
|
|
const internalInstance = getCurrentInstance();
|
|
|
|
|
const loading = ref(false);
|
|
|
|
|
|
|
|
|
|
const data = {
|
|
|
|
|
planCode:'1',
|
|
|
|
|
@ -535,22 +1034,21 @@ const zoomChange = (e) => {
|
|
|
|
|
|
|
|
|
|
const view = () => {
|
|
|
|
|
localStorage.setItem('printNodes', JSON.stringify(nodes.value));
|
|
|
|
|
console.log();
|
|
|
|
|
internalInstance.appContext.config.globalProperties.$openPrint([data, data, data], 'demo1');
|
|
|
|
|
// isView.value = true;
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
const save = () => {
|
|
|
|
|
loading.value = true;
|
|
|
|
|
localStorage.setItem('printNodes', JSON.stringify(nodes.value));
|
|
|
|
|
updatePrintTemplateInfo({
|
|
|
|
|
templateInfoId: pageId.value,
|
|
|
|
|
templateListId: router.currentRoute.value.query.id,
|
|
|
|
|
templateListId: router.query.id,
|
|
|
|
|
paperType: pageType.value === 'zdy' ? '自定义' : pageType.value,
|
|
|
|
|
width: pageWidth.value,
|
|
|
|
|
height: pageHeight.value,
|
|
|
|
|
activeFlag: '1'
|
|
|
|
|
});
|
|
|
|
|
console.log(nodes.value);
|
|
|
|
|
updateTemplateNode(
|
|
|
|
|
nodes.value.map(e => {
|
|
|
|
|
return {
|
|
|
|
|
@ -566,7 +1064,15 @@ const save = () => {
|
|
|
|
|
data: JSON.stringify(e.data)
|
|
|
|
|
};
|
|
|
|
|
})
|
|
|
|
|
);
|
|
|
|
|
).then((e) => {
|
|
|
|
|
loading.value = false;
|
|
|
|
|
if (e.code === 200) {
|
|
|
|
|
ElMessage({
|
|
|
|
|
message: '保存成功',
|
|
|
|
|
type: 'success'
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
const clear = () => {
|
|
|
|
|
pid.value = `area_${uuidv4().replaceAll('-', '_')}`
|
|
|
|
|
@ -602,9 +1108,11 @@ onMounted(() => {
|
|
|
|
|
// nodes.value = JSON.parse(nodesData);
|
|
|
|
|
// pid.value = nodes.value.find(e => e.name === 'area')?.id;
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
listPrintTemplateInfo({ templateListId: router.currentRoute.value.query.id }).then(e => {
|
|
|
|
|
let data = e.rows[0] || {};
|
|
|
|
|
loading.value = true;
|
|
|
|
|
listPrintTemplateInfo({ templateListId: router.query.id }).then(e => {
|
|
|
|
|
let data = e.rows[0];
|
|
|
|
|
console.log(data);
|
|
|
|
|
if (!data) return;
|
|
|
|
|
pageType.value = (data.paperType || 'A4') === '自定义' ? 'zdy' : data.paperType;
|
|
|
|
|
pageId.value = data.templateInfoId;
|
|
|
|
|
pageWidth.value = data.width || 21;
|
|
|
|
|
@ -642,7 +1150,7 @@ onMounted(() => {
|
|
|
|
|
} else {
|
|
|
|
|
clear();
|
|
|
|
|
}
|
|
|
|
|
console.log(nodes.value);
|
|
|
|
|
loading.value = false;
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|