Browse Source

app 文印采购表单页修改

娄底高职分支
yxq 1 year ago
parent
commit
78fae8f58d
1 changed files with 9 additions and 5 deletions
  1. +9
    -5
      Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Purchase_Print/single.vue

+ 9
- 5
Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsManagement/Purchase_Print/single.vue View File

@@ -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)


Loading…
Cancel
Save