diff --git a/.env.dev b/.env.dev
index 9830c162..1e9a1f65 100644
--- a/.env.dev
+++ b/.env.dev
@@ -13,11 +13,11 @@ VUE_APP_TITLE = MES系统
# 芋道管理系统/开发环境
# VUE_APP_BASE_API = 'http://100.64.0.26:48082'
-# VUE_APP_BASE_API = 'http://192.168.0.33:48082'
+VUE_APP_BASE_API = 'http://192.168.0.33:48082'
# VUE_APP_BASE_API = 'http://192.168.4.173:48080'
# VUE_APP_BASE_API = 'http://192.168.2.173:48080'
# VUE_APP_BASE_API = 'http://192.168.1.49:48080'
-VUE_APP_BASE_API = 'http://192.168.1.8:48082'
+# VUE_APP_BASE_API = 'http://192.168.1.8:48082'
# VUE_APP_BASE_API = 'http://192.168.4.159:48080'
# VUE_APP_BASE_API = 'http://192.168.1.56:48080'
# VUE_APP_BASE_API = 'http://192.168.4.159:48080'
diff --git a/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue b/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue
index 7a6f7a67..8731cd6f 100644
--- a/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue
+++ b/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue
@@ -31,25 +31,56 @@
-
+
+
+
+
+ 添加报警
+
+
+
编辑
- 确定
-
-
+
@@ -226,7 +250,7 @@ export default {
bind: {
// 详情 模式下,禁用各种输入
// disabled: this.mode == 'detail',
- disabled: true
+ disabled: true,
},
};
});
diff --git a/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue b/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue
index 3bfb196c..bd599044 100644
--- a/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue
+++ b/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue
@@ -31,25 +31,56 @@
-
+
+
+
+
+ 添加属性
+
+
+
编辑
- 确定
-
-
+
diff --git a/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue b/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue
index 617ba9b5..8fe9f1b1 100644
--- a/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue
+++ b/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue
@@ -31,25 +31,58 @@
-
+
+
+
+
+ 添加属性
+
+
+
编辑
- 确定
-
-
+
@@ -199,23 +225,22 @@ export default {
label: '设备参数类型',
prop: 'equipment_param_type',
options: [
- { label: '一般参数', value: 1 },
- { label: '工艺参数', value: 2 },
- { label: '报警参数', value: 3 },
- ],
+ { label: '一般参数', value: 1 },
+ { label: '工艺参数', value: 2 },
+ { label: '报警参数', value: 3 },
+ ],
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
},
{
- select: true,
+ select: true,
label: '生产参数类型',
- prop: 'production_param_type',
+ prop: 'production_param_type',
options: [
- { label: '进片数量', value: 1 },
- { label: '出片数量', value: 2 },
- { label: '破损数量', value: 3 },
- { label: '无类型', value: 4 },
-
- ],
+ { label: '进片数量', value: 1 },
+ { label: '出片数量', value: 2 },
+ { label: '破损数量', value: 3 },
+ { label: '无类型', value: 4 },
+ ],
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
},
],
diff --git a/src/views/equipment/base/maintain/Record/index.vue b/src/views/equipment/base/maintain/Record/index.vue
index 773db584..a2d91f5b 100644
--- a/src/views/equipment/base/maintain/Record/index.vue
+++ b/src/views/equipment/base/maintain/Record/index.vue
@@ -42,7 +42,7 @@
v-if="open"
ref="form"
v-model="form"
- :disabled="mode == 'detail'"
+ :disabled="mode == 'detail'"
:has-files="true"
:rows="rows" />
@@ -53,7 +53,7 @@
import moment from 'moment';
import basicPageMixin from '@/mixins/lb/basicPageMixin';
import Editor from '@/components/Editor';
-import { deleteEqMaintainLog } from '@/api/equipment/base/maintain/record'
+import { deleteEqMaintainLog } from '@/api/equipment/base/maintain/record';
const timeFilter = (val) => moment(val).format('yyyy-MM-DD HH:mm:ss');
@@ -64,7 +64,6 @@ export default {
data() {
return {
searchBarKeys: [
- 'maintainPlanId',
'maintainPlanId',
'startTime',
'relatePlan',
@@ -190,7 +189,6 @@ export default {
rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
},
{
- // TODO: 和班组联动
select: true,
label: '保养人员',
prop: 'maintainWorker',
@@ -222,11 +220,10 @@ export default {
},
{},
{
- // TODO: 和计划联动
select: true,
label: '所属计划',
prop: 'maintainPlanId',
- url: '',
+ url: '/base/equipment-maintain-plan/page',
bind: {
filterable: true,
clearable: true,
@@ -273,9 +270,16 @@ export default {
},
],
// TODO: 富文本
- [{ label: '保养描述', prop: 'maintenanceDes', subcomponent: Editor, bind: {
- 'min-height': 192
- } }],
+ [
+ {
+ label: '保养描述',
+ prop: 'maintenanceDes',
+ subcomponent: Editor,
+ bind: {
+ 'min-height': 192,
+ },
+ },
+ ],
[{ input: true, label: '备注', prop: 'remark' }],
],
// 是否显示弹出层
@@ -293,20 +297,26 @@ export default {
// 表单参数
form: {},
basePath: '/base/equipment-maintain-log',
- mode: null
+ mode: null,
};
},
created() {
this.initSearchBar();
if (this.$route.query) {
- this.queryParams.equipmentId = this.$route.query?.equipmentId ?? undefined
- this.queryParams.maintainPlanId = this.$route.query?.maintainPlanId ?? undefined
- this.queryParams.relatePlan = this.$route.query?.relatePlan ?? undefined
- this.queryParams.startTime = this.$route.query?.createTime ?? undefined
- this.searchBarFormConfig[0].defaultSelect = this.$route.query.equipmentId ?? undefined
- this.searchBarFormConfig[1].defaultSelect = Number(this.$route.query.maintainPlanId) ?? undefined
- this.searchBarFormConfig[2].defaultSelect = this.$route.query?.createTime ?? undefined
- this.searchBarFormConfig[3].defaultSelect = Number(this.$route.query.relatePlan) ?? undefined
+ this.queryParams.equipmentId =
+ this.$route.query?.equipmentId ?? undefined;
+ this.queryParams.maintainPlanId =
+ this.$route.query?.maintainPlanId ?? undefined;
+ this.queryParams.relatePlan = this.$route.query?.relatePlan ?? undefined;
+ this.queryParams.startTime = this.$route.query?.createTime ?? undefined;
+ this.searchBarFormConfig[0].defaultSelect =
+ this.$route.query.equipmentId ?? undefined;
+ this.searchBarFormConfig[1].defaultSelect =
+ Number(this.$route.query.maintainPlanId) ?? undefined;
+ this.searchBarFormConfig[2].defaultSelect =
+ this.$route.query?.createTime ?? undefined;
+ this.searchBarFormConfig[3].defaultSelect =
+ Number(this.$route.query.relatePlan) ?? undefined;
}
this.getList();
},
@@ -349,7 +359,7 @@ export default {
/** 取消按钮 */
cancel() {
this.open = false;
- this.mode = null;
+ this.mode = null;
this.reset();
},
/** 表单重置 */
@@ -399,7 +409,7 @@ export default {
this.info({ id }).then((response) => {
this.form = response.data;
this.open = true;
- this.form.maintainWorker = this.form.maintainWorker.split(',')
+ this.form.maintainWorker = this.form.maintainWorker.split(',');
this.title = '修改保养记录';
});
},
@@ -409,7 +419,7 @@ export default {
if (!valid) {
return;
}
- this.form.maintainWorker = this.form.maintainWorker.join(',')
+ this.form.maintainWorker = this.form.maintainWorker.join(',');
// 修改的提交
if (this.form.id != null) {
this.put(this.form).then((response) => {
@@ -431,7 +441,9 @@ export default {
handleDelete(row) {
const id = row.id;
this.$modal
- .confirm('是否删除设备保养单号为"' + row.maintainOrderNumber + '"的数据项?')
+ .confirm(
+ '是否删除设备保养单号为"' + row.maintainOrderNumber + '"的数据项?'
+ )
.then(function () {
return deleteEqMaintainLog(id);
})
@@ -443,7 +455,7 @@ export default {
},
handleDetail({ id }) {
this.reset();
- this.mode = 'detail'
+ this.mode = 'detail';
this.info({ id }).then((response) => {
this.form = response.data;
this.open = true;
diff --git a/src/views/equipment/base/repair/CustomDialogForm.vue b/src/views/equipment/base/repair/CustomDialogForm.vue
index 6701bf3f..e854d239 100644
--- a/src/views/equipment/base/repair/CustomDialogForm.vue
+++ b/src/views/equipment/base/repair/CustomDialogForm.vue
@@ -19,6 +19,7 @@
ref="form"
:model="dataForm"
label-width="100px"
+ label-position="top"
v-loading="formLoading">
@@ -213,7 +214,7 @@ export default {
this.visible = false;
},
goEdit() {
- this.isdetail = false;
+ this.disabled = false;
},
/** 模拟透传 ref */
validate(cb) {