添加请购单. 采购单详情页

This commit is contained in:
zhengw
2026-02-09 17:04:01 +08:00
parent 13b0215e15
commit 81acde261f
19 changed files with 396 additions and 64 deletions

View File

@@ -85,6 +85,18 @@ Page({
});
});
},
onOrderDetail(e: any) {
const data = getDataSet(e);
const index = data.index;
const item = this.data.list[index];
wx.navigateTo({
url: `/pages/purchase/requestOrderDetail/requestOrderDetail?head_id=${item.head_id}`,
success: function (res) {
// 通过eventChannel向被打开页面传送数据
res.eventChannel.emit('requestOrderDetail', { data: item });
},
});
},
onOrderDel(e: any) {
const data = getDataSet(e);
const index = data.index;

View File

@@ -45,6 +45,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_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"