|
|
@@ -332,12 +332,7 @@ export default {
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
})
|
|
|
- setTimeout(function () {
|
|
|
- _this.$nextTick(() => {
|
|
|
- _this.$emit('refreshPage', {})
|
|
|
- // TODO loading
|
|
|
- })
|
|
|
- }, 5000)
|
|
|
+ _this.$emit('refreshPage', {})
|
|
|
// _this.$refs['WfHistory'].getHistoryTask()
|
|
|
} else {
|
|
|
this.$message({
|
|
|
@@ -402,19 +397,24 @@ export default {
|
|
|
}
|
|
|
this.btnloading = true
|
|
|
let _this = this
|
|
|
- apiOilcontract['businessSeparateAudit'](this.eveId, params, this.$axios).then(res => {
|
|
|
+ let evaStr = _this.eveId.toString()
|
|
|
+ let evaList = evaStr.split(',')
|
|
|
+ apiOilcontract['businessSeparateAudit'](_this.eveId, params, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
})
|
|
|
// _this.$emit('tableLoading', {})
|
|
|
- setTimeout(function () {
|
|
|
- _this.$nextTick(() => {
|
|
|
- _this.$emit('refreshPage', {})
|
|
|
- // TODO loading
|
|
|
- })
|
|
|
- }, 5000)
|
|
|
+ if (evaList.length > 1) {
|
|
|
+ setTimeout(function () {
|
|
|
+ _this.$nextTick(() => {
|
|
|
+ _this.$emit('refreshPage', {})
|
|
|
+ // TODO loading
|
|
|
+ })
|
|
|
+ }, 5000)
|
|
|
+ }
|
|
|
+ _this.$emit('refreshPage', {})
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
@@ -461,6 +461,8 @@ export default {
|
|
|
console.log('审批结果提交参数:', params)
|
|
|
let _this = this
|
|
|
var apiName = ['contractCommonAudit', 'contractCommonAuditYear']
|
|
|
+ let evaStr = this.eveId.toString()
|
|
|
+ let evaList = evaStr.split(',')
|
|
|
apiOilcontract[apiName[this.examineType]](this.eveId, params, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
console.log('审批提交,成功返回')
|
|
|
@@ -469,12 +471,15 @@ export default {
|
|
|
message: res.data.message
|
|
|
})
|
|
|
// _this.$emit('tableLoading', {})
|
|
|
- setTimeout(function () {
|
|
|
- _this.$nextTick(() => {
|
|
|
- _this.$emit('refreshPage', {})
|
|
|
- // TODO loading
|
|
|
- })
|
|
|
- }, 5000)
|
|
|
+ if (evaList.length > 1) {
|
|
|
+ setTimeout(function () {
|
|
|
+ _this.$nextTick(() => {
|
|
|
+ _this.$emit('refreshPage', {})
|
|
|
+ // TODO loading
|
|
|
+ })
|
|
|
+ }, 5000)
|
|
|
+ }
|
|
|
+ _this.$emit('refreshPage', {})
|
|
|
} else {
|
|
|
this.$message({
|
|
|
type: 'warning',
|