资质证书预警处理方式修改

ywj_dev
anthonywj 2 years ago
parent 969fa031e1
commit 69377bb5ca

@ -23,21 +23,20 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item class="query-form-item" label="忽略状态:">
<el-select v-model="filterQuery.ignoreStatus"
placeholder="请选择消息忽略状态"
clearable
style="width: 90%"
>
<el-option label="不忽略" :value="0"></el-option>
<el-option label="忽略7天" :value="1"></el-option>
<el-option label="忽略15天" :value="2"></el-option>
<el-option label="忽略30天" :value="3"></el-option>
</el-select>
</el-form-item>
</el-col>
<!-- <el-col :span="6">-->
<!-- <el-form-item class="query-form-item" label="忽略状态:">-->
<!-- <el-select v-model="filterQuery.ignoreStatus"-->
<!-- placeholder="请选择消息忽略状态"-->
<!-- clearable-->
<!-- style="width: 90%"-->
<!-- >-->
<!-- <el-option label="不忽略" :value="0"></el-option>-->
<!-- <el-option label="忽略7天" :value="1"></el-option>-->
<!-- <el-option label="忽略15天" :value="2"></el-option>-->
<!-- <el-option label="忽略30天" :value="3"></el-option>-->
<!-- </el-select>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<el-col :span="6">
<el-form-item class="query-form-item" label="预警类型:">
@ -68,27 +67,29 @@
<el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row>
<el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column :label="msgName" prop="name" width="300"></el-table-column>
<el-table-column label="证书名称" prop="certName" width="300"></el-table-column>
<el-table-column label="有效期" prop="vailDate" width="200"></el-table-column>
<el-table-column label="失效期" prop="expireDate" width="300" show-overflow-tooltip></el-table-column>
<el-table-column label="消息状态" prop="status" width="100">
<el-table-column :label="msgName" prop="name" width="180" show-overflow-tooltip></el-table-column>
<el-table-column label="证书名称" prop="certName" width="180" show-overflow-tooltip></el-table-column>
<el-table-column label="有效期" prop="vailDate" width="120"></el-table-column>
<el-table-column label="失效期" prop="expireDate" width="120" show-overflow-tooltip></el-table-column>
<el-table-column label="消息状态" prop="status" width="120">
<template slot-scope="scope">
<el-tag>{{ statusMap[scope.row.status] }}</el-tag>
</template>
</el-table-column>
<el-table-column label="忽略预警" prop="ignoreStatus" width="100">
<template slot-scope="scope">
<el-tag>{{ ignoreStatusMap[scope.row.ignoreStatus] }}</el-tag>
</template>
</el-table-column>
<el-table-column label="预警类型" prop="type" width="150">
<!-- <el-table-column label="忽略预警" prop="ignoreStatus" width="100">-->
<!-- <template slot-scope="scope">-->
<!-- <el-tag>{{ ignoreStatusMap[scope.row.ignoreStatus] }}</el-tag>-->
<!-- </template>-->
<!-- </el-table-column>-->
<el-table-column label="预警次数" prop="remindCount" width="120" show-overflow-tooltip></el-table-column>
<el-table-column label="预警类型" prop="type" width="120">
<template slot-scope="scope">
<el-tag>{{ typeMap[scope.row.type] }}</el-tag>
</template>
</el-table-column>
<el-table-column label="预警内容" prop="msg" show-overflow-tooltip></el-table-column>
<el-table-column label="处理方式" prop="handleMsg" show-overflow-tooltip></el-table-column>
<el-table-column label="预警内容" prop="msg" show-overflow-tooltip width="250"></el-table-column>
<el-table-column label="处理结果" prop="handleMsg" show-overflow-tooltip width="200"></el-table-column>
<el-table-column label="操作" width="100" fixed="right">
<template slot-scope="scope">
<el-button
@ -98,13 +99,13 @@
@click.native="confirmMsg(scope.row)"
>确认
</el-button>
<el-button
type="text"
size="small"
v-if="scope.row.ignoreStatus === 0"
@click.native="ignoreMsg(scope.row)"
>忽略
</el-button>
<!-- <el-button-->
<!-- type="text"-->
<!-- size="small"-->
<!-- v-if="scope.row.ignoreStatus === 0"-->
<!-- @click.native="ignoreMsg(scope.row)"-->
<!-- >忽略-->
<!-- </el-button>-->
</template>
</el-table-column>
</el-table>
@ -136,6 +137,68 @@
<el-button type="warning" size="medium" style="margin-right: 20px;" @click="ignore(3)">30</el-button>
</el-row>
</el-dialog>
<el-dialog
v-if="confirmVisible"
title="预警消息处理"
:visible.sync="confirmVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="65%"
top="5vh"
>
<el-form :model="confirmQuery" label-width="100px" style="margin-bottom: -15px">
<el-row>
<el-col :span="10">
<el-form-item class="query-form-item" :label="msgName">
<el-input v-model="confirmQuery.name" style="width: 90%" :disabled="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="10">
<el-form-item class="query-form-item" label="证书名称:">
<el-input v-model="confirmQuery.certName" style="width: 90%" :disabled="true"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="10">
<el-form-item class="query-form-item" label="预警次数:">
<el-input v-model="confirmQuery.remindCount" style="width: 90%" :disabled="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="10">
<el-form-item class="query-form-item" label="预警类型:">
<el-select v-model="confirmQuery.type" style="width: 90%" placeholder="预警类型" disabled>
<el-option label="配送企业资质预警" :value="1"></el-option>
<el-option label="生产企业资质预警" :value="2"></el-option>
<el-option label="产品资质预警" :value="3"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-form-item label="预警详情:" prop="msg">
<el-input v-model="confirmQuery.msg" auto-complete="off" type="textarea" disabled autosize></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="处理方式:" prop="handleMsg">
<el-input v-model="confirmQuery.handleMsg" auto-complete="off" type="textarea" autosize></el-input>
</el-form-item>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click.native="closeDialog">取消</el-button>
<el-button type="primary" @click.native="postConfirm()"
>提交
</el-button>
</div>
</el-dialog>
</div>
</template>
@ -181,7 +244,9 @@ export default {
1: "配送企业名称",
2: "生产企业名称",
3: "产品名称"
}
},
confirmVisible: false,
confirmQuery: {},
};
},
methods: {
@ -226,26 +291,28 @@ export default {
this.total = 0;
});
},
confirmMsg(row) {
this.$prompt('请输入处理方式', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(({value}) => {
let params = {
id: row.id,
handleMsg: value
};
confirmMsg(params).then((res) => {
if (res.code === 20000) {
this.$message.success("已确认");
this.getList();
} else {
this.$message.error(res.message);
}
})
}).catch(() => {
});
this.confirmVisible = true;
this.confirmQuery = row;
},
postConfirm() {
confirmMsg(this.confirmQuery).then((res) => {
if (res.code === 20000) {
this.confirmVisible = false;
this.$message.success("已确认");
this.getList();
} else {
this.$message.error(res.message);
}
})
},
closeDialog() {
this.confirmVisible = false;
},
ignoreMsg(row) {
this.ignoreVisible = true;
this.currentId = row.id;

@ -10,7 +10,7 @@
style="width: 90%"
v-model="queryName"
:fetch-suggestions="queryProductName"
placeholder="请输入物资名称"
placeholder="请输入物资名称"
clearable
@select="handleSelect"
@clear="clearQueryProduct"
@ -46,19 +46,18 @@
</el-form-item>
</el-col>
<!-- <el-col :span="8">-->
<!-- <el-form-item class="query-form-item" label="批次号:">-->
<!-- <el-input v-model="filterQuery.batchNo" placeholder="批次号"-->
<!-- style="width: 90%"-->
<!-- clearable="true"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
<!-- <el-col :span="8">-->
<!-- <el-form-item class="query-form-item" label="批次号:">-->
<!-- <el-input v-model="filterQuery.batchNo" placeholder="批次号"-->
<!-- style="width: 90%"-->
<!-- clearable="true"></el-input>-->
<!-- </el-form-item>-->
<!-- </el-col>-->
</el-row>
<el-row>
<el-col :span="8">
<el-form-item class="query-form-item" label="状态:">
<el-select v-model="filterQuery.status"
@ -102,8 +101,8 @@
<el-table-column type="index" label="序号" width="50"></el-table-column>
<el-table-column label="物资名称" prop="productName" width="180" show-overflow-tooltip></el-table-column>
<el-table-column label="规格型号" prop="ggxh" width="180" show-overflow-tooltip></el-table-column>
<!-- <el-table-column label="批次号" prop="batchNo" width="120" show-overflow-tooltip></el-table-column>-->
<el-table-column label="预警次数" prop="batchNo" width="120" show-overflow-tooltip></el-table-column>
<!-- <el-table-column label="批次号" prop="batchNo" width="120" show-overflow-tooltip></el-table-column>-->
<el-table-column label="预警次数" prop="remindCount" width="120" show-overflow-tooltip></el-table-column>
<el-table-column label="预警类型" prop="productionDate" width="120">
<template slot-scope="scope">
<el-tag type="danger">{{ typeMap[scope.row.type] }}</el-tag>
@ -125,12 +124,12 @@
<!-- </template>-->
<!-- </el-table-column>-->
<!-- <el-table-column label="入库数量" prop="inCount" width="100"></el-table-column>-->
<!-- <el-table-column label="出库数量" prop="outCount" width="100"></el-table-column>-->
<!-- <el-table-column label="入库数量" prop="inCount" width="100"></el-table-column>-->
<!-- <el-table-column label="出库数量" prop="outCount" width="100"></el-table-column>-->
<el-table-column label="库存数量" prop="reCount" width="100"></el-table-column>
<!-- <el-table-column label="生产日期" prop="productionDate" width="120"></el-table-column>-->
<!-- <el-table-column label="失效日期" prop="expireDate" width="120"></el-table-column>-->
<!-- <el-table-column label="供应商" prop="supName" width="150" show-overflow-tooltip></el-table-column>-->
<!-- <el-table-column label="生产日期" prop="productionDate" width="120"></el-table-column>-->
<!-- <el-table-column label="失效日期" prop="expireDate" width="120"></el-table-column>-->
<!-- <el-table-column label="供应商" prop="supName" width="150" show-overflow-tooltip></el-table-column>-->
<el-table-column label="生产企业" prop="manufactory" width="150" show-overflow-tooltip></el-table-column>
<el-table-column label="注册备案证号" prop="zczbhhzbapzbh" width="150" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" width="100" fixed="right">
@ -180,6 +179,73 @@
<el-button type="warning" size="medium" style="margin-right: 20px;" @click="ignore(3)">30</el-button>
</el-row>
</el-dialog>
<el-dialog
v-if="confirmVisible"
title="预警消息处理"
:visible.sync="confirmVisible"
:close-on-click-modal="false"
:close-on-press-escape="false"
width="65%"
top="5vh"
>
<el-form :model="confirmQuery" label-width="100px" style="margin-bottom: -15px">
<el-row>
<el-col :span="10">
<el-form-item class="query-form-item" label="物资名称:">
<el-input v-model="confirmQuery.productName" style="width: 90%" :disabled="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="10">
<el-form-item class="query-form-item" label="规格型号:">
<el-input v-model="confirmQuery.ggxh" style="width: 90%" :disabled="true"></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="10">
<el-form-item class="query-form-item" label="预警次数:">
<el-input v-model="confirmQuery.remindCount" style="width: 90%" :disabled="true"></el-input>
</el-form-item>
</el-col>
<el-col :span="10">
<el-form-item class="query-form-item" label="预警类型:">
<el-select v-model="confirmQuery.type" style="width: 90%" placeholder="请选择处理状态" disabled>
<el-option label="库存不足预警" :value="1"></el-option>
<el-option label="负库存预警" :value="2"></el-option>
<el-option label="库存积压预警" :value="3"></el-option>
<el-option label="库存过期预警" :value="4"></el-option>
<el-option label="近效期预警" :value="5"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-form-item label="预警详情:" prop="msg">
<el-input v-model="confirmQuery.msg" auto-complete="off" type="textarea" disabled autosize></el-input>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="处理方式:" prop="handleMsg">
<el-input v-model="confirmQuery.handleMsg" auto-complete="off" type="textarea" autosize></el-input>
</el-form-item>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click.native="closeDialog">取消</el-button>
<el-button type="primary" @click.native="postConfirm()"
>提交
</el-button>
</div>
</el-dialog>
</div>
</template>
@ -233,7 +299,9 @@ export default {
spaceList: [],
ggxhList: [],
ignoreVisible: false,
currentId: null
currentId: null,
confirmVisible: false,
confirmQuery: {},
};
},
methods: {
@ -349,25 +417,26 @@ export default {
this.filterQuery.relId = null;
},
confirmMsg(row) {
this.$prompt('请输入处理方式', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
}).then(({value}) => {
let params = {
id: row.id,
handleMsg: value
};
confirmMsg(params).then((res) => {
if (res.code === 20000) {
this.$message.success("已确认");
this.getList();
} else {
this.$message.error(res.message);
}
})
}).catch(() => {
});
this.confirmVisible = true;
this.confirmQuery = row;
},
postConfirm() {
confirmMsg(this.confirmQuery).then((res) => {
if (res.code === 20000) {
this.confirmVisible = false;
this.$message.success("已确认");
this.getList();
} else {
this.$message.error(res.message);
}
})
},
closeDialog() {
this.confirmVisible = false;
},
ignoreMsg(row) {
this.ignoreVisible = true;
this.currentId = row.id;

Loading…
Cancel
Save