|
@@ -700,17 +700,31 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
// 行关闭
|
|
|
+ closeitem() {
|
|
|
+ let param = this.ids.join()
|
|
|
+ shutDownSummary(param).then(res => {
|
|
|
+ if (res.code === 200) {
|
|
|
+ this.$modal.msgSuccess("操作成功");
|
|
|
+ this.getList(this.queryParams)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
closeLine() {
|
|
|
if (this.ids.length == 0) {
|
|
|
this.$modal.msgWarning("请选中至少一条数据");
|
|
|
} else {
|
|
|
- let param = this.ids.join()
|
|
|
- shutDownSummary(param).then(res => {
|
|
|
- if (res.code === 200) {
|
|
|
- this.$modal.msgSuccess("操作成功");
|
|
|
- this.getList(this.queryParams)
|
|
|
- }
|
|
|
+ console.log('选中数组', this.allSelection)
|
|
|
+ let item = this.allSelection.some(item => {
|
|
|
+ return item.demandNum >= 2
|
|
|
})
|
|
|
+ if (item) {
|
|
|
+ this.$modal.confirm('选中项有多个需求单位,是否确定关闭?').then(function () {
|
|
|
+ }).then(() => {
|
|
|
+ this.closeitem()
|
|
|
+ }).catch(() => {})
|
|
|
+ } else {
|
|
|
+ this.closeitem()
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
// 搜索区参照选择
|