添加请购单. 采购单详情页
This commit is contained in:
@@ -98,6 +98,14 @@ Page({
|
||||
});
|
||||
});
|
||||
},
|
||||
onOrderDetail(e: any) {
|
||||
const data = getDataSet(e);
|
||||
const index = data.index;
|
||||
const item = this.data.list[index];
|
||||
wx.navigateTo({
|
||||
url: `/pages/purchase/buyOrderDetail/buyOrderDetail?head_id=${item.head_id}`,
|
||||
});
|
||||
},
|
||||
onViewAttachment(e: any) {
|
||||
const data = getDataSet(e);
|
||||
const index = data.index;
|
||||
|
||||
@@ -48,6 +48,8 @@
|
||||
<card-item-plugin label="创建日期" value="{{item.create_date}}" />
|
||||
</view>
|
||||
<view slot="footer" class="card-plugin-footer">
|
||||
<t-button size="small" theme="primary" bind:tap="onOrderDetail" data-index="{{index}}">查看
|
||||
</t-button>
|
||||
<t-button wx:if="{{authInfo['SF_ERP_PURCHASE_ORDER_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"
|
||||
|
||||
Reference in New Issue
Block a user