修改禅道已知bug
This commit is contained in:
@@ -786,5 +786,6 @@ module.exports = {
|
|||||||
green: 'green',
|
green: 'green',
|
||||||
red: 'red',
|
red: 'red',
|
||||||
blue: 'blue',
|
blue: 'blue',
|
||||||
yellow: 'yellow'
|
yellow: 'yellow',
|
||||||
|
resultReported:'Result Reported',
|
||||||
}
|
}
|
||||||
@@ -792,4 +792,5 @@ module.exports = {
|
|||||||
red:'红',
|
red:'红',
|
||||||
blue:'蓝',
|
blue:'蓝',
|
||||||
yellow:'黄',
|
yellow:'黄',
|
||||||
|
resultReported:'结果报告',
|
||||||
}
|
}
|
||||||
@@ -67,6 +67,54 @@
|
|||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('zoneOfApplication')">{{$t('zoneOfApplication')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="region">
|
||||||
|
<j-multi-select-tag class="box-input" v-model="formInline.region"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('zoneOfApplication')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'region'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('scopeOfApplication')">{{$t('scopeOfApplication')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel">
|
||||||
|
<j-multi-select-tag class="box-input" v-model="formInline.shi4Yong4Fan4Wei2"
|
||||||
|
@input="handleInput('shi4Yong4Fan4Wei2')"
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('scopeOfApplication')"
|
||||||
|
:type="'select'"
|
||||||
|
:triggerChange="false" :dictCode="'apply_scope'"/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
<a-col :span="12">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('technicalField')">{{$t('technicalField')}}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModel" prop="technologyTerritory">
|
||||||
|
<a-tree-select
|
||||||
|
v-model="formInline.technologyTerritory"
|
||||||
|
:maxTagCount="1"
|
||||||
|
class="box-input"
|
||||||
|
style="width: 100%"
|
||||||
|
:tree-data="CategoryTreeList"
|
||||||
|
tree-checkable
|
||||||
|
:placeholder="$t('PleaseSelect')+$t('technicalField')"
|
||||||
|
/>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
@@ -84,14 +132,26 @@
|
|||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
formInline: {},
|
formInline: {},
|
||||||
rules: {},
|
rules: {},
|
||||||
ids: []
|
ids: [],
|
||||||
|
CategoryTreeList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
this.getSysCategoryTree()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getSysCategoryTree() {
|
||||||
|
getAction(this.url.getSysCategoryTree, {}).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.CategoryTreeList = res.result
|
||||||
|
} else {
|
||||||
|
this.CategoryTreeList = []
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
edit(data) {
|
edit(data) {
|
||||||
this.visible = true
|
this.visible = true
|
||||||
|
this.getSysCategoryTree()
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.ids = data || []
|
this.ids = data || []
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
|
|||||||
@@ -145,7 +145,8 @@
|
|||||||
@click="deleteLib(record)">
|
@click="deleteLib(record)">
|
||||||
{{ $t('deleteLib') }}
|
{{ $t('deleteLib') }}
|
||||||
</a>
|
</a>
|
||||||
<a @click="addProcess(record)">发起</a>
|
<!-- <a class="text-operation" @click="resultReportedClick(record)">{{$t('resultReported')}}</a>-->
|
||||||
|
<a @click="addProcess(record)">发起</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 }}
|
||||||
@@ -260,6 +261,7 @@
|
|||||||
</span>
|
</span>
|
||||||
</a-table>
|
</a-table>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
|
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"/>
|
||||||
</a-card>
|
</a-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -267,6 +269,7 @@
|
|||||||
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'
|
||||||
@@ -283,6 +286,7 @@
|
|||||||
listAddModel,
|
listAddModel,
|
||||||
listEditModel,
|
listEditModel,
|
||||||
batSetting,
|
batSetting,
|
||||||
|
uploadFile,
|
||||||
transferList,
|
transferList,
|
||||||
globalAdvancedQuery,
|
globalAdvancedQuery,
|
||||||
fixedPlate
|
fixedPlate
|
||||||
@@ -492,7 +496,7 @@
|
|||||||
title: this.$t('operation'),
|
title: this.$t('operation'),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: 140,
|
width: 210,
|
||||||
scopedSlots: { customRender: 'operation' }
|
scopedSlots: { customRender: 'operation' }
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@@ -819,6 +823,7 @@
|
|||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
initiateTaskConfirmationClick(name) {
|
initiateTaskConfirmationClick(name) {
|
||||||
this.timeName = name
|
this.timeName = name
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
@@ -846,6 +851,7 @@
|
|||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
handleOk() {
|
handleOk() {
|
||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
@@ -891,6 +897,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
startProcess(value) {
|
startProcess(value) {
|
||||||
let query = {
|
let query = {
|
||||||
type: 1,
|
type: 1,
|
||||||
@@ -905,6 +912,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
completeTask(value, taskId) {
|
completeTask(value, taskId) {
|
||||||
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
|
||||||
@@ -926,6 +934,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
getRowKeys(value, callBack) {
|
getRowKeys(value, callBack) {
|
||||||
let isTrue = true
|
let isTrue = true
|
||||||
for (let i = 0; i < this.dataSource.length; i++) {
|
for (let i = 0; i < this.dataSource.length; i++) {
|
||||||
@@ -957,6 +966,7 @@
|
|||||||
callBack()
|
callBack()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
updateStatusBatch(num, selectedRowKeys) {
|
updateStatusBatch(num, selectedRowKeys) {
|
||||||
let _this = this
|
let _this = this
|
||||||
let query = {
|
let query = {
|
||||||
@@ -978,6 +988,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
submitClick(num) {
|
submitClick(num) {
|
||||||
let _this = this
|
let _this = this
|
||||||
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys && this.selectedRowKeys.length > 0) {
|
||||||
@@ -994,13 +1005,16 @@
|
|||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.formInline = {}
|
this.formInline = {}
|
||||||
this.visible = false
|
this.visible = false
|
||||||
},
|
},
|
||||||
|
|
||||||
dateChange(item) {
|
dateChange(item) {
|
||||||
this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : ''
|
this.formInline[item.db_field_name] = this.formInline[item.db_field_name] ? moment(this.formInline[item.db_field_name]).format('YYYY-MM-DD') : ''
|
||||||
},
|
},
|
||||||
|
|
||||||
pdfPreview(fileQuery) {
|
pdfPreview(fileQuery) {
|
||||||
let fileName = fileQuery.fileName
|
let fileName = fileQuery.fileName
|
||||||
let index1 = fileName.lastIndexOf('.')
|
let index1 = fileName.lastIndexOf('.')
|
||||||
@@ -1018,6 +1032,7 @@
|
|||||||
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
downloadFile('/sys/common/downLoadFile', fileQuery.fileName, { id: fileQuery.id })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
pdfPreviewClick(name, id) {
|
pdfPreviewClick(name, id) {
|
||||||
let fileName = name
|
let fileName = name
|
||||||
let index1 = fileName.lastIndexOf('.')
|
let index1 = fileName.lastIndexOf('.')
|
||||||
@@ -1035,9 +1050,11 @@
|
|||||||
downloadFile('/sys/common/downLoadFile', name, { id: id })
|
downloadFile('/sys/common/downLoadFile', name, { id: id })
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
download(item) {
|
download(item) {
|
||||||
downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id })
|
downloadFile('/sys/common/downLoadFile', item.fileName, { id: item.id })
|
||||||
},
|
},
|
||||||
|
|
||||||
clickButtonToUpload(item) {
|
clickButtonToUpload(item) {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
this.visibleFile = true
|
this.visibleFile = true
|
||||||
@@ -1058,6 +1075,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
bringInRelevantPersonnelClick() {
|
bringInRelevantPersonnelClick() {
|
||||||
let _this = this
|
let _this = this
|
||||||
this.$confirm({
|
this.$confirm({
|
||||||
@@ -1074,14 +1092,16 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
addProcess(val) {
|
addProcess(val) {
|
||||||
let num = 2
|
let num = 2
|
||||||
// for (let i = 0; i < 3; i++) {
|
// for (let i = 0; i < 3; i++) {
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
this.startProcessDesign(val)
|
this.startProcessDesign(val)
|
||||||
// }, 500)
|
// }, 500)
|
||||||
// }
|
// }
|
||||||
},
|
},
|
||||||
|
|
||||||
startProcessDesign(value, num) {
|
startProcessDesign(value, num) {
|
||||||
let query = {
|
let query = {
|
||||||
type: 2,
|
type: 2,
|
||||||
@@ -1093,6 +1113,7 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
completeTaskDesign(value, taskId) {
|
completeTaskDesign(value, taskId) {
|
||||||
let query = {
|
let query = {
|
||||||
userid: this.userInfo().id,
|
userid: this.userInfo().id,
|
||||||
@@ -1110,6 +1131,34 @@
|
|||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
|
||||||
|
resultReportedClick(val) {
|
||||||
|
this.clickButtonToUploadFile()
|
||||||
|
},
|
||||||
|
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