index.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <template>
  2. <zj-page-container v-if="orderInfo">
  3. <zj-page-fill class="neibuview">
  4. <zj-form-container ref="formRef" :form-data="orderInfo" :form-rules="formRules" :form-attributes="{ size: 'mini' }">
  5. <!-- 派工信息 创建不需要 -->
  6. <zj-form-module v-if="id" title="派工信息" label-width="90px" :form-data="orderInfo" :form-items="dispatchInfo">
  7. <div slot="internal-bottom" style="text-align: right;">
  8. <copy-info text="复制工单信息" :info="dispatchInfo" :order-info="orderInfo" />
  9. </div>
  10. <div slot="right" style="width: 55%; position: relative">
  11. <div class="pgxxTable">
  12. <zj-table :columns="logColumns" :table-data="logList"
  13. :table-attributes="{ height: '100%', border: true }" />
  14. </div>
  15. </div>
  16. </zj-form-module>
  17. <!-- 基本信息 -->
  18. <zj-form-module title="基本信息" :form-data="orderInfo" :form-items="basicInfo" />
  19. <!-- 服务信息 -->
  20. <zj-form-module title="服务信息" label-width="110px" :form-data="orderInfo" :form-items="serviceInfo" />
  21. <!-- 产品信息 -->
  22. <zj-form-module title="产品信息" :form-data="orderInfo" :form-items="workOrderType == 4 ? product_wb : product" />
  23. <!-- 其它信息 -->
  24. <!-- <zj-form-module title="其它信息" :form-data="orderInfo" :form-items="otherInfo" /> -->
  25. <!-- 派单信息 -->
  26. <zj-form-module title="派单信息" label-width="100px" :form-data="orderInfo" :form-items="pandanxinxi" />
  27. </zj-form-container>
  28. </zj-page-fill>
  29. <!-- 操作按钮 -->
  30. <div>
  31. <div style="box-sizing: border-box; padding: 10px 10px 0" v-if="id">
  32. <!-- 关闭 -->
  33. <close-button />
  34. <!-- 1,保存 -->
  35. <commitSave v-if="~btnRestrict.indexOf(1)" :orderInfo="orderInfo" :orderType="orderType" />
  36. <!-- 2,过程反馈 -->
  37. <processFeedback v-if="~btnRestrict.indexOf(2)" resultCodeName="过程反馈" :orderInfo="orderInfo"
  38. :orderType="orderType" />
  39. <!-- 3,设为异常 -->
  40. <abnormal v-if="~btnRestrict.indexOf(3)" :orderInfo="orderInfo" :orderType="orderType" />
  41. <!-- 4,加急 -->
  42. <urgent v-if="~btnRestrict.indexOf(4)" :orderInfo="orderInfo" :orderType="orderType" />
  43. <!-- 5,不加急 -->
  44. <unurgent v-if="~btnRestrict.indexOf(5)" :orderInfo="orderInfo" :orderType="orderType" />
  45. <!-- 6,取消工单 -->
  46. <cancelOrder v-if="~btnRestrict.indexOf(6)" :orderInfo="orderInfo" :orderType="orderType" />
  47. <!-- 7,回访 -->
  48. <processFeedback v-if="~btnRestrict.indexOf(7)" resultCodeName="回访" resultCode="回访" :orderInfo="orderInfo"
  49. :orderType="orderType" />
  50. <!-- 工单驳回 -->
  51. <orderReject v-if="~btnRestrict.indexOf(9)" :orderInfo="orderInfo" :orderType="orderType" />
  52. <!-- 8,新建工单 -->
  53. </div>
  54. <div style="box-sizing: border-box; padding: 10px 10px 0" v-else>
  55. <!-- 关闭 -->
  56. <close-button />
  57. <!-- 1,下派服务单 -->
  58. <commitSave :orderInfo="orderInfo" :orderType="orderType" />
  59. </div>
  60. </div>
  61. </zj-page-container>
  62. </template>
  63. <script>
  64. import workOrderLogic from './mixins/workOrderLogic.js'
  65. import basicInfo from './mixins/basicInfo.js'
  66. import dispatchInfo from './mixins/dispatchInfo.js'
  67. import otherInfo from './mixins/otherInfo.js'
  68. import productColumns from './mixins/productColumns.js'
  69. import wb_productColumns from './mixins/wb_productColumns.js'
  70. import serviceInfo from './mixins/serviceInfo.js'
  71. import pandanxinxi from './mixins/pandanxinxi.js'
  72. import copyInfo from './buttons/copyInfo.vue'
  73. import closeButton from './buttons/closeButton.vue'
  74. import commitSave from './buttons/commitSave.vue'
  75. import urgent from './buttons/urgent.vue'
  76. import unurgent from './buttons/unurgent.vue'
  77. import abnormal from './buttons/abnormal.vue'
  78. import processFeedback from './buttons/processFeedback.vue'
  79. import cancelOrder from './buttons/cancelOrder.vue'
  80. import orderReject from './buttons/orderReject.vue'
  81. export default {
  82. components: {
  83. copyInfo,
  84. closeButton,
  85. commitSave,
  86. urgent,
  87. unurgent,
  88. abnormal,
  89. processFeedback,
  90. cancelOrder,
  91. orderReject
  92. },
  93. mixins: [
  94. workOrderLogic,
  95. basicInfo,
  96. dispatchInfo,
  97. otherInfo,
  98. productColumns,
  99. wb_productColumns,
  100. serviceInfo,
  101. pandanxinxi
  102. ],
  103. methods: {
  104. allVerify(cb) {
  105. this.$refs.formRef.validate((valid, invalidFields, errLabels) => {
  106. cb && cb(valid, invalidFields, errLabels)
  107. })
  108. },
  109. appointVerify(arr, cb) {
  110. this.$refs.formRef.validateField(arr, (valid, invalidFields, errLabels) => {
  111. cb && cb(valid, invalidFields, errLabels)
  112. })
  113. }
  114. }
  115. }
  116. </script>
  117. <style lang="scss" scoped>
  118. .neibuview {
  119. box-sizing: border-box;
  120. padding-left: 16px;
  121. ::v-deep &>.zj-page-fill-scroll {
  122. box-sizing: border-box;
  123. padding-right: 16px;
  124. &>div:nth-child(1) {
  125. margin-top: 20px;
  126. }
  127. }
  128. }
  129. .pgxxTable {
  130. position: absolute;
  131. top: 0;
  132. bottom: 0;
  133. left: 0;
  134. right: 0;
  135. }
  136. .withinLine {
  137. display: inline-block;
  138. ::v-deep .el-button {
  139. margin-left: 0;
  140. margin-right: 10px;
  141. margin-bottom: 10px;
  142. }
  143. }
  144. .redbordererr {
  145. ::v-deep .el-form-item {
  146. margin: 0 !important;
  147. overflow: hidden;
  148. }
  149. }
  150. </style>