添加页面及完善二级页面
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user