index.wxml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <!--pages/workOrderDetail/index.wxml-->
  2. <view style="padding:10px">
  3. <card>
  4. <view style="width: 35px;" slot="left">
  5. <view class="type">{{billData.type}}</view>
  6. </view>
  7. <view style="flex:1" slot="content">
  8. <view class="flex-column-between">
  9. <view>
  10. {{billData.province}}{{billData.city}}{{billData.county}}{{billData.address}}
  11. </view>
  12. <view class="colorInfo">
  13. {{language['指派日期']||'指派日期'}}:{{billData.createdate}}
  14. </view>
  15. </view>
  16. </view>
  17. <view wx:if="{{billData.status!='待接单' &&billData.status!='待开始'}}" slot="right" class="colorInfo small">
  18. <t-button disabled="{{stopClick}}" size="extra-small" theme="light" bind:tap="addConfirmBill">{{language['发起服务确认单']||'发起服务确认单'}}</t-button>
  19. </view>
  20. </card>
  21. <card>
  22. <view style="position: relative;" slot="content">
  23. <view style="margin-bottom: 5px;" class="small"><text class="label">{{language['工单编号']||'工单编号'}}:</text>{{billData.billno}}</view>
  24. <view style="margin-bottom: 5px;" class="small">
  25. <t-button size="extra-small" theme="light" bind:tap="toServiceBillDetail">{{language['查看来源申请单']||'查看来源申请单'}}</t-button>
  26. </view>
  27. <view class="small"><text class="label">{{language['工单状态']||'工单状态'}}:</text><text style='color: var(--error);'>{{billData.status}}</text></view>
  28. <view style="margin-bottom: 5px;" class="small" wx:if="{{billData.status!='待接单' &&billData.status!='待开始'}}">
  29. <t-button size="extra-small" theme="light" bind:tap="toWorkConfirmInfo">{{language['查看工单确认信息']||'查看工单确认信息'}}</t-button>
  30. </view>
  31. <view style="margin-bottom: 5px;" class="small"><text class="label">{{language['现场联系人']||'现场联系人'}}:</text>{{billData.scenecontact}}</view>
  32. <view class="small flex-align-center"><text class="label">{{language['联系电话']||'联系电话'}}:</text>
  33. <t-call phone="{{billData.scenecontactphonenumber}}">{{billData.scenecontactphonenumber}}</t-call>
  34. </view>
  35. <view class="small"><text class="label">{{language['岗位']||'岗位'}}:</text>{{billData.scenecontactrole}}</view>
  36. <view class="small"><text class="label">{{language['开始时间']||'开始时间'}}:</text>{{billData.begdate}}</view>
  37. <view class="small"><text class="label">{{language['结束时间']||'结束时间'}}:</text>{{billData.enddate}}</view>
  38. </view>
  39. </card>
  40. <card>
  41. <view slot="content">
  42. <view class="small"><text class="label">{{language['业务员']||'业务员'}}:</text>{{billData.saler_name||" --"}}</view>
  43. <view class="small flex-align-center"><text class="label">{{language['联系电话']||'联系电话'}}:</text>
  44. <t-call wx:if="{{billData.salerphonenumber}}" phone="{{billData.salerphonenumber}}" />
  45. <text wx:else> --</text>
  46. </view>
  47. </view>
  48. </card>
  49. <view style="margin-bottom: 5px;" class="small"><text class="label">{{language['项目成员']||'项目成员'}}</text></view>
  50. <card bindtap="checkTeam">
  51. <view slot="content">
  52. <t-tag class="mr-5 mt-5" wx:for="{{billData.team}}" wx:key="userid" variant="{{item.isleader === 1?'dark':'outline'}}" theme="{{item.isleader === 1?'primary':''}}">{{item.name}}</t-tag>
  53. </view>
  54. </card>
  55. <t-tabs defaultValue="{{0}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs">
  56. <t-tab-panel label="工单进度" value="0">
  57. <view wx:if="{{billData.actiontype=='非工序模板'}}">
  58. <view class="panel">
  59. <card style="margin-top:10px" wx:for="{{billData.titems}}" wx:key="itemid">
  60. <product-card style="flex:1" model="{{billData.status=='进行中'?2:3}}" slot="content" data="{{item}}" changeQty="{{false}}" bind:delete="deleteMaterial" bind:input="qtyChange" bind:changeItem="changeItem" />
  61. </card>
  62. <view wx:if="{{billData.status=='进行中'}}" style="width: 100%; text-align: center;">
  63. <t-button size="extra-small" variant="primary" bind:tap="addProduct">{{language['添加产品']||'添加产品'}}</t-button>
  64. </view>
  65. </view>
  66. </view>
  67. <view wx:else style="padding:10px">
  68. <view class="small mt-5" wx:for="{{billData.nodes}}" wx:key="sa_workorder_nodeid">
  69. {{index + 1}}.{{item.workpresetjson.workname}}
  70. <image-view isdelete="{{false}}" wx:if="{{item.attinfos.length > 0}}" list="{{item.attinfos}}" />
  71. <navigator url="{{billData.status=='进行中'?('/Eservice/nodeDetail/index?id=' + child.sa_workorder_nodeid + '&wid=' + id +'&class=' + stopClick):'#'}}" class="textIndentNodeChild smallChild" wx:for="{{item.child}}" wx:key="sa_workorder_nodeid" bindtap="isStopToPage" wx:for-item="child" wx:for-index="childIndex">
  72. {{index + 1}}-{{childIndex + 1}}.{{child.workpresetjson.workname}}
  73. <image-view isdelete="{{false}}" wx:if="{{child.attinfos.length > 0}}" list="{{child.attinfos}}" />
  74. <view class="small">
  75. <text class="colorInfo">{{child.finishdate}}</text>
  76. <t-tag class="mr-5 mt-5" variant="dark" theme="{{child.status == 0?'danger':child.status == 1?'success':'primary'}}" size="small">{{child.status == 0?language['未完成']||'未完成':child.status == 1?language['完成']||'完成':language['进行中']||'进行中'}}</t-tag>
  77. <t-tag wx:if="{{child.finishby}}" class="mr-5 mt-5" variant="dark" theme="primary" size="small">{{child.finishby}}</t-tag>
  78. </view>
  79. </navigator>
  80. <t-divider dashed />
  81. </view>
  82. </view>
  83. </t-tab-panel>
  84. <t-tab-panel label="{{language['确认单']||'确认单'}}" value="1">
  85. <view style="padding:10px;text-align:center;color:#999" wx:if="{{confirmBills.length === 0}}">
  86. {{language['暂无更多服务确认单']||'暂无更多服务确认单'}}
  87. </view>
  88. <t-cell wx:for="{{confirmBills}}" wx:key="sa_workorder_confirmationid" note="{{language[item.status]||item.status}}" title="{{item.confirmationno}}" data-item="{{item}}" hover arrow bind:click="toConfirmBill"></t-cell>
  89. </t-tab-panel>
  90. </t-tabs>
  91. </view>
  92. <view style="height: 160rpx;" />
  93. <view class="footer">
  94. <view wx:if="{{!stopClick}}" class="{{stopClick}}" style="padding:0 10px 10px 10px">
  95. <t-button wx:if="{{billData.status === '待接单'}}" theme="dark" variant="primary" data-id="20230210101103" bind:tap="changeBillStatus" block>{{language['接单']||'接单'}}</t-button>
  96. <t-button wx:if="{{billData.status === '待开始'}}" theme="dark" variant="primary" data-id="20230209144503" bind:tap="changeBillStatus" block>{{language['开始工单']||'开始工单'}}</t-button>
  97. <t-button wx:if="{{billData.status === '进行中'}}" theme="dark" variant="primary" data-id="20230209144903" bind:tap="changeBillStatus" block>{{language['完结工单']||'完结工单'}}</t-button>
  98. </view>
  99. </view>
  100. <t-dialog id="t-dialog" />