+
-
+
+
+
+
+
+ 添加属性
+
+
+
取消
-
+
-
+ -->
+
@@ -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/Record/index.vue b/src/views/equipment/base/inspection/Record/index.vue
index 965e6ad6..98a9604d 100644
--- a/src/views/equipment/base/inspection/Record/index.vue
+++ b/src/views/equipment/base/inspection/Record/index.vue
@@ -166,7 +166,7 @@ export default {
filterable: true,
clearable: true,
},
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }],
},
],
[
@@ -181,8 +181,7 @@ export default {
clearable: true,
multiple: true,
},
- options: [{ label: 'test', value: 'test' }],
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '维修工不能为空', trigger: 'blur' }],
},
{
input: true,
@@ -195,7 +194,7 @@ export default {
datetime: true,
label: '故障发生时间',
prop: 'faultTime',
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '故障发生时间不能为空', trigger: 'blur' }],
bind: {
format: 'yyyy-MM-dd HH:mm:ss',
'value-format': 'timestamp',
diff --git a/src/views/equipment/base/inspection/Settings/index.vue b/src/views/equipment/base/inspection/Settings/index.vue
index 4930bf99..422c146b 100644
--- a/src/views/equipment/base/inspection/Settings/index.vue
+++ b/src/views/equipment/base/inspection/Settings/index.vue
@@ -151,14 +151,14 @@ export default {
input: true,
label: '配置名称',
prop: 'name',
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '配置名称不能为空', trigger: 'blur' }],
},
{
input: true,
label: '配置编码',
prop: 'code',
url: '/base/equipment-check-config/getCode',
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '配置编码不能为空', trigger: 'blur' }],
},
],
[
@@ -167,7 +167,7 @@ export default {
label: '设备名称',
prop: 'equipmentId',
url: '/base/core-equipment/listAll',
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }],
},
{
input: true,
diff --git a/src/views/equipment/base/maintain/Record/index.vue b/src/views/equipment/base/maintain/Record/index.vue
index e67df26f..12bfbfdb 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',
@@ -187,10 +186,9 @@ export default {
filterable: true,
clearable: true,
},
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '保养设备不能为空', trigger: 'blur' }],
},
{
- // TODO: 和班组联动
select: true,
label: '保养人员',
prop: 'maintainWorker',
@@ -201,7 +199,7 @@ export default {
clearable: true,
multiple: true,
},
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '保养人员不能为空', trigger: 'blur' }],
},
{
input: true,
@@ -218,15 +216,14 @@ export default {
'active-value': 1,
'inactive-value': 2,
},
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '是否计划保养不能为空', trigger: 'blur' }],
},
{},
{
- // TODO: 和计划联动
select: true,
label: '所属计划',
prop: 'maintainPlanId',
- url: '',
+ url: '/base/equipment-maintain-plan/page',
bind: {
filterable: true,
clearable: true,
@@ -238,7 +235,7 @@ export default {
datetime: true,
label: '开始时间',
prop: 'startTime',
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '开始时间不能为空', trigger: 'blur' }],
bind: {
format: 'yyyy-MM-dd HH:mm:ss',
'value-format': 'timestamp',
@@ -250,7 +247,7 @@ export default {
datetime: true,
label: '结束时间',
prop: 'endTime',
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '结束时间不能为空', trigger: 'blur' }],
bind: {
format: 'yyyy-MM-dd HH:mm:ss',
'value-format': 'timestamp',
@@ -272,10 +269,16 @@ export default {
prop: 'files',
},
],
- // 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 +296,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 +358,7 @@ export default {
/** 取消按钮 */
cancel() {
this.open = false;
- this.mode = null;
+ this.mode = null;
this.reset();
},
/** 表单重置 */
@@ -399,7 +408,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 +418,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) => {
@@ -443,7 +452,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..1b2dd8a8 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">
@@ -62,7 +63,7 @@
+ :rules="[{ required: true, message: '维修开始时间不能为空', trigger: 'blur' }]">
+ :rules="[{ required: true, message: '维修结束时间不能为空', trigger: 'blur' }]">
+ :rules="[{ required: true, message: '维修方式不能为空', trigger: 'blur' }]">
+ :rules="[{ required: true, message: '故障明细不能为空', trigger: 'blur' }]">
@@ -213,7 +214,7 @@ export default {
this.visible = false;
},
goEdit() {
- this.isdetail = false;
+ this.disabled = false;
},
/** 模拟透传 ref */
validate(cb) {
diff --git a/src/views/equipment/base/repair/index.vue b/src/views/equipment/base/repair/index.vue
index 89d08cd3..c31bf702 100644
--- a/src/views/equipment/base/repair/index.vue
+++ b/src/views/equipment/base/repair/index.vue
@@ -184,7 +184,7 @@ export default {
input: true,
label: '维修单号',
prop: 'repairOrderNumber',
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '维修单号不能为空', trigger: 'blur' }],
},
{
select: true,
@@ -195,7 +195,7 @@ export default {
filterable: true,
clearable: true,
},
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }],
},
],
[
@@ -213,7 +213,7 @@ export default {
// multiple: true,
},
// options: [{ label: 'test', value: 'test' }],
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '维修工不能为空', trigger: 'blur' }],
},
{
input: true,
@@ -226,7 +226,7 @@ export default {
datetime: true,
label: '故障发生时间',
prop: 'faultTime',
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '故障发生时间不能为空', trigger: 'blur' }],
bind: {
format: 'yyyy-MM-dd HH:mm:ss',
'value-format': 'timestamp',
diff --git a/src/views/equipment/base/spareParts/Config/index.vue b/src/views/equipment/base/spareParts/Config/index.vue
index a8d7c891..71b323b2 100644
--- a/src/views/equipment/base/spareParts/Config/index.vue
+++ b/src/views/equipment/base/spareParts/Config/index.vue
@@ -161,7 +161,7 @@ export default {
input: true,
label: '配置名称',
prop: 'name',
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '配置名称不能为空', trigger: 'blur' }],
},
],
[
@@ -174,7 +174,7 @@ export default {
filterable: true,
clearable: true,
},
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }],
},
],
[
diff --git a/src/views/equipment/base/spareParts/List/index.vue b/src/views/equipment/base/spareParts/List/index.vue
index f0627c41..61e7914e 100644
--- a/src/views/equipment/base/spareParts/List/index.vue
+++ b/src/views/equipment/base/spareParts/List/index.vue
@@ -198,21 +198,6 @@ export default {
prop: 'remark',
},
],
- // [
- // {
- // datetime: true,
- // label: '故障发生时间',
- // prop: 'faultTime',
- // rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
- // bind: {
- // format: 'yyyy-MM-dd HH:mm:ss',
- // 'value-format': 'timestamp',
- // // 'value-format': 'yyyy-MM-dd HH:mm:ss',
- // clearable: true,
- // },
- // },
-
- // ],
],
// 是否显示弹出层
open: false,
diff --git a/src/views/equipment/base/spareParts/Monitor/index.vue b/src/views/equipment/base/spareParts/Monitor/index.vue
index 1f07fa39..cbaffa40 100644
--- a/src/views/equipment/base/spareParts/Monitor/index.vue
+++ b/src/views/equipment/base/spareParts/Monitor/index.vue
@@ -211,7 +211,7 @@ export default {
input: true,
label: '配置名称',
prop: 'name',
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '配置名称不能为空', trigger: 'blur' }],
},
],
[
@@ -224,7 +224,7 @@ export default {
filterable: true,
clearable: true,
},
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '设备名称不能为空', trigger: 'blur' }],
},
],
[
diff --git a/src/views/extend/processFlow/index.vue b/src/views/extend/processFlow/index.vue
index d346b0d6..083e48ab 100644
--- a/src/views/extend/processFlow/index.vue
+++ b/src/views/extend/processFlow/index.vue
@@ -180,7 +180,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...
// }
@@ -197,6 +197,7 @@ export default {
select: true,
label: '产线',
prop: 'lineId',
+ rules: [{ required: true, message: '产线不能为空', trigger: 'blur' }],
// cache: 'processFlow::lineList',
url: '/base/core-production-line/listAll',
bind: {
@@ -217,8 +218,9 @@ export default {
[
{
textarea: true,
- label: '功能描述',
+ label: '工艺描述',
prop: 'remark',
+ rules: [{ required: true, message: '工艺描述不能为空', trigger: 'blur' }],
},
],
],
diff --git a/src/views/extend/processFlowView/components/BomSelection.vue b/src/views/extend/processFlowView/components/BomSelection.vue
new file mode 100644
index 00000000..75bfa061
--- /dev/null
+++ b/src/views/extend/processFlowView/components/BomSelection.vue
@@ -0,0 +1,114 @@
+
+
+
+
+ handleChange(item, e)"
+ class="sl__body-item">
+
+
+
+
+
+
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 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ handleEquipmentChange(eq, e)"
+ class="">
+ handleLoadDom(eq)">
+ {{ eq.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+;
+
+
+
diff --git a/src/views/extend/processFlowView/components/ProcessBomList.vue b/src/views/extend/processFlowView/components/ProcessBomList.vue
index 69bf868c..e98f32c6 100644
--- a/src/views/extend/processFlowView/components/ProcessBomList.vue
+++ b/src/views/extend/processFlowView/components/ProcessBomList.vue
@@ -31,6 +31,9 @@
icon="el-icon-search"
placeholder="搜索"
v-model="searchText"
+ :disabled="currentDet == null"
+ @change="handleSearchTextChange"
+ clearable
style="margin-left: 20px">
@@ -63,22 +66,27 @@
-
-
-
+
+
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 f3d76f03..0cae68d9 100644
--- a/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue
+++ b/src/views/quality/base/basicData/qualityInspectionBoxBtn/dialogForm.vue
@@ -27,24 +27,26 @@
+ { required: true, message: '不能为空', trigger: 'blur' },
+ {
+ type: 'number',
+ message: '请输入整数',
+ trigger: 'blur',
+ transform: (val) => Number.isInteger(Number(val)) && Number(val),
+ },
+ ]">
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+ { required: true, message: '不能为空', trigger: 'blur' },
+ {
+ type: 'number',
+ message: '请输入100以内的整数',
+ trigger: 'blur',
+ transform: (val) =>
+ Number.isInteger(+val) &&
+ Number(val) >= 0 &&
+ Number(val) <= 100 &&
+ Number(val),
+ },
+ ]">
-
-
+
+
+
+
@@ -108,12 +150,14 @@ export default {
data() {
return {
formLoading: true,
- productionLineList: [],
+ productionLineList: [],
+ inspectionDetList:[],
workshopSectionList: [],
};
},
mounted() {
- this.getProductionLineList();
+ this.getProductionLineList()
+ this.getQualityInspectionDetList()
// this.getWorksectionList();
// this.getCode('/base/equipment-group-alarm/getCode').then((code) => {
// this.formLoading = false;
@@ -153,7 +197,20 @@ export default {
}
this.formLoading = false;
},
-
+ async getQualityInspectionDetList() {
+ this.formLoading = true;
+ const res = await this.$axios({
+ url: '/base/quality-inspection-det/listAll',
+ method: 'get',
+ });
+ if (res.code == 0) {
+ this.inspectionDetList = res.data.map((item) => ({
+ label: item.content,
+ value: item.id,
+ }));
+ }
+ this.formLoading = false;
+ },
async getWorksectionList(id) {
this.formLoading = true;
const res = await this.$axios({
diff --git a/src/views/quality/base/basicData/qualityInspectionBoxBtn/index.vue b/src/views/quality/base/basicData/qualityInspectionBoxBtn/index.vue
index d0da7401..a169cd13 100644
--- a/src/views/quality/base/basicData/qualityInspectionBoxBtn/index.vue
+++ b/src/views/quality/base/basicData/qualityInspectionBoxBtn/index.vue
@@ -70,7 +70,7 @@ export default {
label: '产线',
url: '/base/production-line/listAll',
prop: 'productionId',
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '产线不能为空', trigger: 'blur' }],
bind: {
filterable: true,
},
@@ -80,7 +80,7 @@ export default {
label: '工段',
url: '/base/workshop-section/listAll',
prop: 'sectionId',
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '工段不能为空', trigger: 'blur' }],
bind: {
filterable: true,
},
@@ -118,13 +118,17 @@ export default {
},
],
bind: { type: 'number', min: 0, max: 100 },
- },
- {
- textarea: true,
- label: '检测内容',
- prop: 'inspectionDetContent',
- // rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
- },
+ },
+ {
+ select: true,
+ label: '检测内容',
+ url: '/base/quality-inspection-det/listAll',
+ prop: 'inspectionDetId',
+ rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ bind: {
+ filterable: true,
+ },
+ },
],
],
searchBarFormConfig: [
@@ -218,7 +222,7 @@ export default {
form: {
id: null,
buttonId: null,
- inspectionDetContent: null,
+ inspectionDetId: null,
productionLineId: null,
sectionId: null,
model: null,
diff --git a/src/views/quality/base/qualityInspectionDet/index.vue b/src/views/quality/base/qualityInspectionDet/index.vue
index d2a40135..1a3ec339 100644
--- a/src/views/quality/base/qualityInspectionDet/index.vue
+++ b/src/views/quality/base/qualityInspectionDet/index.vue
@@ -50,7 +50,7 @@
label: '检测类型',
prop: 'typeId',
url: '/base/quality-inspection-type/listAll',
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '检测类型不能为空', trigger: 'blur' }],
bind: {
filterable: true,
},
@@ -61,7 +61,7 @@
input: true,
label: '检测内容',
prop: 'content',
- rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
+ rules: [{ required: true, message: '检测内容不能为空', trigger: 'blur' }],
},
],
[
diff --git a/src/views/quality/base/qualityInspectionType/index.vue b/src/views/quality/base/qualityInspectionType/index.vue
index 4588df61..7f1edaf5 100644
--- a/src/views/quality/base/qualityInspectionType/index.vue
+++ b/src/views/quality/base/qualityInspectionType/index.vue
@@ -47,7 +47,13 @@
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...
// }
@@ -174,31 +180,7 @@ export default {
plain: true,
color: 'success',
},
- // {
- // type: this.$auth.hasPermi('base:quality-inspection-type:export')
- // ? 'button'
- // : '',
- // btnName: '导出',
- // name: 'export',
- // color: 'warning',
- // },
],
- // 表单配置
- // formRows: [
- // [
- // {
- // input: true,
- // label: '检测类型名称',
- // prop: 'name',
- // rules: [{ required: true, message: '不能为空', trigger: 'blur' }],
- // // bind: {
- // // disabled: true, // some condition, like detail mode...
- // // }
- // },
- // ],
- // [{ input: true, label: '检测类型编码', prop: 'code' }],
- // [{ input: true, label: '备注', prop: 'remark' }],
- // ],
// 是否显示弹出层
open: false,
// 查询参数
@@ -208,11 +190,11 @@ export default {
name: null,
},
// 表单参数
- form: {
- name: null,
- code: undefined,
- remark:undefined
- },
+ form: {
+ name: null,
+ code: undefined,
+ remark: undefined,
+ },
};
},
// watch: {
diff --git a/src/views/quality/base/qualityScrapDet/add-or-updata.vue b/src/views/quality/base/qualityScrapDet/add-or-updata.vue
index a96a60d0..30047dad 100644
--- a/src/views/quality/base/qualityScrapDet/add-or-updata.vue
+++ b/src/views/quality/base/qualityScrapDet/add-or-updata.vue
@@ -1,7 +1,7 @@
@@ -10,18 +10,18 @@
-
+
-
+
-
+
@@ -68,6 +68,7 @@ export default {
// materialId: [{ required: true, message: "", trigger: "blur" }],
code: [{ required: true, message: "报废原因编码不能为空", trigger: "blur" }],
content: [{ required: true, message: "报废原因不能为空", trigger: "blur" }],
+ typeId: [{ required: true, message: "报废类型不能为空", trigger: "change" }],
}
};
},
diff --git a/src/views/quality/base/qualityScrapLog/add-or-updata.vue b/src/views/quality/base/qualityScrapLog/add-or-updata.vue
index a46f3101..bcfc9530 100644
--- a/src/views/quality/base/qualityScrapLog/add-or-updata.vue
+++ b/src/views/quality/base/qualityScrapLog/add-or-updata.vue
@@ -1,7 +1,7 @@
@@ -23,8 +23,8 @@
-
-
+
+
@@ -176,9 +176,9 @@ export default {
getDetList().then((res) => {
console.log(res);
// console.log(response);
- this.workOrderList = res.data.map((item) => {
+ this.detList = res.data.map((item) => {
return {
- name: item.name,
+ name: item.content,
id: item.id
}
})
diff --git a/src/views/quality/monitoring/currentData/dialogForm.vue b/src/views/quality/monitoring/currentData/dialogForm.vue
index 9ef8b17c..be2f7c74 100644
--- a/src/views/quality/monitoring/currentData/dialogForm.vue
+++ b/src/views/quality/monitoring/currentData/dialogForm.vue
@@ -16,7 +16,7 @@
+ :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' }]">
-
-
@@ -20,6 +18,7 @@
+
@@ -75,13 +74,13 @@ export default {
},
activeName: 'table',
searchBarFormConfig: [
- // {
- // type: 'select',
- // label: '工单号',
- // placeholder: '请选择工单号',
- // param: 'workOrderId',
- // selectOptions: [],
- // },
+ {
+ type: 'label',
+ label: '当前检测数据柱状图',
+ // placeholder: '请选择工单号',
+ // param: 'workOrderId',
+ // selectOptions: [],
+ },
// {
// type: 'select',
// label: '产品',
@@ -95,40 +94,40 @@ export default {
// placeholder: '请输入检测内容',
// param: 'inspectionDetContent',
// },
- {
- type: 'datePicker',
- label: '时间段',
- dateType: 'daterange', // datetimerange
- // format: 'yyyy-MM-dd HH:mm:ss',
- format: 'yyyy-MM-dd',
- valueFormat: 'timestamp',
- rangeSeparator: '-',
- startPlaceholder: '开始日期',
- endPlaceholder: '结束日期',
- defaultTime: ['00:00:00', '23:59:59'],
- param: 'checkTime',
- // width: 350,
- },
- {
- type: 'button',
- btnName: '查询',
- name: 'search',
- color: 'primary',
- },
- {
- type: 'separate',
- },
// {
- // type: this.$auth.hasPermi(
- // 'base:quality-inspection-record:create'
- // )
- // ? 'button'
- // : '',
- // btnName: '新增',
- // name: 'add',
- // plain: true,
- // color: 'success',
+ // type: 'datePicker',
+ // label: '时间段',
+ // dateType: 'daterange', // datetimerange
+ // // format: 'yyyy-MM-dd HH:mm:ss',
+ // format: 'yyyy-MM-dd',
+ // valueFormat: 'timestamp',
+ // rangeSeparator: '-',
+ // startPlaceholder: '开始日期',
+ // endPlaceholder: '结束日期',
+ // defaultTime: ['00:00:00', '23:59:59'],
+ // param: 'checkTime',
+ // // width: 350,
// },
+ // {
+ // type: 'button',
+ // btnName: '查询',
+ // name: 'search',
+ // color: 'primary',
+ // },
+ // {
+ // type: 'separate',
+ // },
+ // // {
+ // // type: this.$auth.hasPermi(
+ // // 'base:quality-inspection-record:create'
+ // // )
+ // // ? 'button'
+ // // : '',
+ // // btnName: '新增',
+ // // name: 'add',
+ // // plain: true,
+ // // color: 'success',
+ // // },
],
// tableBtn: [
// this.$auth.hasPermi('base:quality-inspection-record:update')
@@ -316,6 +315,7 @@ export default {
data: arrYAxis,
type: 'bar',
showBackground: true,
+ barWidth:'20',
backgroundStyle: {
color: 'rgba(180, 180, 180, 0.2)'
}
diff --git a/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessDetail.vue b/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessDetail.vue
index 431afddc..0a4fa84f 100644
--- a/src/views/quality/monitoring/processTraceabilityDetail/components/ProcessDetail.vue
+++ b/src/views/quality/monitoring/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/monitoring/qualityInspectionRecord/dialogForm.vue b/src/views/quality/monitoring/qualityInspectionRecord/dialogForm.vue
index 819437e6..4e7a2b67 100644
--- a/src/views/quality/monitoring/qualityInspectionRecord/dialogForm.vue
+++ b/src/views/quality/monitoring/qualityInspectionRecord/dialogForm.vue
@@ -6,141 +6,81 @@
-->
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+