index.wxml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!--pages/agent/serviceBillDetail/index.wxml-->
  2. <view class="panel mt-5">
  3. <view class="flex-align-start">
  4. <view style="flex:1">
  5. <view class="mt-5">
  6. <text class="colorInfo small">{{language['服务单号']||'服务单号'}}:</text>
  7. <text class="billno">{{orderMainData.billno}}</text>
  8. </view>
  9. <view class="mt-5">
  10. <t-tag class="mr-5" wx:if="{{orderMainData.servicetype}}" variant="light" shape="round" theme="primary" size="small">{{language[orderMainData.servicetype]||orderMainData.servicetype}}</t-tag>
  11. <t-tag class="mr-5" wx:if="{{orderMainData.class1}}" variant="light" shape="round" theme="primary" size="small">{{language[orderMainData.class1]||orderMainData.class1}}</t-tag>
  12. <t-tag class="mr-5" wx:if="{{orderMainData.class2}}" variant="light" shape="round" theme="primary" size="small">{{language[orderMainData.class2]||orderMainData.class2}}</t-tag>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="small"><text class="label">{{language['服务单类型']||'服务单类型'}}:</text>{{orderMainData.servicetype}}</view>
  17. <view class="small"><text class="label">{{language['服务单状态']||'服务单状态'}}:</text><text style="color:{{sColors[orderMainData.status]}};">{{orderMainData.status}}</text></view>
  18. <view class="small"><text class="label">{{language['开始日期']||'开始日期'}}:</text>{{orderMainData.begdate}}</view>
  19. <view class="small"><text class="label">{{language['结束日期']||'结束日期'}}:</text>{{orderMainData.enddate}}</view>
  20. <view class="small"><text class="label">{{language['单据日期']||'单据日期'}}:</text>{{orderMainData.billdate}}</view>
  21. </view>
  22. <!-- <view style="padding:5px" class="small"><text class="label">现场联系人</text></view> -->
  23. <view class="panel mt-5">
  24. <view>
  25. <view class="small"><text class="label">{{language['姓名']||'姓名'}}:</text>{{orderMainData.scenecontact}}</view>
  26. <view class="small flex-align-center">
  27. <text class="label">{{language['电话']||'电话'}}:</text>
  28. <t-call phone="{{orderMainData.scenecontactphonenumber}}"></t-call>
  29. </view>
  30. <view class="small"><text class="label">{{language['岗位']||'岗位'}}:</text>{{orderMainData.scenecontactrole}}</view>
  31. <view class="small"><text class="label">{{language['所在地区']||'省市县'}}:</text>{{orderMainData.province + orderMainData.city+orderMainData.county}}</view>
  32. <view class="small"><text class="label">{{language['地址']||'地址'}}:</text>{{orderMainData.address}}</view>
  33. </view>
  34. </view>
  35. <!-- <view style="padding:5px" class="small"><text class="label">关联订单</text></view> -->
  36. <view class="panel mt-5" wx:if="{{orderMainData.sonum}}">
  37. <text class="label">{{language['关联订单']||'关联订单'}}:</text>{{orderMainData.sonum}}
  38. </view>
  39. <view class="panel mt-5">
  40. <view class="small">
  41. <text class="label">{{language['问题描述']||'问题描述'}}:</text>{{orderMainData.reason}}
  42. </view>
  43. </view>
  44. <view class="panel mt-5">
  45. <view class="small"><text class="label">{{language['附件信息']||'附件信息'}}:</text></view>
  46. <imageview wx:if="{{filelist.length > 0}}" isdelete="{{orderMainData.status=='新建'}}" list="{{filelist}}"></imageview>
  47. </view>
  48. <view>
  49. <t-tabs defaultValue="{{0}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs">
  50. <t-tab-panel label="{{language['关联工单']||'关联工单'}}" value="0">
  51. <t-cell wx:for="{{linkWorkOrders}}" wx:key="sa_serviceorderid" title="{{language['工单编号']||'工单编号'}}" bind:click="tolinkWorkOrder" data-item="{{item}}" note="{{item.billno}}" hover arrow />
  52. </t-tab-panel>
  53. <t-tab-panel wx:if="{{orderMainData.servicetype !== '售前' && orderMainData.servicetype !== '历史售后'}}" label="{{language['售后商品']||'售后商品'}}" value="1">
  54. <view style="padding:10px" wx:if="{{list.length === 0}}">
  55. <t-empty icon="cart" description="{{language['暂未添加商品']||'暂未添加商品'}}">
  56. <t-button wx:if="{{orderMainData.status == '新建'}}" slot="action" theme="primary" size="extra-small" bindtap="addProduct">{{language['前往添加']||'前往添加'}}</t-button>
  57. </t-empty>
  58. </view>
  59. <view wx:else>
  60. <view wx:if="{{orderMainData.status == '新建'}}" style="text-align: right;border:1px solid #f1f2f3">
  61. <t-button theme="primary" size="small" icon="add" variant="text" bindtap="addProduct">
  62. {{language['继续添加']||'继续添加'}}
  63. </t-button>
  64. </view>
  65. <view wx:for="{{list}}" wx:key="{{itemid}}">
  66. <product-card data="{{item}}" isdelete="{{orderMainData.status == '新建'}}" changeQty='{{orderMainData.status == "新建"}}' bind:delete="onDelete" bind:changeItem="changeItem" />
  67. </view>
  68. </view>
  69. </t-tab-panel>
  70. </t-tabs>
  71. </view>
  72. <t-dialog id="t-dialog" />
  73. <block wx:if="{{orderMainData.status === '新建'}}">
  74. <view style="height: 160rpx;" />
  75. <Yl_Tabbar list='{{tabbarsList}}' bind:callback="tabbarOnClick" />
  76. </block>