diff --git a/src/api/wms/equipment.js b/src/api/wms/equipment.js
index 05aa299..c46a7ff 100644
--- a/src/api/wms/equipment.js
+++ b/src/api/wms/equipment.js
@@ -2,43 +2,51 @@ import request from '@/utils/request'
// 查询设备管理列表
export function listEquipment(query) {
- return request({
- url: '/wms/equipment/list',
- method: 'get',
- params: query
- });
+ return request({
+ url: '/wms/equipment/list',
+ method: 'get',
+ params: query
+ });
}
// 查询设备管理详细
export function getEquipment(equipmentId) {
- return request({
- url: '/wms/equipment/' + equipmentId,
- method: 'get'
- });
+ return request({
+ url: '/wms/equipment/' + equipmentId,
+ method: 'get'
+ });
}
// 新增设备管理
export function addEquipment(data) {
- return request({
- url: '/wms/equipment',
- method: 'post',
- data: data
- });
+ return request({
+ url: '/wms/equipment',
+ method: 'post',
+ data: data
+ });
}
// 修改设备管理
export function updateEquipment(data) {
- return request({
- url: '/wms/equipment',
- method: 'put',
- data: data
- });
+ return request({
+ url: '/wms/equipment',
+ method: 'put',
+ data: data
+ });
}
-// 删除设备管理
+// 删除设备管
export function delEquipment(equipmentId) {
- return request({
- url: '/wms/equipment/' + equipmentId,
- method: 'delete'
- });
+ return request({
+ url: '/wms/equipment/' + equipmentId,
+ method: 'delete'
+ });
+}
+
+// 查询部门下拉树结构
+export function treeselect() {
+ return request({
+ url: '/wms/equipment/tree',
+ method: 'get'
+ })
}
diff --git a/src/views/technology/process/content.vue b/src/views/technology/process/content.vue
index 2e784c8..837e770 100644
--- a/src/views/technology/process/content.vue
+++ b/src/views/technology/process/content.vue
@@ -8,7 +8,7 @@
icon="el-icon-plus"
size="mini"
@click="handleAdd"
-
+ v-hasPermi="['mes:pro:processcontent:add']"
>新增
@@ -19,7 +19,7 @@
size="mini"
:disabled="single"
@click="handleUpdate"
-
+ v-hasPermi="['mes:pro:processcontent:edit']"
>修改
@@ -30,7 +30,7 @@
size="mini"
:disabled="multiple"
@click="handleDelete"
-
+ v-hasPermi="['mes:pro:processcontent:remove']"
>删除
@@ -40,7 +40,7 @@
icon="el-icon-download"
size="mini"
@click="handleExport"
-
+ v-hasPermi="['mes:pro:processcontent:export']"
>导出
@@ -60,14 +60,14 @@
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
-
+ v-hasPermi="['mes:pro:processcontent:edit']"
>修改
删除
@@ -100,7 +100,10 @@
-
+
+
+
+
@@ -129,16 +132,15 @@
取 消
-
diff --git a/src/views/wms/equipment/index.vue b/src/views/wms/equipment/index.vue
index 17e96a4..5957b30 100644
--- a/src/views/wms/equipment/index.vue
+++ b/src/views/wms/equipment/index.vue
@@ -90,10 +90,8 @@
-
-
@@ -151,8 +149,15 @@
-
-
+
+
+
+
@@ -212,6 +217,7 @@ import EquipmentBoundMaterials from "./equipmentBoundMaterials";
export default {
name: "Equipment",
components: {EquipmentBoundMaterials},
+ dicts: ['sys_normal_disable', 'equ_type'],
data() {
return {
// 遮罩层