【前端】智能库房综合管理系统前端项目
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.

193 lines
7.1 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <template>
  2. <div>
  3. <el-dialog title="盘点详情" :visible.sync="detailVisible" :close-on-click-modal="false">
  4. <span class="dialog-right-top" />
  5. <span class="dialog-left-bottom" />
  6. <div class="setting-dialog">
  7. <el-table :data="rowData" :cell-class-name="cellTop" style="margin:5px 0 15px 0;width:100%;" height="calc(25vh - 137px)">
  8. <el-table-column prop="id" align="center" label="盘点单号" min-width="150" />
  9. <el-table-column prop="region" align="center" label="所在区域" show-overflow-tooltip min-width="120" />
  10. <el-table-column prop="checkState" align="center" label="盘点状态" min-width="120">
  11. <template slot-scope="scope">
  12. <span class="clear">{{ scope.row.checkState | checkState }}</span>
  13. </template>
  14. </el-table-column>
  15. <el-table-column prop="create_time" align="center" label="创建时间" min-width="150">
  16. <template slot-scope="scope">
  17. <span>{{ scope.row.create_time | parseTime }}</span>
  18. </template>
  19. </el-table-column>
  20. <el-table-column prop="noCheck" align="center" label="未盘档案" min-width="90" />
  21. <el-table-column prop="correct" align="center" label="在库档案" min-width="90" />
  22. <el-table-column prop="dislocation" align="center" label="错位档案" min-width="90" />
  23. <el-table-column prop="borrowed" align="center" label="已借档案" min-width="90" />
  24. <el-table-column prop="abnormal" align="center" label="异常档案" min-width="90" />
  25. <el-table-column prop="others" align="center" label="其他档案" min-width="90" />
  26. </el-table>
  27. <el-table :data="tableData" :cell-class-name="cell" style="width:100%;" height="calc(50vh - 99px)">
  28. <el-table-column type="index" label="序号" align="center" width="90" />
  29. <el-table-column prop="checkResult" align="center" label="盘点结果" width="90">
  30. <template slot-scope="scope">
  31. <!-- 在库/已借/错位 -->
  32. <span class="clear" style="width:56px">{{ scope.row.checkResult | checkResult }}</span>
  33. </template>
  34. </el-table-column>
  35. <el-table-column prop="child" align="center" label="子条数目" width="90" />
  36. <el-table-column prop="categoryType" align="center" label="门类级别" width="90">
  37. <template slot-scope="scope">
  38. <span v-if="scope.row.categoryType === 5" style="width:56px">文件级</span>
  39. <span v-if="scope.row.categoryType === 4" style="width:56px">卷内级</span>
  40. <span v-if="scope.row.categoryType === 3" style="width:56px">案卷级</span>
  41. </template>
  42. </el-table-column>
  43. <el-table-column prop="caseName" align="center" :show-overflow-tooltip="true" label="门类名称" min-width="180" />
  44. <el-table-column prop="fondsNo" align="center" label="全宗号" min-width="90" />
  45. <el-table-column prop="archiveNo" align="center" label="档号" min-width="180" />
  46. <el-table-column prop="archiveYear" align="center" label="归档年度" min-width="90" />
  47. <el-table-column prop="maintitle" align="center" :show-overflow-tooltip="true" label="题名" min-width="180" />
  48. <el-table-column prop="securityClass" align="center" label="保密程度" min-width="90" />
  49. <el-table-column prop="department" align="center" label="部门" min-width="90" />
  50. <el-table-column prop="caseName" align="center" label="盒名称" min-width="180" />
  51. <el-table-column prop="folderLocationDetails" align="center" :show-overflow-tooltip="true" label="所在位置" min-width="280">
  52. <template slot-scope="scope">
  53. <span v-if="!scope.row.folderLocationDetails">-</span>
  54. <span v-else>
  55. <el-tag effect="dark">{{ scope.row.folderLocationDetails }}</el-tag>
  56. </span>
  57. </template>
  58. </el-table-column>
  59. <el-table-column prop="createTime" align="center" label="创建时间" min-width="150">
  60. <template slot-scope="scope">
  61. <div>{{ scope.row.createTime | parseTime }}</div>
  62. </template>
  63. </el-table-column>
  64. </el-table>
  65. </div></el-dialog>
  66. </div>
  67. </template>
  68. <script>
  69. export default {
  70. filters: {
  71. checkState(val) {
  72. switch (val) {
  73. case 0:
  74. return '待执行'
  75. case 1:
  76. return '执行中'
  77. case 2:
  78. return '已执行'
  79. }
  80. },
  81. checkResult(val) {
  82. switch (val) {
  83. case 0:
  84. return '未盘'
  85. case 1:
  86. return '在库'
  87. case 2:
  88. return '已盘'
  89. case 3:
  90. return '错位'
  91. case 4:
  92. return '已借'
  93. case 5:
  94. return '异常'
  95. case 6:
  96. return '其他'
  97. }
  98. }
  99. },
  100. data() {
  101. return {
  102. detailVisible: false,
  103. tableData: [],
  104. rowData: [],
  105. classLend: ''
  106. }
  107. },
  108. methods: {
  109. cellTop({ row, columnIndex }) {
  110. if (row.checkState === 2 && columnIndex === 2) {
  111. return 'have-clear'
  112. } else if (row.checkState === 0 && columnIndex === 2) {
  113. return 'fail-clear'
  114. } else if (row.checkState === 1 && columnIndex === 2) {
  115. return 'no-clear'
  116. }
  117. },
  118. cell({ row, columnIndex }) {
  119. if (row.checkResult === 0 && columnIndex === 1) { // 未盘
  120. return 'no-clear-bg'
  121. } else if (row.checkResult === 1 && columnIndex === 1) { // 在库
  122. return 'no-clear'
  123. } else if (row.checkResult === 2 && columnIndex === 1) { // 已盘
  124. return 'have-clear-bg'
  125. } else if (row.checkResult === 3 && columnIndex === 1) { // 错位
  126. return 'fail-clear'
  127. } else if (row.checkResult === 4 && columnIndex === 1) { // 已借
  128. return 'have-clear'
  129. } else if (row.checkResult === 5 && columnIndex === 1) { // 异常
  130. return 'error-clear-bg'
  131. } else if (row.checkResult === 6 && columnIndex === 1) { // 其他
  132. return 'other-clear'
  133. }
  134. }
  135. }
  136. }
  137. </script>
  138. <style lang="scss" scoped>
  139. @import '~@/assets/styles/lend-manage.scss';
  140. ::v-deep .el-dialog__body{
  141. padding: 10px 0 20px 0;
  142. }
  143. ::v-deep .el-dialog{
  144. width: 950px;
  145. height: 520px;
  146. }
  147. ::v-deep .el-dialog .el-dialog__header .el-dialog__close::before{
  148. position: absolute;
  149. right: -158px;
  150. bottom: -12px;
  151. }
  152. p{
  153. display: flex;
  154. height: 40px;
  155. align-items: center;
  156. .color-blue{
  157. color: #3A99FD;
  158. width: 70px;
  159. height: 19px;
  160. text-align: right;
  161. }
  162. .color-white{
  163. color: white;
  164. padding: 0 0 0 20px;
  165. }
  166. }
  167. .dpflex{
  168. display: flex;
  169. .one{
  170. width: 320px;
  171. margin-left: 30px;
  172. }
  173. .two{
  174. flex:1;
  175. }
  176. .tree{
  177. flex: 1;
  178. }
  179. .four{
  180. flex: 1;
  181. }
  182. }
  183. //表格滚动条 白色方格
  184. ::v-deep ::-webkit-scrollbar-corner{
  185. background: transparent;
  186. }
  187. ::v-deep .el-table--scrollable-x .el-table__body-wrapper{
  188. z-index: 2
  189. }
  190. </style>