|
@@ -134,7 +134,9 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<EquipmentDialog
|
|
<EquipmentDialog
|
|
|
|
|
+
|
|
|
v-if="showEquipment"
|
|
v-if="showEquipment"
|
|
|
|
|
+ :qualityIds="qualityIds"
|
|
|
@chooseModal="chooseModal"
|
|
@chooseModal="chooseModal"
|
|
|
@closeDialog="closeDialog"
|
|
@closeDialog="closeDialog"
|
|
|
></EquipmentDialog>
|
|
></EquipmentDialog>
|
|
@@ -146,15 +148,12 @@
|
|
|
import fileUpload from '@/components/upload/fileUpload';
|
|
import fileUpload from '@/components/upload/fileUpload';
|
|
|
import EquipmentDialog from './newEquipmentDialog';
|
|
import EquipmentDialog from './newEquipmentDialog';
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
import dictMixins from '@/mixins/dictMixins';
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [dictMixins],
|
|
mixins: [dictMixins],
|
|
|
components: {
|
|
components: {
|
|
|
fileUpload,
|
|
fileUpload,
|
|
|
- EquipmentDialog,
|
|
|
|
|
-
|
|
|
|
|
|
|
+ EquipmentDialog
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
props: {
|
|
props: {
|
|
@@ -183,6 +182,7 @@
|
|
|
|
|
|
|
|
showEquipment: false,
|
|
showEquipment: false,
|
|
|
inspectionItems: [],
|
|
inspectionItems: [],
|
|
|
|
|
+ qualityIds: [],
|
|
|
|
|
|
|
|
columns: [
|
|
columns: [
|
|
|
{
|
|
{
|
|
@@ -288,10 +288,9 @@
|
|
|
if (this.type == 'edit') {
|
|
if (this.type == 'edit') {
|
|
|
this.form = this.editObj;
|
|
this.form = this.editObj;
|
|
|
if (this.editObj.inspectionItems.length > 0) {
|
|
if (this.editObj.inspectionItems.length > 0) {
|
|
|
-
|
|
|
|
|
this.inspectionItems = this.editObj.inspectionItems;
|
|
this.inspectionItems = this.editObj.inspectionItems;
|
|
|
} else {
|
|
} else {
|
|
|
- this.inspectionItems = []
|
|
|
|
|
|
|
+ this.inspectionItems = [];
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -326,6 +325,10 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
openAdd() {
|
|
openAdd() {
|
|
|
|
|
+ this.qualityIds = [];
|
|
|
|
|
+ this.qualityIds = this.inspectionItems.map(
|
|
|
|
|
+ (item) => item.qualityLevelId
|
|
|
|
|
+ )
|
|
|
this.showEquipment = true;
|
|
this.showEquipment = true;
|
|
|
},
|
|
},
|
|
|
|
|
|