模具 布产带入模具工序
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.loadMoleData(detail.mold_id);
|
||||
this.loadMoleData(detail.mold_id);
|
||||
|
||||
|
||||
this.$forceUpdate()
|
||||
|
|
@ -578,7 +578,7 @@ export default {
|
|||
currentAddRows1.push({
|
||||
component_id: pitem.component_id.toString(),
|
||||
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 });
|
||||
|
||||
|
||||
if (postdata.id) {
|
||||
postdata.id = this.$mk.toBigInt(postdata.id);
|
||||
}
|
||||
|
||||
if (postdata.mold_id) {
|
||||
postdata.mold_id = this.$mk.toBigInt(postdata.mold_id);
|
||||
}
|
||||
|
|
@ -716,7 +721,6 @@ export default {
|
|||
});
|
||||
}
|
||||
|
||||
|
||||
// 提交数据
|
||||
this.$mk.post({
|
||||
url: action,
|
||||
|
|
|
|||
|
|
@ -524,6 +524,7 @@ export default {
|
|||
const record = {
|
||||
}
|
||||
if (row) {
|
||||
this.detailsData = JSON.parse(JSON.stringify(this.detailsData))
|
||||
this.detailsData.splice($table.getRowSeq(row), 0, record);
|
||||
} else {
|
||||
this.detailsData.push(record)
|
||||
|
|
@ -547,6 +548,7 @@ export default {
|
|||
const record = {
|
||||
}
|
||||
if (row) {
|
||||
this.detailsData2 = JSON.parse(JSON.stringify(this.detailsData2))
|
||||
this.detailsData2.splice($table.getRowSeq(row), 0, record);
|
||||
} else {
|
||||
this.detailsData2.push(record)
|
||||
|
|
|
|||
Loading…
Reference in New Issue