+
-
-
+
+
生成项目
-
+
清空购物车
-
+
-
+
-
-
-
+
+
+
@@ -52,14 +94,54 @@
-
-
+
+
-
-
-
-
-
+
+
+
+
+
查询
@@ -67,9 +149,28 @@
清除
-
-
-
+
+
+
-
-
-
-
+
+
+
+
@@ -103,18 +223,90 @@
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -123,7 +315,23 @@
-
+
diff --git a/src/views/bjd/dj_input.vue b/src/views/bjd/dj_input.vue
index 4699297..e526b59 100644
--- a/src/views/bjd/dj_input.vue
+++ b/src/views/bjd/dj_input.vue
@@ -237,19 +237,13 @@
label="区划名称:"
prop="quhuadaima"
>
-
-
-
+ />
@@ -1545,7 +1539,8 @@ export default {
fixedFlag: true,
fixedWidth: '',
isShengju: true,
- form: this.$route.params.form
+ form: this.$route.params.form,
+ areaList: []
}
},
watch: {
@@ -1585,6 +1580,16 @@ export default {
this.getDepts()
},
methods: {
+ getArea() {
+ this.api({
+ url: '/area/getAll',
+ method: 'get',
+ params: {}
+ }).then(res => {
+ this.areaList = res[0].children
+ console.log(this.areaList)
+ })
+ },
getParamList(renwus, init) {
this.apibjd({
url: '/bjd/getParams',
@@ -1802,25 +1807,13 @@ export default {
this.jylbs = data
})
},
- getArea() {
- // 查询区划
- this.api({
- url: '/area/getShiArea',
- method: 'get',
- params: {
- shidaima: '370100'
- }
- }).then((data) => {
- this.areas = data
- })
- },
getDepts() {
// 查询科室
this.api({
- url: '/department/getDepartmentByCode',
+ url: '/department/all',
method: 'get',
params: {
- code: this.bjd.shebeizhongleidaima
+ shebeizhongleidaima: this.bjd.shebeizhongleidaima
}
}).then((data) => {
this.depts = data
@@ -1848,10 +1841,8 @@ export default {
}
},
quhuaChange(val) {
- const obj = this.areas.find((item) => {
- return item.value === val
- })
- this.bjd.quhuamingcheng = obj.label
+ const arr = this.$refs['editCascader'].getCheckedNodes()[0].pathLabels
+ this.bjd.quhuamingcheng = arr.toString()
},
tableRowClassName({ row, rowIndex }) {
row.index = rowIndex
diff --git a/src/views/bjd/dj_list.vue b/src/views/bjd/dj_list.vue
index 83a276a..5f56578 100644
--- a/src/views/bjd/dj_list.vue
+++ b/src/views/bjd/dj_list.vue
@@ -133,25 +133,25 @@
-
+
新建/预审
-
+
待审核
-
+
已审核
-
+
不予受理
-
+
补正通知
-
+
异常收回
-
+
异常退回
@@ -177,7 +177,7 @@
-
+
@@ -289,14 +289,14 @@ export default {
cancelButtonText: '取消',
inputPattern: /\S/,
inputErrorMessage: '作废原因不能为空'
- }).then(() => {
+ }).then(({ value }) => {
for (let i = 0; i < this.multipleSelection.length; i++) {
this.ids.push(this.multipleSelection[i].id)
}
this.apibjd({
url: '/bjd/updBjdToZf',
method: 'get',
- params: { bjdIds: this.ids.join(',') }
+ params: { reason: value, bjdIds: this.ids.join(',') }
}).then(data => {
this.$message({
message: (data.bianhao !== null && data.bianhao !== undefined ? '流水号为' + data.bianhao + '的项目关联的任务已经分配不能作废!' : '') + (data.count === 0 ? '' : data.count + '条项目作废成功'),
@@ -324,13 +324,13 @@ export default {
return false
} else {
for (let i = 0; i < this.multipleSelection.length; i++) {
- if (this.multipleSelection[i].bjState === '2') {
+ if (this.multipleSelection[i].bjState === 2) {
this.$message({
type: 'error',
message: '选择的数据中有办结的项目,请重新选择!'
})
return false
- } else if (this.multipleSelection[i].bjState === '5' || this.multipleSelection[i].bjState === '6') {
+ } else if (this.multipleSelection[i].bjState === 5 || this.multipleSelection[i].bjState === 6) {
this.$message({
type: 'error',
message: '异常收回跟异常退回的数据,请通过作废按钮进行处理!'
@@ -374,7 +374,7 @@ export default {
editBjd($index) {
const bjd = this.list[$index]
let type = '/update'
- if (bjd.bjState === '2') {
+ if (bjd.bjState === 2) {
type = '/finish'
}
this.$router.push({ path: '/bjd/bjd-dj-input/' + bjd.id + '/' + bjd.shebeizhongleidaima + '/' + bjd.shebeizhonglei + type })
diff --git a/src/views/bjd/dt_list.vue b/src/views/bjd/dt_list.vue
index e948588..88bd23f 100644
--- a/src/views/bjd/dt_list.vue
+++ b/src/views/bjd/dt_list.vue
@@ -114,25 +114,25 @@
-
+
新建/预审
-
+
待审核
-
+
已审核
-
+
不予受理
-
+
补正通知
-
+
异常收回
-
+
异常退回
@@ -142,7 +142,7 @@
-
+
@@ -292,13 +292,13 @@ export default {
return false
} else {
for (let i = 0; i < this.multipleSelection.length; i++) {
- if (this.multipleSelection[i].bjState === '2') {
+ if (this.multipleSelection[i].bjState === 2) {
this.$message({
type: 'error',
message: '选择的数据中有办结的项目,请重新选择!'
})
return false
- } else if (this.multipleSelection[i].bjState === '5' || this.multipleSelection[i].bjState === '6') {
+ } else if (this.multipleSelection[i].bjState === 5 || this.multipleSelection[i].bjState === 6) {
this.$message({
type: 'error',
message: '异常收回跟异常退回的数据,请通过作废按钮进行处理!'
diff --git a/src/views/bjd/jj_list.vue b/src/views/bjd/jj_list.vue
index 87643d9..4b2e303 100644
--- a/src/views/bjd/jj_list.vue
+++ b/src/views/bjd/jj_list.vue
@@ -127,25 +127,25 @@
-
+
新建/预审
-
+
待审核
-
+
已审核
-
+
不予受理
-
+
补证通知
-
+
异常收回
-
+
异常退回
@@ -171,8 +171,8 @@
-
-
+
+
@@ -349,13 +349,13 @@ export default {
return false
} else {
for (let i = 0; i < this.multipleSelection.length; i++) {
- if (this.multipleSelection[i].bjState === '2') {
+ if (this.multipleSelection[i].bjState === 2) {
this.$message({
type: 'error',
message: '选择的数据中有办结的项目,请重新选择!'
})
return false
- } else if (this.multipleSelection[i].bjState === '5' || this.multipleSelection[i].bjState === '6') {
+ } else if (this.multipleSelection[i].bjState === 5 || this.multipleSelection[i].bjState === 6) {
this.$message({
type: 'error',
message: '异常收回跟异常退回的数据,请通过作废按钮进行处理!'
@@ -394,7 +394,7 @@ export default {
editBjd($index) {
const bjd = this.list[$index]
let type = '/update'
- if (bjd.bjState === '2' || bjd.bjState === '3') {
+ if (bjd.bjState === 2 || bjd.bjState === 3) {
type = '/finish'
}
this.$router.push({ path: '/bjd/bjd-jj-input/' + bjd.id + '/' + bjd.shebeizhongleidaima + '/' + bjd.shebeizhonglei + type })
diff --git a/src/views/bjd/qy_list.vue b/src/views/bjd/qy_list.vue
index b4daabf..ac94ffe 100644
--- a/src/views/bjd/qy_list.vue
+++ b/src/views/bjd/qy_list.vue
@@ -96,25 +96,25 @@
-
+
新建/预审
-
+
待审核
-
+
已审核
-
+
不予受理
-
+
补正通知
-
+
异常收回
-
+
异常退回
@@ -124,8 +124,8 @@
-
-
+
+
@@ -263,7 +263,7 @@ export default {
editBjd($index) {
const bjd = this.list[$index]
let type = '/update'
- if (bjd.bjState === '2' || bjd.bjState === '3') {
+ if (bjd.bjState === 2 || bjd.bjState === 3) {
type = '/finish'
}
if (bjd.jianyanleibie === 'DJ') {
diff --git a/src/views/bjd/wx_list.vue b/src/views/bjd/wx_list.vue
index 82b723f..7f922c8 100644
--- a/src/views/bjd/wx_list.vue
+++ b/src/views/bjd/wx_list.vue
@@ -89,25 +89,25 @@
-
+
新建/预审
-
+
待审核
-
+
已审核
-
+
不予受理
-
+
补正通知
-
+
异常收回
-
+
异常退回
diff --git a/src/views/bjd/zf_list.vue b/src/views/bjd/zf_list.vue
index d20785c..afd45e9 100644
--- a/src/views/bjd/zf_list.vue
+++ b/src/views/bjd/zf_list.vue
@@ -56,16 +56,16 @@
-
+
新建
-
+
待审核
-
+
已审核
-
+
已分配
@@ -168,7 +168,7 @@ export default {
return false
} else {
for (let i = 0; i < this.multipleSelection.length; i++) {
- if (this.multipleSelection[i].bjState === '2') {
+ if (this.multipleSelection[i].bjState === 2) {
this.$message({
type: 'error',
message: '选择的数据中有办结的项目,请重新选择!'
diff --git a/src/views/bjd/zj_list.vue b/src/views/bjd/zj_list.vue
index 41341d9..7ff22f6 100644
--- a/src/views/bjd/zj_list.vue
+++ b/src/views/bjd/zj_list.vue
@@ -78,25 +78,25 @@
-
+
新建
-
+
待审核
-
+
已审核
-
+
不予受理
-
+
补正通知
-
+
异常收回
-
+
异常退回
@@ -292,13 +292,13 @@ export default {
return false
}
for (let i = 0; i < this.multipleSelection.length; i++) {
- if (this.multipleSelection[i].bjState === '2') {
+ if (this.multipleSelection[i].bjState === 2) {
this.$message({
type: 'error',
message: '选择的数据中有办结的项目,请重新选择!'
})
return false
- } else if (this.multipleSelection[i].bjState === '5') {
+ } else if (this.multipleSelection[i].bjState === 5) {
this.$message({
type: 'error',
message: '异常收回的数据,请通过作废按钮进行处理!'
@@ -352,7 +352,7 @@ export default {
editBjd($index) {
const bjd = this.list[$index]
let type = '/update'
- if (bjd.bjState === '2' || bjd.bjState === '3') {
+ if (bjd.bjState === 2 || bjd.bjState === 3) {
type = '/finish'
}
this.$router.push({ path: '/bjd/bjd-zj-input/' + bjd.id + '/' + bjd.shebeizhongleidaima + type })
diff --git a/src/views/bjd/zlsc_list.vue b/src/views/bjd/zlsc_list.vue
index 19e7afe..af2b7a9 100644
--- a/src/views/bjd/zlsc_list.vue
+++ b/src/views/bjd/zlsc_list.vue
@@ -91,25 +91,25 @@
-
+
新建/预审
-
+
待审核
-
+
已审核
-
+
不予受理
-
+
补正通知
-
+
异常收回
-
+
异常退回
@@ -136,8 +136,8 @@
-
-
+
+
@@ -274,7 +274,7 @@ export default {
editBjd($index) {
const bjd = this.list[$index]
let type = '/update'
- if (bjd.bjState === '2' || bjd.bjState === '3') {
+ if (bjd.bjState === 2 || bjd.bjState === 3) {
type = '/finish'
}
if (bjd.jianyanleibie === 'DJ') {
diff --git a/src/views/bjd/zlsc_list_all.vue b/src/views/bjd/zlsc_list_all.vue
index 430dc8a..4ae7257 100644
--- a/src/views/bjd/zlsc_list_all.vue
+++ b/src/views/bjd/zlsc_list_all.vue
@@ -93,25 +93,25 @@
-
+
新建/预审
-
+
待审核
-
+
已审核
-
+
不予受理
-
+
补正通知
-
+
异常收回
-
+
异常退回
@@ -148,8 +148,8 @@
-
-
+
+
@@ -321,7 +321,7 @@ export default {
editBjd($index) {
const bjd = this.list[$index]
let type = '/update'
- if (bjd.bjState === '2' || bjd.bjState === '3') {
+ if (bjd.bjState === 2 || bjd.bjState === 3) {
type = '/finish'
}
if (bjd.jianyanleibie === 'DJ') {
diff --git a/src/views/flow/template.vue b/src/views/flow/template.vue
index 5bff878..391c179 100644
--- a/src/views/flow/template.vue
+++ b/src/views/flow/template.vue
@@ -63,19 +63,6 @@
:value="item.value"
/>
-
-
-
查询
diff --git a/src/views/task/list.vue b/src/views/task/list.vue
index 58bdc5f..c7de057 100644
--- a/src/views/task/list.vue
+++ b/src/views/task/list.vue
@@ -227,7 +227,7 @@ import Sticky from '@/components/Sticky'
import SliceUpload from '@/components/SliceUpload'
import Pagination from '@/components/Pagination'
import Utils from '../../utils/contact.js'
-import { getOwnList } from '@/api/renwu'
+import { getOwnList, terminateRenwu, completeRenwuFn } from '@/api/renwu'
import Enclosure from '@/views/common/Enclosure'
export default {
name: 'MyTask',
@@ -675,15 +675,13 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
- this.apibjd({
- url: 'renwu/completeRenwu',
- method: 'post',
- params: {
- renwuIds: this.$refs.list.selection.map(rw => {
- return rw.id
- }).join(',')
- }
- }).then(data => {
+ console.log(111111111111)
+ const arr = []
+ this.$refs.list.selection.map(rw => {
+ arr.push(rw.id)
+ })
+
+ completeRenwuFn({ renwuIds: arr }).then(res => {
this.$message.success('任务已完成')
this.getList()
})
@@ -700,21 +698,21 @@ export default {
this.$message.error('请选择要终止的任务')
return false
}
+ const renwuIds = []
+ this.$refs.list.selection.map(rw => {
+ renwuIds.push(rw.id)
+ })
this.$prompt('请输入终止原因', '确认提前终止任务?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
inputPattern: /\S/,
inputErrorMessage: '终止原因不能为空'
- }).then(() => {
- this.apibjd({
- url: 'renwu/terminateRenwu',
- method: 'put',
- params: {
- renwuIds: this.$refs.list.selection.map(rw => {
- return rw.id
- }).join(',')
- }
- }).then(data => {
+ }).then(({ value }) => {
+ const data = {
+ reason: value,
+ renwuIds
+ }
+ terminateRenwu(data).then(data => {
this.$message.success('任务已终止')
this.getList()
})