|
@@ -252,6 +252,7 @@
|
|
|
style="width: 100%"
|
|
style="width: 100%"
|
|
|
v-model="form.level"
|
|
v-model="form.level"
|
|
|
placeholder="请选择"
|
|
placeholder="请选择"
|
|
|
|
|
+ @change="levelChange"
|
|
|
>
|
|
>
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in levelOptions"
|
|
v-for="item in levelOptions"
|
|
@@ -340,9 +341,15 @@
|
|
|
<!-- 计划 -->
|
|
<!-- 计划 -->
|
|
|
<PlanInfo ref="planRefs" :form="categoryAps" />
|
|
<PlanInfo ref="planRefs" :form="categoryAps" />
|
|
|
<!-- 质量配置 -->
|
|
<!-- 质量配置 -->
|
|
|
- <QualityInfo ref="qualityRefs" :form="categoryQms" />
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <QualityInfo
|
|
|
|
|
+ ref="qualityRefs"
|
|
|
|
|
+ :form="item"
|
|
|
|
|
+ v-for="(item, index) in categoryQms"
|
|
|
|
|
+ :key="index"
|
|
|
|
|
+ />
|
|
|
<!-- 舟皿信息 -->
|
|
<!-- 舟皿信息 -->
|
|
|
- <BoatInfo ref="qualityRefs" :form="categoryPallet" />
|
|
|
|
|
|
|
+ <BoatInfo :form="categoryPallet" />
|
|
|
<!-- 周转车信息 -->
|
|
<!-- 周转车信息 -->
|
|
|
<TurnoverInfo ref="turnoverRefs" :form="categoryVehicle" />
|
|
<TurnoverInfo ref="turnoverRefs" :form="categoryVehicle" />
|
|
|
<!-- 模具信息 -->
|
|
<!-- 模具信息 -->
|
|
@@ -392,6 +399,42 @@
|
|
|
import { deepClone } from '@/utils/index';
|
|
import { deepClone } from '@/utils/index';
|
|
|
import { finishPageTab, reloadPageTab } from '@/utils/page-tab-util';
|
|
import { finishPageTab, reloadPageTab } from '@/utils/page-tab-util';
|
|
|
import { produceTypeList } from '@/enum/dict.js';
|
|
import { produceTypeList } from '@/enum/dict.js';
|
|
|
|
|
+import { copyObj } from '@/utils/util';
|
|
|
|
|
+
|
|
|
|
|
+ const defCategoryQms = [
|
|
|
|
|
+ {
|
|
|
|
|
+ categoryId: '',
|
|
|
|
|
+ checkDepart: null,
|
|
|
|
|
+ checkFormula: null,
|
|
|
|
|
+ checkPerson: null,
|
|
|
|
|
+ checkProportion: null,
|
|
|
|
|
+ createTime: '',
|
|
|
|
|
+ createUserId: '',
|
|
|
|
|
+ inspectionStandards: null,
|
|
|
|
|
+ isComeCheck: 0,
|
|
|
|
|
+ // level: '',
|
|
|
|
|
+ levelItem: null,
|
|
|
|
|
+ netWeight: null,
|
|
|
|
|
+ qualityTemplateIds: [],
|
|
|
|
|
+ dataType: 1
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ categoryId: '',
|
|
|
|
|
+ checkDepart: null,
|
|
|
|
|
+ checkFormula: null,
|
|
|
|
|
+ checkPerson: null,
|
|
|
|
|
+ checkProportion: null,
|
|
|
|
|
+ createTime: '',
|
|
|
|
|
+ createUserId: '',
|
|
|
|
|
+ inspectionStandards: null,
|
|
|
|
|
+ isComeCheck: 0,
|
|
|
|
|
+ // level: '',
|
|
|
|
|
+ levelItem: null,
|
|
|
|
|
+ netWeight: null,
|
|
|
|
|
+ qualityTemplateIds: [],
|
|
|
|
|
+ dataType: 2
|
|
|
|
|
+ }
|
|
|
|
|
+ ];
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'product',
|
|
name: 'product',
|
|
@@ -527,9 +570,7 @@
|
|
|
categoryMes: { productionDays: '1' },
|
|
categoryMes: { productionDays: '1' },
|
|
|
categoryMold: {},
|
|
categoryMold: {},
|
|
|
categoryPallet: {},
|
|
categoryPallet: {},
|
|
|
- categoryQms: {
|
|
|
|
|
- isComeCheck: '1'
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ categoryQms: [...copyObj(defCategoryQms)],
|
|
|
categoryVehicle: {},
|
|
categoryVehicle: {},
|
|
|
categoryWms: {
|
|
categoryWms: {
|
|
|
isUnpack: 1,
|
|
isUnpack: 1,
|
|
@@ -655,7 +696,8 @@
|
|
|
};
|
|
};
|
|
|
this.categoryMold = {};
|
|
this.categoryMold = {};
|
|
|
this.categoryPallet = {};
|
|
this.categoryPallet = {};
|
|
|
- this.categoryQms = {};
|
|
|
|
|
|
|
+ this.categoryQms = [...copyObj(defCategoryQms)];
|
|
|
|
|
+
|
|
|
this.categoryVehicle = {};
|
|
this.categoryVehicle = {};
|
|
|
this.categoryWms = {
|
|
this.categoryWms = {
|
|
|
isUnpack: 1,
|
|
isUnpack: 1,
|
|
@@ -916,10 +958,12 @@
|
|
|
} else {
|
|
} else {
|
|
|
this.categoryPurchase = info.categoryPurchase;
|
|
this.categoryPurchase = info.categoryPurchase;
|
|
|
}
|
|
}
|
|
|
- if (typeof info.categoryQms == 'string') {
|
|
|
|
|
- this.categoryQms = {};
|
|
|
|
|
- } else {
|
|
|
|
|
- this.categoryQms = info.categoryQms;
|
|
|
|
|
|
|
+ if (!info.categoryQms||!info.categoryQms?.length) {
|
|
|
|
|
+ this.categoryQms = [...copyObj(defCategoryQms)];
|
|
|
|
|
+ } else if(info.categoryQms.length==1) { //历史数据处理
|
|
|
|
|
+ this.categoryQms = [info.categoryQms[0],copyObj(defCategoryQms[1])];
|
|
|
|
|
+ }else{
|
|
|
|
|
+ this.categoryQms=info.categoryQms
|
|
|
}
|
|
}
|
|
|
if (typeof info.categoryVehicle == 'string') {
|
|
if (typeof info.categoryVehicle == 'string') {
|
|
|
this.categoryVehicle = {};
|
|
this.categoryVehicle = {};
|
|
@@ -959,7 +1003,12 @@
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
|
|
+ levelChange(val) {
|
|
|
|
|
+ this.$refs.qualityRefs?.forEach((item) => {
|
|
|
|
|
+ item.levelChange(val);
|
|
|
|
|
+ // console.log(item)
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
// 确定分类
|
|
// 确定分类
|
|
|
async confirmCategory(node, title, PathInfo, ruleCode) {
|
|
async confirmCategory(node, title, PathInfo, ruleCode) {
|
|
|
if (this.status != 0) {
|
|
if (this.status != 0) {
|
|
@@ -1188,7 +1237,7 @@
|
|
|
data.categoryMes.id = null;
|
|
data.categoryMes.id = null;
|
|
|
data.categoryMold.id = null;
|
|
data.categoryMold.id = null;
|
|
|
data.categoryPallet.id = null;
|
|
data.categoryPallet.id = null;
|
|
|
- data.categoryQms.id = null;
|
|
|
|
|
|
|
+ // data.categoryQms.id = null;
|
|
|
data.categoryVehicle.id = null;
|
|
data.categoryVehicle.id = null;
|
|
|
data.packageDispositionVOList = data.packageDispositionVOList.map(
|
|
data.packageDispositionVOList = data.packageDispositionVOList.map(
|
|
|
(item) => {
|
|
(item) => {
|