plm前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

174 lines
5.4 KiB

3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
  1. <template>
  2. <div class="mode-config">
  3. <el-form label-position="top" :model="projectInformationData">
  4. <el-row :gutter="20">
  5. <el-col :span="8">
  6. <div class="grid-content bg-purple">
  7. <el-form-item label="项目号">
  8. <el-input v-model="projectInformationData.projectId" readonly></el-input>
  9. </el-form-item>
  10. </div>
  11. </el-col>
  12. <el-col :span="8">
  13. <div class="grid-content bg-purple">
  14. <el-form-item label="项目名称">
  15. <el-input v-model="projectInformationData.projectName" readonly></el-input>
  16. </el-form-item>
  17. </div>
  18. </el-col>
  19. <el-col :span="8">
  20. <div class="grid-content bg-purple">
  21. <el-form-item label="项目类型">
  22. <el-input v-model="projectInformationData.projectType" readonly></el-input>
  23. </el-form-item>
  24. </div>
  25. </el-col>
  26. </el-row>
  27. <el-row :gutter="20">
  28. <el-col :span="8">
  29. <div class="grid-content bg-purple">
  30. <el-form-item label="客户来源">
  31. <el-input v-model="projectInformationData.projectSourceDesc" readonly></el-input>
  32. </el-form-item>
  33. </div>
  34. </el-col>
  35. <el-col :span="8">
  36. <div class="grid-content bg-purple">
  37. <el-form-item label="优先级">
  38. <el-input v-model="projectInformationData.priorityDesc" readonly></el-input>
  39. </el-form-item>
  40. </div>
  41. </el-col>
  42. </el-row>
  43. <el-row :gutter="20">
  44. <el-col :span="8">
  45. <div class="grid-content bg-purple">
  46. <el-form-item label="项目经理">
  47. <el-input v-model="projectInformationData.projectManagerName" readonly></el-input>
  48. </el-form-item>
  49. </div>
  50. </el-col>
  51. <el-col :span="8">
  52. <div class="grid-content bg-purple">
  53. <el-form-item label="项目负责人">
  54. <el-input v-model="projectInformationData.projectOwnerName" readonly></el-input>
  55. </el-form-item>
  56. </div>
  57. </el-col>
  58. <el-col :span="8">
  59. <div class="grid-content bg-purple">
  60. <el-form-item label="项目权限">
  61. <el-input v-model="projectInformationData.userRoleName" readonly></el-input>
  62. </el-form-item>
  63. </div>
  64. </el-col>
  65. </el-row>
  66. <el-row :gutter="20">
  67. <el-col :span="6">
  68. <div class="grid-content bg-purple">
  69. <el-form-item label="创建时间">
  70. <el-input v-model="projectInformationData.createDate" readonly></el-input>
  71. </el-form-item>
  72. </div>
  73. </el-col>
  74. <el-col :span="6">
  75. <div class="grid-content bg-purple">
  76. <el-form-item label="创建人">
  77. <el-input v-model="projectInformationData.createBy" readonly></el-input>
  78. </el-form-item>
  79. </div>
  80. </el-col>
  81. <el-col :span="6">
  82. <div class="grid-content bg-purple">
  83. <el-form-item label="更新时间">
  84. <el-input v-model="projectInformationData.updateDate" readonly></el-input>
  85. </el-form-item>
  86. </div>
  87. </el-col>
  88. <el-col :span="6">
  89. <div class="grid-content bg-purple">
  90. <el-form-item label="更新人">
  91. <el-input v-model="projectInformationData.updateBy" readonly></el-input>
  92. </el-form-item>
  93. </div>
  94. </el-col>
  95. </el-row>
  96. <el-row :gutter="20">
  97. <el-col :span="24">
  98. <div class="grid-content bg-purple">
  99. <el-form-item label="项目描述">
  100. <el-input v-model="projectInformationData.projectDesc" readonly></el-input>
  101. </el-form-item>
  102. </div>
  103. </el-col>
  104. </el-row>
  105. <el-row :gutter="20">
  106. <el-col :span="24">
  107. <div class="grid-content bg-purple">
  108. <el-form-item label="其它特殊要求">
  109. <el-input v-model="projectInformationData.remark" readonly></el-input>
  110. </el-form-item>
  111. </div>
  112. </el-col>
  113. </el-row>
  114. </el-form>
  115. </div>
  116. </template>
  117. <script>
  118. import {
  119. getProjectInformation, // 获取项目信息
  120. } from '@/api/quotation/quotationInformation.js'
  121. export default {
  122. name: "quotationProjectInformation",
  123. props: ['quotationHeader'],
  124. data(){
  125. return{
  126. quotationData:{},
  127. projectInformationData:{
  128. projectId: '',
  129. projectName: '',
  130. projectType: '',
  131. projectSourceDesc: '',
  132. priorityDesc: '',
  133. status: '',
  134. projectDesc: '',
  135. projectManagerName: '',
  136. projectOwnerName: '',
  137. userRoleName: '',
  138. remark: ''
  139. },
  140. }
  141. },
  142. watch:{
  143. // 父组件值发生改变,修改子组件的值
  144. quotationHeader: function (val) {
  145. this.quotationData = val;
  146. this.initData();
  147. }
  148. },
  149. methods:{
  150. initData(){
  151. let tempData = {
  152. site: this.$store.state.user.site,
  153. projectId: this.quotationData.projectId
  154. }
  155. // 报价结果对象
  156. getProjectInformation(tempData).then(({data}) => {
  157. if (data && data.code === 0) {
  158. this.projectInformationData = data.rows[0]
  159. } else {
  160. this.projectInformationData = {}
  161. }
  162. })
  163. },
  164. },
  165. created() {
  166. },
  167. mounted() {
  168. },
  169. }
  170. </script>
  171. <style scoped>
  172. </style>