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