index.wxml 8.3 KB

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