添加页面, 组件, 图标
This commit is contained in:
@@ -109,7 +109,7 @@ Page({
|
||||
const data = getDataSet(e);
|
||||
const index = data.index;
|
||||
const item = this.data.list[index];
|
||||
showModal({ content: `确认删除 ${item.bill_no} 订单?` }).then(() => {
|
||||
showModal({ content: `确认删除 ${item.bill_no}?` }).then(() => {
|
||||
post('ErpFinance/del', { head_id: item.head_id }).then(() => {
|
||||
toastSuccess('删除成功');
|
||||
sleep(() => {
|
||||
|
||||
@@ -28,33 +28,30 @@
|
||||
<!-- <sort-plugin options="{{sort}}" bind:ok="onSort" value="{{params.order}}" slot="right" /> -->
|
||||
</count-plugin>
|
||||
|
||||
<t-empty wx:if="{{list.length == 0}}" icon="info-circle-filled" description="暂无数据"
|
||||
style="margin-bottom: 24rpx;" />
|
||||
<block wx:for="{{ list }}" wx:key="info_process_id">
|
||||
<card-plugin>
|
||||
<view slot="header">{{ item.bill_no }}</view>
|
||||
<view slot="content">
|
||||
<card-item-plugin label="关联销售单" value="{{item.rel_bill_no}}" />
|
||||
<card-item-plugin label="单据日期" value="{{item.bill_date}}" />
|
||||
<card-item-plugin label="操作员">
|
||||
<view slot="value">
|
||||
{{item.creator_name}}
|
||||
<text wx:if="{{item.creator_nick_name}}">({{item.creator_nick_name}})</text>
|
||||
</view>
|
||||
</card-item-plugin>
|
||||
<card-item-plugin label="往来单位" value="{{item.crm_name}}" />
|
||||
<card-item-plugin label="收入账户" value="{{item.account_name}}" />
|
||||
<card-item-plugin label="收入金额" value="{{item.total_amount}}" />
|
||||
<card-item-plugin label="状态" value="{{item.state_name}}" />
|
||||
<card-item-plugin label="备注" value="{{item.comments}}" />
|
||||
<card-item-plugin label="创建日期" value="{{item.create_date}}" />
|
||||
</view>
|
||||
<view slot="footer" style="padding-bottom: 16rpx;">
|
||||
<t-button wx:if="{{authInfo['SF_FINANCE_INCOME_DEL']}}" size="small" theme="danger"
|
||||
bind:tap="onOrderDel" data-index="{{index}}">删除</t-button>
|
||||
</view>
|
||||
</card-plugin>
|
||||
</block>
|
||||
<empty-plugin wx:if="{{list.length == 0}}" />
|
||||
<card-plugin wx:for="{{ list }}" wx:key="head_id">
|
||||
<view slot="header">{{ item.bill_no }}</view>
|
||||
<view slot="content">
|
||||
<card-item-plugin label="关联销售单" value="{{item.rel_bill_no}}" />
|
||||
<card-item-plugin label="单据日期" value="{{item.bill_date}}" />
|
||||
<card-item-plugin label="操作员">
|
||||
<view slot="value">
|
||||
{{item.creator_name}}
|
||||
<text wx:if="{{item.creator_nick_name}}">({{item.creator_nick_name}})</text>
|
||||
</view>
|
||||
</card-item-plugin>
|
||||
<card-item-plugin label="往来单位" value="{{item.crm_name}}" />
|
||||
<card-item-plugin label="收入账户" value="{{item.account_name}}" />
|
||||
<card-item-plugin label="收入金额" value="{{item.total_amount}}" />
|
||||
<card-item-plugin label="状态" value="{{item.state_name}}" />
|
||||
<card-item-plugin 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_FINANCE_INCOME_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>
|
||||
Reference in New Issue
Block a user