|
|
@@ -136,6 +136,7 @@ export default { |
|
|
|
return { |
|
|
|
// 页面相关参数 |
|
|
|
id: null, |
|
|
|
ProcessId:null, |
|
|
|
mode: null, |
|
|
|
edit: null, |
|
|
|
ready: false, |
|
|
@@ -179,16 +180,17 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
async onLoad({ type, id }) { |
|
|
|
await this.init(type, id) |
|
|
|
async onLoad({ type, id, ProcessId}) { |
|
|
|
await this.init(type, id, ProcessId) |
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
// 页面初始化 |
|
|
|
async init(type, id) { |
|
|
|
async init(type, id, ProcessId) { |
|
|
|
this.LOADING('加载数据中...') |
|
|
|
|
|
|
|
this.id = id |
|
|
|
this.ProcessId = ProcessId |
|
|
|
this.mode = type |
|
|
|
this.edit = ['create', 'edit'].includes(this.mode) |
|
|
|
|
|
|
@@ -215,8 +217,10 @@ export default { |
|
|
|
let userInfo = this.GET_GLOBAL('loginUser'); |
|
|
|
this.origin.Purchase_Print.DepartmentId = userInfo.departmentId |
|
|
|
this.origin.Purchase_Print.CreatorId = userInfo.userId |
|
|
|
} else { |
|
|
|
const result = await this.HTTP_GET('learun/adms/purchaseprint/form', this.id) |
|
|
|
} else { |
|
|
|
const result = this.id ? await this.HTTP_GET('learun/adms/purchaseprint/form', this.id) : |
|
|
|
await this.HTTP_GET('learun/adms/purchaseprint/GetshList', this.ProcessId) |
|
|
|
|
|
|
|
this.origin = await this.formatFormData({Purchase_Print:{...result.Purchase_Print,Purchase_Print_Details:result.Purchase_Print_Details||[]}}) |
|
|
|
} |
|
|
|
this.current = this.COPY(this.origin) |
|
|
|