Files
FreeERP.Applet/miniprogram/pages/purchase/requestOrderDetail/requestOrderDetail.wxml
2026-02-09 17:04:01 +08:00

39 lines
1.9 KiB
Plaintext

<page-plugin isAuth="{{authInfo['SF_ERP_SALE_ORDERS_VIEW']}}" loading="{{loading}}"
is-login="{{isLogin}}" bind:handleLogin="handleLogin">
<total-bar-plugin customStyle="flex-direction: column;">
<card-item-plugin label="单据编号" value="{{info.bill_no}}" />
<card-item-plugin label="单据日期" value="{{info.bill_date}}" />
<card-item-plugin label="备注" value="{{info.comments}}" />
</total-bar-plugin>
<!-- <t-cell title="Excel附件" left-icon="file-excel"
custom-style="padding-left:0;padding-right:0;position: sticky;top: 0;" arrow
bind:tap="onPreview2" /> -->
<t-cell title="附件" left-icon="file"
custom-style="padding-left:0;padding-right:0;position: sticky;top: 0;z-index:1" />
<view style="border: 1px solid #ddd;border-radius: 8rpx;padding: 8rpx;">
<block wx:for="{{files}}" wx:key="index">
<t-cell title="{{item.file_name}}" hover="{{item._file_type != 'file'}}"
arrow="{{item._file_type != 'file'}}" bind:tap="onPreview" data-index="{{index}}">
<!-- <block wx:if="{{item._file_type != 'image'}}">
<t-icon slot="left-icon" name="{{fileIcon[item._file_type]}}" color="#999" size="96rpx" />
</block> -->
</t-cell>
</block>
</view>
<t-cell wx:if="{{ detail.length }}" title="订单明细" left-icon="article" note="{{detail.length}}条"
custom-style="padding-left:0;padding-right:0;position: sticky;top: 0;z-index:1" />
<card-plugin wx:for="{{ detail }}" wx:key="detail_id">
<view slot="header">{{ item.goods_name }}</view>
<view slot="content">
<card-item-plugin label="编码" value="{{item.goods_code}}" />
<card-item-plugin label="多属性" value="{{item.attr_name}}" />
<card-item-plugin label="数量" value="{{item.item_quantity}}" />
<card-item-plugin label="单位" value="{{item.goods_unit}}" />
<card-item-plugin label="备注" value="{{item.comments}}" />
</view>
</card-plugin>
</page-plugin>