Commit 49ba838d authored by 佟礼's avatar 佟礼

工艺规程设置

parents d74d48bb 821105bb
...@@ -12,7 +12,9 @@ ...@@ -12,7 +12,9 @@
/> />
</slot> </slot>
</div>&nbsp; </div>&nbsp;
<Button v-if="high" @click="modalSearch=true" type="text"><Icon type="md-search" />高级</Button> <Button v-if="high" @click="modalSearch=true" type="text">
<Icon type="md-search" />高级
</Button>
<div class="searchBack"> <div class="searchBack">
<slot name="searchBack"></slot> <slot name="searchBack"></slot>
</div> </div>
...@@ -39,6 +41,7 @@ ...@@ -39,6 +41,7 @@
:data="list" :data="list"
:height="tableHeight" :height="tableHeight"
:draggable="draggable" :draggable="draggable"
:size="size"
ref="table" ref="table"
class="tableCommon" class="tableCommon"
@on-expand="expand" @on-expand="expand"
...@@ -113,10 +116,10 @@ ...@@ -113,10 +116,10 @@
<script> <script>
export default { export default {
name: 'DataGrid', name: "DataGrid",
data() { data() {
return { return {
keys: '', keys: "",
selectItems: [], selectItems: [],
footerToolbar: false, footerToolbar: false,
modalSearch: false, modalSearch: false,
...@@ -135,7 +138,7 @@ export default { ...@@ -135,7 +138,7 @@ export default {
userConfig: null, //用户页面配置信息。, userConfig: null, //用户页面配置信息。,
// userId: 1 // userId: 1
userId: this.$store.state.userInfo.userId userId: this.$store.state.userInfo.userId
} };
}, },
props: { props: {
border: { border: {
...@@ -155,7 +158,11 @@ export default { ...@@ -155,7 +158,11 @@ export default {
}, },
placeholder: { placeholder: {
type: String, type: String,
default: '请输入关键字' default: "请输入关键字"
},
size: {
type: String,
default: "default "
}, },
height: { height: {
type: Number, type: Number,
...@@ -195,7 +202,7 @@ export default { ...@@ -195,7 +202,7 @@ export default {
// 当作table使用,直接显示数据 // 当作table使用,直接显示数据
type: Array, type: Array,
default: function() { default: function() {
return [] return [];
} }
}, },
columns: { columns: {
...@@ -206,23 +213,23 @@ export default { ...@@ -206,23 +213,23 @@ export default {
action: { action: {
//接口地址 //接口地址
type: String, type: String,
default: '' default: ""
}, },
conditions: { conditions: {
//查询条件 //查询条件
type: Object, type: Object,
default: function() { default: function() {
return { return {
keys: { op: 'name', value: '', default: true } keys: { op: "name", value: "", default: true }
} };
} }
}, },
type: { type: {
type: String, type: String,
default: 'table', default: "table",
validator: function(value) { validator: function(value) {
// 这个值必须匹配下列字符串中的一个 // 这个值必须匹配下列字符串中的一个
return ['table', 'card', 'list'].indexOf(value) !== -1 return ["table", "card", "list"].indexOf(value) !== -1;
} }
}, },
span: { span: {
...@@ -231,71 +238,71 @@ export default { ...@@ -231,71 +238,71 @@ export default {
} }
}, },
created() { created() {
this.columns.forEach((u) => { this.columns.forEach(u => {
if (!u.hide) { if (!u.hide) {
u.hide = false u.hide = false;
} }
}) });
this.columnsCur = this.$u.clone(this.columns) this.columnsCur = this.$u.clone(this.columns);
}, },
mounted() { mounted() {
if (this.data&&this.data.length>0) { if (this.data && this.data.length > 0) {
this.list = this.data this.list = this.data;
return return;
} }
this.keys = '' this.keys = "";
this.intY() this.intY();
if (this.lazy==true) { if (this.lazy == true) {
return; return;
} }
this.loadUserConfig() this.loadUserConfig();
if (this.height === 0) { if (this.height === 0) {
window.onresize = () => { window.onresize = () => {
///浏览器窗口大小变化 ///浏览器窗口大小变化
return (() => { return (() => {
window.screenHeight = window.innerHeight window.screenHeight = window.innerHeight;
this.tableHeight = window.screenHeight - this.firstY - 60 this.tableHeight = window.screenHeight - this.firstY - 60;
})() })();
} };
} else { } else {
this.tableHeight = this.height this.tableHeight = this.height;
} }
//注册拖拽事件。 //注册拖拽事件。
this.$dragging.$on('dragend', (e) => { this.$dragging.$on("dragend", e => {
// console.log("dragend",e); // console.log("dragend",e);
this.saveUserconfig() this.saveUserconfig();
}) });
}, },
methods: { methods: {
//数据加载 //数据加载
load() { load() {
if (this.height == 0) { if (this.height == 0) {
this.tableHeight = window.innerHeight - this.firstY - 60 this.tableHeight = window.innerHeight - this.firstY - 60;
} }
if (this.action) { if (this.action) {
this.$api.post(this.action, this.search).then((r) => { this.$api.post(this.action, this.search).then(r => {
this.list = r.result.items this.list = r.result.items;
this.search.total = r.result.totalCount this.search.total = r.result.totalCount;
}) });
} }
}, },
columnInit() { columnInit() {
if (this.userConfig) { if (this.userConfig) {
var curColumns = [] var curColumns = [];
var config = JSON.parse(this.userConfig.content) var config = JSON.parse(this.userConfig.content);
// console.warn("2:列比对",config) // console.warn("2:列比对",config)
if (config.length == this.columnsCur.length) { if (config.length == this.columnsCur.length) {
config.map((u) => { config.map(u => {
var item = this.columnsCur.filter((c) => { var item = this.columnsCur.filter(c => {
return c.key == u.key return c.key == u.key;
}) });
if (item[0]) { if (item[0]) {
item[0].hide = u.hide item[0].hide = u.hide;
curColumns.push(item[0]) curColumns.push(item[0]);
} }
}) });
// console.warn("3:初始化列") // console.warn("3:初始化列")
this.columnsCur = curColumns this.columnsCur = curColumns;
} }
} }
}, },
...@@ -303,210 +310,209 @@ export default { ...@@ -303,210 +310,209 @@ export default {
var query = { var query = {
conditions: [ conditions: [
{ {
fieldName: 'creatorUserId', fieldName: "creatorUserId",
fieldValue: this.userId, fieldValue: this.userId,
conditionalType: 'Equal' conditionalType: "Equal"
}, },
{ {
fieldName: 'component', fieldName: "component",
fieldValue: 'Grid', fieldValue: "Grid",
conditionalType: 'Equal' conditionalType: "Equal"
}, },
{ {
fieldName: 'page', fieldName: "page",
fieldValue: window.location.pathname, fieldValue: window.location.pathname,
conditionalType: 'Equal' conditionalType: "Equal"
} }
], ],
pageSize: 1 pageSize: 1
} };
this.$api.post(`${window.systemUrl}/config/list`, query).then((r) => { this.$api.post(`${window.systemUrl}/config/list`, query).then(r => {
if (r.success) { if (r.success) {
if (r.result.length == 1) { if (r.result.length == 1) {
this.userConfig = r.result[0] this.userConfig = r.result[0];
// console.warn("1:加载用户配置") // console.warn("1:加载用户配置")
this.columnInit() this.columnInit();
} }
if (!this.configLoad) { if (!this.configLoad) {
this.easySearch() this.easySearch();
} }
this.configLoad = true this.configLoad = true;
} }
}) });
}, },
saveUserconfig() { saveUserconfig() {
let url = `${window.systemUrl}/config/update` let url = `${window.systemUrl}/config/update`;
var content = [] var content = [];
this.columnsCur.map((u) => { this.columnsCur.map(u => {
content.push({ content.push({
key: u.key, key: u.key,
hide: u.hide hide: u.hide
}) });
}) });
if (!this.userConfig) { if (!this.userConfig) {
url = `${window.systemUrl}/config/create` url = `${window.systemUrl}/config/create`;
var data = { var data = {
page: window.location.pathname, page: window.location.pathname,
component: 'Grid', component: "Grid",
key: this.$u.guid(), key: this.$u.guid(),
content: JSON.stringify(content) content: JSON.stringify(content)
} };
this.$api.post(url, data).then((r) => { this.$api.post(url, data).then(r => {
this.loadUserConfig() this.loadUserConfig();
}) });
} else { } else {
this.userConfig.content = JSON.stringify(content) this.userConfig.content = JSON.stringify(content);
this.$api.post(url, this.userConfig) this.$api.post(url, this.userConfig);
} }
}, },
//展开 //展开
expand(row, status) { expand(row, status) {
this.$emit('on-expand', row, status) this.$emit("on-expand", row, status);
}, },
//拖拽 //拖拽
onDragDrop(a, b) { onDragDrop(a, b) {
this.$emit('on-drag-drop', a, b) this.$emit("on-drag-drop", a, b);
}, },
easySearch() { easySearch() {
if (this.conditions && this.conditions.keys.default) { if (this.conditions && this.conditions.keys.default) {
//判断没有传入条件的用默认的查询 //判断没有传入条件的用默认的查询
this.conditions.keys.value = this.keys this.conditions.keys.value = this.keys;
} }
this.reload(this.conditions) this.reload(this.conditions);
}, },
undoConfig() { undoConfig() {
//列设置恢复初始化 //列设置恢复初始化
this.columnsCur = this.$u.clone(this.columns) this.columnsCur = this.$u.clone(this.columns);
this.saveUserconfig() this.saveUserconfig();
}, },
complexSearch() { complexSearch() {
var search = this.$refs.search.$children.filter((u) => { var search = this.$refs.search.$children.filter(u => {
return u.condition return u.condition;
}) });
if (search) { if (search) {
var conditions = search[0].condition var conditions = search[0].condition;
this.reload(conditions) this.reload(conditions);
} }
}, },
reload(conditions) { reload(conditions) {
var where = [] var where = [];
if (conditions) { if (conditions) {
Object.keys(conditions).forEach((u) => { Object.keys(conditions).forEach(u => {
let v = conditions[u].value let v = conditions[u].value;
let op = conditions[u].op let op = conditions[u].op;
if (!this.$u.isNull(v)) { if (!this.$u.isNull(v)) {
if (op == 'Range') { if (op == "Range") {
let times = [] let times = [];
v.map((u) => { v.map(u => {
if (!this.$u.isNull(u)) { if (!this.$u.isNull(u)) {
times.push(this.$u.toTime(u)) times.push(this.$u.toTime(u));
} }
}) });
v = times.join(',') v = times.join(",");
} else if (op.indexOf('In') > -1) { } else if (op.indexOf("In") > -1) {
v = v.join(',') v = v.join(",");
} }
if (!this.$u.isNull(v)) { if (!this.$u.isNull(v)) {
where.push({ where.push({
fieldName: u, fieldName: u,
fieldValue: v, fieldValue: v,
conditionalType: op conditionalType: op
}) });
} }
} }
}) });
} }
this.search.pageIndex = 1 this.search.pageIndex = 1;
this.search.conditions = where this.search.conditions = where;
this.load() this.load();
}, },
pageChange(page) { pageChange(page) {
this.search.page = page this.search.page = page;
this.search.pageIndex = page this.search.pageIndex = page;
this.load() this.load();
}, },
pageSizeChange(size) { pageSizeChange(size) {
this.search.pageSize = size this.search.pageSize = size;
this.search.pageIndex = 1 this.search.pageIndex = 1;
this.load() this.load();
}, },
columnChange(item, i) { columnChange(item, i) {
item.hide = !item.hide item.hide = !item.hide;
this.$set(this.columnsCur, item, i) this.$set(this.columnsCur, item, i);
this.saveUserconfig() this.saveUserconfig();
}, },
selectionChange(items) { selectionChange(items) {
this.$emit('on-selection-change', items) this.$emit("on-selection-change", items);
this.selectItems = items this.selectItems = items;
this.footerToolbar = items.length > 0 this.footerToolbar = items.length > 0;
}, },
onSelect(rows, row) { onSelect(rows, row) {
this.$emit('on-selection-change', rows, row) this.$emit("on-selection-change", rows, row);
}, },
intY() { intY() {
if (this.$refs.table != undefined) { if (this.$refs.table != undefined) {
this.firstY = this.$refs.table.$el.getBoundingClientRect().top this.firstY = this.$refs.table.$el.getBoundingClientRect().top;
} }
}, },
selectAll(status) { selectAll(status) {
this.$refs.table.selectAll(status) this.$refs.table.selectAll(status);
}, }
}, },
computed: { computed: {
columnsNow() { columnsNow() {
var cols = this.columnsCur.filter((u) => { var cols = this.columnsCur.filter(u => {
if (u.code) { if (u.code) {
u.render = (h, params) => { u.render = (h, params) => {
let values = u.key let values = u.key;
let type = 'text' let type = "text";
if (u.category) { if (u.category) {
type = u.category type = u.category;
} }
return h('state', { return h("state", {
props: { props: {
code: u.code, code: u.code,
type: type, type: type,
value: params.row[values] + '' value: params.row[values] + ""
} }
}) });
} };
} }
if (u.type == 'user') { if (u.type == "user") {
u.render = (h, params) => { u.render = (h, params) => {
let values = u.key let values = u.key;
return h('User', { return h("User", {
props: { props: {
value: params.row[values] value: params.row[values]
} }
}) });
} };
} }
if (u.type == 'date' || u.type == 'dateTime') { if (u.type == "date" || u.type == "dateTime") {
u.render = (h, params) => { u.render = (h, params) => {
let values = u.key let values = u.key;
return h('DTSpan', { return h("DTSpan", {
props: { props: {
type: u.type, type: u.type,
value: params.row[values] value: params.row[values]
} }
}) });
} };
} }
return !u.hide return !u.hide;
}) });
return cols return cols;
} }
}, },
watch:{ watch: {
"data.length"(){ "data.length"() {
this.list=this.data; this.list = this.data;
}, },
"height"() height() {
{ this.tableHeight = this.height;
this.tableHeight=this.height;
} }
} }
} };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
...@@ -515,7 +521,6 @@ export default { ...@@ -515,7 +521,6 @@ export default {
// height: 100%; // height: 100%;
.tableCommon { .tableCommon {
width: 100%; width: 100%;
} }
.tip { .tip {
display: inline; display: inline;
...@@ -531,7 +536,7 @@ export default { ...@@ -531,7 +536,7 @@ export default {
font-size: 14px; font-size: 14px;
padding: 0 2px; padding: 0 2px;
} }
.tableCommon tr td .ivu-table-cell { .tableCommon tr td .ivu-table-cell {
padding: 0 5px; padding: 0 5px;
} }
...@@ -602,4 +607,5 @@ export default { ...@@ -602,4 +607,5 @@ export default {
color: #249e91; color: #249e91;
} }
} }
</style> </style>
\ No newline at end of file
export default { export default {
locale: 'zh-CN', locale: 'zh-CN',
language: '简体中文', language: '简体中文',
menu: { menu: {
i18n: '多语言' i18n: '多语言'
},
page: {
login: {
title: '登录',
remember: '自动登录',
forgot: '忘记密码',
submit: '登录',
other: '其它登录方式',
signup: '注册账户'
}, },
page: { register: {
login: { title: '注册',
title: '登录', submit: '注册',
remember: '自动登录', other: '使用已有账户登录'
forgot: '忘记密码',
submit: '登录',
other: '其它登录方式',
signup: '注册账户'
},
register: {
title: '注册',
submit: '注册',
other: '使用已有账户登录'
},
exception: {
e403: '抱歉,你无权访问该页面',
e404: '抱歉,你访问的页面不存在',
e500: '抱歉,服务器出错了',
btn: '返回首页'
},
i18n: {
content: '你好,很高兴认识你!'
}
}, },
user: { exception: {
id: 'ID', e403: '抱歉,你无权访问该页面',
userName: '姓名', e404: '抱歉,你访问的页面不存在',
name: '姓名', e500: '抱歉,服务器出错了',
cardTypeId: '卡类型ID', btn: '返回首页'
cardNo: '员工编号',
gender: '性别',
birthday: '出生年月',
title: '职称',
workLicense: '上岗证',
equipment: '可操控设备',
email: '邮箱',
phone: '电话',
department: '所属部门',
jobName: '职位名称',
role: '角色',
account: '用户帐号',
employeeNo: '员工编号',
modifyTime: '修改时间',
remark: '备注',
degreeId: '学历',
degree: '学历',
departmentId: '部门id',
national: '国籍',
status: '状态',
creatorUserId: '创建人',
creationTime: '创建时间',
lastModifierUserId: '最后修改人',
lastModificationTime: '最后修改时间',
accountId: '用户账号',
isDeleted: '是否删除',
positionId: '职位',
licensedToWork: '上岗证',
titleId: '职称',
jobNo: '工号',
departmentTitle: '所属部门',
roleTitles: '角色名称',
enableEquip: '可操控设备'
}, },
resource: { i18n: {
id: '编号', content: '你好,很高兴认识你!'
creationTime: '创建时间', }
creatorUserId: '创建人', },
lastModificationTime: '更新时间', user: {
lastModifierUserId: '更新人', id: 'ID',
isDeleted: '', userName: '姓名',
deletionTime: '', name: '姓名',
deleterUserId: '', cardTypeId: '卡类型ID',
resourceId: '资源编号', cardNo: '员工编号',
resourceCode: '资源编号', gender: '性别',
nameOfResource: '资源名称', birthday: '出生年月',
specifications: '规格', title: '职称',
measuringUnit: '计量单位', workLicense: '上岗证',
qualityCharacteristics: '质量特性', equipment: '可操控设备',
batchNo: '批次号', email: '邮箱',
storeId: '库位ID', phone: '电话',
storeTitle: '库位', department: '所属部门',
state: '状态', jobName: '职位名称',
resourceType: '资源类型', role: '角色',
totalNum: '总数', account: '用户帐号',
numberAvailable: '库存', employeeNo: '员工编号',
count: '数量', modifyTime: '修改时间',
action: '操作', remark: '备注',
creationTime: '操作时间', degreeId: '学历',
libraryTube: '操作人', degree: '学历',
}, departmentId: '部门id',
MaterialPowder: { national: '国籍',
code: '粉末编码', status: '状态',
name: '名称', creatorUserId: '创建人',
brand: '牌号', creationTime: '创建时间',
specifications: '规格', lastModifierUserId: '最后修改人',
originalManufacturer: '原厂家', lastModificationTime: '最后修改时间',
batch: '批次号', accountId: '用户账号',
totalInventory: '入库总量(kg)', isDeleted: '是否删除',
remainingAmount: '剩余量(kg)', positionId: '职位',
remainingAmount1: '实际剩余量(kg)', licensedToWork: '上岗证',
changeState: '盈亏', titleId: '职称',
unitPrice: '单价(元/kg)', jobNo: '工号',
certificateOfApproval: '合格证', departmentTitle: '所属部门',
storeId: '库位Id', roleTitles: '角色名称',
storeTitle: '库位', enableEquip: '可操控设备'
location: '位置', },
category: '类别', resource: {
reinspectionDate: '复验日期', id: '编号',
reinspectionStatus: '复验状态', creationTime: '创建时间',
id: '编号', creatorUserId: '创建人',
creationTime: '创建时间', lastModificationTime: '更新时间',
lastModificationTime: '更新时间', lastModifierUserId: '更新人',
lastModifierUserId: '更新人', isDeleted: '',
deletionTime: '', deletionTime: '',
deleterUserId: '', deleterUserId: '',
isDeleted: '', resourceId: '资源编号',
creator: "经办人", resourceCode: '资源编号',
creatorUserId: "经办人Id", nameOfResource: '资源名称',
storeCode: '入库编号', specifications: '规格',
minNum: '最低库存', measuringUnit: '计量单位',
remark: '备注', qualityCharacteristics: '质量特性',
total: '总数', batchNo: '批次号',
batchNo: '批次号', storeId: '库位ID',
}, storeTitle: '库位',
waitReview: { state: '状态',
id: '', resourceType: '资源类型',
brand: '粉末牌号', totalNum: '总数',
name: '粉末名称', numberAvailable: '库存',
specifications: '粉末规格', count: '数量',
batchNo: '批次号', action: '操作',
originalManufacturer: '生产厂家', creationTime: '操作时间',
reinspectionDate: '复验日期', libraryTube: '操作人',
remainingAmount: '库存余量', },
storeId: '货架号', MaterialPowder: {
location: '所处位置', code: '粉末编码',
category: '粉末类别', name: '名称',
reinspectionStatus: '复验状态', brand: '牌号',
}, specifications: '规格',
MaterialPlacode: { originalManufacturer: '原厂家',
id: '', batch: '批次号',
substrateCoding: '基板编码', totalInventory: '入库总量(kg)',
name: '名称', remainingAmount: '剩余量(kg)',
brand: '牌号', remainingAmount1: '实际剩余量(kg)',
specifications: '规格', changeState: '盈亏',
baseMaterial: '基板材质', unitPrice: '单价(元/kg)',
materialNumber: '材料编号', certificateOfApproval: '合格证',
applyToEquipment: '适用设备', storeId: '库位Id',
thickness: '厚度(mm)', storeTitle: '库位',
state: '状态', location: '位置',
location: '所处位置', category: '类别',
inventory: '库存', reinspectionDate: '复验日期',
minNum: '最低库存', reinspectionStatus: '复验状态',
availableInStock: '可用库存', id: '编号',
remainingAmount1: '实际库存', creationTime: '创建时间',
creator: '经办人', lastModificationTime: '更新时间',
storeId: '库位Id', lastModifierUserId: '更新人',
storeTitle: '库位', deletionTime: '',
changeState: '盈亏', deleterUserId: '',
remark: '备注', isDeleted: '',
total: '总数', creator: "经办人",
code: '基板编码', creatorUserId: "经办人Id",
storeCode: '入库编号',
minNum: '最低库存',
remark: '备注',
total: '总数',
batchNo: '批次号',
},
waitReview: {
id: '',
brand: '粉末牌号',
name: '粉末名称',
specifications: '粉末规格',
batchNo: '批次号',
originalManufacturer: '生产厂家',
reinspectionDate: '复验日期',
remainingAmount: '库存余量',
storeId: '货架号',
location: '所处位置',
category: '粉末类别',
reinspectionStatus: '复验状态',
},
MaterialPlacode: {
id: '',
substrateCoding: '基板编码',
name: '名称',
brand: '牌号',
specifications: '规格',
baseMaterial: '基板材质',
materialNumber: '材料编号',
applyToEquipment: '适用设备',
thickness: '厚度(mm)',
state: '状态',
location: '所处位置',
inventory: '库存',
minNum: '最低库存',
availableInStock: '可用库存',
remainingAmount1: '实际库存',
creator: '经办人',
storeId: '库位Id',
storeTitle: '库位',
changeState: '盈亏',
remark: '备注',
total: '总数',
code: '基板编码',
}, },
MaterialScraper: { MaterialScraper: {
id: '编号', id: '编号',
creationTime: '创建时间', creationTime: '创建时间',
creatorUserId: '创建人', creatorUserId: '创建人',
lastModificationTime: '更新时间', lastModificationTime: '更新时间',
lastModifierUserId: '更新人', lastModifierUserId: '更新人',
isDeleted: '', isDeleted: '',
deletionTime: '', deletionTime: '',
deleterUserId: '', deleterUserId: '',
code: '刮刀编号', code: '刮刀编号',
materialSpecification: '材质/规格', materialSpecification: '材质/规格',
applyEquipment: '适用设备', applyEquipment: '适用设备',
freeCount: '剩余套数', freeCount: '剩余套数',
remainingAmount1: '实际套数', remainingAmount1: '实际套数',
inCount: '入库套数', inCount: '入库套数',
quantityCount: '每套数量(片)', quantityCount: '每套数量(片)',
price: '单价(元/套)', price: '单价(元/套)',
storageTime: '入库时间', storageTime: '入库时间',
location: '所处位置', location: '所处位置',
minNum: '最低库存', minNum: '最低库存',
creator: '经办人', creator: '经办人',
storeId: '库位Id', storeId: '库位Id',
storeTitle: '库位', storeTitle: '库位',
changeState: '盈亏', changeState: '盈亏',
remark: '备注', remark: '备注',
total: '总数', total: '总数',
specifications: '材质/规格', specifications: '材质/规格',
applyToEquipment: '适用设备', applyToEquipment: '适用设备',
unitPrice: '单价(元/套)', unitPrice: '单价(元/套)',
}, },
order_material: { order_material: {
id: '编号', id: '编号',
creationTime: '创建时间', creationTime: '创建时间',
creatorUserId: '创建人', creatorUserId: '创建人',
lastModificationTime: '更新时间', lastModificationTime: '更新时间',
lastModifierUserId: '更新人', lastModifierUserId: '更新人',
isDeleted: '', isDeleted: '',
deleterUserId: '', deleterUserId: '',
deletionTime: '', deletionTime: '',
code: '料单编号', code: '料单编号',
name: '料单名称', name: '料单名称',
platesnum: '基板数量', platesnum: '基板数量',
quotaPerBoard: '每板定额', quotaPerBoard: '每板定额',
fileTemplate: '文件模版', fileTemplate: '文件模版',
remarks: '备注', remarks: '备注',
extend: '扩展字段', extend: '扩展字段',
orderids: '订单编号', orderids: '订单编号',
status: '料单状态', status: '料单状态',
}, },
menu: { menu: {
id: '', id: '',
creationTime: '', creationTime: '',
creatorUserId: '', creatorUserId: '',
lastModificationTime: '', lastModificationTime: '',
lastModifierUserId: '', lastModifierUserId: '',
isDeleted: '', isDeleted: '',
deletionTime: '', deletionTime: '',
deleterUserId: '', deleterUserId: '',
name: '名称', name: '名称',
upId: '父级', upId: '父级',
upTitle: '上级名称', upTitle: '上级名称',
type: '类型', type: '类型',
code: '编码', code: '编码',
icon: '图标', icon: '图标',
target: '打开方式', target: '打开方式',
url: '地址', url: '地址',
status: '显示', status: '显示',
description: '备注', description: '备注',
source: '来源', source: '来源',
app: '系统', app: '系统',
priority: '排序', priority: '排序',
}, },
order_material: { order_material: {
id: '编号', id: '编号',
creationTime: '创建时间', creationTime: '创建时间',
creatorUserId: '创建人', creatorUserId: '创建人',
lastModificationTime: '更新时间', lastModificationTime: '更新时间',
lastModifierUserId: '更新人', lastModifierUserId: '更新人',
isDeleted: '', isDeleted: '',
deleterUserId: '', deleterUserId: '',
deletionTime: '', deletionTime: '',
code: '料单编号', code: '料单编号',
name: '料单名称', name: '料单名称',
platesnum: '基板数量', platesnum: '基板数量',
quotaPerBoard: '每板定额', quotaPerBoard: '每板定额',
fileTemplate: '文件模版', fileTemplate: '文件模版',
remarks: '备注', remarks: '备注',
extend: '扩展字段', extend: '扩展字段',
orderids: '订单编号', orderids: '订单编号',
status: '料单状态', status: '料单状态',
}, },
business_code_config: { business_code_config: {
id: '编号', id: '编号',
businessName: '业务名称', businessName: '业务名称',
businessCode: '业务代号', businessCode: '业务代号',
prefix: '编码前缀', prefix: '编码前缀',
maxSerial: '最大序列号', maxSerial: '最大序列号',
day: '清零规则', day: '清零规则',
remark: '备注', remark: '备注',
creationTime: '创建时间', creationTime: '创建时间',
creatorUserId: '创建人', creatorUserId: '创建人',
lastModificationTime: '更新时间', lastModificationTime: '更新时间',
lastModifierUserId: '更新人', lastModifierUserId: '更新人',
isDeleted: '', isDeleted: '',
deletionTime: '', deletionTime: '',
deleterUserId: '', deleterUserId: '',
}, },
method: { method: {
id: 'Id', id: 'Id',
title: '名称', title: '名称',
methodDescription: '方法描述', methodDescription: '方法描述',
controller: '模块', controller: '模块',
controllerDescription: '模块描述', controllerDescription: '模块描述',
service: '服务', service: '服务',
serviceDescription: '服务描述', serviceDescription: '服务描述',
url: '地址', url: '地址',
httpMethod: '方法', httpMethod: '方法',
level: '级别', level: '级别',
creatorUserId: '创建人呢', creatorUserId: '创建人呢',
lastModificationTime: '修改时间', lastModificationTime: '修改时间',
lastModifierUserId: '修改人', lastModifierUserId: '修改人',
isDeleted: '是否删除', isDeleted: '是否删除',
deletionTime: '删除时间', deletionTime: '删除时间',
deleterUserId: '删除用户', deleterUserId: '删除用户',
creationTime: '创建时间', creationTime: '创建时间',
}, },
mes_order_watch: { //订单监控 mes_order_watch: { //订单监控
id: '', id: '',
status: '订单状态', status: '订单状态',
mesCode: '订单编号', mesCode: '订单编号',
demandStartDate: '计划开始时间', demandStartDate: '计划开始时间',
demandFinishDate: '计划结束时间', demandFinishDate: '计划结束时间',
actualStartDate: '实际开始时间', actualStartDate: '实际开始时间',
actualFinishDate: '实际结束时间', actualFinishDate: '实际结束时间',
productName: '产品名称', productName: '产品名称',
drawnNumber: '图号', drawnNumber: '图号',
routingType: '工艺类型', routingType: '工艺类型',
orderWarning: '订单预警', orderWarning: '订单预警',
startWarning: '开工预警', startWarning: '开工预警',
finishWarning: '完工预警', finishWarning: '完工预警',
jindu: '订单进度', jindu: '订单进度',
startCount: '开工数', startCount: '开工数',
stopCount: '暂停数', stopCount: '暂停数',
finishCount: '完工数', finishCount: '完工数',
remark: '备注', remark: '备注',
productingpreparationpeople: '车间', productingpreparationpeople: '车间',
detailId: '工序Id', detailId: '工序Id',
taskSeq: '工序号', taskSeq: '工序号',
detailName: '工序名称', detailName: '工序名称',
routingCode: '工艺文件编号', routingCode: '工艺文件编号',
userNames: '人员名称', userNames: '人员名称',
userIds: '', userIds: '',
routingHeaderId: '工艺规程id', routingHeaderId: '工艺规程id',
dispatchExecuteId: '工单执行表id' dispatchExecuteId: '工单执行表id'
}, },
order_pause: { order_pause: {
id: '', id: '',
creationTime: '暂停时间', creationTime: '暂停时间',
creatorUserId: '', creatorUserId: '',
creator: '暂停人', creator: '暂停人',
lastModificationTime: '恢复时间', lastModificationTime: '恢复时间',
lastModifierUserId: '', lastModifierUserId: '',
laster: '恢复人', laster: '恢复人',
isDeleted: '', isDeleted: '',
deletionTime: '', deletionTime: '',
deleterUserId: '', deleterUserId: '',
orderId: '订单id', orderId: '订单id',
mesCode: '订单编号', mesCode: '订单编号',
productId: '产品id', productId: '产品id',
productName: '产品名称', productName: '产品名称',
drawnNumber: '产品图号', drawnNumber: '产品图号',
pauseCause: '暂停原因', pauseCause: '暂停原因',
remark: '描述', remark: '描述',
path: '附件路径', path: '附件路径',
relatedPerson: '相关人员', relatedPerson: '相关人员',
relatedPersoner: '相关人员', relatedPersoner: '相关人员',
}, },
waitOpened: { waitOpened: {
id: '', id: '',
orderId: '订单主键', orderId: '订单主键',
serialNumber: '合格证编号', serialNumber: '合格证编号',
mesCode: '订单编号', mesCode: '订单编号',
drawnNumber: '图号', drawnNumber: '图号',
productId: '产品id', productId: '产品id',
productName: '产品名称', productName: '产品名称',
quantity: '计划数量', quantity: '计划数量',
productQuantity: '合格数量', productQuantity: '合格数量',
actualFinishDate: '完成时间', actualFinishDate: '完成时间',
productingPreparationPeople: '承制单位', productingPreparationPeople: '承制单位',
uncertificateQuantity: '待开具数量', uncertificateQuantity: '待开具数量',
status: '状态', status: '状态',
userUnit: '用户单位', userUnit: '用户单位',
taskBased: '任务依据', taskBased: '任务依据',
productCode: '产品代号(图号)', productCode: '产品代号(图号)',
productSerialNumber: '产品编号', productSerialNumber: '产品编号',
productStatus: '产品状态', productStatus: '产品状态',
materialCode: '原材料牌号', materialCode: '原材料牌号',
materialSerialNumber: '原材料批次号', materialSerialNumber: '原材料批次号',
addMaterialBatch: '增材制造批次号', addMaterialBatch: '增材制造批次号',
materialCertificationNumber: '原材合格证编号', materialCertificationNumber: '原材合格证编号',
conclusion: '结论', conclusion: '结论',
examUser: '检验员', examUser: '检验员',
approveUser: '批准人', approveUser: '批准人',
approveDate: '批准时间', approveDate: '批准时间',
remark: '备注', remark: '备注',
certificateId: '合格证主键', certificateId: '合格证主键',
name: '检验项目', name: '检验项目',
require: '检验要求', require: '检验要求',
result: '测试结果', result: '测试结果',
creationTime: '创建时间', creationTime: '创建时间',
examDate: '检验时间', examDate: '检验时间',
}, },
StoreroomLocation: { //库房库位 StoreroomLocation: { //库房库位
upId: '', upId: '',
materialType: '', materialType: '',
storeroomTiitle: '', storeroomTiitle: '',
storeroomId: '', storeroomId: '',
recommend: '', recommend: '',
status: '', status: '',
sizes: '', sizes: '',
levels: '', levels: '',
departmentType: '', departmentType: '',
userName: '', userName: '',
userIds: '', userIds: '',
title: '库位名称', title: '库位名称',
material_type: '所属资源', material_type: '所属资源',
department_name: '所属部门', department_name: '所属部门',
user_name: '库管员', user_name: '库管员',
description: '位置', description: '位置',
}, },
bug: { //bug bug: { //bug
id: 'ID', id: 'ID',
level: '级别', level: '级别',
title: '标题', title: '标题',
pagePath: '地址', pagePath: '地址',
status: '状态', status: '状态',
creationTime: '创建时间', creationTime: '创建时间',
createor: '创建人', createor: '创建人',
creatorUserId: '创建人', creatorUserId: '创建人',
lastModificationTime: '处理时间', lastModificationTime: '处理时间',
auditUser: '处理人', auditUser: '处理人',
alloter: '指派给', alloter: '指派给',
lastModifierUserId: '处理人', lastModifierUserId: '处理人',
content: '内容', content: '内容',
remark: 'bug处理', remark: 'bug处理',
time: '工时', time: '工时',
actionName: '处理人', actionName: '处理人',
workHours: '工时', workHours: '工时',
}, },
DipartLocation: { DipartLocation: {
name: "部门", name: "部门",
organizationType: "组织类型", organizationType: "组织类型",
status: '是否生产班组', status: '是否生产班组',
departcode: '部门编号', departcode: '部门编号',
department: '部门名称', department: '部门名称',
cityName: '省市县', cityName: '省市县',
creationTime: '创建时间', creationTime: '创建时间',
upMent: '上级部门', upMent: '上级部门',
}, },
instance: { instance: {
id: '主键', id: '主键',
workflowStatus: '工作流状态', //处理中\1;审核通过\2;终止\3; workflowStatus: '工作流状态', //处理中\1;审核通过\2;终止\3;
instanceId: '流程Id', instanceId: '流程Id',
name: '名称', name: '名称',
status: '状态', //启用0;禁用1; status: '状态', //启用0;禁用1;
version: '版本', version: '版本',
processingStatus: '审核状态', processingStatus: '审核状态',
rejectStatus: '驳回状态', rejectStatus: '驳回状态',
endStatus: '完成状态', endStatus: '完成状态',
terminateStatus: '终止状态', terminateStatus: '终止状态',
creationTime: '创建时间', //记录创建时间 creationTime: '创建时间', //记录创建时间
creatorUserId: '创建人Id', creatorUserId: '创建人Id',
creator: "创建人", creator: "创建人",
baseDataUrl: '基础表单地址', baseDataUrl: '基础表单地址',
updateBaseStatusUrl: '更新状态地址', updateBaseStatusUrl: '更新状态地址',
}, },
form: { form: {
id: '', id: '',
formId: '对应表单主键', formId: '对应表单主键',
name: '表单名称', name: '表单名称',
status: '状态', status: '状态',
version: '版本', version: '版本',
creationTime: '创建时间', creationTime: '创建时间',
creator: "创建人", creator: "创建人",
creatorUserId: '创建人Id', creatorUserId: '创建人Id',
lastModificationTime: '处理时间', lastModificationTime: '处理时间',
lastModifierUserId: '处理人', lastModifierUserId: '处理人',
deleterUserId: '', deleterUserId: '',
deletionTime: '', deletionTime: '',
isDeleted: '', isDeleted: '',
}, },
form_column: { form_column: {
id: '', id: '',
formId: '表单主键', formId: '表单主键',
cnName: '中文名称', cnName: '中文名称',
enName: '英文名称', enName: '英文名称',
dataType: '数据类型', dataType: '数据类型',
dicSource: '', dicSource: '',
dataLength: '数据长度', dataLength: '数据长度',
required: '必填', required: '必填',
controlType: '控件类型', controlType: '控件类型',
dicSource: '字典项', dicSource: '字典项',
align: '对齐方式', align: '对齐方式',
remark: '备注', remark: '备注',
creationTime: '创建时间', creationTime: '创建时间',
creatorUserId: '创造者的用户id', creatorUserId: '创造者的用户id',
lastModificationTime: '最后修改时间', lastModificationTime: '最后修改时间',
lastModifierUserId: '最后修改的用户id', lastModifierUserId: '最后修改的用户id',
isDeleted: '被删除', isDeleted: '被删除',
deleterUserId: '删除人的用户id', deleterUserId: '删除人的用户id',
deletionTime: '删除时间', deletionTime: '删除时间',
}, },
Message: { Message: {
id: '', id: '',
creationTime: '', creationTime: '',
creatorUserId: '', creatorUserId: '',
lastModificationTime: '', lastModificationTime: '',
lastModifierUserId: '', lastModifierUserId: '',
isDeleted: '', isDeleted: '',
deletionTime: '', deletionTime: '',
deleterUserId: '', deleterUserId: '',
title: '标题', title: '标题',
content: '内容', content: '内容',
state: '状态', state: '状态',
}, },
node: { node: {
id: '', id: '',
schemaId: '工作流Id', schemaId: '工作流Id',
formId: '表单', formId: '表单',
name: '节点名称', name: '节点名称',
operation: '审核类型', operation: '审核类型',
rejectOption: '驳回类型', rejectOption: '驳回类型',
category: '类别', category: '类别',
userIdList: "审批人", userIdList: "审批人",
roleIdList: "审批角色", roleIdList: "审批角色",
isFixed: "固定", isFixed: "固定",
// creationTime:'创建时间', // creationTime:'创建时间',
// creatorUserId:'创造者的用户id', // creatorUserId:'创造者的用户id',
// lastModificationTime:'最后修改时间', // lastModificationTime:'最后修改时间',
// lastModifierUserId:'最后修改的用户id', // lastModifierUserId:'最后修改的用户id',
// isDeleted:'被删除', // isDeleted:'被删除',
// deleterUserId:'删除人的用户id', // deleterUserId:'删除人的用户id',
// deletionTime:'删除时间', // deletionTime:'删除时间',
}, },
orderInfo: { //订单详细信息 orderInfo: { //订单详细信息
id: '', id: '',
orderId: '订单主键', orderId: '订单主键',
mesCode: '订单编号', mesCode: '订单编号',
drawnNumber: '图号', drawnNumber: '图号',
productId: '产品id', productId: '产品id',
productName: '产品名称', productName: '产品名称',
taskType: '任务类型', taskType: '任务类型',
quantity: '计划数量', quantity: '计划数量',
stage: '阶段', stage: '阶段',
quantity: '数量', quantity: '数量',
materialId: '材料', materialId: '材料',
routing_Method: '工艺方法', routing_Method: '工艺方法',
outer_Envelope_Size: '外包络尺寸', outer_Envelope_Size: '外包络尺寸',
demandStartDate: '开始时间', demandStartDate: '开始时间',
demandFinishDate: '完成时间', demandFinishDate: '完成时间',
qualifiedQuantity: '合格数量', qualifiedQuantity: '合格数量',
guestName: '甲方客户', guestName: '甲方客户',
printSupply: '3D打印承制单', printSupply: '3D打印承制单',
functionaryOffice: '厂内责任机关', functionaryOffice: '厂内责任机关',
mainDepartmentId: '厂内主体责任部门', mainDepartmentId: '厂内主体责任部门',
status: '状态', status: '状态',
taskInputDate: '任务输入日期', taskInputDate: '任务输入日期',
taskRequire: '任务节点要求', taskRequire: '任务节点要求',
putintDocmentCode: '甲方投产输入文件(编号)', putintDocmentCode: '甲方投产输入文件(编号)',
technologyDocmentCode: '甲方技术输入文件(编号)', technologyDocmentCode: '甲方技术输入文件(编号)',
outerDrawnNumber: '外部图号/模型号', outerDrawnNumber: '外部图号/模型号',
modelVersion: '模型版本', modelVersion: '模型版本',
taskCode: '甲方任务号', taskCode: '甲方任务号',
designer: '甲方设计人员', designer: '甲方设计人员',
officeFunctionary: '厂内机关负责人', officeFunctionary: '厂内机关负责人',
mainRoutingPeople: '厂内主工艺人员', mainRoutingPeople: '厂内主工艺人员',
remark: '备注', remark: '备注',
batchNumber: '批次号', batchNumber: '批次号',
projectNumber: '项目号', projectNumber: '项目号',
urgencyLevel: '紧急程度', urgencyLevel: '紧急程度',
}, },
materialInfo: { //料单送审详情 materialInfo: { //料单送审详情
id: '', id: '',
documentCode: '文档编号', documentCode: '文档编号',
platesNum: '板数', platesNum: '板数',
perBoard: '每板定额', perBoard: '每板定额',
powderName: '粉末名称', powderName: '粉末名称',
powderBrand: '粉末牌号', powderBrand: '粉末牌号',
powderSpec: '粉末规格', powderSpec: '粉末规格',
powderCategory: '粉末类别', powderCategory: '粉末类别',
powderTotal: '预估粉末总量', powderTotal: '预估粉末总量',
partHeight: '预估零件高度', partHeight: '预估零件高度',
PlacodeName: '基板名称', PlacodeName: '基板名称',
PlacodeBrand: '基板牌号', PlacodeBrand: '基板牌号',
PlacodeSpec: '基板规格', PlacodeSpec: '基板规格',
PlacodeDevice: '基板适用设备', PlacodeDevice: '基板适用设备',
Placodeland: '基板厚度下限', Placodeland: '基板厚度下限',
PlacodeTotal: '基板总量', PlacodeTotal: '基板总量',
ScraperSpec: '刮刀规格', ScraperSpec: '刮刀规格',
ScraperTotal: '刮刀数量', ScraperTotal: '刮刀数量',
remark: '备注' remark: '备注'
}, },
Unqualified: { Unqualified: {
unqualifiedCode: "审理单编号", unqualifiedCode: "审理单编号",
department: "申请部门", department: "申请部门",
customer: "客户名称", customer: "客户名称",
outsourcing: "外包供方名称", outsourcing: "外包供方名称",
product: "产品名称", product: "产品名称",
material: "材料牌号", material: "材料牌号",
quantity: "数量", quantity: "数量",
code: "代号", code: "代号",
problemDesc: "问题描述", problemDesc: "问题描述",
inspectionPerson: "检验员", inspectionPerson: "检验员",
inspectionDate: "检验日期", inspectionDate: "检验日期",
}, },
handleList: { //待办事宜 handleList: { //待办事宜
id: 'id', id: 'id',
schemaId: '审批类型Id', schemaId: '审批类型Id',
schemaName: '审批类型', schemaName: '审批类型',
code: '编号', code: '编号',
status: '状态', status: '状态',
startRecordId: '开始节点Id', startRecordId: '开始节点Id',
currentNodeId: '当前环节Id', currentNodeId: '当前环节Id',
currentNodeName: '当前环节', currentNodeName: '当前环节',
nextNodeId: '下一环节Id', nextNodeId: '下一环节Id',
nextNodeName: '下一环节', nextNodeName: '下一环节',
creatorUserId: '创建用户Id', creatorUserId: '创建用户Id',
creator: '创建人', creator: '创建人',
creationTime: '创建时间', creationTime: '创建时间',
}, },
processList: { //工艺规程列表 processList: { //工艺规程列表
id: 'id', id: 'id',
productName: '产品名称', productName: '产品名称',
name: '工艺名称', name: '工艺名称',
routingType: '', routingType: '',
routingTypeDesc: '工艺类型', routingTypeDesc: '工艺类型',
version: '文档版本', version: '文档版本',
code: '规程编号', code: '规程编号',
}, },
OrderDataReview: { //数据审查 OrderDataReview: { //数据审查
id: 'id', id: 'id',
code: '文件编号', code: '文件编号',
creationTime: '创建时间', creationTime: '创建时间',
creatorUserId: '创建用户Id', creatorUserId: '创建用户Id',
lastModificationTime: '最后修改时间', lastModificationTime: '最后修改时间',
lastModifierUserId: '最后修改人id', lastModifierUserId: '最后修改人id',
repair_file_name: '修复文件', repair_file_name: '修复文件',
repair_file_notes: '', repair_file_notes: '',
repair_file_status: '修复文件状态', repair_file_status: '修复文件状态',
repair_file_url: '修复文件地址', repair_file_url: '修复文件地址',
slicing_file_name: '切片文件', slicing_file_name: '切片文件',
slicing_file_notes: '', slicing_file_notes: '',
slicing_file_status: '切片文件状态', slicing_file_status: '切片文件状态',
slicing_file_url: '切片文件地址', slicing_file_url: '切片文件地址',
supporting_file_name: '支撑文件', supporting_file_name: '支撑文件',
supporting_file_url: "支撑文件地址", supporting_file_url: "支撑文件地址",
supporting_file_notes: '', supporting_file_notes: '',
supporting_file_status: '支撑文件状态', supporting_file_status: '支撑文件状态',
}, },
Customer: { //客户管理 Customer: { //客户管理
id: '', id: '',
creationTime: '', creationTime: '',
creatorUserId: '', creatorUserId: '',
lastModificationTime: '', lastModificationTime: '',
lastModifierUserId: '', lastModifierUserId: '',
isDeleted: '', isDeleted: '',
deletionTime: '', deletionTime: '',
deleterUserId: '', deleterUserId: '',
name: '客户名称', name: '客户名称',
abbre: '客户简称', abbre: '客户简称',
address: '邮政地址', address: '邮政地址',
principal: '负责人', principal: '负责人',
telephone: '办公电话', telephone: '办公电话',
mobile: '手机', mobile: '手机',
type: '客户类型', type: '客户类型',
area: '客户区域', area: '客户区域',
isInform: '是否报备', isInform: '是否报备',
status: '状态', status: '状态',
notes: '备注', notes: '备注',
code: '客户编码', code: '客户编码',
trade: '行业', trade: '行业',
}, },
Shop: { Shop: {
id: '', id: '',
creationTime: '', creationTime: '',
creatorUserId: '', creatorUserId: '',
lastModificationTime: '', lastModificationTime: '',
lastModifierUserId: '', lastModifierUserId: '',
isDeleted: '', isDeleted: '',
deletionTime: '', deletionTime: '',
deleterUserId: '', deleterUserId: '',
name: '组织名称', name: '组织名称',
upId: '上层组织id', upId: '上层组织id',
customerId: '客户id', customerId: '客户id',
principal: '负责人', principal: '负责人',
telephone: '办公电话', telephone: '办公电话',
mobile: '手机', mobile: '手机',
status: '状态', status: '状态',
notes: '备注', notes: '备注',
}, },
Project: { Project: {
id: '', id: '',
creationTime: '', creationTime: '',
creatorUserId: '', creatorUserId: '',
lastModificationTime: '', lastModificationTime: '',
lastModifierUserId: '', lastModifierUserId: '',
isDeleted: '', isDeleted: '',
deletionTime: '', deletionTime: '',
deleterUserId: '', deleterUserId: '',
name: '项目名称', name: '项目名称',
customerId: '客户Id', customerId: '客户Id',
shopId: '主管部门', shopId: '主管部门',
stage: '销售阶段', stage: '销售阶段',
principal: '负责人', principal: '负责人',
isInform: '是否报备', isInform: '是否报备',
status: '状态', status: '状态',
notes: '备注', notes: '备注',
budget: '预算(元)', budget: '预算(元)',
}, },
Follow: { Follow: {
id: '', id: '',
creationTime: '', creationTime: '',
creatorUserId: '', creatorUserId: '',
lastModificationTime: '', lastModificationTime: '',
lastModifierUserId: '', lastModifierUserId: '',
isDeleted: '', isDeleted: '',
deletionTime: '', deletionTime: '',
deleterUserId: '', deleterUserId: '',
projectId: '项目Id', projectId: '项目Id',
customerId: '客户Id', customerId: '客户Id',
userId: '销售人员Id', userId: '销售人员Id',
type: '跟进类型', type: '跟进类型',
time: '跟进时间', time: '跟进时间',
deliverable: '跟进交付物', deliverable: '跟进交付物',
arrange: '后续安排', arrange: '后续安排',
principal: '负责人', principal: '负责人',
status: '状态', status: '状态',
notes: '备注', notes: '备注',
accessory: '上传' accessory: '上传'
}, },
Contract: { Contract: {
id: '', id: '',
creationTime: '', creationTime: '',
creatorUserId: '', creatorUserId: '',
lastModificationTime: '', lastModificationTime: '',
lastModifierUserId: '', lastModifierUserId: '',
isDeleted: '', isDeleted: '',
deletionTime: '', deletionTime: '',
deleterUserId: '', deleterUserId: '',
projectId: '项目编号', projectId: '项目编号',
name: '名称', name: '名称',
accessory: '附件', accessory: '附件',
userId: '销售人员', userId: '销售人员',
proceeds: '已收款', proceeds: '已收款',
status: '状态', status: '状态',
notes: '备注', notes: '备注',
}, },
// 工厂日历 // 工厂日历
calendar_class: { calendar_class: {
id: '', id: '',
creationTime: '创建时间', creationTime: '创建时间',
creatorUserId: '创建人', creatorUserId: '创建人',
lastModificationTime: '更新时间', lastModificationTime: '更新时间',
lastModifierUserId: '更新人', lastModifierUserId: '更新人',
isDeleted: '删除人', isDeleted: '删除人',
deletionTime: '删除时间', deletionTime: '删除时间',
deleterUserId: '删除人', deleterUserId: '删除人',
title: '班次名称', title: '班次名称',
startTime: '开始时间', startTime: '开始时间',
endTime: '结束时间', endTime: '结束时间',
startendTime: '班次时间', startendTime: '班次时间',
workHours: '工作时长', workHours: '工作时长',
}, },
calendar_holiday: { calendar_holiday: {
id: '', id: '',
creationTime: '创建时间', creationTime: '创建时间',
creatorUserId: '创建人', creatorUserId: '创建人',
lastModificationTime: '更新时间', lastModificationTime: '更新时间',
lastModifierUserId: '更新人', lastModifierUserId: '更新人',
isDeleted: '删除人', isDeleted: '删除人',
deletionTime: '删除时间', deletionTime: '删除时间',
deleterUserId: '删除人', deleterUserId: '删除人',
title: '节日名称', title: '节日名称',
startTime: '开始时间', startTime: '开始时间',
days: '工作时长(小时)', days: '工作时长(小时)',
status: '状态', status: '状态',
endTime: '结束时间', endTime: '结束时间',
}, },
calendar_overtime: { calendar_overtime: {
id: '', id: '',
creationTime: '创建时间', creationTime: '创建时间',
creatorUserId: '创建人', creatorUserId: '创建人',
lastModificationTime: '更新时间', lastModificationTime: '更新时间',
lastModifierUserId: '更新人', lastModifierUserId: '更新人',
isDeleted: '删除人', isDeleted: '删除人',
deletionTime: '删除时间', deletionTime: '删除时间',
deleterUserId: '删除人', deleterUserId: '删除人',
title: '日历名称', title: '日历名称',
restType: '', restType: '',
holidayId: '', holidayId: '',
holidayTitle: '关联节假日', holidayTitle: '关联节假日',
status: '', status: '',
}, },
calendar_work: { calendar_work: {
id: '', id: '',
creationTime: '创建时间', creationTime: '创建时间',
creatorUserId: '创建人', creatorUserId: '创建人',
lastModificationTime: '更新时间', lastModificationTime: '更新时间',
lastModifierUserId: '更新人', lastModifierUserId: '更新人',
isDeleted: '删除人', isDeleted: '删除人',
deletionTime: '删除时间', deletionTime: '删除时间',
deleterUserId: '删除人', deleterUserId: '删除人',
title: '日历名称', title: '日历名称',
calendarClassId: '', calendarClassId: '',
calendarClassTitle: '关联班次', calendarClassTitle: '关联班次',
calendarClassStart: '开始时间', calendarClassStart: '开始时间',
calendarClassEnd: '结束时间', calendarClassEnd: '结束时间',
workHours: '工作时长', workHours: '工作时长',
}, },
Connector: { Connector: {
id: '', id: '',
creationTime: '', creationTime: '',
creatorUserId: '', creatorUserId: '',
lastModificationTime: '', lastModificationTime: '',
lastModifierUserId: '', lastModifierUserId: '',
isDeleted: '', isDeleted: '',
deletionTime: '', deletionTime: '',
deleterUserId: '', deleterUserId: '',
name: '人员名称', name: '人员名称',
shopId: '组织id', shopId: '组织id',
duties: '职务', duties: '职务',
telephone: '办公电话', telephone: '办公电话',
mobile: '手机', mobile: '手机',
status: '状态', status: '状态',
notes: '备注', notes: '备注',
customerId: '客户Id', customerId: '客户Id',
shopName: '组织名称', shopName: '组织名称',
}, },
mes_order: { mes_order: {
id: '', id: '',
upId: '父订单id', upId: '父订单id',
mesCode: '订单编号', mesCode: '订单编号',
taskType: '任务类型', taskType: '任务类型',
productId: '产品表主键', productId: '产品表主键',
stage: '阶段', stage: '阶段',
materialId: '材料表主键', materialId: '材料表主键',
quantity: '数量', quantity: '数量',
guestName: '甲方客户', guestName: '甲方客户',
printSupply: '3D打印承制单位', printSupply: '3D打印承制单位',
functionaryOffice: '厂内责任机关', functionaryOffice: '厂内责任机关',
mainDepartmentId: '厂内主主体责任部门', mainDepartmentId: '厂内主主体责任部门',
remark: '备注', remark: '备注',
taskInputDate: '创建日期', taskInputDate: '创建日期',
taskRequire: '任务接点要求', taskRequire: '任务接点要求',
putintDocmentCode: '上传文件名称', putintDocmentCode: '上传文件名称',
technologyDocmentCode: '上传文件名称', technologyDocmentCode: '上传文件名称',
outerDrawnNumber: '外部图号/模型号', outerDrawnNumber: '外部图号/模型号',
modelVersion: '模型版本', modelVersion: '模型版本',
taskCode: '甲方任务号', taskCode: '甲方任务号',
designer: '甲方设计人员', designer: '甲方设计人员',
officeFunctionary: '厂内机关负责人', officeFunctionary: '厂内机关负责人',
mainRoutingPeople: '厂内主工艺人员', mainRoutingPeople: '厂内主工艺人员',
status: '订单状态', status: '订单状态',
workHours: '工时', workHours: '工时',
printPeriod: '打印周期', printPeriod: '打印周期',
equipment: '设备', equipment: '设备',
materialWeight: '材料重量', materialWeight: '材料重量',
isSupportingFinish: '配套状态',//是否配套,0 未配套,1 已配套 isSupportingFinish: '配套状态', //是否配套,0 未配套,1 已配套
demandStartDate: '投料时间', demandStartDate: '投料时间',
demandFinishDate: '节点时间', demandFinishDate: '节点时间',
actualStartDate: '订单实际开始时间,实际为第一道工序的开始时间', actualStartDate: '订单实际开始时间,实际为第一道工序的开始时间',
actualFinishDate: '订单实际结束时间,实际为最后一道工序的结束时间', actualFinishDate: '订单实际结束时间,实际为最后一道工序的结束时间',
isDeleted: '是否被删除,0 : 否,1 是', isDeleted: '是否被删除,0 : 否,1 是',
creatorUserId: '记录创建人', creatorUserId: '记录创建人',
creationTime: '创建时间', creationTime: '创建时间',
lastModifierUserId: '修改人', lastModifierUserId: '修改人',
lastModificationTime: '修改时间', lastModificationTime: '修改时间',
orderQuotationStatus: '报价状态', orderQuotationStatus: '报价状态',
distributeMainRouting: '(派发)工艺人员', distributeMainRouting: '(派发)工艺人员',
mainRoutingFinishDate: '工艺完成时间', mainRoutingFinishDate: '工艺完成时间',
majorRoutingPeople: '专业工艺人员', majorRoutingPeople: '专业工艺人员',
majorRoutingFinishDate: '专业工艺完成时间', majorRoutingFinishDate: '专业工艺完成时间',
checkUpPeople: '校对人员', checkUpPeople: '校对人员',
checkUpFinishDate: '校对完成时间', checkUpFinishDate: '校对完成时间',
productingPreparationPeople: '生产准备人员', productingPreparationPeople: '生产准备人员',
productingPreparationFinishDate: '生产准备完成时间', productingPreparationFinishDate: '生产准备完成时间',
quotationPeople: '订单报价人员', quotationPeople: '订单报价人员',
quotationFinishDate: '订单报价完成时间', quotationFinishDate: '订单报价完成时间',
routingMethod: '工艺方法', routingMethod: '工艺方法',
outerEnvelopeSize: '外包络尺寸', outerEnvelopeSize: '外包络尺寸',
divideMark: '分解标记:1-已分解',//1-已分解 divideMark: '分解标记:1-已分解', //1-已分解
productCode: '产品序号', productCode: '产品序号',
productName: '产品名称', productName: '产品名称',
drawnNumber: '产品图号', drawnNumber: '产品图号',
qualifiedQuantity: '合格数量', qualifiedQuantity: '合格数量',
uncertificateQuantity: '待开具数量', uncertificateQuantity: '待开具数量',
mainRoutingSetStatus: '工艺状态', mainRoutingSetStatus: '工艺状态',
majorRoutingSetStatus: '', majorRoutingSetStatus: '',
materialBillSetStatus: '', materialBillSetStatus: '',
routingDataSetStatus: '', routingDataSetStatus: '',
rootId: '', rootId: '',
mainRoutingExecuteStatus: '', mainRoutingExecuteStatus: '',
majorRoutingExecuteStatus: '', majorRoutingExecuteStatus: '',
mainRoutingActualStartDate: '', mainRoutingActualStartDate: '',
mainRoutingActualFinishDate: '', mainRoutingActualFinishDate: '',
majorRoutingActualStartDate: '', majorRoutingActualStartDate: '',
majorRoutingActualFinishDate: '', majorRoutingActualFinishDate: '',
batchNumber: '批次号', batchNumber: '批次号',
projectNumber: '项目号', projectNumber: '项目号',
urgencyLevel: '紧急程度', urgencyLevel: '紧急程度',
materialName: '材料名称', materialName: '材料名称',
isPreschedule: '移入排产', isPreschedule: '移入排产',
spareQty: '(APS)备件数量', spareQty: '(APS)备件数量',
demandStart: '(APS)投料时间', demandStart: '(APS)投料时间',
demandFinish: '(APS)节点时间', demandFinish: '(APS)节点时间',
partNamePro: '(APS)产品名称增强', partNamePro: '(APS)产品名称增强',
selection: '多选', selection: '多选',
DistributeMainRouting: '工艺人员', DistributeMainRouting: '工艺人员',
MainRoutingFinishDate: '完成时间', MainRoutingFinishDate: '完成时间',
}, },
mes_part_task_plan_simulate: { mes_plan: {
id: '', id: '',
part_task_pk: '计划编号', creationTime: '创建时间',
priority: '优先级', creatorUserId: '创建人',
plan_qty: '排产数量', lastModificationTime: '更新时间',
spare_qty: '备件数量', lastModifierUserId: '更新人',
plan_start: '计划排产开始', isDeleted: '删除人',
plan_finish: '计划排产结束', deletionTime: '删除时间',
notes: '备注', deleterUserId: '删除人',
demand_start: '计划要求开始', mesCode: '订单编号',
demand_finish: '计划要求结束', taskType: '任务类型',
insert_flag: '插单', productId: '产品主键',
badjustflag: '', quantity: '数量',
},//多租户-服务器数据源 remark: '备注',
host: { taskRequire: '任务节点要求',
id: '', status: '订单状态',
name: '数据源名称', divideMark: '分解标记:1-已分解;0-未分解',
ip: '服务器地址', productCode: '产品序号:No1~No99',
user: '用户名', productName: '产品名称',
password: '密码', drawnNumber: '图号',
port: 'ssh端口', rootId: '根节点Id',
creationTime: '创建时间', batchNumber: '批次号',
creatorUserId: '创建人', projectNumber: '项目号',
lastModificationTime: '更新时间', urgencyLevel: '紧急程度',
lastModifierUserId: '更新人', productingPreparationPeople: '生产准备(主制车间)',
isDeleted: '是否删除', productingPreparationFinishDate: '生产准备完成时间',
deletionTime: '删除时间', quotationPeople: '订单报价人员',
deleterUserId: '删除人', quotationFinishDate: '订单报价完成时间',
},//多租户-公司 upId: '父订单id',
tanant: { demandStartDate: '投料时间',
id: '', demandFinishDate: '节点时间',
name: '公司名称', },
code: '公司编码', mes_part_task_plan_simulate: {
typeId: '公司类型', id: '',
startTime: '服务开始时间', part_task_pk: '计划编号',
endTime: '服务结束时间', priority: '优先级',
initialized: '是否已初始化', plan_qty: '排产数量',
dataSourceId: '数据源', spare_qty: '备件数量',
creationTime: '创建时间', plan_start: '计划排产开始',
creatorUserId: '创建人', plan_finish: '计划排产结束',
lastModificationTime: '更新时间', notes: '备注',
lastModifierUserId: '更新人', demand_start: '计划要求开始',
isDeleted: '是否删除', demand_finish: '计划要求结束',
deletionTime: '删除时间', insert_flag: '插单',
deleterUserId: '删除人', badjustflag: '',
hostId: '服务器', }, //多租户-服务器数据源
}, host: {
data_source: { id: '',
id: '', name: '数据源名称',
hostId: '数据源ID', ip: '服务器地址',
port: '端口', user: '用户名',
userName: '用户名', password: '密码',
password: '密码', port: 'ssh端口',
creationTime: '创建时间', creationTime: '创建时间',
creatorUserId: '创建人', creatorUserId: '创建人',
lastModificationTime: '更新时间', lastModificationTime: '更新时间',
lastModifierUserId: '更新人', lastModifierUserId: '更新人',
isDeleted: '是否删除', isDeleted: '是否删除',
deletionTime: '删除时间', deletionTime: '删除时间',
deleterUserId: '删除人', deleterUserId: '删除人',
}, }, //多租户-公司
mes_part_task_execute: { //排产方案的 tanant: {
pARTTASKPK: '', id: '',
cLASSID: '产品Id', name: '公司名称',
pARTID: '产品Id', code: '公司编码',
oRDERID: '', typeId: '公司类型',
pARTTASKID: '计划Id', startTime: '服务开始时间',
bATCHNUM: '批次号', endTime: '服务结束时间',
pLANSTART: '计划排产开始', initialized: '是否已初始化',
pLANFINISH: '计划排产结束', dataSourceId: '数据源',
aCTUALSTART: '', creationTime: '创建时间',
aCTUALFINISH: '', creatorUserId: '创建人',
dEMANDSTART: '要求开始时间', lastModificationTime: '更新时间',
dEMANDFINISH: '要求结束时间', lastModifierUserId: '更新人',
pLANQTY: '计划数量', isDeleted: '是否删除',
sPAREQTY: '', deletionTime: '删除时间',
pRODUCEDQTY: '', deleterUserId: '删除人',
pASSEDQTY: '', hostId: '服务器',
sCRAPPEDQTY: '', },
rEWORKQTY: '', data_source: {
tASKTYPE: '任务类型', id: '',
iNSERTFLAG: '插单', hostId: '数据源ID',
tASKFLAG: '', port: '端口',
sTATUS: '状态', userName: '用户名',
nOTES: '', password: '密码',
lOCKFLAG: '', creationTime: '创建时间',
sCHEDULEID: '排产方案', creatorUserId: '创建人',
}, lastModificationTime: '更新时间',
lastModifierUserId: '更新人',
isDeleted: '是否删除',
deletionTime: '删除时间',
deleterUserId: '删除人',
},
mes_part_task_execute: { //排产方案的
pARTTASKPK: '',
cLASSID: '产品Id',
pARTID: '产品Id',
oRDERID: '',
pARTTASKID: '计划Id',
bATCHNUM: '批次号',
pLANSTART: '计划排产开始',
pLANFINISH: '计划排产结束',
aCTUALSTART: '',
aCTUALFINISH: '',
dEMANDSTART: '要求开始时间',
dEMANDFINISH: '要求结束时间',
pLANQTY: '计划数量',
sPAREQTY: '',
pRODUCEDQTY: '',
pASSEDQTY: '',
sCRAPPEDQTY: '',
rEWORKQTY: '',
tASKTYPE: '任务类型',
iNSERTFLAG: '插单',
tASKFLAG: '',
sTATUS: '状态',
nOTES: '',
lOCKFLAG: '',
sCHEDULEID: '排产方案',
},
mes_op_task_execute: {//子表 mes_op_task_execute: { //子表
iD: '', iD: '',
oPTASKPK: '工单Id', oPTASKPK: '工单Id',
pARTTASKPK: '计划Id', pARTTASKPK: '计划Id',
tASKSEQ: '工序号', tASKSEQ: '工序号',
tASKNAME: '工序名称', tASKNAME: '工序名称',
pLANFINISH: '计划排产结束', pLANFINISH: '计划排产结束',
pLANSTART: '计划排产开始', pLANSTART: '计划排产开始',
aCTUALFINISH: '', aCTUALFINISH: '',
aCTUALSTART: '', aCTUALSTART: '',
sHOPID: '车间Id', sHOPID: '车间Id',
eQUIPID: '设备编号', eQUIPID: '设备编号',
eQUIPTYPE: '设备类型', eQUIPTYPE: '设备类型',
sINGLEOUT: '单间产出', sINGLEOUT: '单间产出',
rUNTIME: '单件工时', rUNTIME: '单件工时',
sETUPTIME: '准备工时', sETUPTIME: '准备工时',
pUTINTOQTY: '投产数量', pUTINTOQTY: '投产数量',
tRANSPORTTIME: '转运工时', tRANSPORTTIME: '转运工时',
cHECKTIME: '检验工时', cHECKTIME: '检验工时',
dISPATCHQTY: '派工数量', dISPATCHQTY: '派工数量',
pRODUCEDQTY: '', pRODUCEDQTY: '',
pASSEDQTY: '', pASSEDQTY: '',
sCRAPPEDQTY: '', sCRAPPEDQTY: '',
rEWORKQTY: '', rEWORKQTY: '',
tASKTYPE: '任务类型', tASKTYPE: '任务类型',
tASKFLAG: '', tASKFLAG: '',
iNSERTFLAG: '插单', iNSERTFLAG: '插单',
sTATUS: '状态', sTATUS: '状态',
nOTES: '备注', nOTES: '备注',
lOCKFLAG: '', lOCKFLAG: '',
routingHEADERID: '工艺规程Id', routingHEADERID: '工艺规程Id',
rOUTINGDETAILID: '工序Id', rOUTINGDETAILID: '工序Id',
isSynchronization: '', isSynchronization: '',
outsideTime: '外协时间', outsideTime: '外协时间',
sCHEDULEID: '排产方案编号', sCHEDULEID: '排产方案编号',
}, },
mes_op_task_plan_simulate: { //参数设置的表 mes_op_task_plan_simulate: { //参数设置的表
id: '', id: '',
op_task_pk: '工单编号', op_task_pk: '工单编号',
part_task_pk: '计划编号', part_task_pk: '计划编号',
task_seq: '工序号', task_seq: '工序号',
task_name: '工序名称', task_name: '工序名称',
put_into_qty: '投产数量', put_into_qty: '投产数量',
plan_start: '计划排产开始', plan_start: '计划排产开始',
plan_finish: '计划排产结束', plan_finish: '计划排产结束',
setup_time: '准备工时', setup_time: '准备工时',
run_time: '单件工时', run_time: '单件工时',
transport_time: '转运时间', transport_time: '转运时间',
check_time: '检验时间', check_time: '检验时间',
efficiency_value: '效率系数', efficiency_value: '效率系数',
singleout: '单件产出', singleout: '单件产出',
first_equip: '设备编号', first_equip: '设备编号',
equip_type: '设备类型', equip_type: '设备类型',
cal_id: '连班策略', cal_id: '连班策略',
machine_rule: '设备优先规则', machine_rule: '设备优先规则',
plan_method: '重叠转序', plan_method: '重叠转序',
over_time: '六日加班', over_time: '六日加班',
isdiscrete: '是否离散', isdiscrete: '是否离散',
discrete_value: '离散值', discrete_value: '离散值',
multi_machine: '多台分配', multi_machine: '多台分配',
notes: '备注', notes: '备注',
insert_flag: '插单', insert_flag: '插单',
important_flag:"插单", important_flag: "插单",
outside_time: '外协时间', outside_time: '外协时间',
discrete_percent: '离散度', discrete_percent: '离散度',
taskseq_des: '', taskseq_des: '',
workshopcode: '', workshopcode: '',
routing_detail_id: '', routing_detail_id: '',
routing_header_id: '', routing_header_id: '',
comb_param: '', comb_param: '',
rule_qty: '', rule_qty: '',
taskSeq: '工序号', taskSeq: '工序号',
efficiencyValue: '效率系数', efficiencyValue: '效率系数',
calId: '连班策略', calId: '连班策略',
overTime: '六日加班', overTime: '六日加班',
isDiscrete: '是否离散', isDiscrete: '是否离散',
multipleEquip: "是否多台安排设备",// 否 是 multipleEquip: "是否多台安排设备", // 否 是
multipleEquipIds: "设备id", //用英文逗号分隔 multipleEquipIds: "设备id", //用英文逗号分隔
discrete: '离散值', discrete: '离散值',
}, },
routing_header:{ routing_header: {
id:'', id: '',
creationTime:'', creationTime: '',
creatorUserId:'', creatorUserId: '',
lastModificationTime:'', lastModificationTime: '',
lastModifierUserId:'', lastModifierUserId: '',
deleterUserId:'', deleterUserId: '',
deletionTime:'', deletionTime: '',
classId:'类id', classId: '类id',
unicode:'unicode', unicode: 'unicode',
name:'工艺名称', name: '工艺名称',
code:'工艺编号', code: '工艺编号',
productId:'产品id', productId: '产品id',
productName:'产品名称', productName: '产品名称',
productCode:'产品图号', productCode: '产品图号',
version:'工艺文件版本', version: '工艺文件版本',
author:'编制人', author: '编制人',
departmentId:'', departmentId: '',
isMain:'', isMain: '',
upId:'', upId: '',
upDetailId:'', upDetailId: '',
routingType:'工艺类型', routingType: '工艺类型',
status:'', status: '',
approvalStatus:'状态', approvalStatus: '状态',
remark:'工艺说明', remark: '工艺说明',
roufile:'多媒体附件', roufile: '多媒体附件',
approvalStatusRemark:'', approvalStatusRemark: '',
auditUserId1:'审核人', auditUserId1: '审核人',
auditUserId2:'审批人', auditUserId2: '审批人',
isDeleted:'', isDeleted: '',
platesnum:'', platesnum: '',
isEffect:'', isEffect: '',
developmentMode:'研制方式', developmentMode: '研制方式',
changeOrderCode:'更改单编号', changeOrderCode: '更改单编号',
changeOrderDate:'更改单日期', changeOrderDate: '更改单日期',
changeMethod:'更改办法', changeMethod: '更改办法',
taskType:'任务类型', taskType: '任务类型',
}, },
routing_detail: { routing_detail: {
id: '', id: '',
creationTime: '创建时间', creationTime: '创建时间',
creatorUserId: '创建人', creatorUserId: '创建人',
lastModificationTime: '修改时间', lastModificationTime: '修改时间',
lastModifierUserId: '修改人', lastModifierUserId: '修改人',
isDeleted: '是否删除', isDeleted: '是否删除',
deleterUserId: '删除人', deleterUserId: '删除人',
deletionTime: '删除时间', deletionTime: '删除时间',
classId: '', classId: '',
routingHeaderId: '工艺ID', routingHeaderId: '工艺ID',
name: '工序名', name: '工序名',
taskSeq: '工序号', taskSeq: '工序号',
description: '工序名称详细描述', description: '工序名称详细描述',
taskContent: '工序内容', taskContent: '工序内容',
resourceId: '设备', resourceId: '设备',
resourceType: '设备类型', resourceType: '设备类型',
runtime: '单件排产工时', runtime: '单件排产工时',
performancehours: '绩效工时', performancehours: '绩效工时',
setupTime: '工序准备工时', setupTime: '工序准备工时',
transportTime: '转运工时', transportTime: '转运工时',
checkTime: '检验工时', checkTime: '检验工时',
checkFlag: '检验标识', checkFlag: '检验标识',
efficiencyValue: '效率系数', efficiencyValue: '效率系数',
singleOut: '单件产出', singleOut: '单件产出',
isOutside: '是否外协', isOutside: '是否外协',
departmentId: '工序的承制单位', departmentId: '工序的承制单位',
isImportant: '是否关键工序', isImportant: '是否关键工序',
milestoneId: '里程碑', milestoneId: '里程碑',
phaseId: '阶段', phaseId: '阶段',
status: '状态', status: '状态',
remark: '备注', remark: '备注',
extend: '扩展字段', extend: '扩展字段',
outsideTime: '外协工期', outsideTime: '外协工期',
}, },
RoutingSupporting: { RoutingSupporting: {
id: '', id: '',
routingHeaderId: '工艺规程ID', routingHeaderId: '工艺规程ID',
routingHeaderId: '工艺规程ID', routingHeaderId: '工艺规程ID',
routingDetailId: '工序ID', routingDetailId: '工序ID',
routingStepId: '工步ID', routingStepId: '工步ID',
isDeleted: '删除人', isDeleted: '删除人',
deletionTime: '删除时间', deletionTime: '删除时间',
deleterUserId: '删除人', deleterUserId: '删除人',
routingHeaderId: '工艺规程ID', routingHeaderId: '工艺规程ID',
routingDetailId: '工序ID', routingDetailId: '工序ID',
routingStepId: '工步ID', routingStepId: '工步ID',
quantity: '数量', quantity: '数量',
singlequantity: '总计数量', singlequantity: '总计数量',
materialId: '物料id', materialId: '物料id',
materialType: '物料类型', materialType: '物料类型',
materialNumber: '物料编号', materialNumber: '物料编号',
nameMaterial: '物料名称', nameMaterial: '物料名称',
state: '状态', state: '状态',
extend: '扩展字段', extend: '扩展字段',
remark: '备注', remark: '备注',
brand: '牌号', brand: '牌号',
specifications: '规格', specifications: '规格',
xhgg: '型号规格', xhgg: '型号规格',
texture: '材质', texture: '材质',
procurementStandards: '采购标准', procurementStandards: '采购标准',
qualityGrade: '质量等级', qualityGrade: '质量等级',
state: '状态', state: '状态',
extend: '扩展字段', extend: '扩展字段',
remark: '备注', remark: '备注',
}, },
routing_step: { routing_step: {
id: '', id: '',
creationTime: '创建时间', creationTime: '创建时间',
creatorUserId: '创建人', creatorUserId: '创建人',
lastModificationTime: '修改时间', lastModificationTime: '修改时间',
lastModifierUserId: '修改人', lastModifierUserId: '修改人',
isDeleted: '是否删除', isDeleted: '是否删除',
deleterUserId: '删除人', deleterUserId: '删除人',
deletionTime: '删除时间', deletionTime: '删除时间',
routingHeaderId: '工艺', routingHeaderId: '工艺',
routingDetailId: '工序', routingDetailId: '工序',
classId: '', classId: '',
stepSeq: '工步号', stepSeq: '工步号',
name: '名称', name: '名称',
description: '描述', description: '描述',
status: '状态', status: '状态',
remark: '备注', remark: '备注',
stepContent: '工步内容', stepContent: '工步内容',
extend: '扩展字段', extend: '扩展字段',
}, },
routing_qc_card: { routing_qc_card: {
id: '', id: '',
creationTime: '创建时间', creationTime: '创建时间',
creatorUserId: '创建人', creatorUserId: '创建人',
lastModificationTime: '修改时间', lastModificationTime: '修改时间',
lastModifierUserId: '修改人', lastModifierUserId: '修改人',
isDeleted: '是否删除', isDeleted: '是否删除',
deleterUserId: '删除人', deleterUserId: '删除人',
deletionTime: '删除时间', deletionTime: '删除时间',
routingHeaderId: '工艺', routingHeaderId: '工艺',
routingDetailId: '工序', routingDetailId: '工序',
routingStepId: '工步', routingStepId: '工步',
checkContent: '检验内容', checkContent: '检验内容',
checkType: '检验标记', checkType: '检验标记',
checkParams: '参数名称', checkParams: '参数名称',
measurementUnit: '单位', measurementUnit: '单位',
fillintype: '汇报类型', fillintype: '汇报类型',
qualityTemplate: '模板', qualityTemplate: '模板',
isphotograph: '是否拍照', isphotograph: '是否拍照',
status: '状态', status: '状态',
extend: '扩展字段', extend: '扩展字段',
remark: '备注', remark: '备注',
productionRequirement: '生产要求', productionRequirement: '生产要求',
standard: '标准指标', standard: '标准指标',
qualityTemplateName: '模板文件名称', qualityTemplateName: '模板文件名称',
} }
} }
\ No newline at end of file
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
<i-header-fullscreen v-if="isDesktop && showFullscreen" /> <i-header-fullscreen v-if="isDesktop && showFullscreen" />
<i-header-notice v-if="showNotice" /> <i-header-notice v-if="showNotice" />
<i-header-user /> <i-header-user />
<i-header-i18n v-if="showI18n" /> <!-- <i-header-i18n v-if="showI18n" />
<i-header-setting v-if="enableSetting && !isMobile" /> <i-header-setting v-if="enableSetting && !isMobile" /> -->
</div> </div>
</Header> </Header>
</transition> </transition>
......
...@@ -14,6 +14,13 @@ ...@@ -14,6 +14,13 @@
</a> </a>
</td> </td>
</tr> </tr>
<tr>
<td class="t_title">
<a class="a_goIndex" @click="goIndexTwo">
<b class="title">首页二</b>
</a>
</td>
</tr>
<tr v-for="(item,i) in filterSider"> <tr v-for="(item,i) in filterSider">
<td class="t_title"> <td class="t_title">
<b class="title" <b class="title"
...@@ -44,8 +51,8 @@ ...@@ -44,8 +51,8 @@
<i-header-fullscreen v-if="isDesktop && showFullscreen" /> <i-header-fullscreen v-if="isDesktop && showFullscreen" />
<i-header-notice v-if="showNotice" /> <i-header-notice v-if="showNotice" />
<i-header-user /> <i-header-user />
<i-header-i18n v-if="showI18n" /> <!-- <i-header-i18n v-if="showI18n" />
<i-header-setting v-if="enableSetting && !isMobile" /> <i-header-setting v-if="enableSetting && !isMobile" /> -->
</div> </div>
</Header> </Header>
<Content class="i-layout-content"> <Content class="i-layout-content">
...@@ -287,6 +294,9 @@ export default { ...@@ -287,6 +294,9 @@ export default {
goIndex(){ goIndex(){
this.$router.push("/") this.$router.push("/")
}, },
goIndexTwo(){
this.$router.push("/home")
}
}, },
mounted() { mounted() {
document.addEventListener("scroll", this.handleScroll, { passive: true }); document.addEventListener("scroll", this.handleScroll, { passive: true });
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<MainLayout /> <MainLayout />
</template> </template>
<script> <script>
import MainLayout from "./basic-layout"; // import MainLayout from "./basic-layout";
// import MainLayout from "./basic-layout/product"; import MainLayout from "./basic-layout/product";
// 配置 // 配置
import Setting from "@/setting"; import Setting from "@/setting";
// 方法 // 方法
......
<template> <template>
<div style="padding: 0;"> <div style="padding: 0;" class="excute">
<DataGrid <DataGrid
style="margin-top: -25px; margin-bottom: -25px;" style="margin-top: -25px; margin-bottom: -25px;"
:columns="columns" :columns="columns"
...@@ -11,16 +11,12 @@ ...@@ -11,16 +11,12 @@
:data="data1" :data="data1"
:page="false" :page="false"
:height="gridHeight" :height="gridHeight"
:size="size"
></DataGrid> ></DataGrid>
<Modal v-model="editModal" title="编辑" footer-hide width="800"> <Modal v-model="editModal" title="编辑" footer-hide width="800">
<Edit :row="rowData" @on-close="cancel" @on-option-ok="addOk" /> <Edit :row="rowData" @on-close="cancel" @on-option-ok="addOk" />
</Modal> </Modal>
<Modal <Modal v-model="insertlModal" :title="insertTItle" @on-ok="insertOk" @on-cancel="cancel">
v-model="insertlModal"
:title="insertTItle"
@on-ok="insertOk"
@on-cancel="cancel"
>
<p>确定进行 {{ insertTItle }} 操作?</p> <p>确定进行 {{ insertTItle }} 操作?</p>
</Modal> </Modal>
<Modal v-model="setParsModal" title="工序参数设置" footer-hide width="1000"> <Modal v-model="setParsModal" title="工序参数设置" footer-hide width="1000">
...@@ -43,10 +39,10 @@ export default { ...@@ -43,10 +39,10 @@ export default {
name: "list", name: "list",
components: { components: {
Edit, Edit,
Add, Add
}, },
props: { props: {
rowId: { type: Number }, rowId: { type: Number }
}, },
data() { data() {
return { return {
...@@ -54,8 +50,8 @@ export default { ...@@ -54,8 +50,8 @@ export default {
easySearch: { easySearch: {
keys: { keys: {
op: "task_seq", op: "task_seq",
value: null, value: null
}, }
}, },
setParsModal: false, setParsModal: false,
editModal: false, editModal: false,
...@@ -64,6 +60,7 @@ export default { ...@@ -64,6 +60,7 @@ export default {
rowIndex: null, rowIndex: null,
curId: 0, curId: 0,
gridHeight: 50, gridHeight: 50,
size: "small",
columns: [ columns: [
{ key: "id", title: this.l("id"), hide: true, align: "left" }, { key: "id", title: this.l("id"), hide: true, align: "left" },
{ title: " ", width: 130 }, { title: " ", width: 130 },
...@@ -80,9 +77,9 @@ export default { ...@@ -80,9 +77,9 @@ export default {
props: { props: {
content: content:
params.row.important_flag == 1 ? "取消插单" : "进行插单", params.row.important_flag == 1 ? "取消插单" : "进行插单",
placement: "top", placement: "top"
}, },
class: "ico", class: "ico"
}, },
[ [
h("Icon", { h("Icon", {
...@@ -92,43 +89,43 @@ export default { ...@@ -92,43 +89,43 @@ export default {
? "ios-flag" ? "ios-flag"
: "ios-flag-outline", : "ios-flag-outline",
size: 20, size: 20,
color: params.row.important_flag == 1 ? "#2680EB" : "#aaa", color: params.row.important_flag == 1 ? "#2680EB" : "#aaa"
}, },
on: { on: {
click: () => this.changeFlag(params.row.id, params.index), click: () => this.changeFlag(params.row.id, params.index)
}, }
}), })
] ]
); );
}, }
}, },
{ {
key: "task_seq", key: "task_seq",
title: this.l("task_seq"), title: this.l("task_seq"),
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true
}, },
{ {
key: "op_task_pk", key: "op_task_pk",
title: this.l("op_task_pk"), title: this.l("op_task_pk"),
align: "left", align: "left",
high: true, high: true,
hide: true, hide: true
}, },
{ {
key: "task_name", key: "task_name",
title: this.l("task_name"), title: this.l("task_name"),
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true
}, },
{ {
key: "part_task_pk", key: "part_task_pk",
title: this.l("part_task_pk"), title: this.l("part_task_pk"),
align: "left", align: "left",
high: true, high: true,
hide: true, hide: true
}, },
{ {
...@@ -136,7 +133,7 @@ export default { ...@@ -136,7 +133,7 @@ export default {
title: this.l("put_into_qty"), title: this.l("put_into_qty"),
align: "left", align: "left",
high: true, high: true,
hide: true, hide: true
}, },
{ {
key: "plan_start", key: "plan_start",
...@@ -144,7 +141,7 @@ export default { ...@@ -144,7 +141,7 @@ export default {
align: "center", align: "center",
high: true, high: true,
width: 140, width: 140,
hide: true, hide: true
}, },
{ {
key: "plan_finish", key: "plan_finish",
...@@ -152,52 +149,52 @@ export default { ...@@ -152,52 +149,52 @@ export default {
align: "center", align: "center",
high: true, high: true,
width: 140, width: 140,
hide: true, hide: true
}, },
{ {
key: "first_equip", key: "first_equip",
title: this.l("first_equip"), title: this.l("first_equip"),
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true
}, },
{ {
key: "setup_time", key: "setup_time",
title: this.l("setup_time"), title: this.l("setup_time"),
align: "right", align: "right",
high: true, high: true
}, },
{ {
key: "run_time", key: "run_time",
title: this.l("run_time"), title: this.l("run_time"),
align: "right", align: "right",
high: true, high: true
}, },
{ {
key: "outside_time", key: "outside_time",
title: this.l("outside_time"), title: this.l("outside_time"),
align: "right", align: "right",
high: true, high: true
}, },
{ {
key: "transport_time", key: "transport_time",
title: this.l("transport_time"), title: this.l("transport_time"),
align: "right", align: "right",
high: true, high: true,
hide: true, hide: true
}, },
{ {
key: "check_time", key: "check_time",
title: this.l("check_time"), title: this.l("check_time"),
align: "right", align: "right",
high: true, high: true,
hide: true, hide: true
}, },
{ {
key: "efficiency_value", key: "efficiency_value",
title: this.l("efficiency_value"), title: this.l("efficiency_value"),
align: "right", align: "right",
high: true, high: true
}, },
{ {
key: "machine_rule", key: "machine_rule",
...@@ -205,14 +202,14 @@ export default { ...@@ -205,14 +202,14 @@ export default {
align: "center", align: "center",
easy: true, easy: true,
high: true, high: true,
width: 140, width: 140
}, },
{ {
key: "singleout", key: "singleout",
title: this.l("singleout"), title: this.l("singleout"),
align: "left", align: "left",
high: true, high: true,
hide: true, hide: true
}, },
{ {
key: "equip_type", key: "equip_type",
...@@ -220,7 +217,7 @@ export default { ...@@ -220,7 +217,7 @@ export default {
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true,
hide: true, hide: true
}, },
{ {
key: "first_equip", key: "first_equip",
...@@ -228,48 +225,48 @@ export default { ...@@ -228,48 +225,48 @@ export default {
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true,
hide: true, hide: true
}, },
{ {
key: "cal_id", key: "cal_id",
title: this.l("cal_id"), title: this.l("cal_id"),
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true
}, },
{ {
key: "plan_method", key: "plan_method",
title: this.l("plan_method"), title: this.l("plan_method"),
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true
}, },
{ {
key: "over_time", key: "over_time",
title: this.l("over_time"), title: this.l("over_time"),
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true
}, },
{ {
key: "isdiscrete", key: "isdiscrete",
title: this.l("isdiscrete"), title: this.l("isdiscrete"),
align: "center", align: "center",
easy: true, easy: true,
high: true, high: true
}, },
{ {
key: "discrete_value", key: "discrete_value",
title: this.l("discrete_value"), title: this.l("discrete_value"),
align: "right", align: "right",
high: true, high: true
}, },
{ {
key: "multi_machine", key: "multi_machine",
title: this.l("multi_machine"), title: this.l("multi_machine"),
align: "center", align: "center",
easy: true, easy: true,
high: true, high: true
}, },
{ {
key: "notes", key: "notes",
...@@ -277,7 +274,7 @@ export default { ...@@ -277,7 +274,7 @@ export default {
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true,
hide: true, hide: true
}, },
{ {
...@@ -286,7 +283,7 @@ export default { ...@@ -286,7 +283,7 @@ export default {
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true,
hide: true, hide: true
}, },
{ {
key: "workshopcode", key: "workshopcode",
...@@ -294,21 +291,21 @@ export default { ...@@ -294,21 +291,21 @@ export default {
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true,
hide: true, hide: true
}, },
{ {
key: "routing_detail_id", key: "routing_detail_id",
title: this.l("routing_detail_id"), title: this.l("routing_detail_id"),
align: "left", align: "left",
high: true, high: true,
hide: true, hide: true
}, },
{ {
key: "routing_header_id", key: "routing_header_id",
title: this.l("routing_header_id"), title: this.l("routing_header_id"),
align: "left", align: "left",
high: true, high: true,
hide: true, hide: true
}, },
{ {
key: "comb_param", key: "comb_param",
...@@ -316,14 +313,14 @@ export default { ...@@ -316,14 +313,14 @@ export default {
align: "left", align: "left",
easy: true, easy: true,
high: true, high: true,
hide: true, hide: true
}, },
{ {
key: "rule_qty", key: "rule_qty",
title: this.l("rule_qty"), title: this.l("rule_qty"),
align: "left", align: "left",
high: true, high: true,
hide: true, hide: true
}, },
{ {
title: "操作", title: "操作",
...@@ -337,32 +334,32 @@ export default { ...@@ -337,32 +334,32 @@ export default {
icon: "md-options", icon: "md-options",
type: "icon", type: "icon",
oprate: "detail", oprate: "detail",
title: "工序参数设置", title: "工序参数设置"
}, },
on: { click: () => this.openParms(params.row) }, on: { click: () => this.openParms(params.row) }
}), }),
h("op", { h("op", {
attrs: { attrs: {
icon: "ios-create", icon: "md-create",
type: "icon", type: "icon",
title: "編輯工序", title: "編輯工序",
oprate: "edit", oprate: "edit"
}, },
on: { click: () => this.edit(params.row) }, on: { click: () => this.edit(params.row) }
}), }),
h("op", { h("op", {
attrs: { attrs: {
icon: "ios-trash", icon: "ios-trash",
type: "icon", type: "icon",
title: "删除工序", title: "删除工序",
oprate: "delete", oprate: "edit",
msg: "确认要刪除工序吗?", msg: "确认要刪除工序吗?"
}, },
on: { click: () => this.remove(params.row, params.index) }, on: { click: () => this.remove(params.row, params.index) }
}), })
]); ]);
}, }
}, }
], ],
data1: [], data1: [],
insertTItle: "插单", insertTItle: "插单",
...@@ -372,10 +369,10 @@ export default { ...@@ -372,10 +369,10 @@ export default {
opTaskPk: 0, //工单ID opTaskPk: 0, //工单ID
partTaskPk: 0, //生产计划ID partTaskPk: 0, //生产计划ID
taskSeq: "", //工序编号 taskSeq: "", //工序编号
count: 0,//生产计划数量 count: 0 //生产计划数量
}, },
//设置参数结束 //设置参数结束
rowData:{},//编辑时传入行数据 rowData: {} //编辑时传入行数据
}; };
}, },
mounted() { mounted() {
...@@ -388,12 +385,12 @@ export default { ...@@ -388,12 +385,12 @@ export default {
//根据点击副组件传过来id进行加载数据 //根据点击副组件传过来id进行加载数据
loadData(expendId) { loadData(expendId) {
let params = { let params = {
id: expendId, id: expendId
}; };
Api.getbyorderid(params).then((res) => { Api.getbyorderid(params).then(res => {
if (res.success) { if (res.success) {
this.gridHeight = 50; this.gridHeight = 50;
this.gridHeight = (res.result.length + 1) * 51; this.gridHeight = (res.result.length + 1) * 42;
this.data1 = res.result; this.data1 = res.result;
} }
}); });
...@@ -430,7 +427,7 @@ export default { ...@@ -430,7 +427,7 @@ export default {
opTaskPk: row.op_task_pk, opTaskPk: row.op_task_pk,
partTaskPk: row.part_task_pk, partTaskPk: row.part_task_pk,
taskSeq: row.task_seq, taskSeq: row.task_seq,
count: row.put_into_qty, count: row.put_into_qty
}; };
this.setParsModal = true; this.setParsModal = true;
}, },
...@@ -450,9 +447,9 @@ export default { ...@@ -450,9 +447,9 @@ export default {
this.selectRoutingDetail = row; this.selectRoutingDetail = row;
let params = { let params = {
partPk: this.selectRoutingDetail.part_task_pk, partPk: this.selectRoutingDetail.part_task_pk,
detailIdstr: this.selectRoutingDetail.routing_detail_id, detailIdstr: this.selectRoutingDetail.routing_detail_id
}; };
Api.removeoptasksimluate(params).then((r) => { Api.removeoptasksimluate(params).then(r => {
if (r.success) { if (r.success) {
this.$Message.success("删除成功"); this.$Message.success("删除成功");
this.data1.splice(this.rowIndex, 1); this.data1.splice(this.rowIndex, 1);
...@@ -477,8 +474,12 @@ export default { ...@@ -477,8 +474,12 @@ export default {
l(key) { l(key) {
let vkey = "mes_op_task_plan_simulate" + "." + key; let vkey = "mes_op_task_plan_simulate" + "." + key;
return this.$t(vkey) || key; return this.$t(vkey) || key;
}, }
}, }
}; };
</script> </script>
<style lang="less"></style> <style lang="less">
.excute table tr th span,.excute table tr td {
font-size: 10px;
}
</style>
...@@ -31,6 +31,11 @@ ...@@ -31,6 +31,11 @@
<Search /> <Search />
</template> </template>
<template slot="buttons"> <template slot="buttons">
<Button
type="primary"
@click="goResults"
style="background:#515A6E;border:solid 1px #515A6E"
>查看历史方案</Button>
<Button type="primary" @click="openApsModal">APS排产</Button> <Button type="primary" @click="openApsModal">APS排产</Button>
</template> </template>
<template slot="batch"> <template slot="batch">
...@@ -229,7 +234,8 @@ export default { ...@@ -229,7 +234,8 @@ export default {
attrs: { attrs: {
icon: "md-options", icon: "md-options",
type: "icon", type: "icon",
title: "工序参数设置" title: "工序参数设置",
oprate: "edit",
}, },
on: { click: () => this.openAddModel(2, params.row) } on: { click: () => this.openAddModel(2, params.row) }
}), }),
...@@ -238,7 +244,7 @@ export default { ...@@ -238,7 +244,7 @@ export default {
icon: "md-return-left", icon: "md-return-left",
type: "icon", type: "icon",
title: "移出排产池", title: "移出排产池",
oprate: "delete", oprate: "edit",
msg: "确认要移出排产吗?" msg: "确认要移出排产吗?"
}, },
on: { click: () => this.remove(params.row.part_task_pk) } on: { click: () => this.remove(params.row.part_task_pk) }
...@@ -248,7 +254,7 @@ export default { ...@@ -248,7 +254,7 @@ export default {
icon: "md-refresh", icon: "md-refresh",
type: "icon", type: "icon",
title: "恢复工序", title: "恢复工序",
oprate: "delete", oprate: "edit",
msg: "确认要恢复工序吗?" msg: "确认要恢复工序吗?"
}, },
on: { click: () => this.refresh(params.row.part_task_pk) } on: { click: () => this.refresh(params.row.part_task_pk) }
...@@ -386,6 +392,13 @@ export default { ...@@ -386,6 +392,13 @@ export default {
this.$Message.error("请设置基准日期"); this.$Message.error("请设置基准日期");
} }
}, },
//查看历史方案
goResults() {
this.$router.push({
path: "/aps/results"
// params: { customerId: id }
});
},
//确定aps排产 //确定aps排产
apsOk() { apsOk() {
this.circleModal = true; this.circleModal = true;
...@@ -422,7 +435,7 @@ export default { ...@@ -422,7 +435,7 @@ export default {
this.$Message.success("排产计算成功"); this.$Message.success("排产计算成功");
this.circleModal = false; this.circleModal = false;
this.$router.push({ this.$router.push({
name: "aps-results" path: "/aps/results"
// params: { customerId: id } // params: { customerId: id }
}); });
} else { } else {
......
...@@ -89,7 +89,7 @@ export default { ...@@ -89,7 +89,7 @@ export default {
}, },
{ {
title: "零件图号", title: "零件图号",
key: "part_id", key: "part_number",
align: "center" align: "center"
}, },
{ {
......
...@@ -24,32 +24,32 @@ ...@@ -24,32 +24,32 @@
</Col> </Col>
</Row> </Row>
<Row v-for="(item,index) in dataList" :key="item.id"> <Row v-for="(item,index) in dataList" :key="item.id">
<Col span="4"> <Col span="4" class="expand-value">
<span class="expand-value">{{ item.op_task_pk }}</span> <span>{{ item.task_seq }}</span>
</Col> </Col>
<Col span="3"> <Col span="3" class="expand-value">
<span class="expand-value">{{ item.task_name }}</span> <span>{{ item.task_name }}</span>
</Col> </Col>
<Col span="3"> <Col span="3" class="expand-value">
<span class="expand-value">{{ item.put_into_qty }}</span> <span>{{ item.put_into_qty }}</span>
</Col> </Col>
<Col span="3"> <Col span="3" class="expand-value">
<span class="expand-value">{{ item.dispatch_qty }}</span> <span>{{ item.dispatch_qty }}</span>
</Col> </Col>
<Col span="4"> <Col span="4" class="expand-value">
<span class="expand-value">{{ item.plan_start }}</span> <span>{{ item.plan_start }}</span>
</Col> </Col>
<Col span="4"> <Col span="4" class="expand-value">
<span class="expand-value">{{ item.plan_finish }}</span> <span>{{ item.plan_finish }}</span>
</Col> </Col>
<Col span="3"> <Col span="3" class="expand-value">
<span class="expand-value">{{ row.equip_id }}</span> <span>{{ item.equip_id }}</span>
</Col> </Col>
</Row> </Row>
</div> </div>
</template> </template>
<script> <script>
import Api from './api' import Api from "./api";
export default { export default {
props: { props: {
row: Object row: Object
...@@ -57,33 +57,36 @@ export default { ...@@ -57,33 +57,36 @@ export default {
data() { data() {
return { return {
dataList: [] dataList: []
} };
}, },
mounted() { mounted() {
this.getList(this.row) this.getList(this.row);
}, },
methods: { methods: {
getList(row) { getList(row) {
Api.getdetail({ Api.getdetail({
part_task_pk: row.id, part_task_pk: row.id,
scheduleId: row.schedule_id scheduleId: row.schedule_id
}).then((r) => { }).then(r => {
if (r.success) { if (r.success) {
this.dataList = r.result this.dataList = r.result;
} }
}) });
} }
} }
} };
</script> </script>
<style lang='less'> <style lang='less'>
.result-aps { .result-aps {
.expand-row { .expand-row {
text-align: center; text-align: center;
margin: 5px 0;
font-weight: bold;
}
.expand-value {
text-align: center;
margin: 3px 0;
} }
// .ivu-row {
// font-weight: bold !important;
// }
} }
td.ivu-table-expanded-cell { td.ivu-table-expanded-cell {
padding: 0 !important; padding: 0 !important;
......
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<Filed :span="12" :name="l('status')"> <Filed :span="12" :name="l('status')">
<state code="crm.sales.status" :value="entity.status" /> <state code="crm.sales.status" :value="entity.status" />
</Filed> </Filed>
<Filed :span="12" :name="l('deliverable')">{{entity.deliverable}}</Filed> <Filed :span="24" :name="l('deliverable')">{{entity.deliverable}}</Filed>
<Filed :span="24" :name="l('arrange')">{{entity.arrange}}</Filed> <Filed :span="24" :name="l('arrange')">{{entity.arrange}}</Filed>
<Filed :span="24" :name="l('notes')">{{entity.notes}}</Filed> <Filed :span="24" :name="l('notes')">{{entity.notes}}</Filed>
</Row> </Row>
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
<Modal v-model="editModal" title="编辑" footer-hide> <Modal v-model="editModal" title="编辑" footer-hide>
<Edit :eid="curId" @on-close="cancel" @on-ok="addOk" /> <Edit :eid="curId" @on-close="cancel" @on-ok="addOk" />
</Modal> </Modal>
<Modal v-model="detailModal" title="详情" footer-hide> <Modal v-model="detailModal" title="详情" footer-hide width="1000">
<Detail :eid="curId" /> <Detail :eid="curId" />
</Modal> </Modal>
<Modal v-model="deletelModal" title="删除" @on-ok="removeOk" @on-cancel="cancel"> <Modal v-model="deletelModal" title="删除" @on-ok="removeOk" @on-cancel="cancel">
......
import Api from '@/plugins/request'
export default {
getUserInfo(params) {
return Api.get(`${systemUrl}/user/getuserinfo`, params);
},
// 获取打你审批数据
getpaged(params) {
return Api.post(`${workflowUrl}/instance/getpaged`, params);
},
}
\ No newline at end of file
<template>
<div>
<Card class="todolist">
<p class="row_head">
<Icon type="md-contact" class="f20" />
<span class="ml10">待审批</span>
<a class="row_more fr" @click="toivew">更多</a>
</p>
<div class="row_card_body">
<Table border :columns="columns1" :data="data1" height="230"></Table>
</div>
</Card>
<Modal v-model="viewModal" width="800" title="详情">
<Row class="mo_cont">
<Col span="12" class="label">
<span class="title">编号:</span>
{{viewData.code}}
</Col>
<Col span="12" class="label">
<span class="title">审批类型:</span>
{{viewData.schemaName}}
</Col>
<Col span="12" class="label">
<span class="title">当前环节:</span>
{{viewData.currentNodeName}}
</Col>
<Col span="12" class="label">
<span class="title">下一环节:</span>
{{viewData.nextNodeName}}
</Col>
<Col span="12" class="label">
<span class="title">创建人:</span>
{{viewData.creator}}
</Col>
<Col span="12" class="label">
<span class="title">创建时间:</span>
{{viewData.creationTime}}
</Col>
</Row>
</Modal>
</div>
</template>
<script>
import Api from "../api";
export default {
name: "Approval",
data() {
return {
imgUrl: iconImg,
viewModal: false, //详情弹框
viewData: {}, //详情数据
columns1: [
{ type: "index", title: "序号", width: 70, align: "center" },
{ key: "schemaName", title: "类别", align: "center", width: 150 },
{ key: "currentNodeName", title: "环节", align: "center" },
{ key: "nextNodeName", title: "下一环节", align: "center" },
{ key: "creationTime", title: "创建时间", align: "center", width: 170 },
{
key: "id",
title: "操作",
align: "center",
width: 90,
render: (h, parmse) => {
return h("div", { class: "action" }, [
h(
"op",
{
attrs: {
oprate: "add"
},
on: {
click: () => {
this.viewRow(parmse.row);
}
}
},
"查看"
)
]);
}
}
],
data1: []
};
},
created() {
this.getlaoed();
},
async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典
},
methods: {
getlaoed() {
let parme = {
pageIndex: 1,
pageSize: 20,
conditions: [
{ fieldName: "type", fieldValue: 2, conditionalType: "Equal" }
]
};
Api.getpaged(parme).then(res => {
let arry = res.result.items;
let arr = arry.slice(0, 4);
this.data1 = arr;
});
},
viewRow(rowData) {
this.viewModal = true;
this.viewData = rowData;
},
toivew() {
var info = { id: "123", message: "成功" };
this.$router.push({ name: "handle", params: info });
// tab(1)
}
},
mounted() {}
};
</script>
<style lang="less" scoped>
.row_head {
height: 30px;
color: #249e91;
a {
color: #249e91;
}
}
.mo_cont {
border-top: 1px solid #ddd;
border-left: 1px solid #ddd;
.label {
display: table-cell;
border-bottom: 1px solid #ddd;
border-right: 1px solid #ddd;
// margin: 0 0 -1px -1px;
line-height: 30px;
box-sizing: border-box;
.title {
background: #e8eaf1;
display: inline-block;
width: 100px;
text-align: right;
padding: 0 5px;
}
}
}
</style>
\ No newline at end of file
<template>
<Card class="todolist">
<p class="row_head">
<Icon type="ios-chatbubbles" class="f20" />
<Badge :count="3" :offset="[9,-5]">
<span class="ml10">未读消息</span>
</Badge>
<a href class="row_more fr">更多</a>
</p>
<div class="msg">
<Row v-for="(item,index) in listTask" :key="index" class="row-text">
<Col :span="2">
<div></div>
</Col>
<Col :span="6">{{index+1}}&nbsp&nbsp {{item.name}}</Col>
<Col :span="8">
{{item.data}}
<Icon type="md-link" />
</Col>
<Col :span="8">{{item.Date}}</Col>
</Row>
</div>
</Card>
</template>
<script>
export default {
name: "UnreadMessage",
data() {
return {
imgUrl: iconImg,
listTask: [
{
name: "张飞",
data: "生产订单缺料",
Date: "2020-03-12 11.30"
},
{
name: "张飞",
data: "送审订单待审批",
Date: "2020-03-12 11.30"
},
{
name: "张飞",
data: "排产未完成",
Date: "2020-03-12 11.30"
},
{
name: "张飞",
data: "物料补料中",
Date: "2020-03-12 11.30"
},
{
name: "张飞",
data: "物料补料中",
Date: "2020-03-12 11.30"
},
{
name: "张飞",
data: "物料补料中",
Date: "2020-03-12 11.30"
}
]
};
},
methods: {
link() {
console.log("路径");
}
}
};
</script>
<style lang="less" scoped>
.row_head {
height: 35px;
line-height: 30px;
color: #0099ff;
}
.msg {
height: 225px;
overflow-y: auto;
.row-text {
height: 40px;
line-height: 40px;
border-top: 1px solid #eee;
}
}
</style>
\ No newline at end of file
<template>
<div class="home">
<Card class="card-user">
<div class="img-header">
<img src="@/assets/images/home/user.png" />
</div>
<div class="user-text">
<p>你好:张飞,欢迎登陆MES系统!</p>
<p>
<span>xx公司/xx车间xx班组</span> &nbsp &nbsp
<span>工艺技术员</span>
</p>
</div>
<div class="incon-carousel">
<div class="bg-b">
<Icon type="ios-arrow-back" />
</div>
<div class="bg bg0">
<Icon type="ios-cube" />
<p>电子对账单</p>
</div>
<div class="bg bg1">
<Icon type="md-mail" />
<p>站内邮件</p>
</div>
<div class="bg bg2">
<Icon type="md-map" />
<p>站内邮件</p>
</div>
<div class="bg bg3">
<Icon type="ios-cube" />
<p>电子对账单</p>
</div>
<div class="bg bg0">
<Icon type="ios-cube" />
<p>电子对账单</p>
</div>
<div class="bg bg1">
<Icon type="md-mail" />
<p>站内邮件</p>
</div>
<div class="bg bg2">
<Icon type="md-mail" />
<p>站内邮件</p>
</div>
<div class="bg-l">
<Icon type="ios-arrow-forward" />
</div>
</div>
</Card>
<div class="card-list">
<div class="bg-b">
<Icon type="ios-arrow-back" />
</div>
<Card
v-for="(item,index) in listTask"
:key="index"
:class="item.name=='物料复验' ? 'img_bg02':(item.name=='产品合格证' ? 'img_bg03':(item.name=='生产执行' ? 'img_bg04' : 'img_bg01'))"
@click.native="goPage(item)"
>
<div class="leftIco">
<img class="img_icon" src="@/assets/imgicon/u1640.png" alt />
</div>
<div class="text-p">
<p>{{item.totalUrl}}</p>
<p>{{item.name}}</p>
</div>
</Card>
<div class="bg-l">
<Icon type="ios-arrow-forward" />
</div>
</div>
<Row class="table" :gutter="16">
<Col :span="12">
<Approval ref="approval" />
</Col>
<Col :span="12">
<UnreadMessage />
</Col>
</Row>
<div class="url-img"></div>
</div>
</template>
<script>
import Api from "./api";
import Approval from "./component/approval";
import UnreadMessage from "./component/unreadMessage";
export default {
components: {
Approval,
UnreadMessage
},
data() {
return {
listTask: [],
imgUrl: iconImg
};
},
created() {
this.get();
},
methods: {
get() {
let list = [];
let url = `${systemUrl}/backlog/get`;
this.$api.get(url).then(r => {
list = r.result;
list.forEach(data => {
// console.log(data.totalUrl)
let ulrt = `http://${address}:` + data.totalUrl;
data.totalUrl = 0;
this.$api.get(ulrt).then(r => {
return (data.totalUrl = r.result);
});
});
console.log(list);
this.listTask = list;
});
},
goPage(u) {
// alert(u.menuUrl)
this.$router.push(u.menuUrl);
}
}
};
</script>
<style lang="less" scoped>
.home {
padding: 10px 0;
.card-user {
height: 100px;
.img-header {
margin-top: -8px;
float: left;
}
.user-text {
float: left;
p {
margin: 10px;
}
}
.incon-carousel {
float: right;
// margin-top: 8px;
width: 800px;
.bg-b {
float: left;
margin-top: 10px;
font-size: 30px;
color: #dcdfe6;
}
.bg-l {
float: right;
margin-top: 10px;
font-size: 30px;
color: #dcdfe6;
}
.bg {
text-align: center;
width: 100px;
float: left;
.ivu-icon {
font-size: 35px;
}
p {
margin-top: 8px;
}
}
.bg0 {
.ivu-icon {
color: #ffc300;
}
}
.bg1 {
.ivu-icon {
color: #0099ff;
}
}
.bg2 {
.ivu-icon {
color: #ff7a8b;
}
}
.bg3 {
.ivu-icon {
color: #ffc300;
}
}
}
}
.card-list {
display: flex;
display: -webkit-flex;
margin-top: 15px;
justify-content: space-around;
.bg-b {
margin-top: 18px;
font-size: 30px;
color: #dcdfe6;
width: 35px;
}
.bg-l {
margin-top: 18px;
font-size: 30px;
color: #dcdfe6;
width: 35px;
}
.img_bg01 {
background-color: #ff9100;
width: 200px;
cursor: pointer;
background: linear-gradient(to left, #ff9100, #ffcf87);
}
.img_bg02 {
width: 200px;
cursor: pointer;
background: linear-gradient(to left, #003fd4, #8ac7fc);
}
.img_bg03 {
cursor: pointer;
width: 200px;
background: linear-gradient(to left, #fe1b1b, #fc9c92);
}
.img_bg04 {
cursor: pointer;
width: 200px;
background: linear-gradient(to left, #249e91, #79ece0);
}
.img_icon {
width: 24px;
margin: 23% 0 0 0;
}
.text-p {
text-align: center;
color: #fff;
p:first-child {
font-size: 20px;
font-weight: bold;
margin-bottom: 5px;
}
}
}
.url-img {
width: 100%;
height: 370px;
background: url("../../assets/images/home/echars.png") no-repeat;
background-size: 100% 100%;
}
.table {
margin-top: 15px;
}
}
</style>
\ No newline at end of file
<template>
<Form ref="form" :model="entity" :rules="rules" :label-width="90">
<Row>
<Col :span="12">
<FormItem :label="l('mesCode')" prop="mesCode">
<Input v-model="entity.mesCode"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('taskType')" prop="taskType">
<Dictionary code="mes.mes_plan.task_type" v-model="entity.taskType"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('productId')" prop="productId">
<InputNumber v-model="entity.productId"></InputNumber>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('quantity')" prop="quantity">
<InputNumber v-model="entity.quantity"></InputNumber>
</FormItem>
</Col>
<Col :span="24">
<FormItem :label="l('remark')" prop="remark">
<Input v-model="entity.remark" type="textarea" :rows="5"></Input>
</FormItem>
</Col>
<Col :span="24">
<FormItem :label="l('taskRequire')" prop="taskRequire">
<Input v-model="entity.taskRequire" type="textarea" :rows="5"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('status')" prop="status">
<Dictionary code="mes.mes_plan.status" v-model="entity.status"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('divideMark')" prop="divideMark">
<Dictionary code="mes.mes_plan.divide_mark" v-model="entity.divideMark"></Dictionary>
</FormItem>
</Col>
<Col :span="24">
<FormItem :label="l('productCode')" prop="productCode">
<Input v-model="entity.productCode" type="textarea" :rows="5"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('productName')" prop="productName">
<Input v-model="entity.productName"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('drawnNumber')" prop="drawnNumber">
<Input v-model="entity.drawnNumber"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('rootId')" prop="rootId">
<InputNumber v-model="entity.rootId"></InputNumber>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('batchNumber')" prop="batchNumber">
<Input v-model="entity.batchNumber"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('projectNumber')" prop="projectNumber">
<Input v-model="entity.projectNumber"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('urgencyLevel')" prop="urgencyLevel">
<Dictionary code="mes.mes_plan.urgency_level" v-model="entity.urgencyLevel"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('productingPreparationPeople')" prop="productingPreparationPeople">
<InputNumber v-model="entity.productingPreparationPeople"></InputNumber>
</FormItem>
</Col>
<Col :span="12">
<FormItem
:label="l('productingPreparationFinishDate')"
prop="productingPreparationFinishDate"
>
<DatePicker type="date" v-model="entity.productingPreparationFinishDate"></DatePicker>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('quotationPeople')" prop="quotationPeople">
<InputNumber v-model="entity.quotationPeople"></InputNumber>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('quotationFinishDate')" prop="quotationFinishDate">
<DatePicker type="date" v-model="entity.quotationFinishDate"></DatePicker>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('upId')" prop="upId">
<InputNumber v-model="entity.upId"></InputNumber>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('demandStartDate')" prop="demandStartDate">
<DatePicker type="date" v-model="entity.demandStartDate"></DatePicker>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('demandFinishDate')" prop="demandFinishDate">
<DatePicker type="date" v-model="entity.demandFinishDate"></DatePicker>
</FormItem>
</Col>
</Row>
<FormItem>
<Button type="primary" @click="handleSubmit" :disabled="disabled">保存</Button>
<Button @click="handleClose" class="ml20">取消</Button>
</FormItem>
</Form>
</template>
<script>
import Api from "./api";
export default {
name: "Add",
data() {
return {
disabled: false,
entity: {},
rules: {
name: [{ required: true, message: "必填", trigger: "blur" }]
}
};
},
props: {
v: Object
},
methods: {
handleSubmit() {
this.$refs.form.validate(v => {
if (v) {
this.disabled = true;
Api.create(this.entity)
.then(r => {
this.disabled = false;
if (r.success) {
this.$Message.success("保存成功");
this.$emit("on-ok");
} else {
this.$Message.error("保存失败");
}
})
.catch(err => {
this.disabled = false;
this.$Message.error("保存失败");
console.warn(err);
});
}
});
},
handleClose() {
this.$emit("on-close");
},
l(key) {
key = "mes_plan" + "." + key;
return this.$t(key);
}
},
watch: {
v() {
this.entity = this.$u.clone(this.v);
}
}
};
</script>
import Api from '@/plugins/request'
export default {
index: `${PlanUrl}/mesplan/paged`,
paged(params) {
return Api.post(`${PlanUrl}/mesplan/paged`, params);
},
get(params) {
return Api.get(`${PlanUrl}/mesplan/get`, params);
},
create(params) {
return Api.post(`${PlanUrl}/mesplan/create`, params);
},
update(params) {
return Api.post(`${PlanUrl}/mesplan/update`, params);
},
//删除:
delete(params) {
return Api.delete(`${PlanUrl}/mesplan/delete`, {
params: params
});
},
}
<template>
<div class="detail">
<Row>
<Filed :span="12" :name="l('mesCode')">{{entity.mesCode}}</Filed>
<Filed :span="12" :name="l('taskType')">{{entity.taskType}}</Filed>
<Filed :span="12" :name="l('productId')">{{entity.productId}}</Filed>
<Filed :span="12" :name="l('quantity')">{{entity.quantity}}</Filed>
<Filed :span="24" :name="l('remark')">{{entity.remark}}</Filed>
<Filed :span="24" :name="l('taskRequire')">{{entity.taskRequire}}</Filed>
<Filed :span="12" :name="l('status')">{{entity.status}}</Filed>
<Filed :span="12" :name="l('divideMark')">{{entity.divideMark}}</Filed>
<Filed :span="24" :name="l('productCode')">{{entity.productCode}}</Filed>
<Filed :span="12" :name="l('productName')">{{entity.productName}}</Filed>
<Filed :span="12" :name="l('drawnNumber')">{{entity.drawnNumber}}</Filed>
<Filed :span="12" :name="l('rootId')">{{entity.rootId}}</Filed>
<Filed :span="12" :name="l('batchNumber')">{{entity.batchNumber}}</Filed>
<Filed :span="12" :name="l('projectNumber')">{{entity.projectNumber}}</Filed>
<Filed :span="12" :name="l('urgencyLevel')">{{entity.urgencyLevel}}</Filed>
<Filed
:span="12"
:name="l('productingPreparationPeople')"
>{{entity.productingPreparationPeople}}</Filed>
<Filed
:span="12"
:name="l('productingPreparationFinishDate')"
>{{entity.productingPreparationFinishDate}}</Filed>
<Filed :span="12" :name="l('quotationPeople')">{{entity.quotationPeople}}</Filed>
<Filed :span="12" :name="l('quotationFinishDate')">{{entity.quotationFinishDate}}</Filed>
<Filed :span="12" :name="l('upId')">{{entity.upId}}</Filed>
<Filed :span="12" :name="l('demandStartDate')">{{entity.demandStartDate}}</Filed>
<Filed :span="12" :name="l('demandFinishDate')">{{entity.demandFinishDate}}</Filed>
</Row>
</div>
</template>
<script>
import Api from "./api";
export default {
name: "Add",
data() {
return {
entity: {},
rules: {
name: [{ required: true, message: "必填", trigger: "blur" }],
code: [{ required: true, message: "必填", trigger: "blur" }]
}
};
},
props: {
eid: Number
},
methods: {
load(v) {
Api.get({ id: v }).then(r => {
this.entity = r.result;
this.$emit("on-load");
});
},
handleClose() {
this.$emit("on-close");
},
l(key) {
key = "mes_plan" + "." + key;
return this.$t(key);
}
},
watch: {
eid(v) {
if (v != 0) {
this.load(v);
}
}
}
};
</script>
<template>
<Form ref="form" :model="entity" :rules="rules" :label-width="90">
<Row>
<Col :span="12">
<FormItem :label="l('mesCode')" prop="mesCode">
<Input v-model="entity.mesCode"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('taskType')" prop="taskType">
<Dictionary code="mes.mes_plan.task_type" v-model="entity.taskType"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('productId')" prop="productId">
<InputNumber v-model="entity.productId"></InputNumber>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('quantity')" prop="quantity">
<InputNumber v-model="entity.quantity"></InputNumber>
</FormItem>
</Col>
<Col :span="24">
<FormItem :label="l('remark')" prop="remark">
<Input v-model="entity.remark" type="textarea" :rows="5"></Input>
</FormItem>
</Col>
<Col :span="24">
<FormItem :label="l('taskRequire')" prop="taskRequire">
<Input v-model="entity.taskRequire" type="textarea" :rows="5"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('status')" prop="status">
<Dictionary code="mes.mes_plan.status" v-model="entity.status"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('divideMark')" prop="divideMark">
<Dictionary code="mes.mes_plan.divide_mark" v-model="entity.divideMark"></Dictionary>
</FormItem>
</Col>
<Col :span="24">
<FormItem :label="l('productCode')" prop="productCode">
<Input v-model="entity.productCode" type="textarea" :rows="5"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('productName')" prop="productName">
<Input v-model="entity.productName"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('drawnNumber')" prop="drawnNumber">
<Input v-model="entity.drawnNumber"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('rootId')" prop="rootId">
<InputNumber v-model="entity.rootId"></InputNumber>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('batchNumber')" prop="batchNumber">
<Input v-model="entity.batchNumber"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('projectNumber')" prop="projectNumber">
<Input v-model="entity.projectNumber"></Input>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('urgencyLevel')" prop="urgencyLevel">
<Dictionary code="mes.mes_plan.urgency_level" v-model="entity.urgencyLevel"></Dictionary>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('productingPreparationPeople')" prop="productingPreparationPeople">
<InputNumber v-model="entity.productingPreparationPeople"></InputNumber>
</FormItem>
</Col>
<Col :span="12">
<FormItem
:label="l('productingPreparationFinishDate')"
prop="productingPreparationFinishDate"
>
<DatePicker type="date" v-model="entity.productingPreparationFinishDate"></DatePicker>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('quotationPeople')" prop="quotationPeople">
<InputNumber v-model="entity.quotationPeople"></InputNumber>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('quotationFinishDate')" prop="quotationFinishDate">
<DatePicker type="date" v-model="entity.quotationFinishDate"></DatePicker>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('upId')" prop="upId">
<InputNumber v-model="entity.upId"></InputNumber>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('demandStartDate')" prop="demandStartDate">
<DatePicker type="date" v-model="entity.demandStartDate"></DatePicker>
</FormItem>
</Col>
<Col :span="12">
<FormItem :label="l('demandFinishDate')" prop="demandFinishDate">
<DatePicker type="date" v-model="entity.demandFinishDate"></DatePicker>
</FormItem>
</Col>
</Row>
<FormItem>
<Button type="primary" @click="handleSubmit" :disabled="disabled">保存</Button>
<Button @click="handleClose" class="ml20">取消</Button>
</FormItem>
</Form>
</template>
<script>
import Api from "./api";
export default {
name: "Edit",
data() {
return {
disabled: false,
entity: {},
rules: {
name: [{ required: true, message: "必填", trigger: "blur" }]
}
};
},
props: {
eid: Number
},
methods: {
load(v) {
Api.get({ id: v }).then(r => {
this.entity = r.result;
this.$emit("on-load");
});
},
handleSubmit() {
this.$refs.form.validate(v => {
if (v) {
this.disabled = true;
Api.update(this.entity)
.then(r => {
this.disabled = false;
if (r.success) {
this.$Message.success("保存成功");
this.$emit("on-ok");
} else {
this.$Message.error("保存失败");
}
})
.catch(err => {
this.disabled = false;
this.$Message.error("保存失败");
console.warn(err);
});
}
});
},
handleClose() {
this.$emit("on-close");
},
l(key) {
key = "mes_plan" + "." + key;
return this.$t(key);
}
},
watch: {
eid(v) {
if (v != 0) {
this.load(v);
}
}
}
};
</script>
<template>
<Layout class="full">
<Sider hide-trigger :style="{background: '#fff'}" width="260">
<div class="zh-tree" :style="{height:treeHeight+'px'}">
<h3 class="zh-title">产品结构</h3>
<div class="zh-box">
<Input search placeholder="请输入查询条件" v-model="treeInputSearch" />
<Tree
:data="searchList"
:style="{height:(treeHeight-95)+'px'}"
style="overflow:auto;width:215px;"
@on-select-change="selectTreeNode"
></Tree>
</div>
</div>
</Sider>
<Content class="content">
<DataGrid :columns="columns" ref="grid" :action="action">
<template slot="easySearch">
<Form ref="formInline" :model="easySearch" inline>
<FormItem prop="keys">
<Input
placeholder="请输入关键字订单编号/备注/任务节点要求/产品序号:No1~No99/产品名称/图号/批次号/项目号"
v-model="easySearch.keys.value"
/>
</FormItem>
<FormItem>
<Button type="primary" @click="search">查询</Button>
</FormItem>
</Form>
</template>
<template slot="searchForm">
<Search />
</template>
<template slot="buttons">
<Button type="primary" @click="addModal=true">新增</Button>
</template>
</DataGrid>
<Modal v-model="addModal" title="新增" footer-hide>
<Add @on-close="cancel" @on-ok="addOk" />
</Modal>
<Modal v-model="editModal" title="编辑" footer-hide>
<Edit :eid="curId" @on-close="cancel" @on-ok="addOk" />
</Modal>
<Modal v-model="detailModal" title="详情">
<Detail :eid="curId" />
</Modal>
<Modal v-model="deletelModal" title="删除" @on-ok="removeOk" @on-cancel="cancel">
<p>确定删除?</p>
</Modal>
</Content>
</Layout>
</template>
<script>
import Api from "./api";
import Add from "./add";
import Edit from "./edit";
import Detail from "./detail";
import Search from "./search";
export default {
name: "list",
components: {
Add,
Edit,
Detail,
Search
},
data() {
return {
action: Api.index,
easySearch: {
keys: {
op:
"mesCode,productCode,productName,drawnNumber,batchNumber,projectNumber",
value: null
}
},
addModal: false,
editModal: false,
detailModal: false,
deletelModal: false,
curId: 0,
columns: [
{
key: "mesCode",
title: this.l("mesCode"),
align: "left",
easy: true,
high: true
},
{
key: "taskType",
title: this.l("taskType"),
align: "left",
high: true,
code: "mes.mes_plan.task_type"
},
{
key: "quantity",
title: this.l("quantity"),
align: "left",
high: true
},
{
key: "taskRequire",
title: this.l("taskRequire"),
align: "left",
easy: true,
high: true,
hide: true
},
{
key: "status",
title: this.l("status"),
align: "left",
high: true,
code: "mes.mes_plan.status"
},
{
key: "productCode",
title: this.l("productCode"),
align: "left",
easy: true,
high: true,
hide: true
},
{
key: "productName",
title: this.l("productName"),
align: "left",
easy: true,
high: true
},
{
key: "drawnNumber",
title: this.l("drawnNumber"),
align: "left",
easy: true,
high: true
},
{
key: "batchNumber",
title: this.l("batchNumber"),
align: "left",
easy: true,
high: true
},
{
key: "projectNumber",
title: this.l("projectNumber"),
align: "left",
easy: true,
high: true
},
{
key: "urgencyLevel",
title: this.l("urgencyLevel"),
align: "left",
high: true,
code: "mes.mes_plan.urgency_level"
},
{
key: "productingPreparationPeople",
title: this.l("productingPreparationPeople"),
align: "left",
high: true,
hide: true
},
{
key: "productingPreparationFinishDate",
title: this.l("productingPreparationFinishDate"),
align: "left",
high: true,
hide: true
},
{
key: "quotationPeople",
title: this.l("quotationPeople"),
align: "left",
high: true,
hide: true
},
{
key: "quotationFinishDate",
title: this.l("quotationFinishDate"),
align: "left",
high: true,
hide: true
},
{
key: "demandStartDate",
title: this.l("demandStartDate"),
align: "left",
high: true,
hide: true
},
{
key: "demandFinishDate",
title: this.l("demandFinishDate"),
align: "left",
high: true,
hide: true
},
{
title: "操作",
key: "action",
width: 140,
align: "center",
render: (h, params) => {
return h("div", { class: "action" }, [
h(
"op",
{
attrs: { oprate: "detail" },
on: { click: () => this.detail(params.row.id) }
},
"查看"
),
h(
"op",
{
attrs: { oprate: "edit" },
on: { click: () => this.edit(params.row.id) }
},
"编辑"
),
h(
"op",
{
attrs: { oprate: "remove" },
on: { click: () => this.remove(params.row.id) }
},
"删除"
)
]);
}
}
],
treeData: [],
treeInputSearch: "",
ocolumn: [],
treeHeight: "",
tableHeight: "",
ids: [],
orderSearchForm: {
productId: "", //产品id
productName: "", //产品名称
taskType: "", //任务类型
stage: "", //阶段
materialId: "", //材料
quantity: null, //数量
guestName: "", //甲方客户
printSupply: "", //3D打印承制单位
functionaryOffice: "", //厂内责任机关
mainDepartmentId: "", //厂内责任主体部门ID
taskRequire: "", //任务接点要求
putintDocmentCode: "", //甲方投产输入文件编号
technologyDocmentCode: "", //甲方技术输入文件编号
outerDrawnNumber: "", //外部图号/模型号
modelVersion: "", //模型版本
taskCode: "", //甲方任务号
designer: "", //甲方设计人员
officeFunctionary: "", //厂内机关负责人
mainRoutingPeople: "", //厂内主工艺人员
routing_Method: "", //工艺方法
outer_Envelope_Size: "", //包装尺寸
demandStartDate: "", //开始时间
demandFinishDate: "", //完成时间
remark: "", //备注
projectNumber: "", //项目号
batchNumber: "", //批次号
urgencyLevel: null //紧急程度
},
list: [],
data1: [],
selectdata: [],
//以下为手写死数据集:
orderCatList: [], //订单类型下拉
outerCodeList: [], //型号外部代码下拉
missionCodeList: [], //任务号下拉
stageList: [], //阶段下拉
materailList: [], //材料下拉
routingAccessList: [], //工艺方法下拉
drawNumberList: [], //图号下拉
docNameList: [], //文档名称下拉
ownerGustList: [], //甲方客户下拉
mainDeptList: [], //厂内主体部门下拉
taskTypeList: [], //任务类型
statusList: [] //状态类型
};
},
created() {
this.treeHeight = window.innerHeight - 150;
},
mounted() {
this.initTree();
this.tableHeight = window.innerHeight - 220;
this.$refs.CustomTable.getTableHeight(this.tableHeight);
window.onresize = () => {
///浏览器窗口大小变化
return (() => {
window.screenHeight = window.innerHeight;
this.treeHeight = window.screenHeight - 150;
this.tableHeight = window.screenHeight - 220;
this.$refs.CustomTable.getTableHeight(this.tableHeight);
})();
};
},
async fetch({ store, params }) {
await store.dispatch("loadDictionary"); // 加载数据字典
},
computed: {
searchList() {
let nodeList = this.treeData;
var text = this.treeInputSearch;
var newNodeList = [];
function searchTree(nodeLists, value) {
for (let i = 0; i < nodeLists.length; i++) {
if (nodeLists[i].title.indexOf(value) != -1) {
newNodeList.push(nodeLists[i]);
} else if (nodeLists[i].children.length > 0) {
searchTree(nodeLists[i].children, value);
}
}
}
if (text != "") {
searchTree(nodeList, text);
} else {
return nodeList;
}
return newNodeList;
}
},
methods: {
addOk() {
this.$refs.grid.load();
this.addModal = false;
this.detailModal = false;
this.editModal = false;
this.curId = 0;
},
search() {
this.$refs.grid.reload(this.easySearch);
},
detail(id) {
this.detailModal = true;
this.curId = id;
},
edit(id) {
this.editModal = true;
this.curId = id;
},
remove(id) {
this.deletelModal = true;
this.curId = id;
},
removeOk() {
Api.delete({ id: this.curId }).then(r => {
if (r.success) {
this.$refs.grid.load();
this.deletelModal = false;
this.$Message.success("删除成功");
}
});
},
removeCancel() {
this.deletelModal = false;
},
cancel() {
this.curId = 0;
this.addModal = false;
this.detailModal = false;
this.editModal = false;
this.deletedlModal = false;
},
l(key) {
let vkey = "mes_plan" + "." + key;
return this.$t(vkey) || key;
},
//new start
initTree() {
var sumData = [];
this.$http.order.getallselecttree().then(res => {
alert(JSON.stringify(res))
if (res.result) {
for (var i = 0; i < res.result.length; i++) {
sumData = sumData.concat(res.result[i]);
}
this.treeData = sumData;
this.data1 = JSON.parse(JSON.stringify(sumData));
} else {
this.$Message.error("加载产品树失败!");
}
});
},
selectTreeNode(value) {
if (value.length > 0) {
this.ids = [];
this.getAllIds(value);
if (this.ids.length > 0) {
this.orderSearchForm.productId = this.ids.join(",");
} else {
this.orderSearchForm.productId = "-1";
this.orderSearchForm.productName = "";
}
this.$refs.CustomTable.easySearch(this.orderSearchForm);
}
},
//得到此树节点下所有是产品的productId
getAllIds(trees) {
trees.forEach((data, index) => {
var that = this;
if (data.isProduct) {
this.ids.push(data.productId);
}
if (data.children.length > 0) {
this.getAllIds(data.children);
}
});
},
handleSelect(data) {
if (data.length > 0) {
this.selectdata = [];
this.selectdata = data;
this.list = [];
this.list.push({ label: data[0].title, value: data[0].id });
//this.formValidate.classType=data[0].id;
if (data[0].isProduct == "1") {
this.orderSearchForm.productName = data[0].id;
this.orderSearchForm.productId = data[0].productId;
} else {
this.$Message.error("此节点不是产品,请选择产品节点!");
}
}
},
renderContent(h, { root, node, data }) {
//渲染树的样式
return h(
"span",
{
style: {
color: data.isProduct != "1" ? "#249E91" : "#333", //根据选中状态设置样式
cursor: "pointer"
},
on: {
click: () => {
let arrTree = [];
arrTree.push(data);
this.handleSelect(arrTree); //手动选择树节点
}
}
},
data.title
);
},
}
};
</script>
<style lang="less" scoped>
.full {
margin-top: 0;
.content {
margin-top: 10px;
}
}
</style>
\ No newline at end of file
<template>
<Form ref="form" :model="condition" :label-width="90">
<Row>
<Col :span="12" :v-if="condition.id.show">
<FormItem :label="l('id')" prop="id">
<Input v-model="condition.id.value"></Input>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.creationTime.show">
<FormItem :label="l('creationTime')" prop="creationTime">
<DatePicker type="daterange" v-model="condition.creationTime.value"></DatePicker>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.creatorUserId.show">
<FormItem :label="l('creatorUserId')" prop="creatorUserId">
<Input v-model="condition.creatorUserId.value"></Input>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.lastModificationTime.show">
<FormItem :label="l('lastModificationTime')" prop="lastModificationTime">
<DatePicker type="daterange" v-model="condition.lastModificationTime.value"></DatePicker>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.lastModifierUserId.show">
<FormItem :label="l('lastModifierUserId')" prop="lastModifierUserId">
<Input v-model="condition.lastModifierUserId.value"></Input>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.isDeleted.show">
<FormItem :label="l('isDeleted')" prop="isDeleted">
<Input v-model="condition.isDeleted.value"></Input>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.deletionTime.show">
<FormItem :label="l('deletionTime')" prop="deletionTime">
<DatePicker type="daterange" v-model="condition.deletionTime.value"></DatePicker>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.deleterUserId.show">
<FormItem :label="l('deleterUserId')" prop="deleterUserId">
<Input v-model="condition.deleterUserId.value"></Input>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.mesCode.show">
<FormItem :label="l('mesCode')" prop="mesCode">
<Input v-model="condition.mesCode.value"></Input>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.taskType.show">
<FormItem :label="l('taskType')" prop="taskType">
<Dictionary code="mes.mes_plan.task_type" v-model="condition.taskType.value"></Dictionary>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.productId.show">
<FormItem :label="l('productId')" prop="productId">
<Input v-model="condition.productId.value"></Input>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.quantity.show">
<FormItem :label="l('quantity')" prop="quantity">
<Input v-model="condition.quantity.value"></Input>
</FormItem>
</Col>
<Col :span="24" :v-if="condition.remark.show">
<FormItem :label="l('remark')" prop="remark">
<Input v-model="condition.remark.value"></Input>
</FormItem>
</Col>
<Col :span="24" :v-if="condition.taskRequire.show">
<FormItem :label="l('taskRequire')" prop="taskRequire">
<Input v-model="condition.taskRequire.value"></Input>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.status.show">
<FormItem :label="l('status')" prop="status">
<Dictionary code="mes.mes_plan.status" v-model="condition.status.value"></Dictionary>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.divideMark.show">
<FormItem :label="l('divideMark')" prop="divideMark">
<Dictionary code="mes.mes_plan.divide_mark" v-model="condition.divideMark.value"></Dictionary>
</FormItem>
</Col>
<Col :span="24" :v-if="condition.productCode.show">
<FormItem :label="l('productCode')" prop="productCode">
<Input v-model="condition.productCode.value"></Input>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.productName.show">
<FormItem :label="l('productName')" prop="productName">
<Input v-model="condition.productName.value"></Input>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.drawnNumber.show">
<FormItem :label="l('drawnNumber')" prop="drawnNumber">
<Input v-model="condition.drawnNumber.value"></Input>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.rootId.show">
<FormItem :label="l('rootId')" prop="rootId">
<Input v-model="condition.rootId.value"></Input>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.batchNumber.show">
<FormItem :label="l('batchNumber')" prop="batchNumber">
<Input v-model="condition.batchNumber.value"></Input>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.projectNumber.show">
<FormItem :label="l('projectNumber')" prop="projectNumber">
<Input v-model="condition.projectNumber.value"></Input>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.urgencyLevel.show">
<FormItem :label="l('urgencyLevel')" prop="urgencyLevel">
<Dictionary code="mes.mes_plan.urgency_level" v-model="condition.urgencyLevel.value"></Dictionary>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.productingPreparationPeople.show">
<FormItem :label="l('productingPreparationPeople')" prop="productingPreparationPeople">
<Input v-model="condition.productingPreparationPeople.value"></Input>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.productingPreparationFinishDate.show">
<FormItem
:label="l('productingPreparationFinishDate')"
prop="productingPreparationFinishDate"
>
<DatePicker type="daterange" v-model="condition.productingPreparationFinishDate.value"></DatePicker>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.quotationPeople.show">
<FormItem :label="l('quotationPeople')" prop="quotationPeople">
<Input v-model="condition.quotationPeople.value"></Input>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.quotationFinishDate.show">
<FormItem :label="l('quotationFinishDate')" prop="quotationFinishDate">
<DatePicker type="daterange" v-model="condition.quotationFinishDate.value"></DatePicker>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.upId.show">
<FormItem :label="l('upId')" prop="upId">
<Input v-model="condition.upId.value"></Input>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.demandStartDate.show">
<FormItem :label="l('demandStartDate')" prop="demandStartDate">
<DatePicker type="daterange" v-model="condition.demandStartDate.value"></DatePicker>
</FormItem>
</Col>
<Col :span="12" :v-if="condition.demandFinishDate.show">
<FormItem :label="l('demandFinishDate')" prop="demandFinishDate">
<DatePicker type="daterange" v-model="condition.demandFinishDate.value"></DatePicker>
</FormItem>
</Col>
</Row>
</Form>
</template>
<script>
import Api from "./api";
export default {
name: "Add",
data() {
return {
condition: {
id: { op: "Equal", value: null, show: false },
creationTime: { op: "Range", value: null, show: false },
creatorUserId: { op: "Equal", value: null, show: false },
lastModificationTime: { op: "Range", value: null, show: false },
lastModifierUserId: { op: "Equal", value: null, show: false },
isDeleted: { op: "Equal", value: null, show: false },
deletionTime: { op: "Range", value: null, show: false },
deleterUserId: { op: "Equal", value: null, show: false },
mesCode: { op: "Equal", value: null, show: true },
taskType: { op: "Equal", value: null, show: true },
productId: { op: "Equal", value: null, show: true },
quantity: { op: "Equal", value: null, show: true },
remark: { op: "Equal", value: null, show: true },
taskRequire: { op: "Equal", value: null, show: true },
status: { op: "Equal", value: null, show: true },
divideMark: { op: "Equal", value: null, show: true },
productCode: { op: "Equal", value: null, show: true },
productName: { op: "Equal", value: null, show: true },
drawnNumber: { op: "Equal", value: null, show: true },
rootId: { op: "Equal", value: null, show: true },
batchNumber: { op: "Equal", value: null, show: true },
projectNumber: { op: "Equal", value: null, show: true },
urgencyLevel: { op: "Equal", value: null, show: true },
productingPreparationPeople: { op: "Equal", value: null, show: true },
productingPreparationFinishDate: {
op: "Range",
value: null,
show: true
},
quotationPeople: { op: "Equal", value: null, show: true },
quotationFinishDate: { op: "Range", value: null, show: true },
upId: { op: "Equal", value: null, show: true },
demandStartDate: { op: "Range", value: null, show: true },
demandFinishDate: { op: "Range", value: null, show: true }
}
};
},
methods: {
handleClose() {
this.$emit("on-close");
},
l(key) {
key = "mes_plan" + "." + key;
return this.$t(key);
}
}
};
</script>
...@@ -413,7 +413,7 @@ export default { ...@@ -413,7 +413,7 @@ export default {
operatorIdList: [] //操作员id operatorIdList: [] //操作员id
}, //确定保存后返回数据 }, //确定保存后返回数据
orderSearchForm: { orderSearchForm: {
productId: "", //产品id productId: "", //产品id
productName: "", //产品名称 productName: "", //产品名称
taskType: "", //任务类型 taskType: "", //任务类型
...@@ -440,7 +440,9 @@ export default { ...@@ -440,7 +440,9 @@ export default {
remark: "", //备注 remark: "", //备注
projectNumber: "", //项目号 projectNumber: "", //项目号
batchNumber: "", //批次号 batchNumber: "", //批次号
urgencyLevel: null //紧急程度 urgencyLevel: null, //紧急程度
MaxResultCount:10,
SkipCount:0,
}, },
formValidate: { formValidate: {
id: "", id: "",
...@@ -517,6 +519,8 @@ export default { ...@@ -517,6 +519,8 @@ export default {
fixed: "left" fixed: "left"
}, },
{ title: "图号", key: "drawnNumber", width: 120 }, { title: "图号", key: "drawnNumber", width: 120 },
{ title: "项目号", key: "projectNumber", width: 120 },
{ title: "批次号", key: "batchNumber", width: 120 },
{ title: "数量", key: "quantity", width: 80, align: "center" }, { title: "数量", key: "quantity", width: 80, align: "center" },
...@@ -762,7 +766,7 @@ export default { ...@@ -762,7 +766,7 @@ export default {
this.orderSearchForm.SkipCount = this.orderSearchForm.SkipCount =
(num - 1) * this.orderSearchForm.MaxResultCount; (num - 1) * this.orderSearchForm.MaxResultCount;
console.log(this.orderSearchForm.SkipCount);
this.loaddata(this.orderSearchForm); this.loaddata(this.orderSearchForm);
}, },
pageSizeChange(limit) { pageSizeChange(limit) {
...@@ -777,30 +781,13 @@ export default { ...@@ -777,30 +781,13 @@ export default {
// url = // url =
// `${PlanUrl}/mesorder/getpagedmesordersforpdefm?ProcessUserType=` + params // `${PlanUrl}/mesorder/getpagedmesordersforpdefm?ProcessUserType=` + params
// }else{ // }else{
this.orderSearchForm = {
productId: params.productId, this.orderSearchForm.simpleSearch= typeof params == "string" ? params : params.simpleSearch, //快速搜索
taskType: params.taskType, //任务类型
stage: params.stage, //阶段 this.orderSearchForm.ProcessUserType= this.tabstatus,
materialId: params.materialId, //材料 this.orderSearchForm.ProductingPreparation= this.ProductingPreparationPeople,
quantity: params.quantity, //数量 this.orderSearchForm.RoutingSetStatus= this.orderSearchForm.RoutingSetStatus
guestName: params.guestName, //甲方客户
printSupply: params.printSupply, //3D打印承制单位
functionaryOffice: params.functionaryOffice, //厂内责任机关
mainDepartmentId: params.mainDepartmentId, //厂内责任主体部门ID
taskRequire: params.taskRequire, //任务接点要求
putintDocmentCode: params.putintDocmentCode, //甲方投产输入文件编号
technologyDocmentCode: params.technologyDocmentCode, //甲方技术输入文件编号
outerDrawnNumber: params.outerDrawnNumber, //外部图号/模型号
modelVersion: params.modelVersion, //模型版本
taskCode: params.taskCode, //甲方任务号
status: params.status, //订单状态
simpleSearch: typeof params == "string" ? params : params.simpleSearch, //快速搜索
SkipCount: this.orderSearchForm.SkipCount,
MaxResultCount: this.orderSearchForm.MaxResultCount,
ProcessUserType: this.tabstatus,
ProductingPreparation: this.ProductingPreparationPeople,
RoutingSetStatus: this.orderSearchForm.RoutingSetStatus
};
url = url =
`${PlanUrl}/mesorder/getpagedmesordersforpdefm?` + `${PlanUrl}/mesorder/getpagedmesordersforpdefm?` +
......
...@@ -17,16 +17,28 @@ ...@@ -17,16 +17,28 @@
<div class="tableBox mb10" :style="{height:tbHeight}"> <div class="tableBox mb10" :style="{height:tbHeight}">
<div class="table"> <div class="table">
<div v-if="listTask.length==0" class="wu_data">暂无数据</div> <div v-if="listTask.length==0" class="wu_data">暂无数据</div>
<Card class="card" v-for="(item,index) in listTask" :key="index"> <Row :gutter="16">
<h3 slot="title">订单编号:{{item.mesCode}}</h3> <Col span="6" v-for="(item,index) in listTask" :key="index">
<ul class="card_body01"> <Card class="card">
<li class="card_line">产品名称:{{item.productName}}</li> <h3 slot="title">
<li class="card_line">任务类型:{{item.equipment}}</li> 订单编号:{{item.mesCode}}
</ul> </h3>
<p class="footer01"> <ul class="card_body01">
<a class="footer_btn" href="#" @click.event="reviewFn(item)">追 溯</a> <li class="card_line">
</p> 产品名称:{{item.productName}}
</Card> </li>
<li class="card_line">
任务类型:{{item.equipment}}
</li>
</ul>
<p class="footer01">
<a class="footer_btn" href="#" @click.event="reviewFn(item)">
追 溯
</a>
</p>
</Card>
</Col>
</Row>
</div> </div>
<div v-show="noData" class="no_data"> <div v-show="noData" class="no_data">
<h3>暂无数据</h3> <h3>暂无数据</h3>
...@@ -492,18 +504,14 @@ li { ...@@ -492,18 +504,14 @@ li {
text-align: center; text-align: center;
line-height: 800px; line-height: 800px;
} }
.card { .card{
width: 375px;
margin: 10px 0 10px 20px; margin: 10px 0 10px 20px;
} }
.wu_data { .wu_data {
margin: 200px auto; margin: 200px auto;
font-size: 18px; font-size: 18px;
} }
/* .card_body01{ .card_line{
margin: 0 0 10px 0;
} */
.card_line {
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment