index.wxml 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <view class="{{stopClick}}" style="padding:10px">
  2. <card>
  3. <view slot="content">
  4. {{mainData.workpresetjson.workname}}
  5. <view class="flex-align-center">
  6. <t-tag variant="dark" class="mr-5" theme="{{mainData.status == 0?'danger':mainData.status == 1?'success':'primary'}}" size="small">{{mainData.status == 0?'未完成':mainData.status == 1?'完成':'进行中'}}</t-tag> <t-tag wx:if="{{mainData.finishby}}" variant="dark" theme="primary" size="small">{{mainData.finishby}}</t-tag>
  7. </view>
  8. </view>
  9. </card>
  10. <view style="margin-bottom: 5px;" class="small"><text class="label">工序说明</text></view>
  11. <card>
  12. <view slot="content">
  13. {{mainData.workpresetjson.remarks?mainData.workpresetjson.remarks:'暂无说明'}}
  14. </view>
  15. </card>
  16. <view style="margin-bottom: 5px;" class="small"><text class="label">参与人</text></view>
  17. <card>
  18. <text class="label">参与人:</text>
  19. <view slot="content">
  20. <view wx:if="{{mainData.team.length === 0}}">
  21. <text class="small">暂无参与人</text>
  22. </view>
  23. <view wx:else>
  24. <t-tag class="mr-5 mt-5" wx:for="{{mainData.team}}" wx:key="userid" variant="{{item.isleader === 1?'dark':'outline'}}" theme="{{item.isleader === 1?'primary':''}}">{{item.name}}</t-tag>
  25. </view>
  26. </view>
  27. </card>
  28. <!-- 是否确认 -->
  29. <view wx:if="{{mainData.workpresetjson.confirm !== 0}}">
  30. <view style="margin-bottom: 5px;" class="small">
  31. <text class="label">是否确认</text>
  32. <text wx:if="{{mainData.workpresetjson.confirm == 11}}" style="color:#e34d59">*</text>
  33. </view>
  34. <card>
  35. <view style="flex:1" slot="content">
  36. <t-tag bindtap="confirmValue" data-item="{{item}}" class="mr-5 mt-5" wx:for="{{mainData.workpresetjson.confirm_options}}" variant="{{item === form.confirm_value?'dark':'outline'}}" theme="{{item === form.confirm_value?'primary':''}}">{{item}}</t-tag>
  37. </view>
  38. </card>
  39. </view>
  40. <!-- 上传附件 -->
  41. <view wx:if="{{mainData.workpresetjson.fileupload !== 0}}">
  42. <view style="margin-bottom: 5px;" class="small">
  43. <text class="label">上传附件</text>
  44. <text wx:if="{{mainData.workpresetjson.fileupload == 11}}" style="color:#e34d59">*</text>
  45. </view>
  46. <card>
  47. <view style="flex:1" slot="content">
  48. <upload id="upload" bindData="{{bindNormalData}}"></upload>
  49. </view>
  50. </card>
  51. </view>
  52. <!-- 文本信息 -->
  53. <view wx:if="{{mainData.workpresetjson.textedit !== 0}}">
  54. <view style="margin-bottom: 5px;" class="small">
  55. <text class="label">文本信息</text>
  56. <text wx:if="{{mainData.workpresetjson.textedit == 11}}" style="color:#e34d59">*</text>
  57. </view>
  58. <card>
  59. <view style="flex:1" slot="content">
  60. <t-textarea custom-style="padding:0" value="{{form.textcontent}}" t-class="external-class" placeholder="请输入文字" disableDefaultPadding="{{true}}" bind:blur="textContent" autosize/>
  61. </view>
  62. </card>
  63. </view>
  64. <!-- 上传合同 -->
  65. <view wx:if="{{mainData.workpresetjson.contractupload !== 0}}">
  66. <view style="margin-bottom: 5px;" class="small">
  67. <text class="label">上传合同</text>
  68. <text wx:if="{{mainData.workpresetjson.contractupload == 11}}" style="color:#e34d59">*</text>
  69. </view>
  70. <card>
  71. <view style="flex:1" slot="content">
  72. <upload id="upload" source="messageFile" bindData="{{bindContractData}}"></upload>
  73. </view>
  74. </card>
  75. </view>
  76. <!-- 是否有偿 -->
  77. <view wx:if="{{mainData.workpresetjson.amountpay !== 0}}">
  78. <view style="margin-bottom: 5px;" class="small">
  79. <text class="label">是否有偿</text>
  80. <text wx:if="{{mainData.workpresetjson.amountpay == 11}}" style="color:#e34d59">*</text>
  81. </view>
  82. <card>
  83. <view style="flex:1" slot="content">
  84. <t-input default-value="{{form.amount}}" label="输入金额" placeholder="输入金额" bind:blur="amountPay" borderless></t-input>
  85. </view>
  86. </card>
  87. </view>
  88. <!-- 客户签字 -->
  89. <view wx:if="{{mainData.workpresetjson.signature !== 0 && SignName}}">
  90. <view style="margin-bottom: 5px;" class="small">
  91. <text class="label">客户签字</text>
  92. <text wx:if="{{mainData.workpresetjson.signature == 11}}" style="color:#e34d59">*</text>
  93. </view>
  94. <card>
  95. <view style="flex:1" slot="content">
  96. <!-- <upload id="upload"></upload> -->
  97. <sign-name bindData="{{bindSignNameData}}"></sign-name>
  98. </view>
  99. </card>
  100. </view>
  101. <!-- 物料及人员 -->
  102. <view wx:if="{{mainData.workpresetjson.additem !== 0 || mainData.workpresetjson.addperson !== 0}}">
  103. <view style="margin-bottom: 5px;" class="small"><text class="label">物料及人员</text></view>
  104. <card>
  105. <view style="flex:1" slot="content">
  106. <t-tabs defaultValue="{{mainData.workpresetjson.addperson !== 0?0:1}}" bind:change="onTabsChange" bind:click="onTabsClick" t-class="custom-tabs">
  107. <t-tab-panel wx:if="{{mainData.workpresetjson.addperson !== 0}}" label="培训人员" value="0">
  108. <card wx:for="{{mainData.trainers}}">
  109. <menber-card style="flex:1" slot="content" data="{{item}}" bind:delete="deleteMenber"></menber-card>
  110. </card>
  111. <view class="flex-align-center flex-around panel">
  112. <t-button size="extra-small" variant="primary" bind:tap="addTrainers">添加人员</t-button>
  113. </view>
  114. </t-tab-panel>
  115. <t-tab-panel wx:if="{{mainData.workpresetjson.additem !== 0}}" label="工单物料" value="1">
  116. <card style="margin-top:10px" wx:for="{{titems}}" wx:key="itemid">
  117. <product-card style="flex:1" slot="content" data="{{item}}" changeQty="{{true}}" bind:delete="deleteMaterial" bind:input="qtyChange"></product-card>
  118. </card>
  119. <view class="flex-align-center flex-around panel">
  120. <t-button size="extra-small" variant="primary" bind:tap="addProduct">添加物料</t-button>
  121. </view>
  122. </t-tab-panel>
  123. </t-tabs>
  124. </view>
  125. </card>
  126. </view>
  127. <!-- 备注 -->
  128. <view>
  129. <view style="margin-bottom: 5px;" class="small"><text class="label">备注</text></view>
  130. <card>
  131. <view style="flex:1" slot="content">
  132. <t-textarea custom-style="padding:0" value="{{form.remarks}}" t-class="external-class" placeholder="请输入备注" disableDefaultPadding="{{true}}" bind:blur="remarkEdit" autosize/>
  133. </view>
  134. </card>
  135. </view>
  136. <t-button style="margin-bottom:10px" wx:if="{{stopClick}}" theme="primary" size="large" bind:tap="confirmBill" block>确认完成</t-button>
  137. <t-button wx:if="{{stopClick}}" theme="primary" size="large" bind:tap="updateNode" data-info="needBack" block>保存</t-button>
  138. </view>