|
@@ -64,20 +64,20 @@
|
|
|
<t-cell wx:for="{{linkWorkOrders}}" wx:key="sa_serviceorderid" title="工单编号" note="{{item.billno}}" data-item="{{item}}" bind:click="tolinkWorkOrder" hover arrow />
|
|
|
<t-empty wx:if="{{linkWorkOrders.length === 0}}" icon="root-list" t-class="empty-cls" t-class-image="t-empty__image" description="暂无工单" />
|
|
|
</t-tab-panel>
|
|
|
- <t-tab-panel wx:if="{{orderMainData.servicetype !== '售前' && orderMainData.servicetype !== '历史售后' && orderMainData.status == '新建'}}" label="售后商品" value="1">
|
|
|
+ <t-tab-panel wx:if="{{orderMainData.servicetype !== '售前' && orderMainData.servicetype !== '历史售后'}}" label="售后商品" value="1">
|
|
|
<view style="padding:10px" wx:if="{{list.length === 0}}">
|
|
|
<t-empty icon="cart" description="暂未添加商品">
|
|
|
- <t-button slot="action" theme="primary" size="extra-small" bindtap="addProduct">前往添加</t-button>
|
|
|
+ <t-button wx:if="{{orderMainData.status == '新建'}}" slot="action" theme="primary" size="extra-small" bindtap="addProduct">前往添加</t-button>
|
|
|
</t-empty>
|
|
|
</view>
|
|
|
<view wx:else>
|
|
|
- <view style="text-align: right;border:1px solid #f1f2f3">
|
|
|
+ <view wx:if="{{orderMainData.status == '新建'}}" style="text-align: right;border:1px solid #f1f2f3">
|
|
|
<t-button theme="primary" size="small" icon="add" variant="text" bindtap="addProduct">
|
|
|
继续添加
|
|
|
</t-button>
|
|
|
</view>
|
|
|
<view wx:for="{{list}}" wx:key="{{itemid}}">
|
|
|
- <product-card data="{{item}}" isdelete="{{true}}" bind:delete="onMXDelete"></product-card>
|
|
|
+ <product-card data="{{item}}" isdelete="{{orderMainData.status == '新建'}}" bind:delete="onMXDelete"></product-card>
|
|
|
</view>
|
|
|
|
|
|
</view>
|