添加页面及完善二级页面

This commit is contained in:
zhengw
2026-03-09 14:21:52 +08:00
parent aa1294f997
commit 9033acc56d
30 changed files with 611 additions and 32 deletions

View File

@@ -74,7 +74,19 @@ Page({
});
});
},
onOrderEdit(e: any) {
const data = getDataSet(e);
const index = data.index;
wx.navigateTo({
url: '/pages/base/customer/edit/edit',
success: (res) => {
res.eventChannel.emit('customerEdit', {
data: index == -1 ? { crm_type: 2 } : this.data.list[index],
});
},
});
},
onOrderDel(e: any) {
const data = getDataSet(e);
const index = data.index;

View File

@@ -14,6 +14,10 @@
</search-popup>
<count-plugin count="{{count}}">
<view slot="left">
<t-button wx:if="{{authInfo['SF_ERP_SUPPLIER_ADD']}}" size="small" theme="primary"
bind:tap="onOrderEdit" data-index="-1">新增供应商</t-button>
</view>
<!-- <sort-plugin options="{{sort}}" bind:ok="onSort" value="{{params.order}}" slot="right" /> -->
</count-plugin>
@@ -28,6 +32,8 @@
<card-item-plugin label="创建日期" value="{{item.create_date}}" />
</view>
<view slot="footer" class="card-plugin-footer">
<t-button wx:if="{{authInfo['SF_ERP_SUPPLIER_EDIT']}}" size="small" theme="primary"
bind:tap="onOrderEdit" data-index="{{index}}">编辑</t-button>
<t-button wx:if="{{authInfo['SF_ERP_SUPPLIER_DEL']}}" size="small" theme="danger"
bind:tap="onOrderDel" data-index="{{index}}">删除</t-button>
</view>