|
|
|
@ -4,7 +4,7 @@
|
|
|
|
|
<el-header style="width: 100%">
|
|
|
|
|
<el-form ref="requestForm" :model="request" label-width="80px">
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item label="跨位:">
|
|
|
|
|
<el-select v-model="request.kw" placeholder="跨位" clearable>
|
|
|
|
|
<el-option
|
|
|
|
@ -17,13 +17,13 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="4">
|
|
|
|
|
<el-form-item label="设备名称:">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="request.sbmc"
|
|
|
|
|
placeholder="设备名称"
|
|
|
|
|
clearable
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<!-- <el-form-item label="设备名称:">-->
|
|
|
|
|
<!-- <el-input-->
|
|
|
|
|
<!-- v-model="request.sbmc"-->
|
|
|
|
|
<!-- placeholder="设备名称"-->
|
|
|
|
|
<!-- clearable-->
|
|
|
|
|
<!-- />-->
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="16" style="text-align: right">
|
|
|
|
|
<el-button type="success" @click="toolbarButtonClickEvent('insert')"
|
|
|
|
@ -117,6 +117,28 @@ export default {
|
|
|
|
|
tableColumn: [
|
|
|
|
|
{ type: "checkbox", width: "50", align: "center" },
|
|
|
|
|
{ type: "seq", width: "50", title: "序号", align: "center" },
|
|
|
|
|
// {
|
|
|
|
|
// field: "sbbh",
|
|
|
|
|
// title: "设备编号",
|
|
|
|
|
// align: "center",
|
|
|
|
|
// minWidth: "90",
|
|
|
|
|
// slots: { edit: "sbbh_edit" },
|
|
|
|
|
// filters: [
|
|
|
|
|
// {
|
|
|
|
|
// data: {
|
|
|
|
|
// checks: [],
|
|
|
|
|
// sVal: "",
|
|
|
|
|
// sMenu: "",
|
|
|
|
|
// fType1: "",
|
|
|
|
|
// fVal1: "",
|
|
|
|
|
// fMode: "and",
|
|
|
|
|
// fType2: "",
|
|
|
|
|
// fVal2: "",
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
// ],
|
|
|
|
|
// filterRender: { name: "FilterCombination" },
|
|
|
|
|
// },
|
|
|
|
|
{
|
|
|
|
|
field: "kw",
|
|
|
|
|
title: "跨位",
|
|
|
|
@ -148,7 +170,11 @@ export default {
|
|
|
|
|
title: "工序",
|
|
|
|
|
align: "center",
|
|
|
|
|
minWidth: "70",
|
|
|
|
|
editRender: { name: "input" },
|
|
|
|
|
editRender: {
|
|
|
|
|
name: "$select",
|
|
|
|
|
options: [],
|
|
|
|
|
props: { clearable: true },
|
|
|
|
|
},
|
|
|
|
|
filters: [
|
|
|
|
|
{
|
|
|
|
|
data: {
|
|
|
|
@ -167,7 +193,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "szcs",
|
|
|
|
|
title: "所属部门",
|
|
|
|
|
title: "设备所属部门",
|
|
|
|
|
align: "center",
|
|
|
|
|
minWidth: "90",
|
|
|
|
|
editRender: {
|
|
|
|
@ -223,29 +249,6 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
filterRender: { name: "FilterCombination" },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "sbbh",
|
|
|
|
|
title: "设备编号",
|
|
|
|
|
align: "center",
|
|
|
|
|
minWidth: "90",
|
|
|
|
|
editRender: { name: "input" },
|
|
|
|
|
slots: { edit: "sbbh_edit" },
|
|
|
|
|
filters: [
|
|
|
|
|
{
|
|
|
|
|
data: {
|
|
|
|
|
checks: [],
|
|
|
|
|
sVal: "",
|
|
|
|
|
sMenu: "",
|
|
|
|
|
fType1: "",
|
|
|
|
|
fVal1: "",
|
|
|
|
|
fMode: "and",
|
|
|
|
|
fType2: "",
|
|
|
|
|
fVal2: "",
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
filterRender: { name: "FilterCombination" },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "sbcn",
|
|
|
|
|
title: "产能(每小时)",
|
|
|
|
@ -273,7 +276,11 @@ export default {
|
|
|
|
|
title: "产能单位",
|
|
|
|
|
align: "center",
|
|
|
|
|
minWidth: "90",
|
|
|
|
|
editRender: { name: "input" },
|
|
|
|
|
editRender: {
|
|
|
|
|
name: "$select",
|
|
|
|
|
options: [],
|
|
|
|
|
props: { clearable: true },
|
|
|
|
|
},
|
|
|
|
|
filters: [
|
|
|
|
|
{
|
|
|
|
|
data: {
|
|
|
|
@ -291,8 +298,8 @@ export default {
|
|
|
|
|
filterRender: { name: "FilterCombination" },
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: "dwsj",
|
|
|
|
|
title: "产能系数",
|
|
|
|
|
field: "",
|
|
|
|
|
title: "设备默认排产顺序",
|
|
|
|
|
align: "center",
|
|
|
|
|
minWidth: "90",
|
|
|
|
|
editRender: { name: "input" },
|
|
|
|
@ -330,8 +337,47 @@ export default {
|
|
|
|
|
this.emSbjbbZM("bmbm");
|
|
|
|
|
this.getBMMCBM();
|
|
|
|
|
this.initList();
|
|
|
|
|
this.initgxList();
|
|
|
|
|
this.initdwList();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
//工序 xn20231110
|
|
|
|
|
initgxList(){
|
|
|
|
|
const dict=window.localStorage.getItem( 'PCGX');
|
|
|
|
|
const gxList =JSON.parse(dict)
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
const tableRef = this.$refs.tableRef;
|
|
|
|
|
const gx = tableRef.getColumnByField("gx");
|
|
|
|
|
const testList = [];
|
|
|
|
|
for (let i = 0; i < gxList.length; i++) {
|
|
|
|
|
const temp = {
|
|
|
|
|
label: gxList[i].bmsm,
|
|
|
|
|
value: gxList[i].bm,
|
|
|
|
|
};
|
|
|
|
|
testList.push(temp);
|
|
|
|
|
}
|
|
|
|
|
gx.editRender.options = testList;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
initdwList(){
|
|
|
|
|
const dict=window.localStorage.getItem( 'JLDW');
|
|
|
|
|
const dwList =JSON.parse(dict)
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
const tableRef = this.$refs.tableRef;
|
|
|
|
|
const dw = tableRef.getColumnByField("dw");
|
|
|
|
|
const testList = [];
|
|
|
|
|
for (let i = 0; i < dwList.length; i++) {
|
|
|
|
|
const temp = {
|
|
|
|
|
label: dwList[i].bmsm,
|
|
|
|
|
value: dwList[i].bm,
|
|
|
|
|
};
|
|
|
|
|
testList.push(temp);
|
|
|
|
|
}
|
|
|
|
|
dw.editRender.options = testList;
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
// 部门对应设备名称和编号
|
|
|
|
|
getBMMCBM() {
|
|
|
|
|
getBMMCBM().then((res) => {
|
|
|
|
|