|
@@ -141,6 +141,10 @@
|
|
|
<a-icon type="up"/>
|
|
<a-icon type="up"/>
|
|
|
上报
|
|
上报
|
|
|
</a-menu-item>
|
|
</a-menu-item>
|
|
|
|
|
+ <a-menu-item key="1" @click="showImproveAndUploadAdminComList" v-has="'access:check:lists:upCom'">
|
|
|
|
|
+ <a-icon type="up"/>
|
|
|
|
|
+ 上报分公司
|
|
|
|
|
+ </a-menu-item>
|
|
|
</a-menu>
|
|
</a-menu>
|
|
|
<a-button style="margin-left: 8px"> 批量操作
|
|
<a-button style="margin-left: 8px"> 批量操作
|
|
|
<a-icon type="down"/>
|
|
<a-icon type="down"/>
|
|
@@ -843,9 +847,9 @@ export default {
|
|
|
if (!record.createTime.match(RegExp(this.getDate()))){
|
|
if (!record.createTime.match(RegExp(this.getDate()))){
|
|
|
return this.$message.warning('非当天创建 禁止修改', 3);
|
|
return this.$message.warning('非当天创建 禁止修改', 3);
|
|
|
}
|
|
}
|
|
|
- // if (record.status!=='0'){
|
|
|
|
|
- // return this.$message.warning('当前状态非新建未报 不可修改', 3);
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ if (record.status!=='0'){
|
|
|
|
|
+ return this.$message.warning('当前状态非新建未报 不可修改', 3);
|
|
|
|
|
+ }
|
|
|
//校验
|
|
//校验
|
|
|
let data = {
|
|
let data = {
|
|
|
ids: [record.id],
|
|
ids: [record.id],
|
|
@@ -858,6 +862,36 @@ export default {
|
|
|
})
|
|
})
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
|
|
+ showImproveAndUploadAdminComList() {
|
|
|
|
|
+
|
|
|
|
|
+ for (let s = 0; s < this.selectionRows.length; s++) {
|
|
|
|
|
+ if(this.selectionRows[s].numberResults.indexOf('1')!==-1){
|
|
|
|
|
+ return this.$message.warning('选中数据存在非高危数据(请重新选择)...', 3);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ for (let i = 0; i < this.selectionRows.length; i++) {
|
|
|
|
|
+ if(this.selectionRows[i].status==='2'){
|
|
|
|
|
+ return this.$message.warning('选中数据中存在上报成功的数据...', 3);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ for (let i = 0; i < this.selectionRows.length; i++) {
|
|
|
|
|
+ if(this.selectionRows[i].status==='1'){
|
|
|
|
|
+ return this.$message.warning('选中数据中存在已上报分公司的数据...', 3);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ let data = {
|
|
|
|
|
+ ids: this.selectedRowKeys,
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ postAction("/businessReminderCard/escalationCom",data).then((res) => {
|
|
|
|
|
+ if (res.success) {
|
|
|
|
|
+ this.$message.success(res.message, 3);
|
|
|
|
|
+ this.loadData(1);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message.error(res.message);
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
showImproveAndUploadAdminCom(record,status) {
|
|
showImproveAndUploadAdminCom(record,status) {
|
|
|
|
|
|
|
|
if(record.numberResults.indexOf('1')!==-1) {
|
|
if(record.numberResults.indexOf('1')!==-1) {
|