update 流程完善
This commit is contained in:
@@ -171,6 +171,7 @@ module.exports = {
|
|||||||
select: '选择',
|
select: '选择',
|
||||||
attach: '附件',
|
attach: '附件',
|
||||||
checkedAll: '全选',
|
checkedAll: '全选',
|
||||||
|
pleaseCompleteTableInfo: '请完善表格信息',
|
||||||
// 树右键
|
// 树右键
|
||||||
treeRight: {
|
treeRight: {
|
||||||
addFolder: 'Create New Folder',
|
addFolder: 'Create New Folder',
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ module.exports = {
|
|||||||
select: '选择',
|
select: '选择',
|
||||||
attach: '附件',
|
attach: '附件',
|
||||||
checkedAll: '全选',
|
checkedAll: '全选',
|
||||||
|
pleaseCompleteTableInfo: '请完善表格信息',
|
||||||
// 树右键
|
// 树右键
|
||||||
treeRight: {
|
treeRight: {
|
||||||
addFolder: '新增文件夹',
|
addFolder: '新增文件夹',
|
||||||
|
|||||||
+9
@@ -370,6 +370,15 @@ export default {
|
|||||||
*/
|
*/
|
||||||
handleSubmit () {
|
handleSubmit () {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
|
// 节点3,判断表格中实际稽查完成日期和实际稽查人是否填写
|
||||||
|
if (
|
||||||
|
this.currentNode === EsInspectionProcess.inputInspectionReport.value &&
|
||||||
|
this.$refs.inspectionProcessTable.dataSource.some(item => (!item.completeDate || !item.actualInspectUser))
|
||||||
|
) {
|
||||||
|
this.switchChange('base')
|
||||||
|
this.$message.warning(this.$t('pleaseCompleteTableInfo'))
|
||||||
|
return
|
||||||
|
}
|
||||||
// 有taskId说明已经发起过,调审批接口,否则调发起接口
|
// 有taskId说明已经发起过,调审批接口,否则调发起接口
|
||||||
if (this.$route.query.taskId) {
|
if (this.$route.query.taskId) {
|
||||||
this.handleAgree(true)
|
this.handleAgree(true)
|
||||||
|
|||||||
+1
-1
@@ -281,7 +281,7 @@ export default {
|
|||||||
changeRowData (record, field) {
|
changeRowData (record, field) {
|
||||||
editInspectProcessTable({
|
editInspectProcessTable({
|
||||||
id: record.id,
|
id: record.id,
|
||||||
[field]: record[field]
|
[field]: record[field] || ''
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
|||||||
+9
@@ -371,6 +371,15 @@ export default {
|
|||||||
*/
|
*/
|
||||||
handleSubmit () {
|
handleSubmit () {
|
||||||
if (this.loading) return
|
if (this.loading) return
|
||||||
|
// 节点1 判断表格稽查联络人是否填写
|
||||||
|
if (
|
||||||
|
this.currentNode === InspectionExtensionRequestProcess.initiate.value &&
|
||||||
|
this.$refs.extensionRequestTable.dataSource.some(item => !item.liaisons)
|
||||||
|
) {
|
||||||
|
this.switchChange('base')
|
||||||
|
this.$message.warning(this.$t('pleaseCompleteTableInfo'))
|
||||||
|
return
|
||||||
|
}
|
||||||
// 有taskId说明已经发起过,调审批接口,否则调发起接口
|
// 有taskId说明已经发起过,调审批接口,否则调发起接口
|
||||||
if (this.$route.query.taskId) {
|
if (this.$route.query.taskId) {
|
||||||
this.handleAgree(true)
|
this.handleAgree(true)
|
||||||
|
|||||||
+1
-1
@@ -240,7 +240,7 @@ export default {
|
|||||||
changeRowData (record, field) {
|
changeRowData (record, field) {
|
||||||
editInspectExtensionTable({
|
editInspectExtensionTable({
|
||||||
id: record.id,
|
id: record.id,
|
||||||
[field]: record[field]
|
[field]: record[field] || ''
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$message.success(res.message)
|
this.$message.success(res.message)
|
||||||
|
|||||||
Reference in New Issue
Block a user