模具 布产带入模具工序
This commit is contained in:
parent
d99665588e
commit
803d6eb9e3
|
|
@ -548,7 +548,7 @@ export default {
|
||||||
this.formOptions.data = JSON.parse(JSON.stringify(this.formOptions.data))
|
this.formOptions.data = JSON.parse(JSON.stringify(this.formOptions.data))
|
||||||
|
|
||||||
|
|
||||||
//this.loadMoleData(detail.mold_id);
|
this.loadMoleData(detail.mold_id);
|
||||||
|
|
||||||
|
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
|
|
@ -578,7 +578,7 @@ export default {
|
||||||
currentAddRows1.push({
|
currentAddRows1.push({
|
||||||
component_id: pitem.component_id.toString(),
|
component_id: pitem.component_id.toString(),
|
||||||
component_num: 1,
|
component_num: 1,
|
||||||
component_detail: { id: row.id, name: row.name },
|
component_detail: { id: pitem.mold_component.id, name: pitem.mold_component.name },
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -669,6 +669,11 @@ export default {
|
||||||
// 格式化提交的数据
|
// 格式化提交的数据
|
||||||
this.$mk.formatFormData({ data: postdata, rules: this.formOptions.items });
|
this.$mk.formatFormData({ data: postdata, rules: this.formOptions.items });
|
||||||
|
|
||||||
|
|
||||||
|
if (postdata.id) {
|
||||||
|
postdata.id = this.$mk.toBigInt(postdata.id);
|
||||||
|
}
|
||||||
|
|
||||||
if (postdata.mold_id) {
|
if (postdata.mold_id) {
|
||||||
postdata.mold_id = this.$mk.toBigInt(postdata.mold_id);
|
postdata.mold_id = this.$mk.toBigInt(postdata.mold_id);
|
||||||
}
|
}
|
||||||
|
|
@ -715,8 +720,7 @@ export default {
|
||||||
value: postdata.mold_production_order_component_processes
|
value: postdata.mold_production_order_component_processes
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 提交数据
|
// 提交数据
|
||||||
this.$mk.post({
|
this.$mk.post({
|
||||||
url: action,
|
url: action,
|
||||||
|
|
|
||||||
|
|
@ -524,6 +524,7 @@ export default {
|
||||||
const record = {
|
const record = {
|
||||||
}
|
}
|
||||||
if (row) {
|
if (row) {
|
||||||
|
this.detailsData = JSON.parse(JSON.stringify(this.detailsData))
|
||||||
this.detailsData.splice($table.getRowSeq(row), 0, record);
|
this.detailsData.splice($table.getRowSeq(row), 0, record);
|
||||||
} else {
|
} else {
|
||||||
this.detailsData.push(record)
|
this.detailsData.push(record)
|
||||||
|
|
@ -547,6 +548,7 @@ export default {
|
||||||
const record = {
|
const record = {
|
||||||
}
|
}
|
||||||
if (row) {
|
if (row) {
|
||||||
|
this.detailsData2 = JSON.parse(JSON.stringify(this.detailsData2))
|
||||||
this.detailsData2.splice($table.getRowSeq(row), 0, record);
|
this.detailsData2.splice($table.getRowSeq(row), 0, record);
|
||||||
} else {
|
} else {
|
||||||
this.detailsData2.push(record)
|
this.detailsData2.push(record)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue