添加采购和仓库订单详情页面

This commit is contained in:
zhengw
2026-02-10 10:47:00 +08:00
parent 81acde261f
commit 62b5fceac5
30 changed files with 787 additions and 22 deletions

View File

@@ -95,6 +95,14 @@ Page({
});
});
},
onOrderDetail(e: any) {
const data = getDataSet(e);
const index = data.index;
const item = this.data.list[index];
wx.navigateTo({
url: `/pages/purchase/buyInOrderDetail/buyInOrderDetail?head_id=${item.head_id}`,
});
},
onViewAttachment(e: any) {
const data = getDataSet(e);
const index = data.index;

View File

@@ -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_STORE_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"