From 4003622ebfe058840b4f1a423cf65e70eaf1ef37 Mon Sep 17 00:00:00 2001 From: Zhao Qiqi <1287235164@qq.com> Date: Mon, 18 Jul 2022 17:15:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=BD=A6=E3=80=81=E8=B0=83=E8=B4=A6?= =?UTF-8?q?=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/flow/tiaochekaipiaoshenqing.js | 7 + .../src/api/flow/tiaozhangshenqing.js | 7 + .../src/router/modules/codemenu.js | 14 + .../diaocheshenqing.vue | 2 +- .../diaocheshenqingAdd.vue | 70 +-- .../tiaozhangshenqingguanli.vue | 2 +- .../tiaozhangshenqingguanliAdd.vue | 78 ++-- .../tiaochekaipiaoshenqing.vue | 31 +- .../tiaochekaipiaoshenqingCallInToCallOut.vue | 414 ++++++++++++++++++ .../tiaochekaipiaoshenqingEdit.vue | 97 ++-- .../tiaochekaipiaoshenqingInfo.vue | 2 +- .../tiaozhangshenqing.vue | 41 +- .../tiaozhangshenqingCallInOrCallOut.vue | 397 +++++++++++++++++ .../tiaozhangshenqingEdit.vue | 100 +++-- .../tiaozhangshenqingInfo.vue | 2 +- 15 files changed, 1112 insertions(+), 152 deletions(-) create mode 100644 anrui-scm/anrui-scm-ui/src/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqingCallInToCallOut.vue create mode 100644 anrui-scm/anrui-scm-ui/src/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqingCallInOrCallOut.vue diff --git a/anrui-scm/anrui-scm-ui/src/api/flow/tiaochekaipiaoshenqing.js b/anrui-scm/anrui-scm-ui/src/api/flow/tiaochekaipiaoshenqing.js index d9d343a39b..272a9f630d 100644 --- a/anrui-scm/anrui-scm-ui/src/api/flow/tiaochekaipiaoshenqing.js +++ b/anrui-scm/anrui-scm-ui/src/api/flow/tiaochekaipiaoshenqing.js @@ -9,6 +9,13 @@ export default { data: params }) }, + agreeTaskCallInToCallOut: function(params) { + return request({ + url: '/base/v1/baseshuntinginvoicingapply/callInOrgToCallOutOrg', + method: 'post', + data: params + }) + }, // 流程审批(驳回) rejectTask: function(params) { return request({ diff --git a/anrui-scm/anrui-scm-ui/src/api/flow/tiaozhangshenqing.js b/anrui-scm/anrui-scm-ui/src/api/flow/tiaozhangshenqing.js index 5e72b0cf16..6d5f3bb0fa 100644 --- a/anrui-scm/anrui-scm-ui/src/api/flow/tiaozhangshenqing.js +++ b/anrui-scm/anrui-scm-ui/src/api/flow/tiaozhangshenqing.js @@ -9,6 +9,13 @@ export default { data: params }) }, + agreeTaskCallInOrCallOut: function(params) { + return request({ + url: '/base/v1/baseaccadjapply/InitiatorToAnswer', + method: 'post', + data: params + }) + }, // 流程审批(驳回) rejectTask: function(params) { return request({ diff --git a/anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js b/anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js index aeef0e921f..190b799c4e 100644 --- a/anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js +++ b/anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js @@ -719,6 +719,7 @@ const codemenu = [ import('@/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqingInfo.vue'), name: 'tiaochekaipiaoshenqingInfo' }, + // 调车开票申请审批环节办理页面 { path: '/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqing', @@ -726,6 +727,12 @@ const codemenu = [ import('@/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqing.vue'), name: 'tiaochekaipiaoshenqingHandle' }, + { + path: '/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqingCallInToCallOut', + component: () => + import('@/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqingCallInToCallOut.vue'), + name: 'tiaochekaipiaoshenqingCallInToCallOut' + }, // 流程审批 // 调账申请驳回到发起人办理编辑页面 { @@ -747,6 +754,13 @@ const codemenu = [ component: () => import('@/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqing.vue'), name: 'tiaozhangshenqingHandle' + }, + { + path: '/tiaozhangshenqingFlow/tiaozhangshenqingCallInOrCallOut', + component: () => + import('@/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqingCallInOrCallOut.vue'), + name: 'tiaozhangshenqingCallInOrCallOut' } + ] export default codemenu diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/diaochekaipiaoshenqingguanli/diaocheshenqing.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/diaochekaipiaoshenqingguanli/diaocheshenqing.vue index 607dff763e..6cddec76fc 100644 --- a/anrui-scm/anrui-scm-ui/src/views/supplychain/diaochekaipiaoshenqingguanli/diaocheshenqing.vue +++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/diaochekaipiaoshenqingguanli/diaocheshenqing.vue @@ -45,7 +45,7 @@ diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/diaochekaipiaoshenqingguanli/diaocheshenqingAdd.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/diaochekaipiaoshenqingguanli/diaocheshenqingAdd.vue index 12d243f2b0..6736bfa227 100644 --- a/anrui-scm/anrui-scm-ui/src/views/supplychain/diaochekaipiaoshenqingguanli/diaocheshenqingAdd.vue +++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/diaochekaipiaoshenqingguanli/diaocheshenqingAdd.vue @@ -162,7 +162,7 @@ import diaochecheliangList from '@/views/supplychain/diaochekaipiaoshenqingguanli/relation/diaochecheliangList' import upload_diaoche from '@/components/uploadFile/upload_diaoche' import { getOrg, getPathSidByUserSid } from '@/api/cheliang/basevehiclemodel' -import { fetchDetailsBySid, save, selByLinkSid,submitSunInv } from '@/api/supplychain/diaochekaipiaoshenqing.js' +import { fetchDetailsBySid, save, selByLinkSid, submitSunInv } from '@/api/supplychain/diaochekaipiaoshenqing.js' import { typeValues } from '@/api/supplychain/yancheguanli' export default { @@ -398,18 +398,27 @@ export default { } this.$refs['dataForm'].validate(valid => { if (valid) { - this.submitdisabled = true - this.temp.baseShuntingInvoicinApplyeVehs = this.list - save(this.temp).then(resp => { - this.submitdisabled = false - if (resp.success) { + if (this.list.length > 0) { + this.submitdisabled = true + this.temp.baseShuntingInvoicinApplyeVehs = this.list + save(this.temp).then(resp => { + this.submitdisabled = false if (resp.success) { - _this.handleReturn('true') + if (resp.success) { + _this.handleReturn('true') + } } - } - }).catch(() => { - this.submitdisabled = false - }) + }).catch(() => { + this.submitdisabled = false + }) + } else { + this.$message({ + showClose: true, + message: '请选择申请车辆', + type: 'error' + }) + return + } } else { return false } @@ -450,24 +459,33 @@ export default { } this.$refs['dataForm'].validate(valid => { if (valid) { - this.$confirm('是否确定提交该业务', '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }).then(() => { - this.submitdisabled = true - this.temp.baseShuntingInvoicinApplyeVehs = this.list - submitSunInv(this.temp).then(resp => { - this.submitdisabled = false - if (resp.success) { + if (this.list.length > 0) { + this.$confirm('是否确定提交该业务', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.submitdisabled = true + this.temp.baseShuntingInvoicinApplyeVehs = this.list + submitSunInv(this.temp).then(resp => { + this.submitdisabled = false if (resp.success) { - _this.handleReturn('true') + if (resp.success) { + _this.handleReturn('true') + } } - } - }).catch(() => { - this.submitdisabled = false + }).catch(() => { + this.submitdisabled = false + }) }) - }) + } else { + this.$message({ + showClose: true, + message: '请选择申请车辆', + type: 'error' + }) + return + } } else { return false } diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanli.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanli.vue index 66d18e0e26..5f3a3585ef 100644 --- a/anrui-scm/anrui-scm-ui/src/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanli.vue +++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanli.vue @@ -58,7 +58,7 @@ diff --git a/anrui-scm/anrui-scm-ui/src/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanliAdd.vue b/anrui-scm/anrui-scm-ui/src/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanliAdd.vue index f2fec0da60..05422f6bfb 100644 --- a/anrui-scm/anrui-scm-ui/src/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanliAdd.vue +++ b/anrui-scm/anrui-scm-ui/src/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanliAdd.vue @@ -402,20 +402,29 @@ export default { const _this = this this.$refs['dataForm'].validate(valid => { if (valid) { - this.submitdisabled = true - this.list.forEach(element => { - this.temp.accSids.push(element.sid) - }) - save(this.temp).then(resp => { - this.submitdisabled = false - if (resp.success) { + if (this.list.length > 0) { + this.submitdisabled = true + this.list.forEach(element => { + this.temp.accSids.push(element.sid) + }) + save(this.temp).then(resp => { + this.submitdisabled = false if (resp.success) { - _this.handleReturn('true') + if (resp.success) { + _this.handleReturn('true') + } } - } - }).catch(() => { - this.submitdisabled = false - }) + }).catch(() => { + this.submitdisabled = false + }) + } else { + this.$message({ + showClose: true, + message: '请选择申请车辆', + type: 'error' + }) + return + } } else { return false } @@ -445,27 +454,36 @@ export default { const _this = this this.$refs['dataForm'].validate(valid => { if (valid) { - this.submitdisabled = true - this.list.forEach(element => { - this.temp.accSids.push(element.sid) - }) - this.$confirm('是否确定提交该业务', '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }).then(() => { - this.temp.detailsList = this.list - submitAccAdjApply(this.temp).then(resp => { - this.submitdisabled = false - if (resp.success) { + if (this.list.length > 0) { + this.submitdisabled = true + this.list.forEach(element => { + this.temp.accSids.push(element.sid) + }) + this.$confirm('是否确定提交该业务', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.temp.detailsList = this.list + submitAccAdjApply(this.temp).then(resp => { + this.submitdisabled = false if (resp.success) { - _this.handleReturn('true') + if (resp.success) { + _this.handleReturn('true') + } } - } - }).catch(() => { - this.submitdisabled = false + }).catch(() => { + this.submitdisabled = false + }) + }) + } else { + this.$message({ + showClose: true, + message: '请选择申请车辆', + type: 'error' }) - }) + return + } } else { return false } diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqing.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqing.vue index 042b83055f..cd3a78919b 100644 --- a/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqing.vue +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqing.vue @@ -113,6 +113,29 @@ :preview-src-list="dialogUrl"> + + + + + 当前环节 + + {{ current.taskName }}->{{ nextNode.name }} + + + + + 意见 + + + + +
+ 确 定 + 取 消 +
+
+
@@ -271,10 +294,10 @@ export default { openReject(val) { this.operation = val this.currentLink = true // 控制当前环节一行的显示隐藏 - const formVariables = { - businessSid: this.regectList.businessSid - } - req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey, formVariables }).then((resp) => { + // const formVariables = { + // businessSid: this.regectList.businessSid + // } + req.getPreviousNodesForReject({taskDefKey: this.current.taskDefKey}).then((resp) => { if (resp.success) { var arr = resp.data this.nextNode = arr[0] diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqingCallInToCallOut.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqingCallInToCallOut.vue new file mode 100644 index 0000000000..476159183d --- /dev/null +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqingCallInToCallOut.vue @@ -0,0 +1,414 @@ + + + + + diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqingEdit.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqingEdit.vue index 923a313014..c708bc5dc5 100644 --- a/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqingEdit.vue +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqingEdit.vue @@ -163,6 +163,7 @@ import upload_diaoche from '@/components/uploadFile/upload_diaoche' import { getOrg, getPathSidByUserSid } from '@/api/cheliang/basevehiclemodel' import { fetchDetailsBySid, save, selByLinkSid, submitSunInv } from '@/api/supplychain/diaochekaipiaoshenqing.js' import { typeValues } from '@/api/supplychain/yancheguanli' + export default { name: 'tiaochekaipiaoshenqingEdit', components: { @@ -212,7 +213,7 @@ export default { params: { // 告诉父级页面,子页面的弹框高度。 code: 2, - data: document.body.scrollHeight + 'px' + data: document.body.scrollHeight + 120 + 'px' } }, '*') }, @@ -412,25 +413,34 @@ export default { } this.$refs['dataForm'].validate(valid => { if (valid) { - this.submitdisabled = true - this.temp.baseShuntingInvoicinApplyeVehs = this.list - save(this.temp).then(resp => { - this.submitdisabled = false - if (resp.success) { + if (this.list.length > 0) { + this.submitdisabled = true + this.temp.baseShuntingInvoicinApplyeVehs = this.list + save(this.temp).then(resp => { + this.submitdisabled = false if (resp.success) { - window.parent.postMessage({ - cmd: 'returnHeight', - params: { - // 操作成功,告诉父级页面关闭弹框 - code: 1 - } - }, '*') - // _this.handleReturn('true') + if (resp.success) { + window.parent.postMessage({ + cmd: 'returnHeight', + params: { + // 操作成功,告诉父级页面关闭弹框 + code: 1 + } + }, '*') + // _this.handleReturn('true') + } } - } - }).catch(() => { - this.submitdisabled = false - }) + }).catch(() => { + this.submitdisabled = false + }) + } else { + this.$message({ + showClose: true, + message: '请选择申请车辆', + type: 'error' + }) + return + } } else { return false } @@ -447,30 +457,39 @@ export default { } this.$refs['dataForm'].validate(valid => { if (valid) { - this.$confirm('是否确定提交该业务', '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }).then(() => { - this.submitdisabled = true - this.temp.baseShuntingInvoicinApplyeVehs = this.list - submitSunInv(this.temp).then(resp => { - this.submitdisabled = false - if (resp.success) { + if (this.list.length > 0) { + this.$confirm('是否确定提交该业务', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.submitdisabled = true + this.temp.baseShuntingInvoicinApplyeVehs = this.list + submitSunInv(this.temp).then(resp => { + this.submitdisabled = false if (resp.success) { - window.parent.postMessage({ - cmd: 'returnHeight', - params: { - // 操作成功,告诉父级页面关闭弹框 - code: 1 - } - }, '*') + if (resp.success) { + window.parent.postMessage({ + cmd: 'returnHeight', + params: { + // 操作成功,告诉父级页面关闭弹框 + code: 1 + } + }, '*') + } } - } - }).catch(() => { - this.submitdisabled = false + }).catch(() => { + this.submitdisabled = false + }) }) - }) + } else { + this.$message({ + showClose: true, + message: '请选择申请车辆', + type: 'error' + }) + return + } } else { return false } diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqingInfo.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqingInfo.vue index 893b043ec1..2112e08772 100644 --- a/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqingInfo.vue +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaochekaipiaoshenqingFlow/tiaochekaipiaoshenqingInfo.vue @@ -152,7 +152,7 @@ export default { params: { // 告诉父级页面,子页面的弹框高度。 code: 2, - data: document.body.scrollHeight + 'px' + data: document.body.scrollHeight + 120 + 'px' } }, '*') }, diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqing.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqing.vue index b76d9fd555..3f3fc666d8 100644 --- a/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqing.vue +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqing.vue @@ -99,6 +99,29 @@ + + + + + 当前环节 + + {{ current.taskName }}->{{ nextNode.name }} + + + + + 意见 + + + + +
+ 确 定 + 取 消 +
+
+
@@ -181,7 +204,7 @@ export default { params: { // 告诉父级页面,子页面的弹框高度。 code: 2, - data: document.body.scrollHeight + 'px' + data: document.body.scrollHeight + 120 + 'px' } }, '*') }, @@ -251,10 +274,10 @@ export default { openAgree(val) { this.operation = val this.currentLink = true // 控制当前环节一行的显示隐藏 - const formVariables = { - businessSid: this.agreeList.businessSid - } - req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey, formVariables }).then((resp) => { + // const formVariables = { + // businessSid: this.agreeList.businessSid + // } + req.getNextNodesForSubmit({ taskDefKey: this.current.taskDefKey }).then((resp) => { if (resp.success) { var arr = resp.data this.nextNode = arr[0] @@ -267,10 +290,10 @@ export default { openReject(val) { this.operation = val this.currentLink = true // 控制当前环节一行的显示隐藏 - const formVariables = { - businessSid: this.regectList.businessSid - } - req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey, formVariables }).then((resp) => { + // const formVariables = { + // businessSid: this.regectList.businessSid + // } + req.getPreviousNodesForReject({ taskDefKey: this.current.taskDefKey }).then((resp) => { if (resp.success) { var arr = resp.data this.nextNode = arr[0] diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqingCallInOrCallOut.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqingCallInOrCallOut.vue new file mode 100644 index 0000000000..ef270dc190 --- /dev/null +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqingCallInOrCallOut.vue @@ -0,0 +1,397 @@ + + + + + diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqingEdit.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqingEdit.vue index 87476ad173..4f0ce95a63 100644 --- a/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqingEdit.vue +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqingEdit.vue @@ -141,7 +141,6 @@ import tiaozhangcheliangList from '@/views/supplychain/tiaozhangshenqingguanli/r import { fetchDetailsBySid, save, submitAccAdjApply } from '@/api/supplychain/tiaozhangshenqing.js' import { getOrg, getPathSidByUserSid } from '@/api/cheliang/basevehiclemodel' import { typeValues } from '@/api/cheliang/dictcommons' -import req from '@/api/flow/tiaozhangshenqing' export default { name: 'tiaozhangshenqingEdit', @@ -188,7 +187,7 @@ export default { params: { // 告诉父级页面,子页面的弹框高度。 code: 2, - data: document.body.scrollHeight + 'px' + data: document.body.scrollHeight + 120 + 'px' } }, '*') }, @@ -391,43 +390,12 @@ export default { const _this = this this.$refs['dataForm'].validate(valid => { if (valid) { - this.submitdisabled = true - this.list.forEach(element => { - this.temp.accSids.push(element.sid) - }) - save(this.temp).then(resp => { - this.submitdisabled = false - if (resp.success) { - if (resp.success) { - window.parent.postMessage({ - cmd: 'returnHeight', - params: { - // 操作成功,告诉父级页面关闭弹框 - code: 1 - } - }, '*') - } - } - }).catch(() => { - this.submitdisabled = false - }) - } else { - return false - } - }) - }, - handleSubmit() { - const _this = this - this.$refs['dataForm'].validate(valid => { - if (valid) { - this.submitdisabled = true - this.$confirm('是否确定提交该业务', '提示', { - confirmButtonText: '确定', - cancelButtonText: '取消', - type: 'warning' - }).then(() => { - this.temp.detailsList = this.list - submitAccAdjApply(this.temp).then(resp => { + if (this.list.length > 0) { + this.submitdisabled = true + this.list.forEach(element => { + this.temp.accSids.push(element.sid) + }) + save(this.temp).then(resp => { this.submitdisabled = false if (resp.success) { if (resp.success) { @@ -443,7 +411,59 @@ export default { }).catch(() => { this.submitdisabled = false }) - }) + } else { + this.$message({ + showClose: true, + message: '请选择申请车辆', + type: 'error' + }) + return + } + } else { + return false + } + }) + }, + handleSubmit() { + const _this = this + this.$refs['dataForm'].validate(valid => { + if (valid) { + if (this.list.length > 0) { + this.submitdisabled = true + this.$confirm('是否确定提交该业务', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.list.forEach(element => { + this.temp.accSids.push(element.sid) + }) + this.temp.detailsList = this.list + submitAccAdjApply(this.temp).then(resp => { + this.submitdisabled = false + if (resp.success) { + if (resp.success) { + window.parent.postMessage({ + cmd: 'returnHeight', + params: { + // 操作成功,告诉父级页面关闭弹框 + code: 1 + } + }, '*') + } + } + }).catch(() => { + this.submitdisabled = false + }) + }) + } else { + this.$message({ + showClose: true, + message: '请选择申请车辆', + type: 'error' + }) + return + } } else { return false } diff --git a/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqingInfo.vue b/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqingInfo.vue index 78c6ebc46a..8af85e3afb 100644 --- a/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqingInfo.vue +++ b/anrui-scm/anrui-scm-ui/src/views/workFlow/tiaozhangshenqingFlow/tiaozhangshenqingInfo.vue @@ -146,7 +146,7 @@ export default { params: { // 告诉父级页面,子页面的弹框高度。 code: 2, - data: document.body.scrollHeight + 'px' + data: document.body.scrollHeight + 120 + 'px' } }, '*') },