index.wxml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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">服务单号:</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">{{orderMainData.servicetype}}</t-tag>
  11. <t-tag class="mr-5" wx:if="{{orderMainData.class1}}" variant="light" shape="round" theme="primary" size="small">{{orderMainData.class1}}</t-tag>
  12. <t-tag class="mr-5" wx:if="{{orderMainData.class2}}" variant="light" shape="round" theme="primary" size="small">{{orderMainData.class2}}</t-tag>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="small"><text class="label">服务单类型:</text>{{orderMainData.servicetype}}</view>
  17. <view class="small"><text class="label">服务单状态:</text>{{orderMainData.status}}</view>
  18. <view class="small"><text class="label">开始日期:</text>{{orderMainData.begdate}}</view>
  19. <view class="small"><text class="label">结束日期:</text>{{orderMainData.enddate}}</view>
  20. <view wx:if="{{orderMainData.backreason}}" class="small colorError"><text class="label">退回原因:</text>{{orderMainData.backreason}}</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">姓名:</text>{{orderMainData.scenecontact}}</view>
  26. <view class="small flex-align-center">
  27. <text class="label">电话:</text>
  28. <t-call phone="{{orderMainData.scenecontactphonenumber}}"></t-call>
  29. </view>
  30. <view class="small"><text class="label">岗位:</text>{{orderMainData.scenecontactrole}}</view>
  31. <view class="small"><text class="label">省市县:</text>{{orderMainData.province + orderMainData.city+orderMainData.county}}</view>
  32. <view class="small"><text class="label">地址:</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">关联订单:</text>{{orderMainData.sonum}}
  38. </view>
  39. <view class="panel mt-5">
  40. <view class="small">
  41. <text class="label">问题描述:</text>{{orderMainData.reason}}
  42. </view>
  43. </view>
  44. <view class="panel mt-5">
  45. <view class="small"><text class="label">附件信息:</text></view>
  46. <imageview wx:if="{{filelist.length > 0}}" 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="关联工单" value="0">
  51. <t-cell wx:for="{{linkWorkOrders}}" wx:key="sa_serviceorderid" title="工单编号" note="{{item.billno}}" data-item="{{item}}" bind:click="tolinkWorkOrder" hover arrow />
  52. <t-empty wx:if="{{linkWorkOrders.length === 0}}" icon="root-list" t-class="empty-cls" t-class-image="t-empty__image" description="暂无工单" />
  53. </t-tab-panel>
  54. <t-tab-panel wx:if="{{orderMainData.servicetype !== '售前' && orderMainData.servicetype !== '历史售后'}}" label="售后商品" value="1">
  55. <view style="padding:10px" wx:if="{{list.length === 0}}">
  56. <t-empty icon="cart" description="暂未添加商品">
  57. <t-button slot="action" theme="primary" size="extra-small" bindtap="addProduct">前往添加</t-button>
  58. </t-empty>
  59. </view>
  60. <view wx:else>
  61. <view style="text-align: right;border:1px solid #f1f2f3">
  62. <t-button theme="primary" size="small" icon="add" variant="text" bindtap="addProduct">
  63. 继续添加
  64. </t-button>
  65. </view>
  66. <view wx:for="{{list}}" wx:key="{{itemid}}">
  67. <product-card data="{{item}}" isdelete="{{true}}" bind:delete="onMXDelete"></product-card>
  68. </view>
  69. </view>
  70. </t-tab-panel>
  71. </t-tabs>
  72. </view>
  73. <t-dialog id="t-dialog" />
  74. <t-dialog visible="{{showWithInput}}" title="退回原因" confirm-btn="确定" cancel-btn="取消" bind:confirm="onBack" bind:cancel="showBackReason">
  75. <t-textarea style="margin-top:20px" slot="content" placeholder="请输入退回原因" value="" disableDefaultPadding="{{true}}" bind:change="inputReason" autosize bordered />
  76. </t-dialog>
  77. <t-dialog visible="{{showToWoker}}" title="转工单" confirm-btn="确定" cancel-btn="取消" bind:confirm="toWorker" bind:cancel="showBackReason">
  78. <view slot="content">
  79. <view class="d-title">
  80. 选择工单模板:
  81. </view>
  82. <view style="margin-bottom:10px">
  83. <block wx:for="{{templist}}" wx:key="rowindex">
  84. <t-tag class="mr-5 mt-5" variant="{{actTemp.sa_workorder_templateid === item.sa_workorder_templateid?'dark':'outline'}}" theme="primary" data-item="{{item}}" bindtap="selectTemp">{{ item.name }}</t-tag>
  85. </block>
  86. </view>
  87. <view class="d-title">
  88. 选择负责人:
  89. </view>
  90. <view class="mt-5">
  91. <block wx:for="{{workers}}" wx:key="rowindex">
  92. <t-tag class="mr-5 mt-5" variant="{{actLeader.userid === item.userid?'dark':'outline'}}" theme="primary" data-item="{{item}}" bindtap="selectLeader">{{ item.position?item.position + '-':'' }}{{ item.name }}</t-tag>
  93. </block>
  94. </view>
  95. <t-button bind:tap="showProgressDialog" variant="primary" size="extra-small">查看人员进度</t-button>
  96. </view>
  97. </t-dialog>
  98. <t-dialog visible="{{showProgress}}" title="进度" confirm-btn="确定" bind:confirm="showProgressDialog" external-classes="['t-class']" show-overlay="{{false}}">
  99. <view slot="content">
  100. <scroll-view style="display: inline-block;width: 100%;height: 300px;" scroll-y>
  101. <view wx:for="{{progress}}" wx:key="rowindex">
  102. <view class="small"><text class="label">姓名:</text>{{item.projectleader}}</view>
  103. <view class="small"><text class="label">地址:</text>{{item.province}}{{item.city}}{{item.county}}{{item.address}}</view>
  104. <view class="small"><text class="label">创建时间:</text>{{item.createdate}}</view>
  105. <t-divider align="left" />
  106. </view>
  107. <t-empty wx:if="{{progress.length === 0}}" icon="root-list" t-class="empty-cls" t-class-image="t-empty__image" description="暂无进行中的人员" />
  108. </scroll-view>
  109. </view>
  110. </t-dialog>
  111. <!-- 底部 -->
  112. <block wx:if="{{tabbarsList.length!=0}}">
  113. <view style="height: 160rpx;" />
  114. <Yl_Tabbar list='{{tabbarsList}}' bind:callback="tabbarOnClick" />
  115. </block>