diff --git a/.env.dev b/.env.dev index c9990cf5..1e9a1f65 100644 --- a/.env.dev +++ b/.env.dev @@ -17,10 +17,14 @@ 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:48080' +# 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' + +# 积木报表指向地址 +VUE_APP_JIMU_API = 'http://192.168.0.33:48082' + # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/.env.prod b/.env.prod index 70b8fb4a..4fa71c08 100644 --- a/.env.prod +++ b/.env.prod @@ -12,7 +12,10 @@ ENV = 'production' VUE_APP_TITLE = MES系统 # 芋道管理系统/生产环境 -VUE_APP_BASE_API = 'http://192.168.0.33:48082' +VUE_APP_BASE_API = '/prod-api' + +# 积木报表指向地址 +VUE_APP_JIMU_API = 'http://192.168.0.33:48082' # 根据服务器或域名修改 diff --git a/src/api/equipment/base/inspection/record.js b/src/api/equipment/base/inspection/record.js index 7cf3941c..31bb481e 100644 --- a/src/api/equipment/base/inspection/record.js +++ b/src/api/equipment/base/inspection/record.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-11-08 15:56:52 - * @LastEditTime: 2023-11-13 09:15:17 + * @LastEditTime: 2023-11-16 20:15:02 * @LastEditors: DY * @Description: */ @@ -60,3 +60,11 @@ export function getcheckConfigByEqList(query) { params: query }) } + +// 删除设备巡检记录 +export function deleteEqCheckLog(id) { + return request({ + url: '/base/equipment-check-log/delete?id=' + id, + method: 'delete' + }) +} diff --git a/src/api/equipment/base/maintain/record.js b/src/api/equipment/base/maintain/record.js new file mode 100644 index 00000000..e4385ea6 --- /dev/null +++ b/src/api/equipment/base/maintain/record.js @@ -0,0 +1,16 @@ +/* + * @Author: Do not edit + * @Date: 2023-11-08 15:56:52 + * @LastEditTime: 2023-11-16 20:22:12 + * @LastEditors: DY + * @Description: + */ +import request from '@/utils/request' + +// 删除设备保养记录 +export function deleteEqMaintainLog(id) { + return request({ + url: '/base/equipment-maintain-log/delete?id=' + id, + method: 'delete' + }) +} diff --git a/src/api/equipment/base/repair.js b/src/api/equipment/base/repair.js index a93e4a9f..c8b115e2 100644 --- a/src/api/equipment/base/repair.js +++ b/src/api/equipment/base/repair.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-11-10 16:09:33 - * @LastEditTime: 2023-11-10 16:50:08 + * @LastEditTime: 2023-11-16 18:57:08 * @LastEditors: DY * @Description: */ @@ -22,4 +22,12 @@ export function updateEqRepair(data) { method: 'put', data: data }) -} \ No newline at end of file +} + +// 删除维修记录 +export function deleteRepair(id) { + return request({ + url: '/base/equipment-repair-log/delete?id=' + id, + method: 'delete' + }) +} diff --git a/src/api/equipment/base/spare-parts/config.js b/src/api/equipment/base/spare-parts/config.js index b2201cad..0abc7f56 100644 --- a/src/api/equipment/base/spare-parts/config.js +++ b/src/api/equipment/base/spare-parts/config.js @@ -1,7 +1,7 @@ /* * @Author: Do not edit * @Date: 2023-11-11 16:18:57 - * @LastEditTime: 2023-11-11 17:28:54 + * @LastEditTime: 2023-11-16 20:52:06 * @LastEditors: DY * @Description: */ @@ -48,4 +48,21 @@ export function getSparePartList(query) { method: 'get', params: query }) -} \ No newline at end of file +} + +// 删除设备备品备件配置 +export function deleteConfig(id) { + return request({ + url: '/base/equipment-spare-part-config/delete?id=' + id, + method: 'delete' + }) +} + +// 获得备品备件分页 +export function getSparePartPage(query) { + return request({ + url: '/base/equipment-spare-part/page', + method: 'get', + params: query + }) +} diff --git a/src/assets/icons/svg/home.svg b/src/assets/icons/svg/home.svg new file mode 100644 index 00000000..d299a79c --- /dev/null +++ b/src/assets/icons/svg/home.svg @@ -0,0 +1,12 @@ + + + 编组 + + + + + + + + + \ No newline at end of file diff --git a/src/components/DialogForm/index.vue b/src/components/DialogForm/index.vue index 4449dab1..53655af5 100644 --- a/src/components/DialogForm/index.vue +++ b/src/components/DialogForm/index.vue @@ -65,6 +65,7 @@ v-if="col.subcomponent" :key="col.key" :disabled="disabled" + :read-only="disabled" :is="col.subcomponent" v-model="form[col.prop]" :inlineStyle="col.style" diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue index bc14fc3a..7cb684f3 100644 --- a/src/components/Editor/index.vue +++ b/src/components/Editor/index.vue @@ -1,279 +1,293 @@ diff --git a/src/layout/components/NavbarRight.vue b/src/layout/components/NavbarRight.vue index 66460aff..228cde89 100644 --- a/src/layout/components/NavbarRight.vue +++ b/src/layout/components/NavbarRight.vue @@ -1,5 +1,8 @@ @@ -244,7 +256,7 @@ export default { align-items: center; } .choicepart-box { - // border: 1px solid red; + // transition: all 0.3s linear; .choicepart-line1 { width: 100%; margin-bottom: 80px; diff --git a/src/views/core/monitoring/data24/index.vue b/src/views/core/monitoring/data24/index.vue index 3b5b1365..3f2c7e06 100644 --- a/src/views/core/monitoring/data24/index.vue +++ b/src/views/core/monitoring/data24/index.vue @@ -127,18 +127,19 @@ export default { lineData[it.recordTime + '_area'] = it.area }) console.log('你好', this.monitorList) - this.monitorList.forEach(m => { - console.log('455', m) - if (m.lineName === lineData.proLineName) { - m.data.forEach(bad => { - // 转成时间戳 - // console.log('233', Date.parse(bad.dynamicName)) - const stamp = Date.parse(bad.dynamicName) - lineData[stamp + '_bad'] = bad.dynamicValue - lineData[stamp + '_percent'] = (lineData[stamp + '_bad'] / lineData[stamp + '_down'] * 100).toFixed(2) + '%' - }) - } - }) + if (this.monitorList.length > 0) { + this.monitorList.forEach(m => { + if (m.lineName === lineData.proLineName) { + m.data.forEach(bad => { + // 转成时间戳 + // console.log('233', Date.parse(bad.dynamicName)) + const stamp = Date.parse(bad.dynamicName) + lineData[stamp + '_bad'] = bad.dynamicValue + lineData[stamp + '_percent'] = (lineData[stamp + '_bad'] / lineData[stamp + '_down'] * 100).toFixed(2) + '%' + }) + } + }) + } lineData['workOrderName'] = works.join(',') lineData['spec'] = specs.join(',') this.tableData.push(lineData) diff --git a/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue b/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue index 7a6f7a67..f12d707c 100644 --- a/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue +++ b/src/views/equipment/base/config/AlarmGroup/components/BasicDrawer.vue @@ -29,27 +29,60 @@
{{ section.name }} -
+
- + :rows="formRows" /> --> + + + +
+ 设备分组名称 +
+
{{ form.name }}
+
+ +
+ 设备分组编码 +
+
+ {{ form.code }} +
+
+
-
+
+ +
+ + + 添加报警 + +
+ 取消 - + - + --> +
@@ -99,9 +125,9 @@ + @@ -165,8 +191,30 @@ export default { label: '报警编码', // 自动生成 prop: 'code', url: '/base/equipment-group-alarm/getCode', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '报警编码不能为空', trigger: 'blur' }], }, + { + select: true, + label: '报警级别', // 字典 + prop: 'grade', + options: this.getDictDatas(this.DICT_TYPE.EQU_ALARM_LEVEL), + }, + ], + [ + { + input: true, + label: '参数列名', // 在实时数据库的列名 + prop: 'plcParamName', + rules: [{ required: true, message: '参数列名不能为空', trigger: 'blur' }], + }, + { + input: true, + label: '报警内容', + prop: 'alarmContent', + rules: [{ required: true, message: '报警内容不能为空', trigger: 'blur' }], + }, + ], + [ { select: true, label: '报警类型', // 固定选项 @@ -175,15 +223,7 @@ export default { { label: '布尔型', value: 2 }, { label: '字符型', value: 1 }, ], - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], - }, - ], - [ - { - select: true, - label: '报警级别', // 字典 - prop: 'grade', - options: this.getDictDatas(this.DICT_TYPE.EQU_ALARM_LEVEL), + rules: [{ required: true, message: '报警类型不能为空', trigger: 'blur' }], }, { input: true, @@ -191,20 +231,6 @@ export default { prop: 'alarmCode', }, ], - [ - { - input: true, - label: '参数列名', // 在实时数据库的列名 - prop: 'plcParamName', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], - }, - { - input: true, - label: '报警内容', - prop: 'alarmContent', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], - }, - ], ], attrQuery: { params: { @@ -226,7 +252,7 @@ export default { bind: { // 详情 模式下,禁用各种输入 // disabled: this.mode == 'detail', - disabled: true + disabled: true, }, }; }); diff --git a/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue b/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue index ec7a67a0..cab8b8fd 100644 --- a/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue +++ b/src/views/equipment/base/config/AlarmGroup/components/dialogForm.vue @@ -16,46 +16,26 @@ + :rules="[{ required: true, message: '报警编码不能为空', trigger: 'blur' }]"> - - + label="报警级别" + prop="grade" + :rules="[{ required: true, message: '报警级别不能为空', trigger: 'blur' }]"> + v-model="dataForm.grade" + placeholder="请选择报警级别" + @change="$emit('update', dataForm)"> @@ -66,16 +46,45 @@ + label="参数列名" + prop="plcParamName" + :rules="[{ required: true, message: '参数列名不能为空', trigger: 'blur' }]"> + + + + + + + + + + + + + v-model="dataForm.type" + placeholder="请选择报警类型" + @change="handleTypeChange"> @@ -96,32 +105,6 @@ - - - - - - - - - - - - diff --git a/src/views/equipment/base/config/AlarmGroup/index.vue b/src/views/equipment/base/config/AlarmGroup/index.vue index e03c4e79..f94945c1 100644 --- a/src/views/equipment/base/config/AlarmGroup/index.vue +++ b/src/views/equipment/base/config/AlarmGroup/index.vue @@ -38,7 +38,7 @@ @close="cancel" @cancel="cancel" @confirm="submitForm"> - + @@ -183,10 +183,7 @@ export default { input: true, label: '设备分组名称', prop: 'name', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], - // bind: { - // disabled: this.editMode == 'detail', // some condition, like detail mode... - // } + rules: [{ required: true, message: '设备分组名称不能为空', trigger: 'blur' }], }, { input: true, @@ -271,7 +268,7 @@ export default { input: true, label: '分组名称', prop: 'name', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '分组名称不能为空', trigger: 'blur' }], // bind: { // disabled: true, // some condition, like detail mode... // } @@ -283,7 +280,7 @@ export default { label: '分组编码', prop: 'code', url: '/base/equipment-group/getCode', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '分组编码不能为空', trigger: 'blur' }], }, ], [ @@ -291,7 +288,6 @@ export default { input: true, label: '备注', prop: 'remark', - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], bind: { placeholder: '请输入备注', }, diff --git a/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue b/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue index 3bfb196c..7188b04a 100644 --- a/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue +++ b/src/views/equipment/base/config/BindGroup/components/BasicDrawer.vue @@ -29,27 +29,60 @@
{{ section.name }} -
+
- + :rows="formRows" /> --> + + + +
+ 设备分组名称 +
+
{{ form.name }}
+
+ +
+ 设备分组编码 +
+
+ {{ form.code }} +
+
+
-
+
+ +
+ + + 添加属性 + +
+ 取消 - + - + --> +
@@ -96,10 +122,10 @@ @close="closeAttrForm" @cancel="closeAttrForm" @confirm="submitAttrForm"> + @@ -165,7 +191,7 @@ export default { label: '报警编码', // 自动生成 prop: 'code', url: '/base/equipment-group-alarm/getCode', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '报警编码不能为空', trigger: 'blur' }], }, { select: true, @@ -175,7 +201,7 @@ export default { { label: '布尔型', value: 2 }, { label: '字符型', value: 1 }, ], - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '报警类型不能为空', trigger: 'blur' }], }, ], [ @@ -196,13 +222,13 @@ export default { input: true, label: '参数列名', // 在实时数据库的列名 prop: 'plcParamName', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '参数列名不能为空', trigger: 'blur' }], }, { input: true, label: '报警内容', prop: 'alarmContent', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '报警内容不能为空', trigger: 'blur' }], }, ], ], diff --git a/src/views/equipment/base/config/BindGroup/components/dialogForm.vue b/src/views/equipment/base/config/BindGroup/components/dialogForm.vue index fe7b848b..e16740fe 100644 --- a/src/views/equipment/base/config/BindGroup/components/dialogForm.vue +++ b/src/views/equipment/base/config/BindGroup/components/dialogForm.vue @@ -16,46 +16,27 @@ + :rules="[{ required: true, message: '报警编码不能为空', trigger: 'blur' }]"> - + label="报警级别" + prop="grade" + :rules="[{ required: true, message: '报警级别不能为空', trigger: 'blur' }]"> + v-model="dataForm.grade" + placeholder="请选择报警级别" + @change="$emit('update', dataForm)"> @@ -66,16 +47,45 @@ + label="参数列名" + prop="plcParamName" + :rules="[{ required: true, message: '参数列名不能为空', trigger: 'blur' }]"> + + + + + + + + + + + + + v-model="dataForm.type" + placeholder="请选择报警类型" + @change="handleTypeChange"> @@ -96,32 +106,6 @@ - - - - - - - - - - - - diff --git a/src/views/equipment/base/config/BindGroup/index.vue b/src/views/equipment/base/config/BindGroup/index.vue index 0e13b9aa..12b94408 100644 --- a/src/views/equipment/base/config/BindGroup/index.vue +++ b/src/views/equipment/base/config/BindGroup/index.vue @@ -38,7 +38,7 @@ @close="cancel" @cancel="cancel" @confirm="submitForm"> - + @@ -224,7 +224,7 @@ export default { bind: { filterable: true, }, - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '设备不能为空', trigger: 'blur' }], }, ], [ @@ -238,7 +238,7 @@ export default { bind: { filterable: true, }, - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '报警分组不能为空', trigger: 'blur' }], }, ], ], @@ -269,7 +269,7 @@ export default { input: true, label: '设备分组名称', prop: 'name', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '设备分组名称不能为空', trigger: 'blur' }], // bind: { // disabled: this.editMode == 'detail', // some condition, like detail mode... // } diff --git a/src/views/equipment/base/config/DataCollection/CollectionConfig.vue b/src/views/equipment/base/config/DataCollection/CollectionConfig.vue index 700cbb94..ac03952d 100644 --- a/src/views/equipment/base/config/DataCollection/CollectionConfig.vue +++ b/src/views/equipment/base/config/DataCollection/CollectionConfig.vue @@ -224,7 +224,7 @@ export default { prop: 'plcId', labelKey: `plcTableName`, url: '/base/equipment-plc/listAll', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '关联表名不能为空', trigger: 'blur' }], bind: { filterable: true, }, @@ -236,7 +236,7 @@ export default { label: '设备', prop: 'equipmentId', url: '/base/core-equipment/page?pageNo=1&pageSize=99', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '设备不能为空', trigger: 'blur' }], bind: { filterable: true, }, @@ -262,7 +262,7 @@ export default { input: true, label: '设备名', prop: 'equipmentName', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '设备名不能为空', trigger: 'blur' }], // bind: { // disabled: this.editMode == 'detail', // some condition, like detail mode... // } diff --git a/src/views/equipment/base/config/DataCollection/TableConfig.vue b/src/views/equipment/base/config/DataCollection/TableConfig.vue index 9eb98fd3..42e204f5 100644 --- a/src/views/equipment/base/config/DataCollection/TableConfig.vue +++ b/src/views/equipment/base/config/DataCollection/TableConfig.vue @@ -184,7 +184,7 @@ export default { input: true, label: '关联表名', prop: 'plcTableName', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '关联表名不能为空', trigger: 'blur' }], // bind: { // disabled: true, // some condition, like detail mode... // } @@ -194,7 +194,7 @@ export default { label: '编码', prop: 'code', url: '/base/equipment-group/getCode', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '编码不能为空', trigger: 'blur' }], }, ], [ @@ -202,7 +202,7 @@ export default { input: true, label: '标识', prop: 'name', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '标识不能为空', trigger: 'blur' }], // bind: { // disabled: true, // some condition, like detail mode... // } diff --git a/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue b/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue index 617ba9b5..45983d2b 100644 --- a/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue +++ b/src/views/equipment/base/config/DataCollection/components/BasicDrawer.vue @@ -29,27 +29,62 @@
{{ section.name }} -
+
- + :rows="formRows" /> --> + + + +
+ 设备名 +
+
+ {{ form.equipmentName }} +
+
+ +
+ 关联表名 +
+
+ {{ form.plcTableName }} +
+
+
-
+
+ +
+ + + 添加属性 + +
+ 取消 - + - + --> +
@@ -96,10 +124,10 @@ @close="closeAttrForm" @cancel="closeAttrForm" @confirm="submitAttrForm"> + @@ -166,13 +194,13 @@ export default { input: true, label: '参数列名', prop: 'plcParamName', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '参数列名不能为空', trigger: 'blur' }], }, { input: true, label: '参数名称', prop: 'name', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '参数名称不能为空', trigger: 'blur' }], }, ], [ @@ -181,7 +209,6 @@ export default { label: '单位', prop: 'unit', options: this.getDictDatas(this.DICT_TYPE.UNIT_DICT), - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, { switch: true, @@ -199,24 +226,23 @@ export default { label: '设备参数类型', prop: 'equipment_param_type', options: [ - { label: '一般参数', value: 1 }, - { label: '工艺参数', value: 2 }, - { label: '报警参数', value: 3 }, - ], - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + { 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 }, - - ], - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + { label: '进片数量', value: 1 }, + { label: '出片数量', value: 2 }, + { label: '破损数量', value: 3 }, + { label: '无类型', value: 4 }, + ], + rules: [{ required: true, message: '生产参数类型不能为空', trigger: 'blur' }], }, ], [ @@ -248,7 +274,6 @@ export default { transform: (val) => Number(val), }, ], - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, ], [ @@ -256,13 +281,11 @@ export default { input: true, label: '标准值', prop: 'defaultValue', - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, { input: true, label: '描述', prop: 'description', - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, ], [ @@ -270,7 +293,6 @@ export default { input: true, label: '备注', prop: 'remark', - // rules: [{ required: true, message: '不能为空', trigger: 'blur' }], }, ], ], diff --git a/src/views/equipment/base/config/deprecated/dialogForm.vue b/src/views/equipment/base/config/deprecated/dialogForm.vue deleted file mode 100644 index 329186da..00000000 --- a/src/views/equipment/base/config/deprecated/dialogForm.vue +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - - diff --git a/src/views/equipment/base/config/deprecated/index.vue b/src/views/equipment/base/config/deprecated/index.vue deleted file mode 100644 index dda58f82..00000000 --- a/src/views/equipment/base/config/deprecated/index.vue +++ /dev/null @@ -1,361 +0,0 @@ - - - diff --git a/src/views/equipment/base/inspection/Content/index.vue b/src/views/equipment/base/inspection/Content/index.vue index 22320c5f..bcdd8efd 100644 --- a/src/views/equipment/base/inspection/Content/index.vue +++ b/src/views/equipment/base/inspection/Content/index.vue @@ -127,7 +127,7 @@ export default { label: '巡检内容编号', prop: 'code', url: '/base/equipment-check/getCode', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '巡检内容编号不能为空', trigger: 'blur' }], }, ], [ @@ -135,7 +135,7 @@ export default { input: true, label: '巡检项目', prop: 'program', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '巡检项目不能为空', trigger: 'blur' }], }, ], [ @@ -143,7 +143,7 @@ export default { input: true, label: '巡检内容', prop: 'content', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '巡检内容不能为空', trigger: 'blur' }], }, ], [ diff --git a/src/views/equipment/base/inspection/Record/addRecord.vue b/src/views/equipment/base/inspection/Record/addRecord.vue index 6960f96b..b3c87a72 100644 --- a/src/views/equipment/base/inspection/Record/addRecord.vue +++ b/src/views/equipment/base/inspection/Record/addRecord.vue @@ -49,7 +49,8 @@ filterable :disabled="isdetail" style="width: 100%" - placeholder="请选择巡检配置"> + placeholder="请选择巡检配置" + @change="setInspectionContet"> 确定
- - + + diff --git a/src/views/extend/processFlowView/components/BomSelector.vue b/src/views/extend/processFlowView/components/BomSelector.vue new file mode 100644 index 00000000..a52be51c --- /dev/null +++ b/src/views/extend/processFlowView/components/BomSelector.vue @@ -0,0 +1,264 @@ + + + +; + + + diff --git a/src/views/extend/processFlowView/components/ProcessBomList.vue b/src/views/extend/processFlowView/components/ProcessBomList.vue index f0953184..e98f32c6 100644 --- a/src/views/extend/processFlowView/components/ProcessBomList.vue +++ b/src/views/extend/processFlowView/components/ProcessBomList.vue @@ -9,58 +9,102 @@
-
- + 分配设备 - +
- - - + + + + +
diff --git a/src/views/extend/processFlowView/components/ProcessDetail.vue b/src/views/extend/processFlowView/components/ProcessDetail.vue index ed9a8689..77368267 100644 --- a/src/views/extend/processFlowView/components/ProcessDetail.vue +++ b/src/views/extend/processFlowView/components/ProcessDetail.vue @@ -9,25 +9,57 @@
-
- +
+ 撤销 - + 下一步 - - 刷新布局 - + + 刷新布局 + + 新建工序 - 编辑 + + 编辑 +
- @@ -36,11 +68,15 @@ diff --git a/src/views/extend/processTraceabilityDetail/components/ProcessDetail.vue b/src/views/extend/processTraceabilityDetail/components/ProcessDetail.vue index 431afddc..0a4fa84f 100644 --- a/src/views/extend/processTraceabilityDetail/components/ProcessDetail.vue +++ b/src/views/extend/processTraceabilityDetail/components/ProcessDetail.vue @@ -68,7 +68,7 @@ export default { input: true, label: '工序名称', prop: 'name', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '工序名称不能为空', trigger: 'blur' }], }, ], [ @@ -77,7 +77,7 @@ export default { label: '工段', prop: 'sectionId', url: '/base/core-workshop-section/listAll', - rules: [{ required: true, message: '不能为空', trigger: 'blur' }], + rules: [{ required: true, message: '工段不能为空', trigger: 'blur' }], bind: { filterable: true, }, diff --git a/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue b/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue index 91320055..0cae68d9 100644 --- a/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue +++ b/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue @@ -37,14 +37,16 @@ ]"> - - + + + + + + + + + - - - - - + + + + + + :rules="[{ required: true, message: '检测内容不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '来源不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '产线不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '工段不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '检测时间不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '检测内容不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '来源不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '产线不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '工段不能为空', trigger: 'blur' }]"> + :rules="[{ required: true, message: '检测时间不能为空', trigger: 'blur' }]"> - + + placeholder="请输入物品名称" /> - + + placeholder="请输入物品编码" /> - + + placeholder="请输入物品规格" /> - + @@ -65,9 +66,10 @@ + placeholder="请输入允许留存时间" /> (天) @@ -130,13 +132,14 @@ export default { allowTime: 0, enabled: 1, remark: '', + storageType:2 }, dataRule: { code: [ - { required: true, message: '库位编码不能为空', trigger: 'blur' }, + { required: true, message: '物品编码不能为空', trigger: 'blur' }, ], name: [ - { required: true, message: '库位名称不能为空', trigger: 'blur' }, + { required: true, message: '物品名称不能为空', trigger: 'blur' }, ], }, isorno: [ diff --git a/src/views/warehouse/end-material/warehouseGoods/index.vue b/src/views/warehouse/end-material/warehouseGoods/index.vue index 26c67256..230f68e1 100644 --- a/src/views/warehouse/end-material/warehouseGoods/index.vue +++ b/src/views/warehouse/end-material/warehouseGoods/index.vue @@ -57,19 +57,19 @@ import { publicFormatter } from '@/utils/dict'; const tableProps = [ { prop: 'name', - label: '名称', + label: '物品名称', }, { prop: 'code', - label: '编码', + label: '物品编码', }, { prop: 'spec', - label: '规格', + label: '物品规格', }, { prop: 'unit', - label: '单位', + label: '物品单位', filter: publicFormatter('unit_dict') }, { @@ -121,8 +121,8 @@ export default { formConfig: [ { type: 'input', - label: '名称', - placeholder: '名称', + label: '物品名称', + placeholder: '物品名称', param: 'name', }, { diff --git a/src/views/warehouse/end-material/warehouseLocationHis/index.vue b/src/views/warehouse/end-material/warehouseLocationHis/index.vue index a958e289..8089ce69 100644 --- a/src/views/warehouse/end-material/warehouseLocationHis/index.vue +++ b/src/views/warehouse/end-material/warehouseLocationHis/index.vue @@ -2,7 +2,6 @@
@@ -114,7 +113,7 @@ export default { tableData: [], tableProps, tableBtn: [ - this.$auth.hasPermi(`end-material:warehouse-realtime-location-his:query`) + this.$auth.hasPermi(`end-material:warehouse-location-his:query`) ? { type: 'info', btnName: '详情', diff --git a/src/views/warehouse/end-material/warehouseRealtime/add-or-updata.vue b/src/views/warehouse/end-material/warehouseRealtime/add-or-updata.vue index e7112471..e3032fe3 100644 --- a/src/views/warehouse/end-material/warehouseRealtime/add-or-updata.vue +++ b/src/views/warehouse/end-material/warehouseRealtime/add-or-updata.vue @@ -2,7 +2,7 @@ * @Author: zwq * @Date: 2023-08-01 13:52:10 * @LastEditors: zwq - * @LastEditTime: 2023-11-04 16:32:54 + * @LastEditTime: 2023-11-20 15:14:18 * @Description: -->