engin_detail.vue 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <template>
  2. <div class="detail-container">
  3. <el-page-header @back="goBack" content="详情"></el-page-header>
  4. <div class="main-title">
  5. <div class="title">工程信息单</div>
  6. </div>
  7. <div class="diy-table-1">
  8. <el-row>
  9. <el-col :span="8" class="item">
  10. <div class="label">工程订单号</div>
  11. <div class="value">{{detailData.enginInfoNo}}</div>
  12. </el-col>
  13. <el-col :span="8" class="item">
  14. <div class="label">订单日期</div>
  15. <div class="value">{{detailData.orderDate}}</div>
  16. </el-col>
  17. <el-col :span="8" class="item">
  18. <div class="label">经销商编码</div>
  19. <div class="value">{{detailData.customerId}}</div>
  20. </el-col>
  21. <el-col :span="8" class="item">
  22. <div class="label">项目名称</div>
  23. <div class="value">{{detailData.projectName}}</div>
  24. </el-col>
  25. <el-col :span="8" class="item">
  26. <div class="label">单据类型</div>
  27. <div class="value">{{detailData.orderType}}</div>
  28. </el-col>
  29. <el-col :span="8" class="item">
  30. <div class="label">经销商名称</div>
  31. <div class="value">{{detailData.customerName}}</div>
  32. </el-col>
  33. <el-col :span="8" class="item">
  34. <div class="label">使用单位</div>
  35. <div class="value">{{detailData.useUnit}}</div>
  36. </el-col>
  37. <el-col :span="8" class="item">
  38. <div class="label">安装地址</div>
  39. <div class="value">{{detailData.installAddress}}</div>
  40. </el-col>
  41. <el-col :span="8" class="item">
  42. <div class="label">工程编号</div>
  43. <div class="value">{{detailData.projectNo}}</div>
  44. </el-col>
  45. <el-col :span="8" class="item">
  46. <div class="label">厂工程编码</div>
  47. <div class="value">{{detailData.enginFactoryNo}}</div>
  48. </el-col>
  49. <el-col :span="8" class="item">
  50. <div class="label">工程登录类型</div>
  51. <div class="value">{{detailData.enginSignType}}</div>
  52. </el-col>
  53. <el-col :span="8" class="item">
  54. <div class="label">联系人</div>
  55. <div class="value">{{detailData.linkman}}</div>
  56. </el-col>
  57. <el-col :span="8" class="item">
  58. <div class="label">联系电话</div>
  59. <div class="value">{{detailData.phone}}</div>
  60. </el-col>
  61. <el-col :span="8" class="item">
  62. <div class="label">固定电话</div>
  63. <div class="value">{{detailData.tel}}</div>
  64. </el-col>
  65. <el-col :span="8" class="item">
  66. <div class="label">制单人</div>
  67. <div class="value">{{detailData.createName}}</div>
  68. </el-col>
  69. <el-col :span="8" class="item">
  70. <div class="label">制单日期</div>
  71. <div class="value">{{detailData.createTime}}</div>
  72. </el-col>
  73. <el-col :span="8" class="item">
  74. <div class="label">合同有效期</div>
  75. <div class="value">{{detailData.contractExpireDate}}</div>
  76. </el-col>
  77. <el-col :span="8" class="item">
  78. <div class="label">业务员</div>
  79. <div class="value">{{detailData.serviceName}}</div>
  80. </el-col>
  81. <el-col :span="24" class="item">
  82. <div class="label">备注</div>
  83. <div class="value">{{detailData.remark}}</div>
  84. </el-col>
  85. </el-row>
  86. </div>
  87. <div class="main-title">
  88. <div class="title">货品信息</div>
  89. </div>
  90. <div class="table" style="margin-top: 20px">
  91. <el-table :data="detailData.items" element-loading-text="Loading" border fit highlight-current-row stripe max-height="400">
  92. <el-table-column align="center" label="序号" type="index" width="50"></el-table-column>
  93. <el-table-column align="center" label="销售类型" prop="saleTypeName" min-width="100" show-overflow-tooltip></el-table-column>
  94. <el-table-column align="center" label="产品编码" prop="materialNumber" min-width="160" show-overflow-tooltip></el-table-column>
  95. <el-table-column align="center" label="产品名称" prop="materialName" min-width="160" show-overflow-tooltip></el-table-column>
  96. <el-table-column align="center" label="规格型号" prop="specification" min-width="160" show-overflow-tooltip></el-table-column>
  97. <el-table-column align="center" label="单位" prop="unit" min-width="100" show-overflow-tooltip></el-table-column>
  98. <el-table-column align="center" label="单价" prop="price" min-width="100" show-overflow-tooltip></el-table-column>
  99. <el-table-column align="center" label="数量" prop="qty" min-width="100" show-overflow-tooltip></el-table-column>
  100. <el-table-column align="center" label="订单金额" prop="totalAmount" min-width="100" show-overflow-tooltip></el-table-column>
  101. <el-table-column align="center" label="备注" prop="remark" min-width="200" show-overflow-tooltip></el-table-column>
  102. <el-table-column align="center" label="税率" prop="taxRate" min-width="100" show-overflow-tooltip></el-table-column>
  103. </el-table>
  104. </div>
  105. <div v-if="isExamine">
  106. <div class="main-title">
  107. <div class="title">审批记录</div>
  108. </div>
  109. <div class="diy-table-1">
  110. <el-row :gutter="0">
  111. <el-col :span="12" class="item">
  112. <div class="label">审批人</div>
  113. <div class="value">{{detailData.confirmName}}</div>
  114. </el-col>
  115. <el-col :span="12" class="item">
  116. <div class="label">审批结果</div>
  117. <div class="value">{{detailData.examineStatus | statusFilter}}</div>
  118. </el-col>
  119. <el-col :span="24" class="item">
  120. <div class="label">审批说明</div>
  121. <div class="value">{{detailData.examineNote}}</div>
  122. </el-col>
  123. </el-row>
  124. </div>
  125. </div>
  126. <div class="page-footer">
  127. <div class="footer">
  128. <el-button @click="goBack">关 闭</el-button>
  129. </div>
  130. </div>
  131. </div>
  132. </template>
  133. <script>
  134. import { getEnginDetail } from "@/api/supply/engin";
  135. export default {
  136. name: 'EnginDetail',
  137. componentName: 'EnginDetail',
  138. props: ['listItem'],
  139. filters: {
  140. statusFilter(val) {
  141. const statusList = [
  142. { label: '已保存', value: 'SAVE' },
  143. { label: '待审核', value: 'WAIT' },
  144. { label: '审核通过', value: 'OK' },
  145. { label: '审核驳回', value: 'FAIL' },
  146. { label: '已关闭', value: 'CLOSE' },
  147. ];
  148. let obj = statusList.find(o => o.value == val);
  149. return obj ? obj.label : ''
  150. }
  151. },
  152. data() {
  153. return {
  154. detailData: {},
  155. }
  156. },
  157. computed: {
  158. isExamine() {
  159. return this.detailData.examineStatus === 'OK' || this.detailData.examineStatus === 'FAIL'
  160. },
  161. },
  162. created() {
  163. this.getDetail();
  164. },
  165. methods: {
  166. // 返回列表
  167. goBack() {
  168. this.$emit('backListFormDetail');
  169. },
  170. // 获取详情
  171. getDetail() {
  172. getEnginDetail({id: this.listItem.enginInfoId}).then(res => {
  173. this.detailData = res.data;
  174. })
  175. },
  176. }
  177. }
  178. </script>
  179. <style scoped lang="scss">
  180. .detail-container {
  181. width: 100%;
  182. height: 100%;
  183. }
  184. .main-title {
  185. display: flex;
  186. justify-content: space-between;
  187. align-items: center;
  188. margin-top: 20px;
  189. height: 60px;
  190. border-bottom: 1px solid #DCDFE6;
  191. margin-bottom: 20px;
  192. .title {
  193. font-size: 16px;
  194. font-weight: 600;
  195. padding-left: 10px;
  196. }
  197. }
  198. </style>