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.

181 lines
5.7 KiB

3 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" style="margin-left: 10px;margin-top: 5px;margin-right: 10px;width: 60%">
  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-col :span="8">
  43. <div class="grid-content bg-purple">
  44. <el-form-item label="项目状态">
  45. <el-input v-model="projectInformationData.status" readonly></el-input>
  46. </el-form-item>
  47. </div>
  48. </el-col>
  49. </el-row>
  50. <el-row :gutter="20">
  51. <el-col :span="8">
  52. <div class="grid-content bg-purple">
  53. <el-form-item label="项目经理">
  54. <el-input v-model="projectInformationData.projectManagerName" 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.projectOwnerName" readonly></el-input>
  62. </el-form-item>
  63. </div>
  64. </el-col>
  65. <el-col :span="8">
  66. <div class="grid-content bg-purple">
  67. <el-form-item label="项目权限">
  68. <el-input v-model="projectInformationData.userRoleName" readonly></el-input>
  69. </el-form-item>
  70. </div>
  71. </el-col>
  72. </el-row>
  73. <el-row :gutter="20">
  74. <el-col :span="6">
  75. <div class="grid-content bg-purple">
  76. <el-form-item label="创建时间">
  77. <el-input v-model="projectInformationData.createDate" 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.createBy" 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.updateDate" readonly></el-input>
  92. </el-form-item>
  93. </div>
  94. </el-col>
  95. <el-col :span="6">
  96. <div class="grid-content bg-purple">
  97. <el-form-item label="更新人">
  98. <el-input v-model="projectInformationData.updateBy" readonly></el-input>
  99. </el-form-item>
  100. </div>
  101. </el-col>
  102. </el-row>
  103. <el-row :gutter="20">
  104. <el-col :span="24">
  105. <div class="grid-content bg-purple">
  106. <el-form-item label="项目描述">
  107. <el-input v-model="projectInformationData.projectDesc" readonly></el-input>
  108. </el-form-item>
  109. </div>
  110. </el-col>
  111. </el-row>
  112. <el-row :gutter="20">
  113. <el-col :span="24">
  114. <div class="grid-content bg-purple">
  115. <el-form-item label="其它特殊要求">
  116. <el-input v-model="projectInformationData.remark" readonly></el-input>
  117. </el-form-item>
  118. </div>
  119. </el-col>
  120. </el-row>
  121. </el-form>
  122. </div>
  123. </template>
  124. <script>
  125. import {
  126. getProjectInformation, // 获取项目信息
  127. } from '@/api/quotation/quotationInformation.js'
  128. export default {
  129. name: "quotationProjectInformation",
  130. props: ['quotationHeader'],
  131. data(){
  132. return{
  133. quotationData:{},
  134. projectInformationData:{
  135. projectId: '',
  136. projectName: '',
  137. projectType: '',
  138. projectSourceDesc: '',
  139. priorityDesc: '',
  140. status: '',
  141. projectDesc: '',
  142. projectManagerName: '',
  143. projectOwnerName: '',
  144. userRoleName: '',
  145. remark: ''
  146. },
  147. }
  148. },
  149. watch:{
  150. // 父组件值发生改变,修改子组件的值
  151. quotationHeader: function (val) {
  152. this.quotationData = val;
  153. this.initData();
  154. }
  155. },
  156. methods:{
  157. initData(){
  158. let tempData = {
  159. site: this.$store.state.user.site,
  160. projectId: this.quotationData.projectId
  161. }
  162. // 报价结果对象
  163. getProjectInformation(tempData).then(({data}) => {
  164. if (data && data.code === 0) {
  165. this.projectInformationData = data.rows[0]
  166. } else {
  167. this.projectInformationData = {}
  168. }
  169. })
  170. },
  171. },
  172. created() {
  173. },
  174. mounted() {
  175. },
  176. }
  177. </script>
  178. <style scoped>
  179. </style>