Compare commits
10
Commits
2e9b0ba805
...
cada6fbdda
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cada6fbdda | ||
|
|
a7fa156ca8 | ||
|
|
70b7569662 | ||
|
|
fcbe7375a8 | ||
|
|
77c57a2ef7 | ||
|
|
6ed8bcbc9e | ||
|
|
b0add88228 | ||
|
|
91b9028c30 | ||
|
|
be9576a4eb | ||
|
|
6cb64daf67 |
@@ -129,7 +129,8 @@ module.exports = {
|
||||
batchReview: '批量复审',
|
||||
reviewResult: '复审结果',
|
||||
principalDrafter: '主起草人',
|
||||
mainDraftingUnit: '主起草单位'
|
||||
mainDraftingUnit: '主起草单位',
|
||||
batchRecheckError: '批量复审错误'
|
||||
},
|
||||
// 企标计划
|
||||
plan: {
|
||||
|
||||
@@ -168,7 +168,8 @@ module.exports = {
|
||||
haveNoOpinion: '有无意见',
|
||||
have: '有',
|
||||
noHave: '无',
|
||||
batchSetHandleAdvice: '批量设置处理意见'
|
||||
batchSetHandleAdvice: '批量设置处理意见',
|
||||
pleaseEditStandardText: '请点击"在线编辑"并保存初稿后再进行提交'
|
||||
},
|
||||
// 企标更改流程
|
||||
enStandardChange: {
|
||||
|
||||
@@ -345,7 +345,7 @@ export default {
|
||||
doBeforeUpload (file) {
|
||||
this.uploadGoOn = true
|
||||
file.uploadGoOn = true
|
||||
if (file.name.split('.')[0].length > 30) {
|
||||
if (file.name.substring(0, file.name.lastIndexOf('.')).length > 30) {
|
||||
this.$message.warning(this.$t('uploadFile.fileNameOverlong'))
|
||||
this.uploadGoOn = false
|
||||
file.uploadGoOn = false
|
||||
|
||||
@@ -313,7 +313,7 @@ export default {
|
||||
console.log('--------file', file)
|
||||
this.uploadGoOn = true
|
||||
file.uploadGoOn = true
|
||||
if (file.name.split('.')[0].length > 30) {
|
||||
if (file.name.substring(0, file.name.lastIndexOf('.')).length > 30) {
|
||||
this.$message.warning(this.$t('uploadFile.fileNameOverlong'))
|
||||
this.uploadGoOn = false
|
||||
file.uploadGoOn = false
|
||||
|
||||
@@ -279,7 +279,7 @@ export default {
|
||||
console.log('-----------checkedKeys', this.checkedKeys, checkedKeys)
|
||||
if (info.checked) {
|
||||
// 是选中数据了
|
||||
this.checkedKeys = [...this.checkedKeys, ...checkedKeys.checked]
|
||||
this.checkedKeys = [...new Set([...this.checkedKeys, ...checkedKeys.checked])]
|
||||
} else {
|
||||
// 是取消选中了
|
||||
this.checkedKeys = this.checkedKeys.filter(item => item !== info.node.dataRef[this.replaceFields.key])
|
||||
|
||||
@@ -68,6 +68,7 @@
|
||||
class="box-input"
|
||||
v-model="queryParam.esMainDraftUnit"
|
||||
:placeholder="$t('pleaseSelect') + $t('docTool.comparison.chiefDraftingDepartment')"
|
||||
isSomeDisabled
|
||||
:multi="true"
|
||||
:backDepart="true"
|
||||
:treeOpera="true" />
|
||||
|
||||
@@ -30,16 +30,15 @@
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
<!-- 附件 -->
|
||||
<template v-slot:relatedMaterial="{text, record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
<a class="link-a" @click="handleRelatedMaterialClick(record)">{{ text }}</a>
|
||||
</a-tooltip>
|
||||
<!--附件-->
|
||||
<template v-slot:file="text">
|
||||
<a v-if="text" @click="fileLook(text)">{{ $t('view') }}</a>
|
||||
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||
</template>
|
||||
</a-table>
|
||||
</a-spin>
|
||||
|
||||
<upload-file ref="uploadFile" disabled></upload-file>
|
||||
</j-modal>
|
||||
</template>
|
||||
|
||||
@@ -50,6 +49,7 @@ import { previewPdf } from '@/utils/previewPdf'
|
||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||
import { getCheckReportById } from '@/api/enterpriseStandardLibraryApi'
|
||||
import { kkFilePreview } from '@/utils/kkFilePreview'
|
||||
import UploadFile from '@comp/UploadFile'
|
||||
|
||||
const FILE_TYPE_IMGS = ['jpg', 'jpeg', 'png', 'raw']
|
||||
const FILE_TYPE_PDF = 'pdf'
|
||||
@@ -58,6 +58,7 @@ const CAN_PREVIEW_FILE_SUFFIX = ['jpg', 'jpeg', 'png', 'pdf', 'doc', 'docx', 'xl
|
||||
|
||||
export default {
|
||||
name: 'CheckReportModal',
|
||||
components: { UploadFile },
|
||||
data () {
|
||||
return {
|
||||
title: this.$t('enterpriseStandardLibrary.check.checkReport'),
|
||||
@@ -126,6 +127,10 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 附件列的查看点击
|
||||
fileLook (text) {
|
||||
this.$refs.uploadFile.open(text)
|
||||
},
|
||||
open (record) {
|
||||
this.visible = true
|
||||
this.model = Object.assign({}, record)
|
||||
|
||||
@@ -155,7 +155,7 @@ export default {
|
||||
title: this.$t('enterpriseStandardLibrary.reviewMeeting.scorer'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'rateUsers',
|
||||
dataIndex: 'rateUsers_dictText',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 平均总分
|
||||
|
||||
@@ -240,7 +240,7 @@ export default {
|
||||
this.loadData()
|
||||
this.selectedRowKeys = []
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
this.messageLineFeedByBr(this.$t('enterpriseStandardLibrary.reviewPlan.batchRecheckError'), res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
|
||||
@@ -83,6 +83,7 @@ import store from '@/store'
|
||||
import JTable from '@/components/jero/JTable'
|
||||
import ContactEnterSendTaskModal from './ContactEnterSendTaskModal'
|
||||
import { downloadFile } from '@/api/manage'
|
||||
import { randomUUID } from '../../../../utils/util'
|
||||
|
||||
// 导入的加载提示
|
||||
let importModalLoading
|
||||
@@ -322,11 +323,8 @@ export default {
|
||||
// 给表格赋值
|
||||
if (data && data.dataList) {
|
||||
this.dataSource = data.dataList.map(item => {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
return {
|
||||
uid: uidGenerator(),
|
||||
uid: randomUUID(),
|
||||
...item
|
||||
}
|
||||
})
|
||||
@@ -376,10 +374,7 @@ export default {
|
||||
modelFormOk (value) {
|
||||
console.log(value, this.modalType)
|
||||
if (this.modalType === 'add') {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
this.dataSource.push({ uid: uidGenerator(), ...value })
|
||||
this.dataSource.push({ uid: randomUUID(), ...value })
|
||||
} else if (this.modalType && this.modalType.split(',')[0] === 'edit') {
|
||||
const dataIndex = this.dataSource.findIndex(item => item.uid === this.modalType.split(',')[1])
|
||||
this.dataSource.splice(dataIndex, 1, value)
|
||||
@@ -437,11 +432,8 @@ export default {
|
||||
}
|
||||
// 推入表格中
|
||||
this.dataSource = info.file.response.result.map(item => {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
return {
|
||||
uid: uidGenerator(),
|
||||
uid: randomUUID(),
|
||||
...item
|
||||
}
|
||||
})
|
||||
|
||||
+4
-12
@@ -78,6 +78,7 @@ import { downloadFile } from '@/api/manage'
|
||||
import UserSelectByContact from '@/components/selection/UserSelectByContact'
|
||||
import UserSelectByContactModal from '@/components/selection/UserSelectByContactModal'
|
||||
import BaseInfoTableModal from './BaseInfoTableModal'
|
||||
import { randomUUID } from '../../../../utils/util'
|
||||
|
||||
// 导入的加载提示
|
||||
let importModalLoading
|
||||
@@ -310,11 +311,8 @@ export default {
|
||||
initData (data) {
|
||||
// 给表格赋值
|
||||
this.dataSource = data.map(item => {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
return {
|
||||
uid: uidGenerator(),
|
||||
uid: randomUUID(),
|
||||
...item
|
||||
}
|
||||
})
|
||||
@@ -383,10 +381,7 @@ export default {
|
||||
modelFormOk (value) {
|
||||
console.log(value, this.modalType)
|
||||
if (this.modalType === 'add') {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
this.dataSource.push({ uid: uidGenerator(), ...value })
|
||||
this.dataSource.push({ uid: randomUUID(), ...value })
|
||||
} else if (this.modalType && this.modalType.split(',')[0] === 'edit') {
|
||||
const dataIndex = this.dataSource.findIndex(item => item.uid === this.modalType.split(',')[1])
|
||||
this.dataSource.splice(dataIndex, 1, value)
|
||||
@@ -444,11 +439,8 @@ export default {
|
||||
}
|
||||
// 推入表格中
|
||||
this.dataSource = info.file.response.result.map(item => {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
return {
|
||||
uid: uidGenerator(),
|
||||
uid: randomUUID(),
|
||||
...item
|
||||
}
|
||||
})
|
||||
|
||||
@@ -50,6 +50,7 @@ import { kkFilePreview } from '@/utils/kkFilePreview'
|
||||
import { queryFileInfoByEditId } from '../../../../api/workCenter'
|
||||
import { Base64 } from 'js-base64'
|
||||
import { onlineEditorView } from '../../../../utils/onlyOfficeUtils'
|
||||
import { randomUUID } from '../../../../utils/util'
|
||||
|
||||
export default {
|
||||
name: 'ApproveBaseInfo',
|
||||
@@ -152,11 +153,8 @@ export default {
|
||||
initData (data) {
|
||||
// 给表格赋值,在线编辑不知道要怎么赋值?
|
||||
this.dataSource = data.list.map(item => {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
return {
|
||||
uid: uidGenerator(),
|
||||
uid: randomUUID(),
|
||||
...item
|
||||
}
|
||||
})
|
||||
|
||||
@@ -269,6 +269,7 @@ import TextContentModal from '../../../businessSupport/askForAdvice/modules/Text
|
||||
import { getEnterpriseStandardInfoById } from '../../../../api/enterpriseStandardLibraryApi'
|
||||
import { onlineEditor, onlineEditorView } from '../../../../utils/onlyOfficeUtils'
|
||||
import { getOnlineFileIdByFileId, getStandardEditFileByNo } from '@/api/workCenter'
|
||||
import { randomUUID } from '../../../../utils/util'
|
||||
|
||||
export default {
|
||||
name: 'MainDrafterInitBaseInfo',
|
||||
@@ -465,11 +466,8 @@ export default {
|
||||
this.spinning = true
|
||||
// 给表格赋值,在线编辑不知道要怎么赋值?
|
||||
this.dataSource = data.list.map(item => {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
return {
|
||||
uid: uidGenerator(),
|
||||
uid: randomUUID(),
|
||||
...item
|
||||
}
|
||||
})
|
||||
@@ -624,10 +622,7 @@ export default {
|
||||
this.dataSource.splice(dataIndex, 1, { ...value, uid: uid })
|
||||
} else {
|
||||
// 没有下标, 是新增
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
this.dataSource.push({ uid: uidGenerator(), ...value })
|
||||
this.dataSource.push({ uid: randomUUID(), ...value })
|
||||
}
|
||||
},
|
||||
// 修改前按钮点击
|
||||
|
||||
@@ -286,6 +286,7 @@ import Vue from 'vue'
|
||||
import { USER_INFO } from '@/store/mutation-types'
|
||||
import pick from 'lodash.pick'
|
||||
import { WorkCenterMixin } from '@/mixins/WorkCenterMixin'
|
||||
import { randomUUID } from '../../../utils/util'
|
||||
|
||||
export default {
|
||||
name: 'PlanApprovalFlow',
|
||||
@@ -669,11 +670,8 @@ export default {
|
||||
// 是完成时间变更或工作终止的变更
|
||||
this.$nextTick(() => {
|
||||
this.$refs.changeBaseInfo.dataSource = JSON.parse(JSON.stringify(this.model.dataList)).map(item => {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
return {
|
||||
uid: uidGenerator(),
|
||||
uid: randomUUID(),
|
||||
...item
|
||||
}
|
||||
})
|
||||
|
||||
+2
-4
@@ -50,6 +50,7 @@
|
||||
<script>
|
||||
import FinishTimeChangeBaseInfoDrawer from './FinishTimeChangeBaseInfoDrawer'
|
||||
import JTable from '@/components/jero/JTable'
|
||||
import { randomUUID } from '../../../../utils/util'
|
||||
|
||||
export default {
|
||||
name: 'FinishTimeChangeBaseInfo',
|
||||
@@ -213,10 +214,7 @@ export default {
|
||||
changeBaseInfoDrawerOk (value) {
|
||||
console.log(value, this.modalType)
|
||||
if (this.modalType === 'add') {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
this.dataSource.push({ uid: uidGenerator(), ...value })
|
||||
this.dataSource.push({ uid: randomUUID(), ...value })
|
||||
} else if (this.modalType && this.modalType.split(',')[0] === 'edit') {
|
||||
const dataIndex = this.dataSource.findIndex(item => item.uid === this.modalType.split(',')[1])
|
||||
this.dataSource.splice(dataIndex, 1, value)
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
<script>
|
||||
import JTable from '@/components/jero/JTable'
|
||||
import JobEndBaseInfoDrawer from './JobEndBaseInfoDrawer'
|
||||
import { randomUUID } from '../../../../utils/util'
|
||||
export default {
|
||||
name: 'JobEndBaseInfo',
|
||||
components: { JobEndBaseInfoDrawer, JTable },
|
||||
@@ -170,10 +171,7 @@ export default {
|
||||
jobEndBaseInfoDrawerOk (value) {
|
||||
console.log(value, this.modalType)
|
||||
if (this.modalType === 'add') {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
this.dataSource.push({ uid: uidGenerator(), ...value })
|
||||
this.dataSource.push({ uid: randomUUID(), ...value })
|
||||
} else if (this.modalType && this.modalType.split(',')[0] === 'edit') {
|
||||
const dataIndex = this.dataSource.findIndex(item => item.uid === this.modalType.split(',')[1])
|
||||
this.dataSource.splice(dataIndex, 1, value)
|
||||
|
||||
+3
-8
@@ -83,6 +83,7 @@ import { kkFilePreview } from '@/utils/kkFilePreview'
|
||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||
import { queryFileInfoByEditId } from '../../../../api/workCenter'
|
||||
import { Base64 } from 'js-base64'
|
||||
import { randomUUID } from '../../../../utils/util'
|
||||
|
||||
export default {
|
||||
name: 'CommentObjectEnterBaseInfo',
|
||||
@@ -178,11 +179,8 @@ export default {
|
||||
}
|
||||
// 给表格赋值,在线编辑不知道要怎么赋值?
|
||||
this.dataSource = data.advices.map(item => {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
return {
|
||||
uid: uidGenerator(),
|
||||
uid: randomUUID(),
|
||||
...item
|
||||
}
|
||||
})
|
||||
@@ -255,10 +253,7 @@ export default {
|
||||
this.dataSource.splice(dataIndex, 1, value)
|
||||
} else {
|
||||
// 没有下标, 是新增
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
this.dataSource.push({ uid: uidGenerator(), ...value })
|
||||
this.dataSource.push({ uid: randomUUID(), ...value })
|
||||
}
|
||||
},
|
||||
// 在线编辑的查看
|
||||
|
||||
+4
-9
@@ -104,6 +104,7 @@ import JTable from '@/components/jero/JTable'
|
||||
import CommentModal from './CommentModal'
|
||||
import UserSelection from '@/components/selection/UserSelection'
|
||||
import { HaveNoOpinion } from '../../../../enums/commonEnums'
|
||||
import { randomUUID } from '../../../../utils/util'
|
||||
|
||||
export default {
|
||||
name: 'DepartLiaisonCollectBaseInfo',
|
||||
@@ -205,11 +206,8 @@ export default {
|
||||
initData (data) {
|
||||
// 给表格赋值,在线编辑不知道要怎么赋值?
|
||||
this.dataSource = data.advices.map(item => {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
return {
|
||||
uid: uidGenerator(),
|
||||
uid: randomUUID(),
|
||||
...item
|
||||
}
|
||||
})
|
||||
@@ -311,14 +309,11 @@ export default {
|
||||
// this.dataSource.splice(index, 1, value)
|
||||
} else {
|
||||
// 没有下标, 是新增
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
if (!this.queryParam.haveNoOpinion || this.queryParam.haveNoOpinion === HaveNoOpinion.HAVE.value) {
|
||||
// 有意见或者没有筛选项的时候dataSource才增加
|
||||
this.dataSource.push({ uid: uidGenerator(), ...value, haveNoOpinion: HaveNoOpinion.HAVE.value })
|
||||
this.dataSource.push({ uid: randomUUID(), ...value, haveNoOpinion: HaveNoOpinion.HAVE.value })
|
||||
}
|
||||
this.dataList.push({ uid: uidGenerator(), ...value, haveNoOpinion: HaveNoOpinion.HAVE.value })
|
||||
this.dataList.push({ uid: randomUUID(), ...value, haveNoOpinion: HaveNoOpinion.HAVE.value })
|
||||
}
|
||||
},
|
||||
// 选择用户得到用户名
|
||||
|
||||
+4
-9
@@ -79,6 +79,7 @@ import BaseInfoForm from './BaseInfoForm'
|
||||
import JTable from '@/components/jero/JTable'
|
||||
import CommentModal from './CommentModal'
|
||||
import { HaveNoOpinion } from '../../../../enums/commonEnums'
|
||||
import { randomUUID } from '../../../../utils/util'
|
||||
|
||||
export default {
|
||||
name: 'DepartLiaisonLeaderApproveBaseInfo',
|
||||
@@ -169,11 +170,8 @@ export default {
|
||||
initData (data) {
|
||||
// 给表格赋值,在线编辑不知道要怎么赋值?
|
||||
this.dataSource = data.advices.map(item => {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
return {
|
||||
uid: uidGenerator(),
|
||||
uid: randomUUID(),
|
||||
...item
|
||||
}
|
||||
})
|
||||
@@ -268,14 +266,11 @@ export default {
|
||||
// this.dataSource.splice(index, 1, value)
|
||||
} else {
|
||||
// 没有下标, 是新增
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
if (!this.queryParam.haveNoOpinion || this.queryParam.haveNoOpinion === HaveNoOpinion.HAVE.value) {
|
||||
// 有意见或者没有筛选项的时候dataSource才增加
|
||||
this.dataSource.push({ uid: uidGenerator(), ...value, haveNoOpinion: HaveNoOpinion.HAVE.value })
|
||||
this.dataSource.push({ uid: randomUUID(), ...value, haveNoOpinion: HaveNoOpinion.HAVE.value })
|
||||
}
|
||||
this.dataList.push({ uid: uidGenerator(), ...value, haveNoOpinion: HaveNoOpinion.HAVE.value })
|
||||
this.dataList.push({ uid: randomUUID(), ...value, haveNoOpinion: HaveNoOpinion.HAVE.value })
|
||||
}
|
||||
},
|
||||
// 在线编辑的查看
|
||||
|
||||
+4
-9
@@ -90,6 +90,7 @@ import { onlineEditor } from '../../../../utils/onlyOfficeUtils'
|
||||
import { getStandardEditFileByNo } from '../../../../api/workCenter'
|
||||
import { ProjectType, HaveNoOpinion } from '../../../../enums/commonEnums'
|
||||
import BatchSetHandleAdviceModal from './BatchSetHandleAdviceModal'
|
||||
import { randomUUID } from '../../../../utils/util'
|
||||
|
||||
export default {
|
||||
name: 'MainDrafterCollectBaseInfo',
|
||||
@@ -224,11 +225,8 @@ export default {
|
||||
initData (data) {
|
||||
// 给表格赋值,在线编辑不知道要怎么赋值?
|
||||
this.dataSource = data.advices.map(item => {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
return {
|
||||
uid: uidGenerator(),
|
||||
uid: randomUUID(),
|
||||
...item,
|
||||
handleAdvice: item.handleAdvice ? item.handleAdvice : undefined
|
||||
}
|
||||
@@ -376,14 +374,11 @@ export default {
|
||||
// 没有下标, 是新增
|
||||
const currentUser = Vue.ls.get(USER_INFO)
|
||||
const currentUserId = currentUser.realname + '(' + currentUser.username + ')'
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
if (!this.queryParam.haveNoOpinion || this.queryParam.haveNoOpinion === HaveNoOpinion.HAVE.value) {
|
||||
// 有意见或者没有筛选项的时候dataSource才增加
|
||||
this.dataSource.push({ ...value, createUserId_dictText: currentUserId, uid: uidGenerator(), haveNoOpinion: HaveNoOpinion.HAVE.value })
|
||||
this.dataSource.push({ ...value, createUserId_dictText: currentUserId, uid: randomUUID(), haveNoOpinion: HaveNoOpinion.HAVE.value })
|
||||
}
|
||||
this.dataList.push({ ...value, createUserId_dictText: currentUserId, uid: uidGenerator(), haveNoOpinion: HaveNoOpinion.HAVE.value })
|
||||
this.dataList.push({ ...value, createUserId_dictText: currentUserId, uid: randomUUID(), haveNoOpinion: HaveNoOpinion.HAVE.value })
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
||||
+4
-9
@@ -182,6 +182,7 @@ import { onlineEditor } from '../../../../utils/onlyOfficeUtils'
|
||||
import CheckContentProcessModal from './CheckContentProcessModal'
|
||||
import { getStandardEditFileByNo } from '../../../../api/workCenter'
|
||||
import { ProjectType } from '../../../../enums/commonEnums'
|
||||
import { randomUUID } from '../../../../utils/util'
|
||||
|
||||
// 支持预览的文件后缀
|
||||
const CAN_PREVIEW_FILE_SUFFIX = ['jpg', 'jpeg', 'png', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx']
|
||||
@@ -347,18 +348,15 @@ export default {
|
||||
// 拿到外面传进来的数据初始化,因为套了几层就不在外层初始化数据了
|
||||
initData (data) {
|
||||
// 给表格赋值,在线编辑不知道要怎么赋值?
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
this.drafterDataSource = data.otherDraftUserVOS && data.otherDraftUserVOS.length > 0 ? data.otherDraftUserVOS.map(item => {
|
||||
return {
|
||||
uid: uidGenerator(),
|
||||
uid: randomUUID(),
|
||||
...item
|
||||
}
|
||||
}) : []
|
||||
this.dataSource = data.inspectContents && data.inspectContents.length > 0 ? data.inspectContents.map(item => {
|
||||
return {
|
||||
uid: uidGenerator(),
|
||||
uid: randomUUID(),
|
||||
...item
|
||||
}
|
||||
}) : []
|
||||
@@ -522,10 +520,7 @@ export default {
|
||||
this.dataSource.splice(dataIndex, 1, value)
|
||||
} else {
|
||||
// 没有下标, 是新增
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
this.dataSource.push({ uid: uidGenerator(), ...value })
|
||||
this.dataSource.push({ uid: randomUUID(), ...value })
|
||||
}
|
||||
},
|
||||
/**
|
||||
|
||||
@@ -60,6 +60,7 @@ import { onlineEditor } from '../../../../utils/onlyOfficeUtils'
|
||||
import { getEnterpriseStandardInfoById } from '../../../../api/enterpriseStandardLibraryApi'
|
||||
import { ProjectType } from '../../../../enums/commonEnums'
|
||||
import { getStandardEditFileByNo } from '../../../../api/workCenter'
|
||||
import { randomUUID } from '../../../../utils/util'
|
||||
|
||||
export default {
|
||||
name: 'MainDrafterSentBaseInfo',
|
||||
@@ -134,11 +135,8 @@ export default {
|
||||
initData (data) {
|
||||
// 给表格赋值,在线编辑不知道要怎么赋值?
|
||||
this.dataSource = data.otherDraftUserVOS && data.otherDraftUserVOS.length > 0 ? data.otherDraftUserVOS.map(item => {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
return {
|
||||
uid: uidGenerator(),
|
||||
uid: randomUUID(),
|
||||
...item
|
||||
}
|
||||
}) : []
|
||||
@@ -162,13 +160,17 @@ export default {
|
||||
async getDataValidate () {
|
||||
const formData = await this.$refs.baseInfoForm.getDataValidate()
|
||||
console.log(formData)
|
||||
if (formData) {
|
||||
if (formData && this.onEditFile) {
|
||||
// 有数据可以抛出
|
||||
const data = {}
|
||||
data.otherDraftUserVOS = this.dataSource || []
|
||||
data.formInline = formData.formInline
|
||||
data.onEditFile = this.onEditFile
|
||||
return data
|
||||
} else if (!this.onEditFile) {
|
||||
// 提示请编辑标准文本
|
||||
this.$message.warning(this.$t('workCenter.enStandardRevision.pleaseEditStandardText'))
|
||||
return false
|
||||
} else {
|
||||
return false
|
||||
}
|
||||
@@ -219,10 +221,7 @@ export default {
|
||||
// 新增或编辑完成
|
||||
modalFormOk (value) {
|
||||
if (this.modalType === 'add') {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
this.dataSource.push({ uid: uidGenerator(), ...value })
|
||||
this.dataSource.push({ uid: randomUUID(), ...value })
|
||||
} else if (this.modalType && this.modalType.split(',')[0] === 'edit') {
|
||||
const dataIndex = this.dataSource.findIndex(item => item.uid === this.modalType.split(',')[1])
|
||||
this.dataSource.splice(dataIndex, 1, value)
|
||||
|
||||
+2
-5
@@ -59,7 +59,7 @@ import BaseInfoForm from './BaseInfoForm'
|
||||
import UploadFile from '@/components/UploadFile'
|
||||
import Vue from 'vue'
|
||||
import { USER_INFO } from '@/store/mutation-types'
|
||||
import { onlineEditor } from '../../../../utils/onlyOfficeUtils'
|
||||
import { randomUUID } from '../../../../utils/util'
|
||||
|
||||
export default {
|
||||
name: 'OtherDrafterUploadStandardBaseInfo',
|
||||
@@ -139,11 +139,8 @@ export default {
|
||||
initData (data) {
|
||||
// 给表格赋值
|
||||
this.dataSource = data.otherDraftUserVOS.map(item => {
|
||||
const uidGenerator = () => {
|
||||
return '-' + parseInt(Math.random() * 10000 + 1, 10)
|
||||
}
|
||||
return {
|
||||
uid: uidGenerator(),
|
||||
uid: randomUUID(),
|
||||
...item
|
||||
}
|
||||
})
|
||||
|
||||
@@ -378,7 +378,7 @@ export default {
|
||||
// 是有评分和扣分理由的行
|
||||
arr.push({
|
||||
...this.dataSource[item],
|
||||
evaluateItem: ((item % 3) + 1) + ''
|
||||
evaluateItem: (Math.floor(item / 3) + 1) + ''
|
||||
})
|
||||
}
|
||||
}
|
||||
@@ -404,7 +404,7 @@ export default {
|
||||
// 是有评分和扣分理由的行
|
||||
arr.push({
|
||||
...this.dataSource[item],
|
||||
evaluateItem: ((item % 3) + 1) + ''
|
||||
evaluateItem: (Math.floor(item / 3) + 1) + ''
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user