添加基础资料下的页面功能
This commit is contained in:
@@ -14,11 +14,15 @@
|
||||
</search-popup>
|
||||
|
||||
<count-plugin count="{{count}}">
|
||||
<view slot="left">
|
||||
<t-button wx:if="{{authInfo['SF_ERP_ACCOUNT_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>
|
||||
|
||||
<empty-plugin wx:if="{{list.length == 0}}" />
|
||||
<card-plugin wx:for="{{ list }}" wx:key="account_id">
|
||||
<card-plugin wx:for="{{ list }}" wx:key="account_id" showAll="1">
|
||||
<view slot="header"
|
||||
style="display: flex;justify-content: space-between;width: 100%;align-items: center;column-gap: 12rpx;">
|
||||
<view style="word-break: break-all;min-width: 0;">
|
||||
@@ -27,17 +31,20 @@
|
||||
<view
|
||||
style="display: flex;align-items: center;column-gap: 8rpx;font-weight: normal;flex-shrink: 0;">
|
||||
<t-icon wx:if="{{item.if_default == 2}}" name="star" color="#2ba471" />
|
||||
<text wx:if="{{item.state == 1}}" style="color: #0052d9;">正常</text>
|
||||
<text wx:if="{{item.state == 1}}" style="color: #0052d9;">启用</text>
|
||||
<text wx:elif="{{item.state == 2}}" style="color: #d54941;">禁用</text>
|
||||
</view>
|
||||
</view>
|
||||
<view slot="content">
|
||||
<card-item-plugin label="期初金额" value="{{item.init_amount}}" />
|
||||
<card-item-plugin label="当前金额" value="{{item.current_amount}}" />
|
||||
<card-item-plugin label="备注" value="{{item.comments}}" />
|
||||
<card-item-plugin wx:if="{{item.comments}}" label="备注" value="{{item.comments}}" />
|
||||
<card-item-plugin label="创建日期" value="{{item.create_date}}" />
|
||||
</view>
|
||||
<view slot="footer" class="card-plugin-footer">
|
||||
<t-button wx:if="{{authInfo['SF_ERP_ACCOUNT_EDIT']}}" size="small" theme="primary"
|
||||
bind:tap="onOrderEdit" data-index="{{index}}">
|
||||
编辑</t-button>
|
||||
<t-button wx:if="{{authInfo['SF_ERP_ACCOUNT_EDIT'] && item.if_default == 1}}" size="small"
|
||||
theme="primary" bind:tap="onDefault" data-index="{{index}}">
|
||||
设为默认</t-button>
|
||||
|
||||
Reference in New Issue
Block a user