|
|
@@ -2,46 +2,32 @@
|
|
|
<div>
|
|
|
<!-- 数据表格 -->
|
|
|
<ele-pro-table ref="table" :columns="columns" :datasource="datasource" :need-page="true" :selection.sync="selection"
|
|
|
-
|
|
|
- :current.sync="rowCurrent"
|
|
|
- highlight-current-row
|
|
|
-
|
|
|
- height="calc(100vh - 412px)" full-height="calc(100vh - 116px)" tool-class="ele-toolbar-form"
|
|
|
- cache-key="systemDictDataTable">
|
|
|
+ :current.sync="rowCurrent" highlight-current-row height="calc(100vh - 412px)" full-height="calc(100vh - 116px)"
|
|
|
+ tool-class="ele-toolbar-form" cache-key="systemDictDataTable">
|
|
|
<!-- 表头工具栏 -->
|
|
|
<template v-slot:toolbar>
|
|
|
<el-button size="small" type="primary" icon="el-icon-plus" class="ele-btn-icon" @click="openEdit({}, 2)">
|
|
|
- 新建
|
|
|
+ 新建
|
|
|
</el-button>
|
|
|
-
|
|
|
- <el-button v-if="rootTreeId == 9" size="small" type="primary" @click="handleLink('4')"
|
|
|
- >关联设备</el-button
|
|
|
- >
|
|
|
- <el-button v-if="rootTreeId == 9" size="small" type="primary" @click="handleLink('5')"
|
|
|
- >关联模具</el-button
|
|
|
- >
|
|
|
- <el-button v-if="rootTreeId == 9" size="small" type="primary" @click="handleLink('8')"
|
|
|
- >关联舟皿</el-button
|
|
|
- >
|
|
|
-
|
|
|
- <el-button v-if="rootTreeId == 4" size="small" type="primary" @click="handleLink('5')"
|
|
|
- >关联模具</el-button
|
|
|
- >
|
|
|
- <el-button v-if="rootTreeId == 4" size="small" type="primary" @click="handleLink('6')"
|
|
|
- >关联备品备件</el-button
|
|
|
- >
|
|
|
+
|
|
|
+ <el-button v-if="rootTreeId == 9" size="small" type="primary" @click="handleLink('4')">关联设备</el-button>
|
|
|
+ <el-button v-if="rootTreeId == 9" size="small" type="primary" @click="handleLink('5')">关联模具</el-button>
|
|
|
+ <el-button v-if="rootTreeId == 9" size="small" type="primary" @click="handleLink('8')">关联舟皿</el-button>
|
|
|
+
|
|
|
+ <el-button v-if="rootTreeId == 4" size="small" type="primary" @click="handleLink('5')">关联模具</el-button>
|
|
|
+ <el-button v-if="rootTreeId == 4" size="small" type="primary" @click="handleLink('6')">关联备品备件</el-button>
|
|
|
|
|
|
</template>
|
|
|
<template v-slot:action="{ row }">
|
|
|
<el-link type="primary" :underline="false" @click="openEdit(row, 1)">
|
|
|
复制
|
|
|
</el-link>
|
|
|
- <el-link type="primary" :underline="false" @click="openEdit(row, 0)">
|
|
|
+ <el-link type="primary" :underline="false" @click="openEdit(row, 0)">
|
|
|
修改
|
|
|
</el-link>
|
|
|
<el-popconfirm class="ele-action" title="确定要删除此物料吗?" @confirm="remove(row)">
|
|
|
<template v-slot:reference>
|
|
|
- <el-link type="danger" :underline="false" >
|
|
|
+ <el-link type="danger" :underline="false">
|
|
|
删除
|
|
|
</el-link>
|
|
|
</template>
|
|
|
@@ -51,23 +37,24 @@
|
|
|
<el-link type="primary" v-if="row.isProduct == 1" :underline="false" @click="openParam(row)">
|
|
|
工艺参数
|
|
|
</el-link>
|
|
|
-
|
|
|
|
|
|
- <el-link type="primary" v-if="row.isProduct == 1" :underline="false" @click="openMaterial(row)">
|
|
|
+
|
|
|
+ <el-link type="primary" v-if="row.isProduct == 1" :underline="false" @click="openMaterial(row)">
|
|
|
物料BOM
|
|
|
</el-link>
|
|
|
|
|
|
-
|
|
|
- <el-link type="primary" v-if="row.isProduct == 1" :underline="false" @click="openMould(row)" >
|
|
|
+
|
|
|
+ <el-link type="primary" v-if="row.isProduct == 1" :underline="false" @click="openMould(row)">
|
|
|
模具
|
|
|
</el-link>
|
|
|
|
|
|
|
|
|
- <el-link type="primary" v-if="row.categoryLevelPathIdParent == 7" :underline="false" @click="handAllocation(row)" >
|
|
|
+ <el-link type="primary" v-if="row.categoryLevelPathIdParent == 7" :underline="false" @click="handAllocation(row)">
|
|
|
货位
|
|
|
</el-link>
|
|
|
|
|
|
- <el-link type="primary" v-if="row.categoryLevelPathIdParent == 11" :underline="false" @click="handleAridRegion(row)" >
|
|
|
+ <el-link type="primary" v-if="row.categoryLevelPathIdParent == 11" :underline="false"
|
|
|
+ @click="handleAridRegion(row)">
|
|
|
干燥区
|
|
|
</el-link>
|
|
|
|
|
|
@@ -81,19 +68,19 @@
|
|
|
<MaterialModal :visible.sync="materialEdit" :data="current" ref="materialRefs"></MaterialModal>
|
|
|
|
|
|
<!-- 工艺参数 -->
|
|
|
- <ParamEdit :visible.sync="paramEditShow" :paramData="current" ref="paramRefs"></ParamEdit>
|
|
|
+ <ParamEdit :visible.sync="paramEditShow" :paramData="current" ref="paramRefs"></ParamEdit>
|
|
|
|
|
|
<!-- 模具 -->
|
|
|
- <mouldDialog :visible.sync="mouldShow" :data="current" ref="mouldRefs"></mouldDialog>
|
|
|
+ <mouldDialog :visible.sync="mouldShow" :data="current" ref="mouldRefs"></mouldDialog>
|
|
|
|
|
|
<linkMaterialDialog ref="linkMaterialDialogRef" @success="success" />
|
|
|
|
|
|
<!-- 货位 -->
|
|
|
<goodsAllocation ref="allocationRef"></goodsAllocation>
|
|
|
-
|
|
|
+
|
|
|
<!-- 干燥区 -->
|
|
|
<aridRegion ref="aridRegionRef"></aridRegion>
|
|
|
-
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -232,7 +219,7 @@ export default {
|
|
|
|
|
|
rowCurrent: null,
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
};
|
|
|
},
|
|
|
@@ -295,7 +282,7 @@ export default {
|
|
|
this.paramEditShow = true;
|
|
|
this.current = row;
|
|
|
this.$refs.paramRefs.$refs.form &&
|
|
|
- this.$refs.paramRefs.$refs.form.clearValidate();
|
|
|
+ this.$refs.paramRefs.$refs.form.clearValidate();
|
|
|
|
|
|
},
|
|
|
|
|
|
@@ -303,29 +290,29 @@ export default {
|
|
|
this.current = row;
|
|
|
this.mouldShow = true;
|
|
|
this.$refs.mouldRefs.$refs.form &&
|
|
|
- this.$refs.mouldRefs.$refs.form.clearValidate();
|
|
|
+ this.$refs.mouldRefs.$refs.form.clearValidate();
|
|
|
},
|
|
|
|
|
|
- handleLink (type) {
|
|
|
- if (!this.rowCurrent) {
|
|
|
- return this.$message.error( this.rootTreeId == 9 ? '请选择产品!' : this.rootTreeId == 4 ? '请选择设备!' : '');
|
|
|
- }
|
|
|
+ handleLink(type) {
|
|
|
+ if (!this.rowCurrent) {
|
|
|
+ return this.$message.error(this.rootTreeId == 9 ? '请选择产品!' : this.rootTreeId == 4 ? '请选择设备!' : '');
|
|
|
+ }
|
|
|
|
|
|
- this.$refs.linkMaterialDialogRef.open(type, this.rowCurrent);
|
|
|
- },
|
|
|
+ this.$refs.linkMaterialDialogRef.open(type, this.rowCurrent);
|
|
|
+ },
|
|
|
|
|
|
- success () {
|
|
|
- this.reload();
|
|
|
- },
|
|
|
+ success() {
|
|
|
+ this.reload();
|
|
|
+ },
|
|
|
|
|
|
|
|
|
- handAllocation(row) {
|
|
|
- this.$refs.allocationRef.open(row)
|
|
|
- },
|
|
|
+ handAllocation(row) {
|
|
|
+ this.$refs.allocationRef.open(row)
|
|
|
+ },
|
|
|
|
|
|
- handleAridRegion(row){
|
|
|
- this.$refs.aridRegionRef.open(row)
|
|
|
- }
|
|
|
+ handleAridRegion(row) {
|
|
|
+ this.$refs.aridRegionRef.open(row)
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|