dailyFill.wxml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <view class="container">
  2. <view class="service-order">
  3. <view class="section-title1">服务工单</view>
  4. <view class="order-info">
  5. <view class="info-item">
  6. <text class="label">服务单号:</text>
  7. <text class="value">{{orderDetail.orderNo}}</text>
  8. </view>
  9. <!-- <view class="info-item">
  10. <text class="label">服务项目:</text>
  11. <text class="value">{{orderDetail.projectName}}</text>
  12. </view> -->
  13. <view class="info-item">
  14. <text class="label">客户:</text>
  15. <text class="value">{{orderDetail.customerName}}</text>
  16. </view>
  17. <view class="info-item">
  18. <text class="label">服务人员:</text>
  19. <text class="value">{{orderDetail.serviceStaffNames}}</text>
  20. </view>
  21. <view class="info-item">
  22. <text class="label">预计服务完成时间:</text>
  23. <text class="value">{{orderDetail.estimatedCompleteTime}}</text>
  24. </view>
  25. <view class="info-item delay-info">
  26. <text class="label">距服务完成时间还剩:</text>
  27. <text class="value highlight">{{orderDetail.remainingTime}}天</text>
  28. </view>
  29. <view class="info-item">
  30. <text class="label">备注:</text>
  31. <text class="value">{{orderDetail.remark}}</text>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="service-record">
  36. <view class="record-header">
  37. <text class="section-title">每日填写</text>
  38. <l-button class="history-btn" bindtap="viewHistory" size="mini">服务记录</l-button>
  39. </view>
  40. </view>
  41. <!-- 添加日期选择器 -->
  42. <view class="date-picker">
  43. <view class="date-item {{selectedDates[date] ? 'selected' : ''}}"
  44. wx:for="{{datas}}"
  45. wx:for-item="date"
  46. wx:key="index"
  47. bindtap="selectDate"
  48. data-date="{{date}}">
  49. <text class="date-text">{{date}}</text>
  50. </view>
  51. </view>
  52. <view class="record-content" wx:for="{{records}}" wx:key="index">
  53. <view class="product-info">
  54. <view class="product-item">
  55. <text class="product-label">日期:</text>
  56. <text class="product-name">{{item.date}}</text>
  57. </view>
  58. <view class="product-item">
  59. <text class="product-label">服务项目:</text>
  60. <text class="product-name">{{item.projectName}}</text>
  61. </view>
  62. <!-- <view class="product-item">
  63. <text class="product-label">货品编号:</text>
  64. <text class="product-name">{{item.goodsCode}}</text>
  65. </view> -->
  66. <view class="product-item">
  67. <text class="product-label">货品:</text>
  68. <text class="product-name">{{item.goodsName}}</text>
  69. </view>
  70. <view class="product-item">
  71. <text class="product-label">数量:</text>
  72. <text class="product-value">{{item.orderQuantity}}</text>
  73. </view>
  74. <view class="product-item">
  75. <text class="product-label">剩余量:</text>
  76. <text class="product-value">{{item.unshippedQuantity}}</text>
  77. </view>
  78. <view class="product-item">
  79. <text class="product-label">已完成量:</text>
  80. <text class="product-value">{{item.shippedQuantity}}</text>
  81. </view>
  82. <view class="product-item">
  83. <text class="product-label">今日完成量:</text>
  84. <input class="quantity-input" type="number" value="{{item.todayQuantity ?item.todayQuantity:''}}" data-index="{{index}}" bindinput="onQuantityChange" placeholder-style="font-size:28rpx;color:#aaa" placeholder="请填写今日完成量" />
  85. </view>
  86. <view class="product-item">
  87. <text class="product-label required">备注:</text>
  88. <textarea class="remarks-input" value="{{item.remark}}" bindinput="onRemarkChange" data-index="{{index}}" placeholder-style="font-size:28rpx;color:#aaa" placeholder="备注提示:是否使用临时工(公司支付工人工资),如有则填写工人数量,如没有填写无,请如实填写,否则将影响你的绩效" />
  89. </view>
  90. </view>
  91. </view>
  92. <!-- 底部按钮 -->
  93. <view class="ticket-actions" >
  94. <l-button size="mini" type="default" plain="{{true}}" bindtap="handleReject" data-id="{{item.id}}">取消</l-button>
  95. <l-button size="mini" type="default" bindtap="posttDailyFill" data-id="{{item.id}}">保存</l-button>
  96. </view>
  97. </view>