添加页面及附件查看

This commit is contained in:
zhengw
2026-02-04 11:42:19 +08:00
parent 1c0e0b265d
commit e10c7bc537
34 changed files with 817 additions and 68 deletions

View File

@@ -111,6 +111,16 @@ Page({
});
});
},
onViewAttachment(e: any) {
const data = getDataSet(e);
const index = data.index;
const item = this.data.list[index];
wx.navigateTo({
url: `/pages/base/viewAttachment/viewAttachment?head_id=${
item.head_id
}&title=${encodeURIComponent(`${item.bill_no} 附件`)}`,
});
},
/**
* 生命周期函数--监听页面加载
*/

View File

@@ -47,6 +47,8 @@
<view slot="footer" class="card-plugin-footer">
<t-button wx:if="{{authInfo['SF_ERP_PURCHASE_REQUEST_DEL']}}" size="small" theme="danger"
bind:tap="onOrderDel" data-index="{{index}}">删除</t-button>
<t-button wx:if="{{item.total_att}}" size="small" bind:tap="onViewAttachment"
data-index="{{index}}">附件({{item.total_att}})</t-button>
</view>
</card-plugin>
<pagination-plugin curr_page="{{params.curr_page}}" page_count="{{params.page_count}}"