流转卡相关功能
This commit is contained in:
parent
13408c8008
commit
f2aa6ceba5
44
src/api/mes/pro/procard.js
Normal file
44
src/api/mes/pro/procard.js
Normal file
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询工序流转卡列表
|
||||
export function listProcard(query) {
|
||||
return request({
|
||||
url: '/mes/pro/procard/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询工序流转卡详细
|
||||
export function getProcard(cardId) {
|
||||
return request({
|
||||
url: '/mes/pro/procard/' + cardId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增工序流转卡
|
||||
export function addProcard(data) {
|
||||
return request({
|
||||
url: '/mes/pro/procard',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改工序流转卡
|
||||
export function updateProcard(data) {
|
||||
return request({
|
||||
url: '/mes/pro/procard',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除工序流转卡
|
||||
export function delProcard(cardId) {
|
||||
return request({
|
||||
url: '/mes/pro/procard/' + cardId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
44
src/api/mes/pro/procardprocess.js
Normal file
44
src/api/mes/pro/procardprocess.js
Normal file
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询工序流转卡-工序信息列表
|
||||
export function listProcardprocess(query) {
|
||||
return request({
|
||||
url: '/mes/pro/procardprocess/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询工序流转卡-工序信息详细
|
||||
export function getProcardprocess(recordId) {
|
||||
return request({
|
||||
url: '/mes/pro/procardprocess/' + recordId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增工序流转卡-工序信息
|
||||
export function addProcardprocess(data) {
|
||||
return request({
|
||||
url: '/mes/pro/procardprocess',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改工序流转卡-工序信息
|
||||
export function updateProcardprocess(data) {
|
||||
return request({
|
||||
url: '/mes/pro/procardprocess',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除工序流转卡-工序信息
|
||||
export function delProcardprocess(recordId) {
|
||||
return request({
|
||||
url: '/mes/pro/procardprocess/' + recordId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
44
src/api/mes/pro/prosnprocess.js
Normal file
44
src/api/mes/pro/prosnprocess.js
Normal file
@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询SN流转-工序信息列表
|
||||
export function listProsnprocess(query) {
|
||||
return request({
|
||||
url: '/mes/pro/prosnprocess/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 查询SN流转-工序信息详细
|
||||
export function getProsnprocess(recordId) {
|
||||
return request({
|
||||
url: '/mes/pro/prosnprocess/' + recordId,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 新增SN流转-工序信息
|
||||
export function addProsnprocess(data) {
|
||||
return request({
|
||||
url: '/mes/pro/prosnprocess',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 修改SN流转-工序信息
|
||||
export function updateProsnprocess(data) {
|
||||
return request({
|
||||
url: '/mes/pro/prosnprocess',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
// 删除SN流转-工序信息
|
||||
export function delProsnprocess(recordId) {
|
||||
return request({
|
||||
url: '/mes/pro/prosnprocess/' + recordId,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
317
src/views/mes/pro/procard/index.vue
Normal file
317
src/views/mes/pro/procard/index.vue
Normal file
@ -0,0 +1,317 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="100px">
|
||||
<el-form-item label="流转卡编号" prop="cardCode">
|
||||
<el-input
|
||||
v-model="queryParams.cardCode"
|
||||
placeholder="请输入流转卡编号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="生产工单编号" prop="workorderCode">
|
||||
<el-input
|
||||
v-model="queryParams.workorderCode"
|
||||
placeholder="请输入生产工单编号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="批次号" prop="batchCode">
|
||||
<el-input
|
||||
v-model="queryParams.batchCode"
|
||||
placeholder="请输入批次号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品物料编码" prop="itemCode">
|
||||
<el-input
|
||||
v-model="queryParams.itemCode"
|
||||
placeholder="请输入产品物料编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品物料名称" prop="itemName">
|
||||
<el-input
|
||||
v-model="queryParams.itemName"
|
||||
placeholder="请输入产品物料名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-table v-loading="loading" :data="procardList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="流转卡编号" align="center" prop="cardCode" >
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
type="text"
|
||||
@click="handleView(scope.row)"
|
||||
v-hasPermi="['mes:pro:procard:query']"
|
||||
>{{scope.row.cardCode}}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="生产工单编号" align="center" prop="workorderCode" />
|
||||
<el-table-column label="批次号" align="center" prop="batchCode" />
|
||||
<el-table-column label="产品物料编码" align="center" prop="itemCode" />
|
||||
<el-table-column label="产品物料名称" align="center" prop="itemName" />
|
||||
<el-table-column label="规格型号" align="center" prop="specification" />
|
||||
<el-table-column label="单位" align="center" prop="unitOfMeasure" />
|
||||
<el-table-column label="流转数量" align="center" prop="quantityTransfered" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-print"
|
||||
@click="handlePrint(scope.row)"
|
||||
v-hasPermi="['mes:pro:procard:query']"
|
||||
>打印</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改工序流转卡对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="960px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="16">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="流转卡编号" prop="cardCode">
|
||||
<el-input v-model="form.cardCode" placeholder="请输入流转卡编号" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="生产工单号" prop="workorderCode">
|
||||
<el-input v-model="form.workorderCode" placeholder="请输入生产工单编号" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="产品编码" prop="itemCode">
|
||||
<el-input v-model="form.itemCode" placeholder="请输入产品物料编码" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="产品名称" prop="itemName">
|
||||
<el-input v-model="form.itemName" placeholder="请输入产品物料名称" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="规格型号" prop="specification">
|
||||
<el-input v-model="form.specification" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="流转数量" prop="quantityTransfered">
|
||||
<el-input v-model="form.quantityTransfered" placeholder="请输入流转数量" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="单位" prop="unitOfMeasure">
|
||||
<el-input v-model="form.unitOfMeasure" placeholder="请输入单位" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="批次号" prop="batchCode">
|
||||
<el-input v-model="form.batchCode" placeholder="请输入批次号" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<BarcodeImg ref="barcodeImg" :bussinessId="form.cardId" :bussinessCode="form.cardCode" barcodeType="PROCARD"></BarcodeImg>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<el-divider v-if="form.cardId !=null" content-position="center">工序</el-divider>
|
||||
<el-card shadow="always" v-if="form.cardId !=null" class="box-card">
|
||||
<Procardprocess :cardId="form.cardId" :optType="optType"></Procardprocess>
|
||||
</el-card>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listProcard, getProcard, delProcard, addProcard, updateProcard } from "@/api/mes/pro/procard";
|
||||
import BarcodeImg from "@/components/barcodeImg/index.vue"
|
||||
import Procardprocess from "./process.vue"
|
||||
import { getToken } from "@/utils/auth";
|
||||
export default {
|
||||
name: "Procard",
|
||||
components: {BarcodeImg,Procardprocess},
|
||||
data() {
|
||||
return {
|
||||
optType: null,
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 工序流转卡表格数据
|
||||
procardList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
cardCode: null, workorderId: null, workorderCode: null, workorderName: null, batchCode: null, itemId: null, itemCode: null, itemName: null, specification: null, unitOfMeasure: null, barcodeUrl: null, quantityTransfered: null, status: null, attr1: null, attr2: null, attr3: null, attr4: null, },
|
||||
// 表单参数
|
||||
form: {},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询工序流转卡列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listProcard(this.queryParams).then(response => {
|
||||
this.procardList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
cardId: null, cardCode: null, workorderId: null, workorderCode: null, workorderName: null, batchCode: null, itemId: null, itemCode: null, itemName: null, specification: null, unitOfMeasure: null, barcodeUrl: null, quantityTransfered: null, status: "0", remark: null, attr1: null, attr2: null, attr3: null, attr4: null, createBy: null, createTime: null, updateBy: null, updateTime: null };
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.cardId)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加工序流转卡";
|
||||
this.optType = 'add';
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const cardId = row.cardId || this.ids
|
||||
getProcard(cardId).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改工序流转卡";
|
||||
this.optType = 'edit';
|
||||
});
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleView(row) {
|
||||
this.reset();
|
||||
const cardId = row.cardId || this.ids
|
||||
getProcard(cardId).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "查看工序流转卡";
|
||||
this.optType = 'view';
|
||||
});
|
||||
},
|
||||
//跳转到报表展示界面
|
||||
handlePrint(row){
|
||||
var reportName = "pro_card";
|
||||
window.open(`${this.website.reportUrl}/preview?_u=mysql:`+reportName+`&&cardId=`+row.cardId);
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.cardId != null) {
|
||||
updateProcard(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addProcard(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const cardIds = row.cardId || this.ids;
|
||||
this.$modal.confirm('是否确认删除工序流转卡编号为"' + cardIds + '"的数据项?').then(function() {
|
||||
return delProcard(cardIds);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('pro/procard/export', {
|
||||
...this.queryParams
|
||||
}, `procard_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
109
src/views/mes/pro/procard/process.vue
Normal file
109
src/views/mes/pro/procard/process.vue
Normal file
@ -0,0 +1,109 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
|
||||
<el-table v-loading="loading" :data="procardprocessList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="序号" align="center" prop="seqNum" />
|
||||
<el-table-column label="工序名称" align="center" prop="processName" />
|
||||
<el-table-column label="进入工序时间" align="center" prop="inputTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.inputTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="出工序时间" align="center" prop="outputTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.outputTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="投入数量" align="center" prop="quantityInput" />
|
||||
<el-table-column label="产出数量" align="center" prop="quantityOutput" />
|
||||
<el-table-column label="不良品数量" width="120px" align="center" prop="quantityUnquanlify" />
|
||||
<el-table-column label="工作站" align="center" prop="workstationName" />
|
||||
<el-table-column label="名称" align="center" prop="nickName" />
|
||||
<el-table-column label="备注" align="center" prop="remark" />
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listProcardprocess } from "@/api/mes/pro/procardprocess";
|
||||
|
||||
export default {
|
||||
name: "Procardprocess",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 工序流转卡-工序信息表格数据
|
||||
procardprocessList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
cardId: this.cardId, cardCode: null, seqNum: null, processId: null, processCode: null, processName: null, inputTime: null, outputTime: null, quantityInput: null, quantityOutput: null, quantityUnquanlify: null, workstationId: null, workstationCode: null, workstationName: null, userId: null, userName: null, nickName: null, ipqcId: null, attr1: null, attr2: null, attr3: null, attr4: null, },
|
||||
};
|
||||
},
|
||||
props :{
|
||||
cardId: undefined,
|
||||
optType: undefined
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询工序流转卡-工序信息列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listProcardprocess(this.queryParams).then(response => {
|
||||
this.procardprocessList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
recordId: null, cardId: null, cardCode: null, seqNum: null, processId: null, processCode: null, processName: null, inputTime: null, outputTime: null, quantityInput: null, quantityOutput: null, quantityUnquanlify: null, workstationId: null, workstationCode: null, workstationName: null, userId: null, userName: null, nickName: null, ipqcId: null, remark: null, attr1: null, attr2: null, attr3: null, attr4: null, createBy: null, createTime: null, updateBy: null, updateTime: null };
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.recordId)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
474
src/views/mes/pro/procard/snprocess.vue
Normal file
474
src/views/mes/pro/procard/snprocess.vue
Normal file
@ -0,0 +1,474 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="SNID" prop="snId">
|
||||
<el-input
|
||||
v-model="queryParams.snId"
|
||||
placeholder="请输入SNID"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="SN编号" prop="snCode">
|
||||
<el-input
|
||||
v-model="queryParams.snCode"
|
||||
placeholder="请输入SN编号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="序号" prop="seqNum">
|
||||
<el-input
|
||||
v-model="queryParams.seqNum"
|
||||
placeholder="请输入序号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="工序ID" prop="processId">
|
||||
<el-input
|
||||
v-model="queryParams.processId"
|
||||
placeholder="请输入工序ID"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="工序编号" prop="processCode">
|
||||
<el-input
|
||||
v-model="queryParams.processCode"
|
||||
placeholder="请输入工序编号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="工序名称" prop="processName">
|
||||
<el-input
|
||||
v-model="queryParams.processName"
|
||||
placeholder="请输入工序名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="进入工序时间" prop="inputTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.inputTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择进入工序时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="出工序时间" prop="outputTime">
|
||||
<el-date-picker clearable
|
||||
v-model="queryParams.outputTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择出工序时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="投入数量" prop="quantityInput">
|
||||
<el-input
|
||||
v-model="queryParams.quantityInput"
|
||||
placeholder="请输入投入数量"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="产出数量" prop="quantityOutput">
|
||||
<el-input
|
||||
v-model="queryParams.quantityOutput"
|
||||
placeholder="请输入产出数量"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="不合格品数量" prop="quantityUnquanlify">
|
||||
<el-input
|
||||
v-model="queryParams.quantityUnquanlify"
|
||||
placeholder="请输入不合格品数量"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="工作站ID" prop="workstationId">
|
||||
<el-input
|
||||
v-model="queryParams.workstationId"
|
||||
placeholder="请输入工作站ID"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="工作站编号" prop="workstationCode">
|
||||
<el-input
|
||||
v-model="queryParams.workstationCode"
|
||||
placeholder="请输入工作站编号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="工作站名称" prop="workstationName">
|
||||
<el-input
|
||||
v-model="queryParams.workstationName"
|
||||
placeholder="请输入工作站名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="用户ID" prop="userId">
|
||||
<el-input
|
||||
v-model="queryParams.userId"
|
||||
placeholder="请输入用户ID"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="用户名" prop="userName">
|
||||
<el-input
|
||||
v-model="queryParams.userName"
|
||||
placeholder="请输入用户名"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="名称" prop="nickName">
|
||||
<el-input
|
||||
v-model="queryParams.nickName"
|
||||
placeholder="请输入名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="过程检验单ID" prop="ipqcId">
|
||||
<el-input
|
||||
v-model="queryParams.ipqcId"
|
||||
placeholder="请输入过程检验单ID"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="primary"
|
||||
plain
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['pro:prosnprocess:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
icon="el-icon-edit"
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['pro:prosnprocess:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="el-icon-delete"
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['pro:prosnprocess:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
plain
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['pro:prosnprocess:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="prosnprocessList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="流水ID" align="center" prop="recordId" />
|
||||
<el-table-column label="SNID" align="center" prop="snId" />
|
||||
<el-table-column label="SN编号" align="center" prop="snCode" />
|
||||
<el-table-column label="序号" align="center" prop="seqNum" />
|
||||
<el-table-column label="工序ID" align="center" prop="processId" />
|
||||
<el-table-column label="工序编号" align="center" prop="processCode" />
|
||||
<el-table-column label="工序名称" align="center" prop="processName" />
|
||||
<el-table-column label="进入工序时间" align="center" prop="inputTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.inputTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="出工序时间" align="center" prop="outputTime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.outputTime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="投入数量" align="center" prop="quantityInput" />
|
||||
<el-table-column label="产出数量" align="center" prop="quantityOutput" />
|
||||
<el-table-column label="不合格品数量" align="center" prop="quantityUnquanlify" />
|
||||
<el-table-column label="工作站ID" align="center" prop="workstationId" />
|
||||
<el-table-column label="工作站编号" align="center" prop="workstationCode" />
|
||||
<el-table-column label="工作站名称" align="center" prop="workstationName" />
|
||||
<el-table-column label="用户ID" align="center" prop="userId" />
|
||||
<el-table-column label="用户名" align="center" prop="userName" />
|
||||
<el-table-column label="名称" align="center" prop="nickName" />
|
||||
<el-table-column label="过程检验单ID" align="center" prop="ipqcId" />
|
||||
<el-table-column label="备注" align="center" prop="remark" />
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['pro:prosnprocess:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['pro:prosnprocess:remove']"
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
|
||||
<!-- 添加或修改SN流转-工序信息对话框 -->
|
||||
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
||||
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
||||
<el-form-item label="SNID" prop="snId">
|
||||
<el-input v-model="form.snId" placeholder="请输入SNID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="SN编号" prop="snCode">
|
||||
<el-input v-model="form.snCode" placeholder="请输入SN编号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="序号" prop="seqNum">
|
||||
<el-input v-model="form.seqNum" placeholder="请输入序号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="工序ID" prop="processId">
|
||||
<el-input v-model="form.processId" placeholder="请输入工序ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="工序编号" prop="processCode">
|
||||
<el-input v-model="form.processCode" placeholder="请输入工序编号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="工序名称" prop="processName">
|
||||
<el-input v-model="form.processName" placeholder="请输入工序名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="进入工序时间" prop="inputTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.inputTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择进入工序时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="出工序时间" prop="outputTime">
|
||||
<el-date-picker clearable
|
||||
v-model="form.outputTime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="请选择出工序时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="投入数量" prop="quantityInput">
|
||||
<el-input v-model="form.quantityInput" placeholder="请输入投入数量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="产出数量" prop="quantityOutput">
|
||||
<el-input v-model="form.quantityOutput" placeholder="请输入产出数量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="不合格品数量" prop="quantityUnquanlify">
|
||||
<el-input v-model="form.quantityUnquanlify" placeholder="请输入不合格品数量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="工作站ID" prop="workstationId">
|
||||
<el-input v-model="form.workstationId" placeholder="请输入工作站ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="工作站编号" prop="workstationCode">
|
||||
<el-input v-model="form.workstationCode" placeholder="请输入工作站编号" />
|
||||
</el-form-item>
|
||||
<el-form-item label="工作站名称" prop="workstationName">
|
||||
<el-input v-model="form.workstationName" placeholder="请输入工作站名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="用户ID" prop="userId">
|
||||
<el-input v-model="form.userId" placeholder="请输入用户ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="用户名" prop="userName">
|
||||
<el-input v-model="form.userName" placeholder="请输入用户名" />
|
||||
</el-form-item>
|
||||
<el-form-item label="名称" prop="nickName">
|
||||
<el-input v-model="form.nickName" placeholder="请输入名称" />
|
||||
</el-form-item>
|
||||
<el-form-item label="过程检验单ID" prop="ipqcId">
|
||||
<el-input v-model="form.ipqcId" placeholder="请输入过程检验单ID" />
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
<el-button @click="cancel">取 消</el-button>
|
||||
</div>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listProsnprocess, getProsnprocess, delProsnprocess, addProsnprocess, updateProsnprocess } from "@/api/mes/pro/prosnprocess";
|
||||
|
||||
export default {
|
||||
name: "Prosnprocess",
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// SN流转-工序信息表格数据
|
||||
prosnprocessList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
snId: null, snCode: null, seqNum: null, processId: null, processCode: null, processName: null, inputTime: null, outputTime: null, quantityInput: null, quantityOutput: null, quantityUnquanlify: null, workstationId: null, workstationCode: null, workstationName: null, userId: null, userName: null, nickName: null, ipqcId: null, },
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
snId: [
|
||||
{ required: true, message: "SNID不能为空", trigger: "blur" }
|
||||
], workstationId: [
|
||||
{ required: true, message: "工作站ID不能为空", trigger: "blur" }
|
||||
], userId: [
|
||||
{ required: true, message: "用户ID不能为空", trigger: "blur" }
|
||||
], }
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询SN流转-工序信息列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listProsnprocess(this.queryParams).then(response => {
|
||||
this.prosnprocessList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
// 取消按钮
|
||||
cancel() {
|
||||
this.open = false;
|
||||
this.reset();
|
||||
},
|
||||
// 表单重置
|
||||
reset() {
|
||||
this.form = {
|
||||
recordId: null, snId: null, snCode: null, seqNum: null, processId: null, processCode: null, processName: null, inputTime: null, outputTime: null, quantityInput: null, quantityOutput: null, quantityUnquanlify: null, workstationId: null, workstationCode: null, workstationName: null, userId: null, userName: null, nickName: null, ipqcId: null, remark: null, attr1: null, attr2: null, attr3: null, attr4: null, createBy: null, createTime: null, updateBy: null, updateTime: null };
|
||||
this.resetForm("form");
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.queryParams.pageNum = 1;
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.recordId)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加SN流转-工序信息";
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const recordId = row.recordId || this.ids
|
||||
getProsnprocess(recordId).then(response => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改SN流转-工序信息";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
if (this.form.recordId != null) {
|
||||
updateProsnprocess(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
} else {
|
||||
addProsnprocess(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const recordIds = row.recordId || this.ids;
|
||||
this.$modal.confirm('是否确认删除SN流转-工序信息编号为"' + recordIds + '"的数据项?').then(function() {
|
||||
return delProsnprocess(recordIds);
|
||||
}).then(() => {
|
||||
this.getList();
|
||||
this.$modal.msgSuccess("删除成功");
|
||||
}).catch(() => {});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('pro/prosnprocess/export', {
|
||||
...this.queryParams
|
||||
}, `prosnprocess_${new Date().getTime()}.xlsx`)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
131
src/views/mes/pro/schedule/process.vue
Normal file
131
src/views/mes/pro/schedule/process.vue
Normal file
@ -0,0 +1,131 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-table v-loading="loading" :data="protaskList">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="工序名称" align="center" width="120px" prop="processName" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="排产数量" align="center" prop="quantity" />
|
||||
<el-table-column label="已生产数量" align="center" width="100px" prop="quantityProduced" />
|
||||
<el-table-column label="生产进度" align="center" width="150px" prop="quantityProduced" >
|
||||
<template slot-scope="scope">
|
||||
<el-progress v-if="scope.row.quantity !=0" :text-inside="true" :stroke-width="26" :percentage="(scope.row.quantityProduced/scope.row.quantity*100).toFixed(2)"></el-progress>
|
||||
<el-progress v-else :stroke-width="26" :text-inside="true" :percentage="0"></el-progress>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listTaskListByWorkorder, getProtask, delProtask, addProtask, updateProtask } from "@/api/mes/pro/protask";
|
||||
import WorkstationSelect from "@/components/workstationSelect/simpletableSingle.vue"
|
||||
import WorkorderSelect from "@/components/workorderSelect/single.vue"
|
||||
export default {
|
||||
name: "Protask",
|
||||
dicts: ['mes_task_status'],
|
||||
components: {WorkorderSelect,WorkstationSelect},
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
ids: [],
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 生产任务表格数据
|
||||
protaskList: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
taskCode: null,
|
||||
taskName: null,
|
||||
workorderId: this.workorderId,
|
||||
workorderCode: null,
|
||||
workorderName: null,
|
||||
workstationId: null,
|
||||
workstationCode: null,
|
||||
workstationName: null,
|
||||
routeId: this.routeId,
|
||||
processId: this.processId,
|
||||
processCode: null,
|
||||
processName: null,
|
||||
itemId: null,
|
||||
itemCode: null,
|
||||
itemName: null,
|
||||
specification: null,
|
||||
unitOfMeasure: null,
|
||||
quantity: null,
|
||||
quantityProduced: null,
|
||||
quantityChanged: null,
|
||||
clientId: null,
|
||||
clientCode: null,
|
||||
clientName: null,
|
||||
clientNick: null,
|
||||
startTime: null,
|
||||
duration: null,
|
||||
endTime: null,
|
||||
colorCode: null,
|
||||
requestDate: null,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
// 表单校验
|
||||
rules: {
|
||||
workorderCode: [
|
||||
{ required: true, message: "请选择生产工单", trigger: "blur" }
|
||||
],
|
||||
workstationName: [
|
||||
{ required: true, message: "请选择工作站", trigger: "blur" }
|
||||
],
|
||||
quantity: [
|
||||
{ required: true, message: "排产数量不能为空", trigger: "blur" }
|
||||
],
|
||||
startTime: [
|
||||
{ required: true, message: "请选择开始生产日期",trigger: "blur"}
|
||||
],
|
||||
duration: [
|
||||
{ required: true, message: "清输入估算的生产用时",trigger: "blur"}
|
||||
]
|
||||
}
|
||||
};
|
||||
},
|
||||
props:{
|
||||
workorderId: null,
|
||||
colorCode: null,
|
||||
routeId: null,
|
||||
processId: null,
|
||||
optType: null
|
||||
},
|
||||
watch: {
|
||||
workorderId(){
|
||||
this.queryParams.workorderId = this.workorderId;
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询生产任务列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listTaskListByWorkorder(this.queryParams).then(response => {
|
||||
this.protaskList = response.data;
|
||||
this.loading = false;
|
||||
},err =>{
|
||||
this.loading = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
288
src/views/mes/pro/schedule/progress.vue
Normal file
288
src/views/mes/pro/schedule/progress.vue
Normal file
@ -0,0 +1,288 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="24">
|
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
||||
<el-form-item label="工单编码" prop="workorderCode">
|
||||
<el-input
|
||||
v-model="queryParams.workorderCode"
|
||||
placeholder="请输入工单编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="工单名称" prop="workorderName">
|
||||
<el-input
|
||||
v-model="queryParams.workorderName"
|
||||
placeholder="请输入工单名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="来源单据" prop="sourceCode">
|
||||
<el-input
|
||||
v-model="queryParams.sourceCode"
|
||||
placeholder="请输入来源单据"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="产品编号" prop="productCode">
|
||||
<el-input
|
||||
v-model="queryParams.productCode"
|
||||
placeholder="请输入产品编号"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品名称" prop="productName">
|
||||
<el-input
|
||||
v-model="queryParams.productName"
|
||||
placeholder="请输入产品名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="客户编码" prop="clientCode">
|
||||
<el-input
|
||||
v-model="queryParams.clientCode"
|
||||
placeholder="请输入客户编码"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="客户名称" prop="clientName">
|
||||
<el-input
|
||||
v-model="queryParams.clientName"
|
||||
placeholder="请输入客户名称"
|
||||
clearable
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" icon="el-icon-refresh" v-hasPermi="['mes:pro:protask:list']" circle="" @click="getList"></el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="20">
|
||||
<!--工单信息-->
|
||||
<el-col class="borded-el" :xs="24">
|
||||
<el-table
|
||||
v-loading="loading"
|
||||
:data="workorderList"
|
||||
row-key="workorderId"
|
||||
@row-click ="onWorkOrderSelected"
|
||||
default-expand-all
|
||||
:tree-props="{children: 'children', hasChildren: 'hasChildren'}"
|
||||
>
|
||||
<el-table-column label="工单编码" width="180" prop="workorderCode" >
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
@click="handleView(scope.row)"
|
||||
v-hasPermi="['mes:pro:protask:query']"
|
||||
>{{scope.row.workorderCode}}</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="工单名称" width="200" align="center" prop="workorderName" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="订单编号" width="140" align="center" prop="sourceCode" />
|
||||
<el-table-column label="产品编号" width="120" align="center" prop="productCode" />
|
||||
<el-table-column label="产品名称" width="200" align="center" prop="productName" :show-overflow-tooltip="true"/>
|
||||
<el-table-column label="工单数量" width="100" align="center" prop="quantity" />
|
||||
<el-table-column label="已生产数量" align="center" width="100px" prop="quantityProduced" />
|
||||
<el-table-column label="生产进度" align="center" :style="{ 'width': '200px', 'overflow': 'auto' }" prop="quantityProduced" >
|
||||
<template slot-scope="scope">
|
||||
<div style="display: flex" >
|
||||
<div v-for="(task,index) in scope.row.tasks" :key="task.processId">
|
||||
<div style="align-items: center">
|
||||
<el-progress type="circle" :width="120" :percentage="getPercentage(task)" />
|
||||
<span>{{ task.processName }}</span>
|
||||
</div>
|
||||
<span v-if="index != scope.row.tasks.length -1" >-</span>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="需求日期" align="center" prop="requestDate" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.requestDate, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="工单状态" align="center" prop="status">
|
||||
<template slot-scope="scope">
|
||||
<dict-tag :options="dict.type.mes_order_status" :value="scope.row.status"/>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
<pagination
|
||||
v-show="total>0"
|
||||
:total="total"
|
||||
:page.sync="queryParams.pageNum"
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { listWorkorder, listWithTaskJson,getWorkorder, delWorkorder, addWorkorder, updateWorkorder } from "@/api/mes/pro/workorder";
|
||||
import ProcessInfo from "./process.vue";
|
||||
export default {
|
||||
name: "processview",
|
||||
dicts: ['mes_order_status','mes_workorder_sourcetype'],
|
||||
components: {
|
||||
ProcessInfo
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 显示搜索条件
|
||||
showSearch: true,
|
||||
// 总条数
|
||||
total: 0,
|
||||
// 非单个禁用
|
||||
single: true,
|
||||
// 非多个禁用
|
||||
multiple: true,
|
||||
//选中的生产工单
|
||||
selectedWorkorderId: -1,
|
||||
// 生产工单表格数据
|
||||
workorderList: [],
|
||||
// 生产工单树选项
|
||||
workorderOptions: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
open: false,
|
||||
// 查询参数
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
workorderCode: null,
|
||||
workorderName: null,
|
||||
workorderType: 'SELF', //这里的排产要排除自产之外的外协和外购
|
||||
orderSource: null,
|
||||
sourceCode: null,
|
||||
productId: null,
|
||||
productCode: null,
|
||||
productName: null,
|
||||
productSpc: null,
|
||||
unitOfMeasure: null,
|
||||
quantity: null,
|
||||
quantityProduced: null,
|
||||
quantityChanged: null,
|
||||
quantityScheduled: null,
|
||||
clientId: null,
|
||||
clientCode: null,
|
||||
clientName: null,
|
||||
requestDate: null,
|
||||
parentId: null,
|
||||
ancestors: null,
|
||||
status: 'CONFIRMED',
|
||||
},
|
||||
tasks:{
|
||||
data: [],
|
||||
links: []
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getList();
|
||||
},
|
||||
methods: {
|
||||
/** 查询生产工单列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listWithTaskJson(this.queryParams).then(response => {
|
||||
this.workorderList = this.handleTree(response.rows, "workorderId", "parentId");
|
||||
if(this.workorderList.length>0){
|
||||
this.selectedWorkorderId = this.workorderList[0].workorderId;
|
||||
}else{
|
||||
this.selectedWorkorderId = -1;
|
||||
}
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
},
|
||||
/** 转换生产工单数据结构 */
|
||||
normalizer(node) {
|
||||
if (node.children && !node.children.length) {
|
||||
delete node.children;
|
||||
}
|
||||
return {
|
||||
id: node.workorderId,
|
||||
label: node.workorderName,
|
||||
children: node.children
|
||||
};
|
||||
},
|
||||
/** 查询生产工单下拉树结构 */
|
||||
getTreeselect() {
|
||||
listWorkorder().then(response => {
|
||||
this.workorderOptions = [];
|
||||
const data = { workorderId: 0, workorderName: '顶级节点', children: [] };
|
||||
data.children = this.handleTree(response.data, "workorderId", "parentId");
|
||||
this.workorderOptions.push(data);
|
||||
});
|
||||
},
|
||||
/** 搜索按钮操作 */
|
||||
handleQuery() {
|
||||
this.getList();
|
||||
},
|
||||
/** 重置按钮操作 */
|
||||
resetQuery() {
|
||||
this.resetForm("queryForm");
|
||||
this.handleQuery();
|
||||
},
|
||||
|
||||
//点击某一行
|
||||
onWorkOrderSelected(r,c,e){
|
||||
this.selectedWorkorderId = r.workorderId;
|
||||
this.$nextTick(() => {
|
||||
this.$refs.process.getList();
|
||||
});
|
||||
},
|
||||
// 查询明细按钮操作
|
||||
handleView(row){
|
||||
this.reset();
|
||||
this.getTreeselect();
|
||||
const workorderId = row.workorderId || this.ids;
|
||||
getWorkorder(workorderId).then(response => {
|
||||
this.form = response.data;
|
||||
this.getProcess();
|
||||
this.open = true;
|
||||
this.title = "查看工单信息";
|
||||
this.optType = "view";
|
||||
});
|
||||
},
|
||||
getPercentage(task){
|
||||
if(task.quantity !=0 && task.quantity != null){
|
||||
return parseFloat((task.quantityProduced/task.quantity*100).toFixed(0))
|
||||
}else{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
.borded-el{
|
||||
border: 1px solid rgba(0, 0, 0, .12);
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
</style>
|
@ -214,7 +214,6 @@
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-printer"
|
||||
v-if="scope.row.parentId =='0'"
|
||||
@click="handlePreview(scope.row)"
|
||||
>预览</el-button>
|
||||
</template>
|
||||
|
307
src/views/print/printtemplate/panel.bak.js
Normal file
307
src/views/print/printtemplate/panel.bak.js
Normal file
@ -0,0 +1,307 @@
|
||||
export default {
|
||||
"panels": [{
|
||||
"index": 0,
|
||||
"height": 297,
|
||||
"width": 210,
|
||||
"paperHeader": 49.5,
|
||||
"paperFooter": 780,
|
||||
"watermarkOptions": {
|
||||
"content": "vue-plugin-hiprint",
|
||||
"rotate": 25,
|
||||
"timestamp": true,
|
||||
"format": "YYYY-MM-DD HH:mm"
|
||||
},
|
||||
"printElements": [{
|
||||
"options": {
|
||||
"left": 175.5,
|
||||
"top": 10.5,
|
||||
"height": 27,
|
||||
"width": 259,
|
||||
"title": "苦糖果标签打印测试",
|
||||
"fontSize": 19,
|
||||
"fontWeight": "600",
|
||||
"textAlign": "center",
|
||||
"lineHeight": 26,
|
||||
"coordinateSync": true,
|
||||
"widthHeightSync": true,
|
||||
"draggable": false,
|
||||
}, "printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {"left": 60, "top": 27, "height": 13, "width": 52, "title": "页眉线", "textAlign": "center"},
|
||||
"printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {"left": 25.5, "top": 57, "height": 705, "width": 9, "fixed": true, "borderStyle": "dotted"},
|
||||
"printElementType": {"type": "vline"}
|
||||
}, {
|
||||
"options": {"left": 60, "top": 61.5, "height": 48, "width": 87, "src": "", "fit": "contain"},
|
||||
"printElementType": {"title": "图片", "type": "image"}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 153,
|
||||
"top": 64.5,
|
||||
"height": 39,
|
||||
"width": 276,
|
||||
"title": "二维码以及条形码均采用svg格式打印。不同打印机打印不会造成失真。图片打印:不同DPI打印可能会导致失真,",
|
||||
"fontFamily": "微软雅黑",
|
||||
"textAlign": "center",
|
||||
"lineHeight": 18
|
||||
}, "printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 457.5,
|
||||
"top": 79.5,
|
||||
"height": 13,
|
||||
"width": 120,
|
||||
"title": "姓名",
|
||||
"field": "name",
|
||||
"testData": "古力娜扎",
|
||||
"color": "#f00808",
|
||||
"textDecoration": "underline",
|
||||
"textAlign": "center",
|
||||
"fields": [{"text":'id',"field":'id'},{"text":'姓名',"field":'name'},{"text":'性别',"field":'gender'},{"text":'数量',"field":'count'}],
|
||||
}, "printElementType": {"title": "文本", "type": "text"}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 483,
|
||||
"top": 124.5,
|
||||
"height": 43,
|
||||
"width": 51,
|
||||
"title": "123456789",
|
||||
"textType": "qrcode"
|
||||
}, "printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 285,
|
||||
"top": 130.5,
|
||||
"height": 34,
|
||||
"width": 175,
|
||||
"title": "123456789",
|
||||
"fontFamily": "微软雅黑",
|
||||
"textAlign": "center",
|
||||
"textType": "barcode"
|
||||
}, "printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 60,
|
||||
"top": 132,
|
||||
"height": 19,
|
||||
"width": 213,
|
||||
"title": "所有打印元素都可已拖拽的方式来改变元素大小",
|
||||
"fontFamily": "微软雅黑",
|
||||
"textAlign": "center",
|
||||
"lineHeight": 18
|
||||
}, "printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 153,
|
||||
"top": 189,
|
||||
"height": 13,
|
||||
"width": 238,
|
||||
"title": "单击元素,右侧可自定义元素属性",
|
||||
"textAlign": "center",
|
||||
"fontFamily": "微软雅黑"
|
||||
}, "printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {"left": 60, "top": 190.5, "height": 13, "width": 51, "title": "横线", "textAlign": "center"},
|
||||
"printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 415.5,
|
||||
"top": 190.5,
|
||||
"height": 13,
|
||||
"width": 164,
|
||||
"title": "可以配置各属性的默认值",
|
||||
"textAlign": "center",
|
||||
"fontFamily": "微软雅黑"
|
||||
}, "printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {"left": 60, "top": 214.5, "height": 10, "width": 475.5},
|
||||
"printElementType": {"title": "横线", "type": "hline"}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 235.5,
|
||||
"top": 220.5,
|
||||
"height": 32,
|
||||
"width": 342,
|
||||
"title": "自定义表格:用户可左键选中表头,右键查看可操作项,操作类似Excel,双击表头单元格可进行编辑。内容:title#field",
|
||||
"fontFamily": "微软雅黑",
|
||||
"textAlign": "center",
|
||||
"lineHeight": 15
|
||||
}, "printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 156,
|
||||
"top": 265.5,
|
||||
"height": 13,
|
||||
"width": 94,
|
||||
"title": "表头列大小可拖动",
|
||||
"fontFamily": "微软雅黑",
|
||||
"textAlign": "center"
|
||||
}, "printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 60,
|
||||
"top": 265.5,
|
||||
"height": 13,
|
||||
"width": 90,
|
||||
"title": "红色区域可拖动",
|
||||
"fontFamily": "微软雅黑",
|
||||
"textAlign": "center"
|
||||
}, "printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 60,
|
||||
"top": 285,
|
||||
"height": 56,
|
||||
"width": 511.5,
|
||||
"field": "table",
|
||||
"tableFooterRepeat": "",
|
||||
"fields": [{"text":'id',"field":'id'},{"text":'姓名',"field":'name'},{"text":'性别',"field":'gender'},{"text":'数量',"field":'count'}],
|
||||
"columns": [[{"width": 85.25, "colspan": 1, "rowspan": 1, "checked": true}, {
|
||||
"title": "性别",
|
||||
"field": "gender",
|
||||
"width": 85.25,
|
||||
"colspan": 1,
|
||||
"rowspan": 1,
|
||||
"checked": false
|
||||
}, {
|
||||
"title": "姓名",
|
||||
"field": "name",
|
||||
"width": 85.25,
|
||||
"align": "center",
|
||||
"colspan": 1,
|
||||
"rowspan": 1,
|
||||
"checked": true,
|
||||
"tableSummary": "count"
|
||||
}, {
|
||||
"title": "数量",
|
||||
"field": "count",
|
||||
"width": 85.25,
|
||||
"align": "center",
|
||||
"colspan": 1,
|
||||
"rowspan": 1,
|
||||
"checked": true,
|
||||
"tableSummary": "sum"
|
||||
}, {
|
||||
"width": 85.25,
|
||||
"colspan": 1,
|
||||
"rowspan": 1,
|
||||
"checked": true
|
||||
}, {"width": 85.25, "colspan": 1, "rowspan": 1, "checked": true}]]
|
||||
}, "printElementType": {
|
||||
"title": "表格", "type": "table",
|
||||
// editable: true,
|
||||
// columnDisplayEditable: true,//列显示是否能编辑
|
||||
// columnDisplayIndexEditable: true,//列顺序显示是否能编辑
|
||||
// columnTitleEditable: true,//列标题是否能编辑
|
||||
// columnResizable: true, //列宽是否能调整
|
||||
// columnAlignEditable: true,//列对齐是否调整
|
||||
// isEnableEditField: true, //编辑字段
|
||||
// isEnableContextMenu: true, //开启右键菜单 默认true
|
||||
// isEnableInsertRow: true, //插入行
|
||||
// isEnableDeleteRow: true, //删除行
|
||||
// isEnableInsertColumn: true, //插入列
|
||||
// isEnableDeleteColumn: true, //删除列
|
||||
// isEnableMergeCell: true, //合并单元格
|
||||
}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 21,
|
||||
"top": 346.5,
|
||||
"height": 61.5,
|
||||
"width": 15,
|
||||
"title": "装订线",
|
||||
"lineHeight": 18,
|
||||
"fixed": true,
|
||||
"contentPaddingTop": 3.75,
|
||||
"backgroundColor": "#ffffff"
|
||||
}, "printElementType": {"type": "text"}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 225,
|
||||
"top": 355,
|
||||
"height": 13,
|
||||
"width": 346.5,
|
||||
"title": "自定义模块:主要为开发人员设计,能够快速,简单,实现自己功能",
|
||||
"textAlign": "center"
|
||||
}, "printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {"left": 60, "top": 370.5, "height": 18, "width": 79, "title": "配置项表格", "textAlign": "center"},
|
||||
"printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 225,
|
||||
"top": 385.5,
|
||||
"height": 38,
|
||||
"width": 346.5,
|
||||
"title": "配置模块:主要为客户使用,开发人员可以配置属性,字段,标题等,客户直接使用,配置模块请参考实例2",
|
||||
"fontFamily": "微软雅黑",
|
||||
"lineHeight": 15,
|
||||
"textAlign": "center",
|
||||
"color": "#d93838"
|
||||
}, "printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 60,
|
||||
"top": 487.5,
|
||||
"height": 13,
|
||||
"width": 123,
|
||||
"title": "长文本会自动分页",
|
||||
"textAlign": "center"
|
||||
}, "printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {"left": 60, "top": 507, "height": 40, "width": 511.5, "field": "longText"},
|
||||
"printElementType": {"title": "长文", "type": "longText"}
|
||||
}, {
|
||||
"options": {"left": 475.5, "top": 565.5, "height": 100, "width": 100},
|
||||
"printElementType": {"title": "矩形", "type": "rect"}
|
||||
}, {
|
||||
"options": {"left": 174, "top": 568.5, "height": 13, "width": 90, "title": "竖线", "textAlign": "center"},
|
||||
"printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {"left": 60, "top": 574.5, "height": 100, "width": 10},
|
||||
"printElementType": {"title": "竖线", "type": "vline"}
|
||||
}, {
|
||||
"options": {"left": 210, "top": 604.5, "height": 13, "width": 120, "title": "横线", "textAlign": "center"},
|
||||
"printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {"left": 130.5, "top": 625.5, "height": 10, "width": 277},
|
||||
"printElementType": {"title": "横线", "type": "hline"}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 364.5,
|
||||
"top": 649.5,
|
||||
"height": 13,
|
||||
"width": 101,
|
||||
"title": "矩形",
|
||||
"textAlign": "center"
|
||||
}, "printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {"left": 525, "top": 784.5, "height": 13, "width": 63, "title": "页尾线", "textAlign": "center"},
|
||||
"printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {"left": 12, "top": 786, "height": 49, "width": 49},
|
||||
"printElementType": {"title": "html", "type": "html"}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 75,
|
||||
"top": 790.5,
|
||||
"height": 13,
|
||||
"width": 137,
|
||||
"title": "红色原型是自动定义的Html",
|
||||
"textAlign": "center"
|
||||
}, "printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}, {
|
||||
"options": {
|
||||
"left": 334.5,
|
||||
"top": 810,
|
||||
"height": 13,
|
||||
"width": 205,
|
||||
"title": "页眉线已上。页尾下以下每页都会重复打印",
|
||||
"textAlign": "center"
|
||||
}, "printElementType": {"title": "自定义文本", "type": "text"}
|
||||
}],
|
||||
"paperNumberLeft": 565.5,
|
||||
"paperNumberTop": 819
|
||||
}]
|
||||
}
|
Loading…
Reference in New Issue
Block a user