修改已知问题
This commit is contained in:
@@ -196,12 +196,10 @@
|
|||||||
:title="$t('certificationType')">{{$t('certificationType')}}</span>
|
:title="$t('certificationType')">{{$t('certificationType')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="certificationType">
|
<a-form-model-item class="itemModel" prop="certificationType">
|
||||||
<j-dict-select-tag class="box-input" v-model="formInline.attestationType"
|
<j-multi-select-tag class="box-input" v-model="formInline.attestationType"
|
||||||
:disabled="disabled"
|
:placeholder="$t('PleaseSelect')+$t('certificationType')"
|
||||||
@input="handleInput('attestationType')"
|
:type="'select'"
|
||||||
:placeholder="$t('PleaseSelect')+$t('certificationType')"
|
:triggerChange="false" :dictCode="'attestation_type'"/>
|
||||||
:type="'select'"
|
|
||||||
:triggerChange="false" :dictCode="'attestation_type'"/>
|
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|||||||
@@ -143,12 +143,11 @@
|
|||||||
:title="$t('certificationType')">{{$t('certificationType')}}</span>
|
:title="$t('certificationType')">{{$t('certificationType')}}</span>
|
||||||
</div>
|
</div>
|
||||||
<a-form-model-item class="itemModel" prop="attestationType">
|
<a-form-model-item class="itemModel" prop="attestationType">
|
||||||
<j-dict-select-tag class="box-input" v-model="formInline.attestationType"
|
<j-multi-select-tag class="box-input" v-model="formInline.attestationType"
|
||||||
:disabled="formInline.roleCode == 0 || formInline.roleCode == 2 ? false : true"
|
:disabled="formInline.roleCode == 0 || formInline.roleCode == 2 ? false : true"
|
||||||
@input="handleInput('attestationType')"
|
:placeholder="$t('PleaseSelect')+$t('certificationType')"
|
||||||
:placeholder="$t('PleaseSelect')+$t('certificationType')"
|
:type="'select'"
|
||||||
:type="'select'"
|
:triggerChange="false" :dictCode="'attestation_type'"/>
|
||||||
:triggerChange="false" :dictCode="'attestation_type'"/>
|
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|||||||
@@ -151,6 +151,10 @@
|
|||||||
@click="deleteLib(record)">
|
@click="deleteLib(record)">
|
||||||
{{ $t('deleteLib') }}
|
{{ $t('deleteLib') }}
|
||||||
</a>
|
</a>
|
||||||
|
<!-- <a class="text-operation"-->
|
||||||
|
<!-- @click="resultReportedClick(record)">-->
|
||||||
|
<!-- {{$t('resultReported')}}-->
|
||||||
|
<!-- </a>-->
|
||||||
</span>
|
</span>
|
||||||
<span slot="titleName" slot-scope="text,record" :title="text">
|
<span slot="titleName" slot-scope="text,record" :title="text">
|
||||||
{{ text && text.length > 10 ? text.slice(0, 9) + '...' : text }}
|
{{ text && text.length > 10 ? text.slice(0, 9) + '...' : text }}
|
||||||
@@ -239,7 +243,7 @@
|
|||||||
</a-form-model>
|
</a-form-model>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
<a-modal
|
<a-modal
|
||||||
:title="$t('deliverableTemplate')"
|
:title="fileTitle"
|
||||||
:width="600"
|
:width="600"
|
||||||
:visible="visibleFile"
|
:visible="visibleFile"
|
||||||
:maskClosable="false"
|
:maskClosable="false"
|
||||||
@@ -299,7 +303,7 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"/>
|
<resultReportedUpload ref="resultReportedUploadRef"/>
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -307,10 +311,10 @@
|
|||||||
import ImportFile from '@/components/ImportFile/index'
|
import ImportFile from '@/components/ImportFile/index'
|
||||||
import listAddModel from './listAddModel'
|
import listAddModel from './listAddModel'
|
||||||
import listEditModel from './listEditModel'
|
import listEditModel from './listEditModel'
|
||||||
import uploadFile from '@/components/uploadFile/file'
|
|
||||||
import batSetting from './batSetting'
|
import batSetting from './batSetting'
|
||||||
import transferList from './transferList'
|
import transferList from './transferList'
|
||||||
import fixedPlate from './fixedPlateForm'
|
import fixedPlate from './fixedPlateForm'
|
||||||
|
import resultReportedUpload from './resultReportedUpload'
|
||||||
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
import globalAdvancedQuery from '@/components/globalAdvancedQuery/index'
|
||||||
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
|
import { getAction, postAction, downloadFile, deleteAction } from '@/api/manage'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
@@ -324,10 +328,10 @@
|
|||||||
listAddModel,
|
listAddModel,
|
||||||
listEditModel,
|
listEditModel,
|
||||||
batSetting,
|
batSetting,
|
||||||
uploadFile,
|
|
||||||
transferList,
|
transferList,
|
||||||
globalAdvancedQuery,
|
globalAdvancedQuery,
|
||||||
fixedPlate
|
fixedPlate,
|
||||||
|
resultReportedUpload
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -600,7 +604,7 @@
|
|||||||
scopedSlots: { customRender: 'operation' }
|
scopedSlots: { customRender: 'operation' }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
columnsFile: [
|
columnsFileAll: [
|
||||||
{
|
{
|
||||||
title: this.$t('deliverableTemplate'),
|
title: this.$t('deliverableTemplate'),
|
||||||
dataIndex: 'fileName',
|
dataIndex: 'fileName',
|
||||||
@@ -608,6 +612,13 @@
|
|||||||
width: 260,
|
width: 260,
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
title: this.$t('resultReported'),
|
||||||
|
dataIndex: 'fileName',
|
||||||
|
align: 'center',
|
||||||
|
width: 260,
|
||||||
|
ellipsis: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: this.$t('operation'),
|
title: this.$t('operation'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
@@ -653,6 +664,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
queryParam: {},
|
queryParam: {},
|
||||||
|
fileTitle: '',
|
||||||
url: {
|
url: {
|
||||||
addModelList: '/project/projectLawsInventoryEO/queryPageDummy',
|
addModelList: '/project/projectLawsInventoryEO/queryPageDummy',
|
||||||
queryConditionInventory: '/project/projectLawsInventoryEO/queryConditionInventory',
|
queryConditionInventory: '/project/projectLawsInventoryEO/queryConditionInventory',
|
||||||
@@ -675,6 +687,7 @@
|
|||||||
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
downLoadFileUrl: window._CONFIG['domianPreviewURL'] + '/sys/common/download',
|
||||||
loading: false,
|
loading: false,
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
|
isResultReported: false,
|
||||||
// fieldList | array |✔| 需要查询的列集合示例如下,type类型有:date/datetime/string/int/number
|
// fieldList | array |✔| 需要查询的列集合示例如下,type类型有:date/datetime/string/int/number
|
||||||
fieldList: [
|
fieldList: [
|
||||||
{
|
{
|
||||||
@@ -733,6 +746,27 @@
|
|||||||
}
|
}
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
columnsFile() {
|
||||||
|
let columnResult = JSON.parse(JSON.stringify(this.columnsFileAll))
|
||||||
|
if (!this.isResultReported) {
|
||||||
|
for (var i = 0; i < columnResult.length; i++) {
|
||||||
|
if (columnResult[i].title === this.$t('resultReported')) {
|
||||||
|
columnResult.splice(i, 1)
|
||||||
|
i--
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else if (this.isResultReported) {
|
||||||
|
for (var i = 0; i < columnResult.length; i++) {
|
||||||
|
if (columnResult[i].title === this.$t('deliverableTemplate')) {
|
||||||
|
columnResult.splice(i, 1)
|
||||||
|
i--
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return columnResult
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapGetters(['userInfo']),
|
...mapGetters(['userInfo']),
|
||||||
handleModule() {
|
handleModule() {
|
||||||
@@ -1091,7 +1125,7 @@
|
|||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
this.startProcess(this.dataSource[i],index)
|
this.startProcess(this.dataSource[i], index)
|
||||||
}, 500)
|
}, 500)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1101,23 +1135,23 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
startProcess(value,index) {
|
startProcess(value, index) {
|
||||||
let query = {
|
let query = {
|
||||||
type: 1,
|
type: 1,
|
||||||
msg: JSON.stringify(value).replace(/\"/g, '\''),
|
msg: JSON.stringify(value).replace(/\"/g, '\''),
|
||||||
projectNameId: this.$route.query.projectNameId,
|
projectNameId: this.$route.query.projectNameId,
|
||||||
projectName: this.$route.query.projectName,
|
projectName: this.$route.query.projectName,
|
||||||
projectLawsInventoryId:value.id,
|
projectLawsInventoryId: value.id,
|
||||||
taskAffirmDueDate: this.formInline.taskAffirmDueDate
|
taskAffirmDueDate: this.formInline.taskAffirmDueDate
|
||||||
}
|
}
|
||||||
postAction('/workFlow/startProcess', query).then((res) => {
|
postAction('/workFlow/startProcess', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.completeTask(value, res.result,index)
|
this.completeTask(value, res.result, index)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
completeTask(value, taskId,index) {
|
completeTask(value, taskId, index) {
|
||||||
let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
let handlingTime = moment(new Date()).format('YYYY-MM-DD HH:mm:ss')
|
||||||
value.handlingTime = handlingTime
|
value.handlingTime = handlingTime
|
||||||
let query = {
|
let query = {
|
||||||
@@ -1127,7 +1161,7 @@
|
|||||||
}
|
}
|
||||||
postAction('/workFlow/completeTask', query).then((res) => {
|
postAction('/workFlow/completeTask', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
if (index == this.selectedRowKeys.length){
|
if (index == this.selectedRowKeys.length) {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
this.selectedRowKeys = []
|
this.selectedRowKeys = []
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
@@ -1291,7 +1325,14 @@
|
|||||||
downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id })
|
downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id })
|
||||||
},
|
},
|
||||||
|
|
||||||
clickButtonToUpload(item) {
|
clickButtonToUpload(item, num) {
|
||||||
|
if (num == 1) {
|
||||||
|
this.isResultReported = true
|
||||||
|
this.fileTitle = this.$t('resultReported')
|
||||||
|
} else {
|
||||||
|
this.isResultReported = false
|
||||||
|
this.fileTitle = this.$t('deliverableTemplate')
|
||||||
|
}
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.visibleFile = true
|
this.visibleFile = true
|
||||||
getAction('sys/common/getFileInfos', { id: item }).then((res) => {
|
getAction('sys/common/getFileInfos', { id: item }).then((res) => {
|
||||||
@@ -1330,31 +1371,8 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
resultReportedClick(val) {
|
resultReportedClick(val) {
|
||||||
this.clickButtonToUploadFile()
|
this.clickButtonToUpload(val, 1)
|
||||||
},
|
// this.$refs.resultReportedUploadRef.clickButtonToUploadFile(val)
|
||||||
clickButtonToUploadFile(item) {
|
|
||||||
this.$refs.uploadFile.perentHandleFunc()
|
|
||||||
this.$refs.uploadFile.visible = true
|
|
||||||
this.uploadName = item
|
|
||||||
getAction('sys/common/getFileInfos', { id: this.formInline[item] }).then((res) => {
|
|
||||||
if (res.success) {
|
|
||||||
this.$refs.uploadFile.perentHandleFunc(res.result)
|
|
||||||
} else {
|
|
||||||
this.$refs.uploadFile.perentHandleFunc()
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
/** 上传文件的回调 */
|
|
||||||
uploadSuccess(data) {
|
|
||||||
let attIdList = []
|
|
||||||
if (data && data.length > 0) {
|
|
||||||
data.map(item => {
|
|
||||||
attIdList.push(item.id || data.name)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
/** 赋值给当前对应的表单文件 */
|
|
||||||
this.formInline[this.uploadName] = attIdList.join(',')
|
|
||||||
this.formInline = { ...this.formInline }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user