AddInspectionplanDetail.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677
  1. <!--
  2. * @Author: zhuMingXi
  3. * @Date: 2025/07/26 14:35:00
  4. * @LastEditors: zhuMingXi
  5. * @LastEditTime: 2025/07/26 14:35:00
  6. * @Description: 编辑检验方案弹窗
  7. * @FilePath: D:\yiqun\yudao-admin\yudao-ui-admin-vue3\src\views\pressure\taskorder\components\AddInspectionplanDetail.vue
  8. -->
  9. <template>
  10. <ContentWrap
  11. v-show="!showInlineEditRecord"
  12. title="检验方案"
  13. class="check-record-wrapper"
  14. v-loading="pdfLoading"
  15. >
  16. <!-- <div class="designer-inner" ref="wrapperContainerRef">-->
  17. <!--&lt;!&ndash; <SpreadViewer :initData="initData" ref="spreadRef" />&ndash;&gt;-->
  18. <!-- <SpreadViewer :initData="editData" ref="editSpreadRecordRef" isFullscreen @saveSuccess="saveSuccessRecord"/>-->
  19. <!-- </div>-->
  20. <div class="designer-inner" ref="wrapperContainerRef">
  21. <SpreadViewer :initData="initData" ref="spreadRef" />
  22. </div>
  23. <div class="operation-inner relative">
  24. <div class="btn-list">
  25. <template v-if="['add', 'edit'].includes(isEdit)">
  26. <el-button type="primary" @click="handleSubmitBefore" v-if="props.editInspectionplanParams.isSelfType">提交审核</el-button>
  27. <el-button v-else @click="handleSubmitNotApproval">提交</el-button>
  28. <!-- <el-button type="primary" plain @click="handleEditSpreadRecord">编辑封面</el-button>-->
  29. </template>
  30. <el-button type="primary" plain @click="handleCopyReportNo">复制编号</el-button>
  31. <el-button type="default" plain @click="handleCloseModal">取 消</el-button>
  32. </div>
  33. <div class="operation-item" style="max-height: calc(100% / 2); overflow-y: auto" v-if="props.editInspectionplanParams.isSelfType">
  34. <div class="item-header"> 方案上传 </div>
  35. <div class="item-content">
  36. <el-upload
  37. ref="uploadRef"
  38. action="#"
  39. v-model:file-list="fileList"
  40. :http-request="handlePostFile"
  41. :auto-upload="true"
  42. :disabled="isEdit === 'view'"
  43. :limit="1"
  44. :on-change="handleChange"
  45. :on-error="handleUploadError"
  46. :on-exceed="handleExceed"
  47. :accept="accept"
  48. drag
  49. >
  50. <Icon icon="ep:upload" />
  51. <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
  52. <template #tip>
  53. <div class="el-upload__tip text-center">
  54. <span>{{ `仅允许导入${accept} 格式文件。` }}</span>
  55. </div>
  56. </template>
  57. </el-upload>
  58. </div>
  59. </div>
  60. <div class="operation-item">
  61. <div class="item-header"> 退回原因 </div>
  62. <div class="item-content">
  63. <el-input
  64. v-model="returnReason"
  65. :autosize="{ minRows: 10, maxRows: 50 }"
  66. type="textarea"
  67. readonly
  68. />
  69. </div>
  70. </div>
  71. </div>
  72. </ContentWrap>
  73. <!-- 检验录入-模板 -->
  74. <CustomDialog v-model="showInlineEditRecord" title="检验录入" :show-footer="false" fullscreen>
  75. <!-- <SpreadViewer :initData="editData" ref="editSpreadRecordRef" @saveSuccess="saveSuccessRecord"/>-->
  76. </CustomDialog>
  77. <CustomDialog
  78. ref="customUnitDialogRef"
  79. title="选择审核人"
  80. v-model="approvalUserVisible"
  81. width="650px"
  82. :dialogAttrs="{ zIndex: 10006 }"
  83. >
  84. <el-form ref="formRef" :model="formData" :rules="formRules" label-width="135px">
  85. <el-form-item label="检验方案审核人" prop="inspectionAuditId">
  86. <el-select v-model="formData.inspectionAuditId" clearable placeholder="请选择">
  87. <el-option
  88. v-for="item in optionList.schemeReviewerList.list"
  89. :key="item.id"
  90. :label="item.nickname"
  91. :value="item.id"
  92. />
  93. </el-select>
  94. </el-form-item>
  95. <!-- <el-form-item label="检验方案批准人" prop="inspectionApproveId">-->
  96. <!-- <el-select v-model="formData.inspectionApproveId" clearable placeholder="请选择">-->
  97. <!-- <el-option-->
  98. <!-- v-for="item in optionList.schemeApproveList.list"-->
  99. <!-- :key="item.id"-->
  100. <!-- :label="item.nickname"-->
  101. <!-- :value="item.id"-->
  102. <!-- />-->
  103. <!-- </el-select>-->
  104. <!-- </el-form-item>-->
  105. </el-form>
  106. <template #footer>
  107. <el-button @click="approvalUserVisible = false">取消</el-button>
  108. <el-button type="primary" @click="handleSubmitUser">确定</el-button>
  109. </template>
  110. </CustomDialog>
  111. </template>
  112. <script lang="tsx" setup>
  113. import { BoilerTaskOrderApi } from '@/api/pressure2/boilertaskorder'
  114. import {defineModel, PropType, ref, watch} from 'vue'
  115. import VuePdfEmbed from 'vue-pdf-embed'
  116. import EditInspectionplanReport from './EditInspectionplanReport.vue'
  117. import { getPressureReportTemplatePDF } from '@/api/pressure/reportTemplate'
  118. import { ElForm, UploadFile, UploadProps, UploadRequestOptions } from 'element-plus'
  119. import { uploadFile } from '@/api/common'
  120. import VueOfficeDocx from '@vue-office/docx/lib/v3/vue-office-docx.mjs'
  121. import '@vue-office/docx/lib/v3/index.css'
  122. import * as UserGroupApi from '@/api/bpm/userGroup'
  123. import * as UserApi from '@/api/system/user'
  124. import { debounce } from 'lodash-es'
  125. import { PressureReportType } from '@/utils/constants'
  126. import SpreadDesigner from "@/components/SpreadDesigner/index.vue";
  127. import {DynamicTbValApi} from "@/api/pressure2/dynamictbval";
  128. import * as GC from "@grapecity-software/spread-sheets";
  129. import {getPDF, getStandardTemplateInfo} from "@/api/laboratory/standard/template";
  130. import {buildFileUrl} from "@/utils";
  131. import axios from "axios";
  132. import {editReport} from "@/utils/reportUtil";
  133. import {DynamicTbColApi} from "@/api/pressure2/dynamictbcol";
  134. import {SpreadViewer} from "@/components/DynamicReport";
  135. import {InitParams} from "@/components/DynamicReport/SpreadInterface";
  136. import {PipeTaskOrderApi} from "@/api/pressure2/pipetaskorder";
  137. const props = defineProps({
  138. taskOrderDetail: {
  139. type: Object,
  140. default: () => ({})
  141. },
  142. inspectionplanDetail: {
  143. type: Object,
  144. default: () => ({})
  145. },
  146. isEdit: {
  147. type: String as PropType<'add' | 'edit' | 'view'>,
  148. required: true
  149. },
  150. editInspectionplanParams: {
  151. type: Object,
  152. default: () => ({})
  153. },
  154. boilerType: {
  155. type: String,
  156. default: ''
  157. }
  158. })
  159. const emits = defineEmits(['success', 'refresh'])
  160. const visible = defineModel('visible', { type: Boolean, default: false })
  161. const returnReason = ref(props.inspectionplanDetail?.returnReason)
  162. // 选择审核人
  163. const formRef = ref<InstanceType<typeof ElForm>>()
  164. const formData = ref<Recordable>({})
  165. const formRules = reactive({
  166. inspectionAuditId: [{ required: true, message: '请选择审核人', trigger: 'change' }],
  167. inspectionApproveId: [{ required: true, message: '请选择批准人', trigger: 'change' }]
  168. })
  169. const optionList = reactive<{
  170. schemeReviewerList: Recordable[]
  171. schemeApproveList: Recordable[]
  172. }>({
  173. schemeReviewerList: [],
  174. schemeApproveList: []
  175. })
  176. const approvalUserVisible = ref(false)
  177. // 获取审核人信息
  178. const getSchemeReviewerList = async () => {
  179. try {
  180. // const { inspectionAuditId, inspectionApproveId } = await UserApi.getApprovalDetail({})
  181. // formData.value = {
  182. // inspectionAuditId,
  183. // inspectionApproveId
  184. // }
  185. let roleCode = "Boiler Director";
  186. //电站锅炉使用其他角色审核
  187. if (props.boilerType === "1"){
  188. roleCode = "POWER_PLANT_BOILER_INSPECTION_PLAN_APPROVAL";
  189. }
  190. optionList.schemeReviewerList = await BoilerTaskOrderApi.getAuditList({
  191. roleCode: roleCode
  192. })
  193. // optionList.schemeApproveList = await BoilerTaskOrderApi.getAuditList({
  194. // roleCode: 'Boiler_Department_Head'
  195. // })
  196. approvalUserVisible.value = true
  197. } catch (error) {}
  198. }
  199. const handleSubmitUser = () => {
  200. formRef.value?.validate(async (valid) => {
  201. if (valid) {
  202. handleSubmitConfirm()
  203. }
  204. })
  205. }
  206. // PDF相关状态
  207. const pdfLoading = ref(false)
  208. const showInlineEditRecord = ref(false)
  209. const handleEditSpreadRecord = () => {
  210. editPreview()
  211. showInlineEditRecord.value = true
  212. }
  213. const handleSuccess = (info) => {
  214. // 更新相关的信息,reportId prepareJson 等
  215. console.log('handleSuccess-info:', info )
  216. emits('success', info)
  217. // initPreview()
  218. }
  219. const uploadRef = ref()
  220. const fileList = ref<UploadFile[]>([]) // 文件列表
  221. const accept = '.doc,.docx,.pdf'
  222. const fileLoading = ref(false) // 表单的加载中
  223. const isSubmit = ref(false) // 是否提交审核(区分仅上传关联 vs 上传后提交审核)
  224. // 获取文件类型
  225. const getFileExtension = (fileName: string) => {
  226. return fileName.split('.').pop()?.toLowerCase()
  227. }
  228. const previewUrl = ref()
  229. const getPreviewFileUrl = (file: File) => {
  230. let fileReader = new FileReader()
  231. fileReader.onload = () => {
  232. previewUrl.value = fileReader.result
  233. }
  234. if (getFileExtension(file.name) === 'docx') fileReader.readAsArrayBuffer(file)
  235. else {
  236. const pdfBlob = new Blob([file], { type: 'application/pdf' })
  237. previewUrl.value = URL.createObjectURL(pdfBlob)
  238. }
  239. }
  240. // 文件类型校验
  241. const handleChange: UploadProps['onChange'] = (file, uploadFiles) => {
  242. console.log(file, uploadFiles)
  243. const allowedExtensions = accept.toLowerCase().split(',')
  244. const fileExt = '.' + (getFileExtension(file.name) || '')
  245. if (!allowedExtensions.includes(fileExt)) {
  246. ElMessage.error(`不支持的文件类型,仅允许上传: ${allowedExtensions.join(',')}类型文件`)
  247. uploadFiles.splice(uploadFiles.indexOf(file), 1)
  248. return false // 阻止上传
  249. }
  250. previewUrl.value = null
  251. file.raw && getPreviewFileUrl(file.raw as File)
  252. }
  253. /** 文件数超出提示 */
  254. const handleExceed = (): void => {
  255. ElMessage.error('最多只能上传一个文件!')
  256. }
  257. /** 上传错误处理 */
  258. const handleUploadError = (): void => {
  259. fileLoading.value = false
  260. }
  261. // 文件上传方法
  262. const handlePostFile = async (options: UploadRequestOptions) => {
  263. const { file, onProgress, onSuccess, onError } = options
  264. fileLoading.value = true
  265. try {
  266. // 上传文件
  267. const formData = new FormData()
  268. formData.append('file', file)
  269. const manualUrl = await uploadFile(formData)
  270. // 更新文件列表
  271. fileList.value = [
  272. {
  273. ...file,
  274. response: manualUrl,
  275. name: file.name,
  276. status: 'success',
  277. url: manualUrl,
  278. uid: file.uid || Date.now() + Math.random()
  279. }
  280. ]
  281. onSuccess(manualUrl)
  282. if (isSubmit.value) {
  283. handleSubmitOperationReport(manualUrl)
  284. } else {
  285. relaseReport(manualUrl)
  286. }
  287. } catch (error: any) {
  288. onError(error)
  289. ElMessage.error('上传失败,请您重新上传!')
  290. } finally {
  291. fileLoading.value = false
  292. }
  293. }
  294. // 关联文件到任务单(仅关联不提交审核)
  295. const relaseReport = (manualUrl: string) => {
  296. // const { reportId, templateId } = props.editInspectionplanParams
  297. // const params = {
  298. // id: reportId,
  299. // manualUrl,
  300. // templateId
  301. // }
  302. // BoilerTaskOrderApi.releaseManualReport(params).then(() => {
  303. // ElMessage.success('关联文件成功')
  304. // initPreview(manualUrl)
  305. // })
  306. ElMessage.success('关联文件成功')
  307. initPreview(manualUrl)
  308. }
  309. // 提交审核
  310. const handleSubmitOperationReport = async (manualUrl = '') => {
  311. // 弹窗选择审批人
  312. const { reportId, templateId, prepareJson } = props.editInspectionplanParams
  313. const params: Recordable = {
  314. id: reportId,
  315. prepareJson: prepareJson,
  316. auditUserIds: [formData.value.inspectionAuditId],
  317. approveUserIds: [formData.value.inspectionApproveId],
  318. reportType: PressureReportType['INSPECTIONPLAN']
  319. // 检验方案,
  320. // reportUrl: uploadUrl,
  321. }
  322. if(manualUrl) params.manualUrl = manualUrl
  323. const submitRes = await BoilerTaskOrderApi.submitOpinionNoticeApproval(params)
  324. if (submitRes) {
  325. ElMessage.success('提交审核成功')
  326. handleCloseModal()
  327. }
  328. }
  329. // 提交保存 - 不需要审核
  330. const handleSubmitNotApproval = async () => {
  331. // 弹窗选择审批人
  332. const { reportId} = props.editInspectionplanParams
  333. const params: Recordable = {
  334. id: reportId,
  335. reportType: PressureReportType['INSPECTIONPLAN'],
  336. }
  337. const submitRes = await BoilerTaskOrderApi.generateInspectionPlan(params)
  338. if (submitRes) {
  339. ElMessage.success('提交成功')
  340. handleCloseModal()
  341. }
  342. }
  343. const handleSubmitConfirm = () => {
  344. approvalUserVisible.value = false
  345. // if(props.isEdit === 'add'){
  346. // fileList.value[0]?.url ? handleSubmitOperationReport(fileList.value[0].url) : uploadRef.value.submit()
  347. // } else {
  348. // handleSubmitOperationReport()
  349. // }
  350. fileList.value[0]?.url ? handleSubmitOperationReport(fileList.value[0].url) : uploadRef.value.submit()
  351. }
  352. const handleSubmitBefore = async () => {
  353. // try {
  354. // await editSpreadRecordRef.value?.handleSave()
  355. // } catch (error) {
  356. // console.error('保存数据失败:', error)
  357. // ElMessage.error('保存数据失败,请重试')
  358. // return
  359. // }
  360. // console.log(props.editInspectionplanParams, 'props.editInspectionplanParams')
  361. // if (props.isEdit === 'add' && !fileList.value.length) return ElMessage.error('请先上传方案文件')
  362. if (!fileList.value.length) return ElMessage.error('请先上传方案文件')
  363. isSubmit.value = true
  364. getSchemeReviewerList()
  365. }
  366. // 关闭弹窗
  367. const handleCloseModal = () => {
  368. visible.value = false
  369. emits('refresh')
  370. }
  371. // 复制编号
  372. const handleCopyReportNo = async () => {
  373. const reportNo = props.inspectionplanDetail?.reportNo
  374. if (!reportNo) {
  375. ElMessage.warning('复制失败,检验方案编号不存在')
  376. return
  377. }
  378. try {
  379. if (navigator.clipboard && window.isSecureContext) {
  380. await navigator.clipboard.writeText(reportNo)
  381. ElMessage.success('复制成功')
  382. } else {
  383. fallbackCopyText(reportNo)
  384. }
  385. } catch (err) {
  386. console.error('复制出错:', err)
  387. fallbackCopyText(reportNo)
  388. }
  389. }
  390. function fallbackCopyText(text: string) {
  391. const input = document.createElement('textarea')
  392. input.value = text
  393. input.style.position = 'fixed'
  394. input.style.opacity = '0'
  395. input.style.height = '1px'
  396. input.style.width = '1px'
  397. document.body.appendChild(input)
  398. input.focus()
  399. input.select()
  400. try {
  401. const success = document.execCommand('copy')
  402. if (success) {
  403. ElMessage.success('复制成功')
  404. } else {
  405. ElMessage.error('当前浏览器不支持复制功能,请手动复制')
  406. }
  407. } catch (err) {
  408. ElMessage.error('复制失败,请手动复制')
  409. }
  410. document.body.removeChild(input)
  411. }
  412. const pdfContentWidth = ref(0)
  413. const wrapperContainerRef = ref<HTMLDivElement | null>(null)
  414. const handleWindowResize = debounce(() => {
  415. if(wrapperContainerRef.value){
  416. console.log('wrapperContainerRef.value:log', wrapperContainerRef.value)
  417. const currentWidth = wrapperContainerRef.value?.clientWidth
  418. pdfContentWidth.value = currentWidth > 950 ? 950 : currentWidth - 20
  419. }
  420. }, 100)
  421. const initData=ref<InitParams>(
  422. {
  423. templateId: '',
  424. refId: '',
  425. refName:'',
  426. insId:'',
  427. opType: 1, // 0:excel,1: pdf
  428. manualUrl: '',
  429. });
  430. const editData=ref<InitParams>(
  431. {
  432. templateId: '',
  433. refId: '',
  434. refName:'',
  435. insId:'',
  436. opType: 0, // 0:excel,1: pdf
  437. });
  438. const spreadRef=ref();
  439. const editSpreadRecordRef=ref();
  440. const saveSuccessRecord = async (data)=>{
  441. handleSuccess()
  442. showInlineEditRecord.value = false
  443. }
  444. const editPreview=()=>{
  445. editData.value.templateId = props.editInspectionplanParams.templateId;
  446. editData.value.refId = props.editInspectionplanParams.reportId;
  447. editData.value.opType = 0;
  448. setTimeout(()=>{
  449. editSpreadRecordRef.value?.reloadView();
  450. },50)
  451. console.log('editDataPreview', editData.value)
  452. }
  453. const initPreview=(manualUrl:string)=>{
  454. initData.value.templateId = props.editInspectionplanParams.templateId;
  455. initData.value.refId = props.editInspectionplanParams.reportId;
  456. initData.value.opType = 1;
  457. initData.value.manualUrl = manualUrl;
  458. initData.value.issueUrl = props.inspectionplanDetail?.issueUrl || '';
  459. setTimeout(()=>{
  460. spreadRef.value?.reloadView();
  461. },50)
  462. console.log('initPreview', initData.value)
  463. }
  464. onMounted(()=>{
  465. handleWindowResize()
  466. // console.log('wrapperContainerHeight.value ', wrapperContainerHeight.value)
  467. window.addEventListener('resize', handleWindowResize)
  468. initPreview(props.inspectionplanDetail?.manualUrl)
  469. // initPreview()
  470. // if (['add', 'edit'].includes(props.isEdit)){
  471. // editPreview()
  472. // }else{
  473. // initPreview()
  474. // }
  475. })
  476. onUnmounted(() => {
  477. window.removeEventListener('resize', handleWindowResize)
  478. })
  479. </script>
  480. <style lang="scss" scoped>
  481. :deep(.app-container) {
  482. position: relative;
  483. }
  484. .check-record-wrapper {
  485. position: absolute;
  486. left: 0;
  487. right: 0;
  488. top: 0;
  489. bottom: 0;
  490. z-index: 2000;
  491. :deep(.el-card__body) {
  492. display: flex;
  493. justify-content: space-between;
  494. align-items: stretch;
  495. height: calc(100% - 58px);
  496. }
  497. :deep(.spread-designer-container) {
  498. height: calc(
  499. 100vh - var(--top-tool-height) - var(--tags-view-height) - var(--app-footer-height) - 64px
  500. );
  501. padding: 0;
  502. border: 1px solid var(--el-border-color);
  503. border-right-width: 0px;
  504. }
  505. .designer-inner {
  506. width: calc(100% - 440px);
  507. flex: 1;
  508. position: relative;
  509. }
  510. .operation-inner {
  511. display: flex;
  512. flex-direction: column;
  513. gap: 10px;
  514. height: 100%;
  515. flex-basis: 440px;
  516. padding: 7px 10px 20px 10px;
  517. border: 1px solid var(--el-border-color);
  518. background-color: #fff;
  519. box-sizing: border-box;
  520. overflow: hidden;
  521. .btn-list {
  522. padding: 5px 0 2px;
  523. }
  524. .version-box {
  525. padding: 8px 0 12px;
  526. }
  527. .operation-item {
  528. position: relative;
  529. // max-height: calc(100% / 3);
  530. overflow: hidden;
  531. .item-header {
  532. position: sticky;
  533. left: 0;
  534. top: 0;
  535. z-index: 1000;
  536. width: 100%;
  537. height: 28px;
  538. padding-left: 20px;
  539. font-size: 16px;
  540. line-height: 28px;
  541. color: #fff;
  542. background: #fff url(@/assets/imgs/pressure/my-task-detail-operation-bg.png) no-repeat left
  543. top;
  544. background-size: 100% 28px;
  545. }
  546. .item-content {
  547. // height: calc(100% - 48px);
  548. height: auto;
  549. padding: 10px 0;
  550. font-size: 14px;
  551. overflow-y: auto;
  552. overflow-x: hidden;
  553. box-sizing: content-box;
  554. .el-empty {
  555. width: 100%;
  556. height: 150px;
  557. padding: 0;
  558. box-sizing: border-box;
  559. }
  560. }
  561. &:last-child {
  562. // max-height: unset;
  563. // flex-grow: 1;
  564. flex: 1;
  565. .item-content {
  566. height: calc(100% - 48px);
  567. }
  568. }
  569. :deep(.smart-table-inner .toolbar) {
  570. margin: 0 !important;
  571. }
  572. .error-item {
  573. display: flex;
  574. align-items: center;
  575. padding: 7px 10px;
  576. color: #41475c;
  577. border: 1px solid var(--el-border-color);
  578. border-width: 1px 0 1px 0;
  579. background-color: #f5f5fa;
  580. .el-icon {
  581. margin-right: 6px;
  582. }
  583. &:nth-child(n + 1) {
  584. margin-top: -1px;
  585. }
  586. &:nth-child(even) {
  587. background-color: #fff;
  588. }
  589. }
  590. }
  591. }
  592. }
  593. .history-version-table {
  594. height: 100%;
  595. display: flex;
  596. flex-direction: column;
  597. overflow: hidden;
  598. :deep(.smart-table-inner) {
  599. flex: 1;
  600. display: flex;
  601. flex-direction: column;
  602. // border: 1px solid red;
  603. overflow: hidden;
  604. .smart-table-table {
  605. flex: 1;
  606. overflow: hidden;
  607. .el-table {
  608. height: calc(100% - 52px);
  609. }
  610. }
  611. }
  612. }
  613. </style>
  614. <style>
  615. .docx-wrapper {
  616. background-color: #fff !important;
  617. }
  618. .docx-wrapper > section.docx {
  619. box-shadow: none !important;
  620. }
  621. </style>