49 lines
2.7 KiB
Plaintext
49 lines
2.7 KiB
Plaintext
|
|
<page-plugin isAuth="{{authInfo['SF_FINANCE_ITEM_VIEW']}}" loading="{{loading}}"
|
||
|
|
is-login="{{isLogin}}" bind:handleLogin="handleLogin">
|
||
|
|
<search-popup placeholder="输入名称" bind:change="searchChange" bind:ok="searchOk"
|
||
|
|
bind:reset="searchReset" value="{{params.item_name}}" data-key="item_name">
|
||
|
|
<view slot="content">
|
||
|
|
<option-cell-plugin title="生产状态" value="{{params.item_type || ''}}" bind:change="searchChange"
|
||
|
|
mode="radio" options="{{FinanceItemTypeArr}}" data-key="item_type" />
|
||
|
|
<!-- <search-input label="手机号码" value="{{params.crm_phone}}" data-key="crm_phone"
|
||
|
|
bind:change="searchChange" /> -->
|
||
|
|
|
||
|
|
<!-- <date-picker-plugin title="创建开始日期" value="{{params.create_dateL}}" data-key="create_dateL"
|
||
|
|
bind:confirm="searchChange" />
|
||
|
|
<date-picker-plugin title="创建结束日期" value="{{params.create_dateU}}" data-key="create_dateU"
|
||
|
|
bind:confirm="searchChange" /> -->
|
||
|
|
</view>
|
||
|
|
</search-popup>
|
||
|
|
|
||
|
|
<count-plugin count="{{count}}">
|
||
|
|
<view slot="left">
|
||
|
|
<t-button wx:if="{{authInfo['SF_FINANCE_ITEM_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="item_id" showAll="1">
|
||
|
|
<view slot="header">
|
||
|
|
{{ item.item_name }}
|
||
|
|
<!-- <view style="font-weight: normal;flex-shrink: 0;">{{item.state == 1 ? '启用': '禁用'}}</view> -->
|
||
|
|
</view>
|
||
|
|
<view slot="content">
|
||
|
|
<card-item-plugin label="类型" value="{{FinanceItemTypeObj[item.item_type]}}" />
|
||
|
|
<card-item-plugin label="备注" wx:if="{{item.comments}}" 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_FINANCE_ITEM_EDIT']}}" size="small" theme="primary"
|
||
|
|
bind:tap="onOrderEdit" data-index="{{index}}">编辑</t-button>
|
||
|
|
<!-- <t-button wx:if="{{authInfo['SF_FINANCE_ITEM_EDIT']}}" size="small"
|
||
|
|
theme="{{item.state == 1 ? 'danger' : 'primary' }}" bind:tap="onOrderState"
|
||
|
|
data-index="{{index}}">{{item.state == 1 ? '禁用' : '启用' }}</t-button> -->
|
||
|
|
<t-button wx:if="{{authInfo['SF_FINANCE_ITEM_DEL']}}" size="small" theme="danger"
|
||
|
|
bind:tap="onOrderDel" data-index="{{index}}">删除</t-button>
|
||
|
|
</view>
|
||
|
|
</card-plugin>
|
||
|
|
<pagination-plugin curr_page="{{params.curr_page}}" page_count="{{params.page_count}}"
|
||
|
|
total="{{count}}" bind:change="paginationChange" />
|
||
|
|
</page-plugin>
|