添加采购管理页面详情页, 权限修改
This commit is contained in:
@@ -17,6 +17,8 @@ Page({
|
||||
order_no: '',
|
||||
head_id: '',
|
||||
head_id2: '',
|
||||
rel_account_log_id: '',
|
||||
rel_bill_no: '',
|
||||
list: [] as any[],
|
||||
fileIcon: { file: 'file', excel: 'file-excel', pdf: 'file-pdf' },
|
||||
},
|
||||
@@ -55,6 +57,17 @@ Page({
|
||||
post('ErpFinance/fileList', { head_id: this.data.head_id2 }).then((res: any) => {
|
||||
this.formatData(res.data);
|
||||
});
|
||||
} else if (this.data.rel_bill_no) {
|
||||
// 资金明细附件
|
||||
const data: any = {
|
||||
order_no: this.data.rel_bill_no,
|
||||
};
|
||||
if (this.data.rel_account_log_id) {
|
||||
data.rel_account_log_id = this.data.rel_account_log_id;
|
||||
}
|
||||
post('ErpAccount/getAccountPayFile', data).then((res: any) => {
|
||||
this.formatData(res.data);
|
||||
});
|
||||
}
|
||||
},
|
||||
onPreview(e: any) {
|
||||
@@ -69,13 +82,25 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
const { title, order_no = '', head_id = '', head_id2 = '' } = options || {};
|
||||
const {
|
||||
title,
|
||||
order_no = '',
|
||||
head_id = '',
|
||||
head_id2 = '',
|
||||
rel_account_log_id = '',
|
||||
rel_bill_no = '',
|
||||
} = options || {};
|
||||
if (title) {
|
||||
wx.setNavigationBarTitle({ title: decodeURIComponent(title) });
|
||||
}
|
||||
this.data.order_no = order_no;
|
||||
this.data.head_id = head_id;
|
||||
this.data.head_id2 = head_id2;
|
||||
|
||||
// 资金明细附件
|
||||
this.data.rel_account_log_id = rel_account_log_id;
|
||||
this.data.rel_bill_no = rel_bill_no;
|
||||
|
||||
loginStatusPage(this);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user