index.wxml 4.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!--pages/trainConfirmBill/index.wxml-->
  2. <view class="{{stopClick}}">
  3. <view class="title colorInfo">
  4. 单据信息
  5. </view>
  6. <t-cell title="服务单号" note="{{mainData.workorder.servicebillno}}" hover />
  7. <t-cell title="确认日期" note="{{mainData.workorder.createdate}}" hover />
  8. <view class="title colorInfo">
  9. 服务信息
  10. </view>
  11. <t-cell title="服务分类" note="{{mainData.workorder.servicetype}}" hover />
  12. <t-cell title="应用系统" note="{{mainData.workorder.class1}}" hover />
  13. <t-cell title="工单负责人" note="{{mainData.workorder.projectleader}}" hover />
  14. <t-cell title="项目名称" note="{{mainData.workorder.projectname}}" hover />
  15. <t-cell title="业务员" note="{{mainData.workorder.saler_name}}" hover />
  16. <t-cell title="服务企业" note="{{mainData.workorder.enterprisename}}" hover />
  17. <view class="title colorInfo">
  18. 现场联系人信息
  19. </view>
  20. <t-cell title="姓名" note="{{mainData.workorder.scenecontact}}" hover />
  21. <t-cell title="电话" note="{{mainData.workorder.scenecontactphonenumber}}" hover />
  22. <t-cell title="地址" note="{{mainData.workorder.address}}" hover />
  23. <view class="title colorInfo">
  24. 培训信息
  25. </view>
  26. <t-tabs defaultValue="{{0}}" t-class="custom-tabs">
  27. <t-tab-panel label="培训人员" value="0">
  28. <view class="panel">
  29. <card wx:for="{{mainData.trainers}}">
  30. <menber-card style="flex:1" slot="content" data="{{item}}" bind:delete="deleteMenber"></menber-card>
  31. </card>
  32. <view class="flex-align-center flex-around panel">
  33. <t-button size="extra-small" variant="primary" bind:tap="addTrainers">添加人员</t-button>
  34. </view>
  35. </view>
  36. </t-tab-panel>
  37. <t-tab-panel label="工单物料" value="1">
  38. <view class="panel">
  39. <card style="margin-top:10px" wx:for="{{mainData.trainertitems}}" wx:key="itemid">
  40. <product-card style="flex:1" slot="content" data="{{item}}" changeQty="{{true}}" bind:delete="deleteMaterial" bind:input="qtyChange"></product-card>
  41. </card>
  42. <view class="flex-align-center flex-around panel">
  43. <t-button size="extra-small" variant="primary" bind:tap="addProduct">添加物料</t-button>
  44. </view>
  45. </view>
  46. </t-tab-panel>
  47. </t-tabs>
  48. <view class="title colorInfo">
  49. 工序内容填写
  50. </view>
  51. <t-textarea style="margin-bottom:1px" label="现场培训内容" data-name="现场培训内容" value="{{trainerContent}}" bind:blur="inputChange" t-class="external-class" placeholder="请输入现场培训内容" disableDefaultPadding="{{true}}" autosize />
  52. <t-textarea label="现场互动及测试培训效果" data-name="现场互动及测试培训效果" value="{{trainerResult}}" bind:blur="inputChange" t-class="external-class" placeholder="请输入现场互动及测试培训效果" disableDefaultPadding="{{true}}" autosize />
  53. <view class="title colorInfo">
  54. 评价
  55. </view>
  56. <view class="demo-rate">
  57. <view class="demo-rate__title">反应速度</view>
  58. <!-- 实心评分,设置属性:variant-->
  59. <t-rate value="{{mainData.responsescore}}" data-name="responsescore" variant="filled" bind:change="onChange" />
  60. </view>
  61. <view class="demo-rate">
  62. <view class="demo-rate__title">配合态度</view>
  63. <!-- 实心评分,设置属性:variant-->
  64. <t-rate value="{{mainData.attitudescore}}" data-name="attitudescore" variant="filled" bind:change="onChange" />
  65. </view>
  66. <view class="title colorInfo">
  67. 客户签字
  68. </view>
  69. <card>
  70. <view style="flex:1" slot="content">
  71. <!-- <upload id="upload"></upload> -->
  72. <sign-name wx:if="{{SignName}}" bindData="{{bindSignNameData}}"></sign-name>
  73. </view>
  74. </card>
  75. </view>
  76. <view style="height: 130rpx;" />
  77. <view class="footer">
  78. <view class="count">
  79. </view>
  80. <view class="but-box">
  81. <van-button custom-class='but' wx:if="{{mainData.status == '新建'}}" bind:click="createImage">单据预览</van-button>
  82. <van-button custom-class='but' wx:else bind:click="checkImage">查看单据</van-button>
  83. <van-button custom-class='but delete' wx:if="{{mainData.status == '新建'}}" bind:click="delete">删 除</van-button>
  84. <van-button custom-class='but' wx:if="{{mainData.status == '新建'}}" bind:click="submit">提 交</van-button>
  85. </view>
  86. </view>