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

183 lines
6.7 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
  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-top:15px;width:100%;" height="calc(25vh - 100px)">
  8. <el-table-column prop="id" align="center" label="盘点单号" min-width="150" />
  9. <el-table-column prop="region" align="center" label="所在区域" min-width="90" />
  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="margin-top:15px;width:100%;" height="calc(50vh - 147px)">
  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="220" />
  52. <el-table-column prop="createTime" align="center" label="创建时间" min-width="150">
  53. <template slot-scope="scope">
  54. <div>{{ scope.row.createTime | parseTime }}</div>
  55. </template>
  56. </el-table-column>
  57. </el-table>
  58. </div></el-dialog>
  59. </div>
  60. </template>
  61. <script>
  62. export default {
  63. filters: {
  64. checkState(val) {
  65. switch (val) {
  66. case 0:
  67. return '待执行'
  68. case 1:
  69. return '执行中'
  70. case 2:
  71. return '已执行'
  72. }
  73. },
  74. checkResult(val) {
  75. switch (val) {
  76. case 0:
  77. return '未盘'
  78. case 1:
  79. return '在库'
  80. case 2:
  81. return '已盘'
  82. case 3:
  83. return '错位'
  84. case 4:
  85. return '已借'
  86. case 5:
  87. return '异常'
  88. case 6:
  89. return '其他'
  90. }
  91. }
  92. },
  93. data() {
  94. return {
  95. detailVisible: false,
  96. tableData: [],
  97. rowData: [],
  98. classLend: ''
  99. }
  100. },
  101. methods: {
  102. cellTop({ row, columnIndex }) {
  103. if (row.checkState === 2 && columnIndex === 2) {
  104. return 'have-clear'
  105. } else if (row.checkState === 0 && columnIndex === 2) {
  106. return 'fail-clear'
  107. } else if (row.checkState === 1 && columnIndex === 2) {
  108. return 'no-clear'
  109. }
  110. },
  111. cell({ row, columnIndex }) {
  112. if (row.checkResult === 0 && columnIndex === 1) { // 未盘
  113. return 'no-clear-bg'
  114. } else if (row.checkResult === 1 && columnIndex === 1) { // 在库
  115. return 'no-clear'
  116. } else if (row.checkResult === 2 && columnIndex === 1) { // 已盘
  117. return 'have-clear-bg'
  118. } else if (row.checkResult === 3 && columnIndex === 1) { // 错位
  119. return 'fail-clear'
  120. } else if (row.checkResult === 4 && columnIndex === 1) { // 已借
  121. return 'have-clear'
  122. } else if (row.checkResult === 5 && columnIndex === 1) { // 异常
  123. return 'error-clear-bg'
  124. } else if (row.checkResult === 6 && columnIndex === 1) { // 其他
  125. return 'other-clear'
  126. }
  127. }
  128. }
  129. }
  130. </script>
  131. <style lang="scss" scoped>
  132. @import '~@/assets/styles/lend-manage.scss';
  133. ::v-deep .el-dialog__body{
  134. padding: 10px 0 20px 0;
  135. }
  136. ::v-deep .el-dialog{
  137. width: 950px;
  138. height: 520px;
  139. }
  140. ::v-deep .el-dialog .el-dialog__header .el-dialog__close::before{
  141. position: absolute;
  142. right: -158px;
  143. bottom: -12px;
  144. }
  145. p{
  146. display: flex;
  147. height: 40px;
  148. align-items: center;
  149. .color-blue{
  150. color: #3A99FD;
  151. width: 70px;
  152. height: 19px;
  153. text-align: right;
  154. }
  155. .color-white{
  156. color: white;
  157. padding: 0 0 0 20px;
  158. }
  159. }
  160. .dpflex{
  161. display: flex;
  162. .one{
  163. width: 320px;
  164. margin-left: 30px;
  165. }
  166. .two{
  167. flex:1;
  168. }
  169. .tree{
  170. flex: 1;
  171. }
  172. .four{
  173. flex: 1;
  174. }
  175. }
  176. //表格滚动条 白色方格
  177. ::v-deep ::-webkit-scrollbar-corner{
  178. background: transparent;
  179. }
  180. </style>