|
@@ -655,43 +655,62 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
editFn(id, row, index) {
|
|
|
+ console.log(row,'45465');
|
|
|
let dateils = null;
|
|
|
+ this.diaLogForm= {
|
|
|
+ ...row,
|
|
|
+ items:[
|
|
|
+ {
|
|
|
+ id: "",
|
|
|
+ machineConfigureId: row.id,
|
|
|
+ parentId: "",
|
|
|
+ innerOutsideMachineId: row.id,
|
|
|
+ model: row.model,
|
|
|
+ name: row.name,
|
|
|
+ number: row.number || "",
|
|
|
+ type: row.type,
|
|
|
+ volume: row.volume,
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
getProductDetail({ id: id }).then((res) => {
|
|
|
dateils = res.data;
|
|
|
console.log(dateils);
|
|
|
this.diaLogForm.materialId = dateils.materialId;
|
|
|
this.materialLis.find((k) => {
|
|
|
if (k.id == dateils.materialId) {
|
|
|
+ console.log(k,'5555');
|
|
|
this.diaLogForm.productModel = k.specification;
|
|
|
this.diaLogForm.productNumber = k.number;
|
|
|
- this.diaLogForm.volume = k.volume;
|
|
|
+ this.diaLogForm.productVolume = k.volume;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+
|
|
|
getDistList({ sysDictEnum: "MACHINE_CONFIGURE" }).then((disType) => {
|
|
|
- disType.data.find((q) => {
|
|
|
- if (q.dictCode == dateils.items[0].type) {
|
|
|
- this.diaLogForm.type = q.dictCode;
|
|
|
- this.getMachineLlist(q.dictCode);
|
|
|
- this.machineList.map((l) => {
|
|
|
- console.log(l.id == dateils.items[0].machineConfigureId);
|
|
|
- if (l.id == dateils.items[0].machineConfigureId) {
|
|
|
- this.$set(this.diaLogForm.items, 0, {
|
|
|
- id: "",
|
|
|
- machineConfigureId: l.id,
|
|
|
- parentId: "",
|
|
|
- innerOutsideMachineId: l.id,
|
|
|
- model: l.model,
|
|
|
- name: l.name,
|
|
|
- number: l.number || "",
|
|
|
- type: l.type,
|
|
|
- volume: l.volume,
|
|
|
- });
|
|
|
- return;
|
|
|
- }
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
+ // disType.data.find((q) => {
|
|
|
+ // if (q.dictCode == dateils.items[0].type) {
|
|
|
+ // this.diaLogForm.type = q.dictCode;
|
|
|
+ // this.getMachineLlist(q.dictCode);
|
|
|
+ // this.machineList.map((l) => {
|
|
|
+ // console.log(l.id == dateils.items[0].machineConfigureId);
|
|
|
+ // if (l.id == dateils.items[0].machineConfigureId) {
|
|
|
+ // this.$set(this.diaLogForm.items, 0, {
|
|
|
+ // id: "",
|
|
|
+ // machineConfigureId: l.id,
|
|
|
+ // parentId: "",
|
|
|
+ // innerOutsideMachineId: l.id,
|
|
|
+ // model: l.model,
|
|
|
+ // name: l.name,
|
|
|
+ // number: l.number || "",
|
|
|
+ // type: l.type,
|
|
|
+ // volume: l.volume,
|
|
|
+ // });
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }
|
|
|
+ // });
|
|
|
|
|
|
this.DistType = disType.data;
|
|
|
});
|