conclusionTab.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <template>
  2. <!-- 出具结论内容(只读默认) -->
  3. <div class="conclusion-section">
  4. <!-- <el-button v-if="!isView" type="primary" style="margin-bottom: 20px">
  5. 保存
  6. </el-button> -->
  7. <el-form
  8. ref="conclusionForm"
  9. :model="conclusionForm"
  10. label-width="150px"
  11. class="conclusion-form"
  12. :disabled="true"
  13. >
  14. <el-row>
  15. <el-col :span="24">
  16. <el-form-item label="定价成本构成">
  17. <el-input
  18. v-model="conclusionForm.pricingCostStructure"
  19. type="textarea"
  20. :rows="4"
  21. placeholder="填写 (非必填)"
  22. style="width: 100%"
  23. />
  24. </el-form-item>
  25. </el-col>
  26. </el-row>
  27. <el-row>
  28. <el-col :span="24">
  29. <el-form-item label="审核的内容和方法">
  30. <el-input
  31. v-model="conclusionForm.auditContentMethod"
  32. type="textarea"
  33. :rows="4"
  34. placeholder="填写 (非必填)"
  35. style="width: 100%"
  36. />
  37. </el-form-item>
  38. </el-col>
  39. </el-row>
  40. <el-row>
  41. <el-col :span="24">
  42. <el-form-item label="成本费用项目核销(减)情况及理由">
  43. <el-input
  44. v-model="conclusionForm.costDeductionReason"
  45. type="textarea"
  46. :rows="4"
  47. placeholder="填写 (非必填)"
  48. style="width: 100%"
  49. />
  50. </el-form-item>
  51. </el-col>
  52. </el-row>
  53. <el-row>
  54. <el-col :span="24">
  55. <el-form-item label="成本监审结论">
  56. <el-input
  57. v-model="conclusionForm.costAuditConclusion"
  58. type="textarea"
  59. :rows="4"
  60. placeholder="填写 (非必填)"
  61. style="width: 100%"
  62. />
  63. </el-form-item>
  64. </el-col>
  65. </el-row>
  66. <el-row>
  67. <el-col :span="24">
  68. <el-form-item label="违约情况说明">
  69. <el-input
  70. v-model="conclusionForm.defaultConditions"
  71. type="textarea"
  72. :rows="4"
  73. placeholder="填写 (非必填)"
  74. style="width: 100%"
  75. />
  76. </el-form-item>
  77. </el-col>
  78. </el-row>
  79. <el-row>
  80. <el-col :span="24">
  81. <el-form-item label="其他需要说明的事项">
  82. <el-input
  83. v-model="conclusionForm.otherExplanations"
  84. type="textarea"
  85. :rows="4"
  86. placeholder="填写 (非必填)"
  87. style="width: 100%"
  88. />
  89. </el-form-item>
  90. </el-col>
  91. </el-row>
  92. </el-form>
  93. </div>
  94. </template>
  95. <script>
  96. import { getConclusionDetail } from '@/api/taskProgressManage'
  97. export default {
  98. name: 'ConclusionTabReadonly',
  99. props: {
  100. project: { type: Object, default: () => ({}) },
  101. },
  102. data() {
  103. return {
  104. conclusionForm: {
  105. pricingCostStructure: '',
  106. auditContentMethod: '',
  107. costDeductionReason: '',
  108. costAuditConclusion: '',
  109. defaultConditions: '',
  110. otherExplanations: '',
  111. conclusionStatus: '',
  112. projectId: '',
  113. },
  114. }
  115. },
  116. watch: {
  117. project: {
  118. handler() {
  119. this.getConclusionDetails()
  120. },
  121. immediate: true,
  122. deep: false,
  123. },
  124. },
  125. methods: {
  126. getConclusionDetails() {
  127. if (!this.project || !this.project.projectId) return
  128. getConclusionDetail({ projectId: this.project.projectId }).then(
  129. (res) => {
  130. if (res && res.code === 200) {
  131. const v = (res && res.value) || {}
  132. this.conclusionForm = {
  133. pricingCostStructure: v.pricingCostStructure || '',
  134. auditContentMethod: v.auditContentMethod || '',
  135. costDeductionReason: v.costDeductionReason || '',
  136. costAuditConclusion: v.costAuditConclusion || '',
  137. defaultConditions: v.defaultConditions || '',
  138. otherExplanations: v.otherExplanations || '',
  139. conclusionStatus: v.conclusionStatus || '',
  140. projectId:
  141. v.projectId || (this.project && this.project.projectId) || '',
  142. }
  143. }
  144. }
  145. )
  146. },
  147. },
  148. }
  149. </script>
  150. <style lang="scss" scoped>
  151. /* 强制置灰禁用态的输入框与文本域 */
  152. ::v-deep .el-input.is-disabled .el-input__inner {
  153. background-color: #f5f7fa !important;
  154. color: #c0c4cc !important;
  155. }
  156. ::v-deep .el-textarea.is-disabled .el-textarea__inner {
  157. background-color: #f5f7fa !important;
  158. color: #c0c4cc !important;
  159. }
  160. </style>