华西海圻ELN前端工程
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.

228 lines
8.6 KiB

  1. G<template>
  2. <!-- 详情 -->
  3. <div v-show="open">
  4. <div class="detail-container">
  5. <div class="detail-top">
  6. <div class="left-top">
  7. <img src="@/assets/images/back.png" @click="cancel()" />
  8. <div class="left-title"></div>
  9. </div>
  10. <div class="right-top">
  11. <el-button @click="cancel()">{{$t('form.cancel')}}</el-button>
  12. <el-button @click="exportExcel()">{{ $t('form.export') }}</el-button>
  13. </div>
  14. </div>
  15. <div class="detail-title"><img src="@/assets/images/detail-title.png" >{{ $t('page.business.resource.mjy.mjyxq') }}<img src="@/assets/images/detail-title.png" /></div>
  16. <div class="detail-content">
  17. <div class="content-left">
  18. <div class="content-title">
  19. <div class="line"></div>
  20. <div class="subtitle"> 基本信息</div>
  21. </div>
  22. <div class="pal">
  23. <div class="left">
  24. <div class="left-title">{{ $t('page.business.resource.sj.mc') }}</div>
  25. <el-input type="text" :value="form.mc" maxlength="50" disabled />
  26. </div>
  27. <div class="right">
  28. <div class="right-title">{{ $t('page.business.resource.sj.bh') }}</div>
  29. <el-input type="text" :value="form.bh" maxlength="50" disabled />
  30. </div>
  31. </div>
  32. <div class="pal">
  33. <div class="left">
  34. <div class="left-title">{{ $t('page.business.resource.sj.ph') }}</div>
  35. <el-input type="text" :value="form.ph" maxlength="50" disabled />
  36. </div>
  37. <div class="right">
  38. <div class="right-title">{{ $t('page.business.resource.sj.gg') }}</div>
  39. <el-input type="text" :value="form.gg" maxlength="50" disabled />
  40. </div>
  41. </div>
  42. <div class="pal">
  43. <div class="left">
  44. <div class="left-title">{{ $t('page.business.resource.sj.nd') }}</div>
  45. <el-input type="text" :value="form.nd" maxlength="50" disabled> <template slot="append">{{
  46. form.nddw }}</template>
  47. </el-input>
  48. </div>
  49. <div class="right">
  50. <div class="right-title">{{ $t('page.business.resource.sj.kcl') }}</div>
  51. <el-input type="text" :value="form.kc" maxlength="50" disabled> <template slot="append">{{
  52. form.kcdw }}</template> </el-input>
  53. </div>
  54. </div>
  55. <div class="pal">
  56. <div class="left">
  57. <div class="left-title">{{ $t('page.business.resource.sj.ly') }}</div>
  58. <el-input type="text" :value="form.ly" maxlength="50" disabled />
  59. </div>
  60. <div class="right">
  61. <div class="right-title">{{ $t('page.business.resource.sj.cctj') }}</div>
  62. <el-input type="text" :value="form.cctj" maxlength="50" disabled />
  63. </div>
  64. </div>
  65. <div class="pal">
  66. <div class="left">
  67. <div class="left-title">{{ $t('page.business.resource.sj.ccwz') }}</div>
  68. <el-input type="text" :value="form.ccwz" maxlength="50" disabled />
  69. </div>
  70. <div class="right">
  71. <div class="right-title">{{ $t('page.business.resource.sj.yxzq') }}</div>
  72. <el-input type="text" :value="form.yxzq" maxlength="50" disabled />
  73. </div>
  74. </div>
  75. <div class="pal">
  76. <div class="left">
  77. <div class="left-title">{{ $t('page.business.resource.sj.sxr') }}</div>
  78. <el-input type="text" :value="form.sxr" maxlength="50" disabled />
  79. </div>
  80. <div class="right">
  81. <div class="right-title">{{ $t('page.business.resource.sj.pzrq') }}</div>
  82. <el-input type="text" :value="form.pzrq" maxlength="50" disabled />
  83. </div>
  84. </div>
  85. <div class="content-title">
  86. <div class="line"></div>
  87. <div class="subtitle"> 表单信息</div>
  88. </div>
  89. <div class="pal">
  90. <div class="left">
  91. <div class="left-title">{{ $t('page.business.resource.sj.ssbd') }}</div>
  92. <el-input type="text" :value="form.xmMc" maxlength="50" disabled />
  93. </div>
  94. <div class="right">
  95. <div class="right-title">{{ $t('page.business.resource.sj.bdsssy') }}</div>
  96. <el-input type="text" :value="form.bdMc" maxlength="50" disabled />
  97. </div>
  98. </div>
  99. <div class="pal">
  100. <div class="left">
  101. <div class="left-title">{{ $t('page.business.resource.sj.bdssr') }}</div>
  102. <el-input type="text" :value="form.xmMc" maxlength="50" disabled />
  103. </div>
  104. <div class="right">
  105. <div class="right-title">{{ $t('page.business.resource.sj.bdssbm') }}</div>
  106. <el-input type="text" :value="form.bdMc" maxlength="50" disabled />
  107. </div>
  108. </div>
  109. <div class="content-title">
  110. <div class="line"></div>
  111. <div class="subtitle"> {{ $t('page.business.resource.sj.tz') }}</div>
  112. </div>
  113. <div class="pal">
  114. <el-table :data="tzList" v-loading="loadingTz">
  115. <el-table-column :label="$t('page.business.resource.sj.qmr')" align="center" prop="qmrMc"
  116. :show-overflow-tooltip="true" />
  117. <el-table-column :label="$t('page.business.resource.sj.czlx')" align="center" prop="qmyy"
  118. :show-overflow-tooltip="true">
  119. </el-table-column>
  120. <el-table-column :label="$t('page.business.resource.sj.czl')" align="center"
  121. :show-overflow-tooltip="true">
  122. <template slot-scope="scope">
  123. {{ scope.row.czl }}{{ scope.row.czldw }}
  124. </template>
  125. </el-table-column>
  126. <el-table-column :label="$t('page.business.resource.sj.bz')" align="center" prop="remark"
  127. :show-overflow-tooltip="true" />
  128. <el-table-column :label="$t('page.business.resource.sj.czsj')" align="center" prop="createTime"
  129. width="150px" />
  130. </el-table>
  131. </div>
  132. <div class="pal">
  133. <pagination v-show="totalTz > 0" :total="totalTz" :page.sync="queryParamstZ.pageNum"
  134. :limit.sync="queryParamstZ.pageSize" @pagination="getTzList" />
  135. </div>
  136. </div>
  137. <div class="content-right">
  138. <div class="content-title">
  139. <div class="line"></div>
  140. <div class="subtitle"> {{ $t('page.business.resource.sj.jcgj') }}</div>
  141. </div>
  142. <jcgjList ref="jcgjList" @handleQuery="jcgjListHandleQuery" />
  143. <pagination v-show="jcgjTotal > 0" small layout="prev, pager, next" :total="jcgjTotal"
  144. @pagination="getJjcgjList" />
  145. </div>
  146. </div>
  147. </div>
  148. </div>
  149. </template>
  150. <script>
  151. import { sj_info, tzList, jcgjList } from "@/api/business/sj/sj"
  152. import JcgjList from "@/views/business/comps/common/JcgjList";
  153. export default {
  154. name: "SjXq",
  155. components: { JcgjList },
  156. data() {
  157. return {
  158. form: {},
  159. tzList: [],
  160. totalTz: 0,
  161. loadingTz: true,
  162. open: false,
  163. queryParamstZ: {
  164. mjyId: null,
  165. pageNum: 1,
  166. pageSize: 10
  167. },
  168. jcgjTotal: 0,
  169. jcgjList: [],
  170. queryJcgjParams: {
  171. pageNum: 1,
  172. mjyId: null,
  173. pageSize: 10,
  174. }
  175. }
  176. },
  177. created() {
  178. },
  179. methods: {
  180. exportExcel(){
  181. alert('todo')
  182. },
  183. jcgjListHandleQuery(val) {
  184. this.$modal.loading()
  185. jcgjList(_.merge({}, this.queryJcgjParams, val)).then(response => {
  186. this.jcgjList = response.rows
  187. this.jcgjTotal = response.total
  188. this.$refs.jcgjList.init(this.jcgjList)
  189. this.$modal.closeLoading()
  190. })
  191. },
  192. getJjcgjList() {
  193. jcgjList(this.queryJcgjParams).then(response => {
  194. this.jcgjList = response.rows
  195. this.jcgjTotal = response.total
  196. this.$refs.jcgjList.init(this.jcgjList)
  197. this.$modal.closeLoading()
  198. })
  199. },
  200. cancel() {
  201. this.open = false
  202. this.$emit('callback')
  203. },
  204. getTzList() {
  205. this.loadingTz = true
  206. tzList(this.queryParamstZ).then(response => {
  207. this.tzList = response.rows
  208. this.totalTz = response.total
  209. this.loadingTz = false
  210. this.getJjcgjList()
  211. })
  212. },
  213. show(row) {
  214. this.$modal.loading()
  215. this.queryParamstZ.sjId = row.id
  216. this.queryJcgjParams.sjId = row.id
  217. sj_info({ id: row.id }).then(response => {
  218. this.form = response.data
  219. this.getTzList()
  220. this.open = true
  221. })
  222. }
  223. }
  224. }
  225. </script>