|
@@ -173,7 +173,7 @@ import { mixinDevice } from '@/utils/mixin'
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import ItdmRunFlowPathModal from './modules/ItdmRunFlowPathModal'
|
|
|
import { filterMultiDictText } from '@/components/dict/JDictSelectUtil'
|
|
|
-import { queryFlowPathSelectList, runFlowPathPass1, getWeituoClientList, getWeituoInfoListByClient } from '@api/api'
|
|
|
+import { queryFlowPathSelectList, runFlowPathPass1, getWeituoClientList, getWeituoInfoListByClient, getNextTF } from '@api/api'
|
|
|
import { Modal } from 'ant-design-vue'
|
|
|
import ItdmRunFlowPathShenhel from './modules/ItdmRunFlowPathShenhel.vue'
|
|
|
import ItdmRunFlowPathShenhel1 from './modules/ItdmRunFlowPathShenhel1.vue'
|
|
@@ -360,15 +360,30 @@ export default {
|
|
|
// 17写的
|
|
|
tongguo: function(record) {
|
|
|
console.log(666,record)
|
|
|
- this.$refs.nextChoose.next(record);
|
|
|
- // let that = this
|
|
|
- // var data = { 'runFlowPath': record.id }
|
|
|
- // runFlowPathPass1(data).then(response => {
|
|
|
- // if (response.code == '500') {
|
|
|
- // that.$message.error(response.message)
|
|
|
- // }
|
|
|
- // that.loadData(1);
|
|
|
- // })
|
|
|
+ // 判断下一步是否需要选责任人
|
|
|
+ var dataTF = { 'dqStep': record.dqSetp}
|
|
|
+ getNextTF(dataTF).then((res) => {
|
|
|
+ console.log(res)
|
|
|
+ if (res == 1) {
|
|
|
+ this.$refs.nextChoose.next(record);
|
|
|
+ } else {
|
|
|
+ let that = this
|
|
|
+ Modal.confirm({
|
|
|
+ title: '流程完结',
|
|
|
+ content: '该流程是否完结',
|
|
|
+ onOk() {
|
|
|
+ var data = { 'runFlowPath': record.id }
|
|
|
+ runFlowPathPass1(data).then(response => {
|
|
|
+ if (response.code == '500') {
|
|
|
+ that.$message.error(response.message)
|
|
|
+ }
|
|
|
+ that.loadData(1);
|
|
|
+ })
|
|
|
+ },
|
|
|
+ onCancel() {},
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
bohui: function(record) {
|
|
|
console.log('123123')
|