index.wxml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  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" variant="light" shape="round" theme="primary" size="small">{{orderMainData.servicetype}}</t-tag>
  11. <t-tag class="mr-5" variant="light" shape="round" theme="primary" size="small">{{orderMainData.class1}}</t-tag>
  12. <t-tag class="mr-5" variant="light" shape="round" theme="primary" size="small">{{orderMainData.class2}}</t-tag>
  13. </view>
  14. </view>
  15. <view class="flex-align-center">
  16. <view wx:if="{{orderMainData.status === '提交'}}" class="mr-10" bindtap="showWorkerDialog">
  17. <t-icon name="root-list" size="36rpx" bind:click="onIconTap" />
  18. <text style="font-size: 20rpx;">转工单</text>
  19. </view>
  20. <view wx:if="{{orderMainData.status === '提交'}}" class="mr-10" bindtap="showBackReason">
  21. <t-icon name="enter" size="36rpx" bind:click="onIconTap" />
  22. <text style="font-size: 20rpx;">退回</text>
  23. </view>
  24. <view class="flex-align-center" wx:if="{{orderMainData.status === '新建'}}" >
  25. <view class="mr-10" bindtap="onSubmit">
  26. <t-icon name="root-list" size="36rpx" bind:click="onIconTap" />
  27. <text style="font-size: 20rpx;">提交</text>
  28. </view>
  29. <view class="mr-10" bindtap="onEdit">
  30. <t-icon name="edit" size="36rpx" bind:click="onIconTap" />
  31. <text style="font-size: 20rpx;">编辑</text>
  32. </view>
  33. <view bindtap="onDelete">
  34. <t-icon name="delete" size="36rpx" bind:click="onIconTap" />
  35. <text style="font-size: 20rpx;">删除</text>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="small"><text class="label">服务单类型:</text>{{orderMainData.servicetype}}</view>
  41. <view class="small"><text class="label">服务单状态:</text>{{orderMainData.status}}</view>
  42. <view class="small"><text class="label">开始日期:</text>{{orderMainData.begdate}}</view>
  43. <view class="small"><text class="label">结束日期:</text>{{orderMainData.enddate}}</view>
  44. <view wx:if="{{orderMainData.backreason}}" class="small colorError"><text class="label">退回原因:</text>{{orderMainData.backreason}}</view>
  45. </view>
  46. <!-- <view style="padding:5px" class="small"><text class="label">现场联系人</text></view> -->
  47. <view class="panel mt-5">
  48. <view>
  49. <view class="small"><text class="label">姓名:</text>{{orderMainData.scenecontact}}</view>
  50. <view class="small flex-align-center">
  51. <text class="label">电话:</text>
  52. <t-call phone="{{orderMainData.scenecontactphonenumber}}"></t-call>
  53. </view>
  54. <view class="small"><text class="label">岗位:</text>{{orderMainData.scenecontactrole}}</view>
  55. </view>
  56. </view>
  57. <!-- <view style="padding:5px" class="small"><text class="label">关联订单</text></view> -->
  58. <view class="panel mt-5" wx:if="{{orderMainData.sonum}}">
  59. <text class="label">关联订单:</text>{{orderMainData.sonum}}
  60. </view>
  61. <view class="panel mt-5">
  62. <view class="small">
  63. <text class="label">问题描述:</text>{{orderMainData.reason}}
  64. </view>
  65. </view>
  66. <view class="panel mt-5">
  67. <view class="small"><text class="label">附件信息:</text></view>
  68. <imageview wx:if="{{filelist.length > 0}}" list="{{filelist}}"></imageview>
  69. </view>
  70. <view>
  71. <t-tabs defaultValue="{{0}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs">
  72. <t-tab-panel label="关联工单" value="0">
  73. <t-cell wx:for="{{linkWorkOrders}}" wx:key="sa_serviceorderid" title="工单编号" note="{{item.billno}}" data-item="{{item}}" bind:click="tolinkWorkOrder" hover arrow />
  74. </t-tab-panel>
  75. <t-tab-panel wx:if="{{orderMainData.servicetype !== '售前' && orderMainData.servicetype !== '历史售后'}}" label="售后商品" value="1">
  76. <view style="padding:10px" wx:if="{{list.length === 0}}">
  77. <t-empty icon="cart" description="暂未添加商品">
  78. <t-button slot="action" theme="primary" size="extra-small" bindtap="addProduct">前往添加</t-button>
  79. </t-empty>
  80. </view>
  81. <view wx:else>
  82. <view style="text-align: right;border:1px solid #f1f2f3">
  83. <t-button theme="primary" size="small" icon="add" variant="text" bindtap="addProduct">
  84. 继续添加
  85. </t-button>
  86. </view>
  87. <view wx:for="{{list}}" wx:key="{{itemid}}">
  88. <product-card data="{{item}}" isdelete="{{true}}" bind:delete="onMXDelete"></product-card>
  89. </view>
  90. </view>
  91. </t-tab-panel>
  92. </t-tabs>
  93. </view>
  94. <t-dialog id="t-dialog" />
  95. <t-dialog
  96. visible="{{showWithInput}}"
  97. title="退回原因"
  98. confirm-btn="确定"
  99. cancel-btn="取消"
  100. bind:confirm="onBack"
  101. bind:cancel="showBackReason"
  102. >
  103. <t-textarea style="margin-top:20px" slot="content" placeholder="请输入退回原因" value="" disableDefaultPadding="{{true}}" bind:blur="inputReason" autosize bordered/>
  104. </t-dialog>
  105. <t-dialog
  106. visible="{{showToWoker}}"
  107. title="转工单"
  108. confirm-btn="确定"
  109. cancel-btn="取消"
  110. bind:confirm="toWorker"
  111. bind:cancel="showWorkerDialog"
  112. >
  113. <view slot="content">
  114. <view class="d-title">
  115. 选择工单模板:
  116. </view>
  117. <view style="margin-bottom:10px">
  118. <block wx:for="{{templist}}" wx:key="rowindex">
  119. <t-tag class="mr-5" variant="{{actTemp.sa_workorder_templateid === item.sa_workorder_templateid?'dark':'outline'}}" theme="primary" data-item="{{item}}" bindtap="selectTemp">{{ item.name }}</t-tag>
  120. </block>
  121. </view>
  122. <view class="d-title">
  123. 选择负责人:
  124. </view>
  125. <view>
  126. <block wx:for="{{workers}}" wx:key="rowindex">
  127. <t-tag class="mr-10" variant="{{actLeader.userid === item.userid?'dark':'outline'}}" theme="primary" data-item="{{item}}" bindtap="selectLeader">{{ item.position?item.position + '-':'' }}{{ item.name }}</t-tag>
  128. </block>
  129. </view>
  130. </view>
  131. </t-dialog>