添加页面及附件查看
This commit is contained in:
@@ -118,6 +118,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_id2=${
|
||||
item.head_id
|
||||
}&title=${encodeURIComponent(`${item.bill_no} 附件`)}`,
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
|
||||
@@ -50,6 +50,8 @@
|
||||
<view slot="footer" class="card-plugin-footer">
|
||||
<t-button wx:if="{{authInfo['SF_FINANCE_INCOME_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}}"
|
||||
|
||||
Reference in New Issue
Block a user