|
@@ -74,7 +74,6 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-drawer>
|
|
|
- <textarea style="opacity: 0; position: fixed" id="copyArea"></textarea>
|
|
|
</template>
|
|
|
</page-layer>
|
|
|
</template>
|
|
@@ -83,15 +82,18 @@
|
|
|
import { computed, reactive, ref } from 'vue'
|
|
|
import { useStore } from 'vuex'
|
|
|
import { setlShtcuts } from '@/data/shortcuts'
|
|
|
-import { infnos } from '@/data/index'
|
|
|
-import { selectSiLogs, selectSiLogBody } from '../../../api/medical-insurance/si-log'
|
|
|
-import { recoveryTradePermission } from '../../../utils/permission'
|
|
|
-import { autoRecoveryTrade } from '../../../api/medical-insurance/si-manage'
|
|
|
-import { getDateRangeFormatDate } from '../../../utils/date'
|
|
|
+import { infnos } from '@/data'
|
|
|
+import { selectSiLogs, selectSiLogBody } from '@/api/medical-insurance/si-log'
|
|
|
+import { recoveryTradePermission } from '@/utils/permission'
|
|
|
+import { autoRecoveryTrade } from '@/api/medical-insurance/si-manage'
|
|
|
+import { getDateRangeFormatDate } from '@/utils/date'
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'
|
|
|
import PageLayer from "@/layout/PageLayer";
|
|
|
+import {copyStrFunc} from "@/utils/public";
|
|
|
+
|
|
|
const store = useStore()
|
|
|
-const windowSize = store.state.app.windowSize
|
|
|
+
|
|
|
+const windowSize = store.getters['app/windowSize']
|
|
|
const tableHeight = windowSize.h - 85
|
|
|
const dateRange = ref(null)
|
|
|
|
|
@@ -192,16 +194,8 @@ const coloredResult = (infcode) => {
|
|
|
}
|
|
|
|
|
|
const copyLogBodyResult = (flag) => {
|
|
|
- const copyArea = document.getElementById('copyArea')
|
|
|
- copyArea.value = flag === 1 ? formattedBody.value : formattedResult.value
|
|
|
- copyArea.select()
|
|
|
- document.execCommand('Copy')
|
|
|
- ElMessage({
|
|
|
- message: '复制成功',
|
|
|
- type: 'success',
|
|
|
- duration: 2500,
|
|
|
- showClose: true,
|
|
|
- })
|
|
|
+ const copyValue = flag === 1 ? formattedBody.value : formattedResult.value
|
|
|
+ copyStrFunc(copyValue)
|
|
|
}
|
|
|
|
|
|
const exportBodyResultTxt = (row) => {
|
|
@@ -217,9 +211,9 @@ const exportBodyResultTxt = (row) => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
-const recoveriableInfnos = ['2207', '2208', '2401', '2304', '2305']
|
|
|
+const recoverableInfnos = ['2207', '2208', '2401', '2304', '2305']
|
|
|
const showRecoveryTrade = (infno) => {
|
|
|
- return recoveryTradePermission() && recoveriableInfnos.indexOf(infno) !== -1
|
|
|
+ return recoveryTradePermission() && recoverableInfnos.indexOf(infno) !== -1
|
|
|
}
|
|
|
|
|
|
const recoveryTrade = (row) => {
|