中航光电热表web
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

941 lines
34 KiB

9 months ago
<template>
8 months ago
<basic-container>
<avue-crud :option="option" :table-loading="loading" :data="data" v-model:page="page" v-model="form" ref="crud"
@row-update="rowUpdate" @row-save="rowSave" @row-del="rowDel" @search-change="searchChange"
@search-reset="searchReset" @selection-change="selectionChange" @current-change="currentChange"
@size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad">
<template #menu-left>
<el-button type="primary" @click="batchSet()">批量填报</el-button>
<el-button type="primary" @click="checkFn()">审核</el-button>
<el-button type="primary" @click="getMedicineFn()">领药</el-button>
8 months ago
</template>
<template #menu="scope">
<el-button type="text" @click="handleView(scope.row, 'view')">详情</el-button>
<el-button type="text" @click="catchInfoFn(scope.row, 'add')"
8 months ago
v-show="scope.row.status == 1 || scope.row.status == 4">
异常
8 months ago
</el-button>
<!-- <el-button type="text" @click="handleView(scope.row, 'add')"
v-show="scope.row.status == 1 || scope.row.status == 4">
填报
</el-button> -->
<!-- <el-button type="text" v-show="scope.row.status == 3"
@click="handleView(scope.row, 'drug')">领药</el-button> -->
<!-- <el-button type="text" v-show="scope.row.status == 2"
@click="checkFn(scope.row, 'check')">审核</el-button> -->
8 months ago
<el-button type="text" v-show="scope.row.status == 0"
@click="receiveFn(scope.row, 'receive')">接收</el-button>
<!-- 组长可以转派 -->
7 months ago
<el-button type="text" v-show="scope.row.status == 0"
@click="batchTestFn(scope.row, 'receive')">转派</el-button>
8 months ago
<el-button type="text" v-show="scope.row.status == 3"
@click="revocationReview(scope.row, 'receive')">撤回</el-button>
7 months ago
8 months ago
</template>
<template #userId="{ row }">
{{ row.testMan.userName }}
</template>
<template #taskMethod="{ row }">
{{ row.taskMethodName }}
</template>
</avue-crud>
<!-- 填报 -->
8 months ago
<dispose-dialog v-if="showDialog" :dialog-type="dialogType" :show-dialog="showDialog" :row-id="rowId"
:row-obj="rowObj" @closeDialog="closeDialog"></dispose-dialog>
<!-- 批量填报 -->
8 months ago
<batchDialog v-if="batchDialog" @closeDialog="closeDialog" :show-dialog="batchDialog"></batchDialog>
<!-- 转派 -->
<dispatchTestDialog v-if="batchTestDialog" @closeDialog="closeDialog" :show-dialog="batchTestDialog"></dispatchTestDialog>
<!-- 审核 -->
<checkDialog v-if="checkResultOpen" @closeDialog="closeDialog" :show-dialog="checkResultOpen"></checkDialog>
<!-- 领药 -->
<getMedicineDialog v-if="getMedicineOpen" @closeDialog="closeDialog" :show-dialog="getMedicineOpen"></getMedicineDialog>
<!-- 异常 -->
<catchInfoDialog v-if="catchInfoOpen" @closeDialog="closeDialog" :show-dialog="catchInfoOpen"></catchInfoDialog>
8 months ago
</basic-container>
9 months ago
</template>
<script>
import disposeDialog from './components/disposeDialog.vue';
8 months ago
import batchDialog from './components/batchDialog.vue';
import dispatchTestDialog from './components/dispatchTestDialog.vue'
import checkDialog from './components/checkDialog.vue'
import getMedicineDialog from './components/getMedicineDialog.vue'
import catchInfoDialog from './components/catchInfoDialog.vue'
9 months ago
export default {
8 months ago
components: {
disposeDialog,
batchDialog,
dispatchTestDialog,
checkDialog,
getMedicineDialog,
catchInfoDialog
9 months ago
},
8 months ago
data() {
return {
data: [],
9 months ago
page: {
pageSize: 10,
currentPage: 1,
total: 0,
},
8 months ago
showDialog: false,
rowId: '',
rowObj: {},
issueDialog: false,
form: {},
formRules: {
userId: [{ required: true, message: '请选择检测员', trigger: 'blur' }],
9 months ago
},
8 months ago
query: {},
loading: true,
issueForm: {},
option: {
9 months ago
tip: false,
8 months ago
height: 'auto',
9 months ago
calcHeight: 32,
// simplePage: true,
9 months ago
searchShow: true,
7 months ago
searchMenuSpan: 12,
9 months ago
searchIcon: true,
searchIndex: 3,
9 months ago
columnSort: true,
9 months ago
tree: false,
border: true,
7 months ago
index: false,
8 months ago
selection: true,
9 months ago
viewBtn: false,
delBtn: false,
8 months ago
addBtn: false,
editBtn: false,
9 months ago
editBtnText: '修改',
8 months ago
viewBtnText: '详情',
addBtnIcon: ' ',
7 months ago
viewBtnIcon: ' ',
delBtnIcon: ' ',
editBtnIcon: ' ',
9 months ago
labelWidth: 120,
7 months ago
menuWidth: 160,
9 months ago
dialogWidth: 600,
dialogClickModal: false,
searchEnter: true,
filterBtn: true,
searchShowBtn: false,
excelBtn: true,
showOverflowTooltip: true,
8 months ago
align: 'center',
7 months ago
searchLabelPosition: 'left',
searchLabelPosition: 'left',
searchGutter: 24,
searchSpan: 6,
menuAlign: 'left',
gridBtn: false,
searchMenuPosition: 'right',
8 months ago
column: [
9 months ago
{
label: '任务编号',
prop: 'taskCode',
search: false,
sortable: true,
filter: true,
8 months ago
addDisplay: false,
editDisplay: false,
viewDisplay: false,
9 months ago
span: 24,
7 months ago
width: 140,
9 months ago
},
{
label: '作业中心',
prop: 'wcName',
sortable: true,
filter: true,
span: 24,
7 months ago
search: true,
width: 140,
type: 'select',
6 months ago
dicUrl: '/blade-desk/bsWorkCenter/getList',
props: {
label: 'wcName',
value: 'id',
},
7 months ago
9 months ago
},
{
label: '槽号',
prop: 'slotNo',
7 months ago
search: false,
9 months ago
sortable: true,
filter: true,
8 months ago
hide: true,
9 months ago
span: 24,
7 months ago
width: 140,
9 months ago
},
{
7 months ago
label: '分析项目',
9 months ago
prop: 'testEle',
8 months ago
type: 'textarea',
7 months ago
search: false,
9 months ago
sortable: true,
filter: true,
span: 24,
7 months ago
width: 140,
},
{
label: '药品名称',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 140,
},
{
label: '药品物料号',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 140,
},
{
label: '药品物料名称',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 140,
},
{
label: '规范上下限',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 140,
},
{
label: '目标上下限',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 140,
},
{
label: '目标值',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 140,
},
{
label: '添加值',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 140,
},
{
label: '测量值(单位)',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 140,
},
{
label: '是否合格',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 140,
},
{
label: '电导率测量值',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 140,
},
{
label: '实测温度',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 140,
},
{
label: '实测PH值',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 140,
},
{
label: '体积',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 140,
},
{
label: '需添加量(添加量单位)',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 220,
},
{
label: '实际添加量(添加量单位)',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 220,
9 months ago
},
7 months ago
{
label: '加药后理论值',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 180,
},
{
label: '复测测量值(单位)',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 220,
},
{
label: '复测电导率测量值',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 220,
},
{
label: '上次化验时间',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 140,
},
{
label: '槽液到期时间',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 140,
},
{
label: '槽液到期时间',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
width: 140,
},
9 months ago
{
label: '化验人',
prop: 'userId',
search: false,
sortable: true,
filter: true,
span: 24,
7 months ago
width: 140,
9 months ago
},
{
7 months ago
label: '主管工艺',
prop: 'statusName1',
search: false,
sortable: true,
filter: true,
span: 24,
width: 140,
},
{
9 months ago
label: '状态',
prop: 'statusName',
7 months ago
search: true,
sortable: true,
filter: true,
span: 24,
width: 140,
type: 'select',
searchLabelWidth: 60,
dicData: [
7 months ago
{
label: '待接收',
value: '1'
7 months ago
},
{
label: '待检测',
value: '2'
7 months ago
},
{
label: '待加药',
value: '2'
7 months ago
},
{
label: '待复测',
value: '2'
7 months ago
},
{
label: '已完成',
value: '2'
7 months ago
}
]
},
{
label: '对应班组',
prop: 'finishTime',
9 months ago
search: false,
sortable: true,
7 months ago
editDisplay: false,
9 months ago
filter: true,
7 months ago
addDisplay: false,
9 months ago
span: 24,
7 months ago
width: 140,
9 months ago
},
{
label: '任务下发时间',
7 months ago
prop: 'finishTime',
9 months ago
search: false,
sortable: true,
8 months ago
editDisplay: false,
9 months ago
filter: true,
8 months ago
addDisplay: false,
9 months ago
span: 24,
7 months ago
width: 140,
9 months ago
},
{
label: '任务完成时间',
prop: 'finishTime',
search: false,
sortable: true,
8 months ago
editDisplay: false,
9 months ago
filter: true,
8 months ago
addDisplay: false,
9 months ago
span: 24,
7 months ago
width: 140,
9 months ago
},
]
},
8 months ago
selectionList: [],
dialogType: '',
batchDialog: false,
batchTestDialog:false,
checkResultOpen:false,
getMedicineOpen:false,
catchInfoOpen:false,//异常
9 months ago
}
},
8 months ago
mounted() { },
methods: {
// 异常
catchInfoFn(){
this.catchInfoOpen = true
},
// 领药
getMedicineFn(){
this.getMedicineOpen = true
},
checkFn(){
this.checkResultOpen = true
},
// 转派
batchTestFn(){
this.batchTestDialog = true
},
8 months ago
batchSet() {
this.batchDialog = true
},
9 months ago
// 查看详情
8 months ago
handleView(row, type) {
9 months ago
this.dialogType = type
this.rowId = row.id
this.rowObj = row
this.showDialog = true
},
// 关闭弹窗
8 months ago
closeDialog() {
this.batchDialog = false
9 months ago
this.showDialog = false
this.batchTestDialog = false
this.checkResultOpen = false
this.getMedicineOpen = false
this.catchInfoOpen = false
9 months ago
},
// 多选
selectionChange(list) {
this.selectionList = list;
},
selectionClear() {
this.selectionList = [];
this.$refs.crud.toggleSelection();
},
rowUpdate(row, index, done, loading) {
8 months ago
9 months ago
},
rowSave(row, done, loading) {
8 months ago
9 months ago
},
// 批量下发
8 months ago
handleIssue() {
if (this.selectionList.length == 0) {
9 months ago
this.$message.error('请至少选择一条数据')
8 months ago
} else {
9 months ago
this.issueDialog = true
}
},
// 单个下发
8 months ago
issueRow(row) {
9 months ago
this.issueDialog = true
},
searchReset() {
this.query = {};
this.onLoad(this.page);
},
searchChange(params, done) {
this.query = params;
this.page.currentPage = 1;
this.onLoad(this.page, params);
done();
},
8 months ago
receiveFn(row, index, done) {
this.$confirm('确定接收任务吗?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
})
},
revocationReview() {
// this.$confirm('确认是否撤销审核通过的数据?', {
// confirmButtonText: '确定',
// cancelButtonText: '取消',
// type: 'warning',
// }).then(() => {
// })
this.$prompt('请输入原因', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
inputValidator: (value) => {//校验
if (!value) {
return '输入内容不能为空!'
}
}
}).then(({ value }) => {
this.$message({
type: 'success',
message: '撤回成功'
});
}).catch(() => {
this.$message({
type: 'info',
message: '取消输入'
});
});
},
reportFn() {
this.$confirm('是否下载检验报告?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
})
},
9 months ago
rowDel(row, index, done) {
this.$confirm('确定将选择数据删除?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning',
}).then(() => {
8 months ago
9 months ago
})
},
// 下发
8 months ago
submit() {
this.$refs.issueForm.validate(valid => {
if (valid) {
this.issueDialog = false
}
})
9 months ago
},
currentChange(currentPage) {
this.page.currentPage = currentPage;
},
sizeChange(pageSize) {
this.page.pageSize = pageSize;
},
refreshChange() {
this.onLoad(this.page, this.query);
},
8 months ago
onLoad() {
9 months ago
this.loading = true
this.data = [
8 months ago
{
id: '6',
taskCode: 'CYSYXXXXXXXXX',
slotNo: '#25', wcName: '化学镀镍作业中心', testEle: '氰化钠',
proContent: 32,
targetValue: 40,
targetLowerLimit: 4,
drugMatterCode: 'XXXX',
drugName: 'XXXX',
addPoints: 45,
drugMatterName: "XXXX",
targetUpperLimit: 45,
testMan: {
userId: '',
userName: '张三',
testEle: '张三'
}, taskMethod: 1, taskMethodName: '需求生成',
status: 0,
statusName: '待接收',
taskTime: '2025-01-22 12:23:35',
testTime: '2025-01-22',
needAdd: 444,
actualAdd: 444,
initialInspectionTime: '2025-01-23 11:12:23',
finishTime: '',
finishReason: '',
meterNum: 32,
condNum: 181,
auditResult: 1,
auditResultName: '审核通过',
auditOpinion: '审核通过',
auditUser: '张三',
auditTime: '2025-01-25 15:33:26',
drugBatch: '1002',
drugRecipient: '',
drugRecipientName: '张三',
drugTime: '2025-01-25 11:23:56',
meterNumTwo: 32,
condNumTwo: 32,
recheckUser: '李四',
recheckTime: '2025-01-26 11:23:23',
recheckSubmit: '2025-01-26 11:23:23'
},
{
id: '1',
taskCode: 'CYSYXXXXXXXXX',
slotNo: '#21', wcName: '化学镀镍作业中心', testEle: '氰化钠',
proContent: 32,
targetValue: 40,
targetLowerLimit: 4,
drugMatterCode: 'XXXX',
drugName: 'XXXX',
addPoints: 45,
drugMatterName: "XXXX",
targetUpperLimit: 45,
testMan: {
userId: '',
userName: '张三',
testEle: '张三'
}, taskMethod: 1, taskMethodName: '周期生成',
status: 1,
statusName: '待检测',
taskTime: '2025-01-22 12:23:35',
testTime: '2025-01-22',
needAdd: 444,
actualAdd: 444,
initialInspectionTime: '2025-01-23 11:12:23',
finishTime: '',
finishReason: '',
meterNum: 32,
condNum: 181,
auditResult: 1,
auditResultName: '审核通过',
auditOpinion: '审核通过',
auditUser: '张三',
auditTime: '2025-01-25 15:33:26',
drugBatch: '1002',
drugRecipient: '',
drugRecipientName: '张三',
drugTime: '2025-01-25 11:23:56',
meterNumTwo: 32,
condNumTwo: 32,
recheckUser: '李四',
recheckTime: '2025-01-26 11:23:23',
recheckSubmit: '2025-01-26 11:23:23'
9 months ago
},
8 months ago
{
id: '2',
taskCode: 'CYSYXXXXXXXXX',
slotNo: '#22', wcName: '化学镀镍作业中心', testEle: '氰化钠',
proContent: 32,
targetValue: 40,
targetLowerLimit: 4,
drugMatterCode: 'XXXX',
drugName: 'XXXX',
addPoints: 45,
drugMatterName: "XXXX",
targetUpperLimit: 45,
testMan: {
userId: '',
userName: '张三',
testEle: '张三'
}, taskMethod: 1, taskMethodName: '周期生成',
status: 4,
statusName: '待复检',
taskTime: '2025-01-22 12:23:35',
testTime: '2025-01-22',
needAdd: 444,
actualAdd: 444,
initialInspectionTime: '2025-01-23 11:12:23',
finishTime: '',
finishReason: '',
meterNum: 32,
condNum: 181,
auditResult: 1,
auditResultName: '审核通过',
auditOpinion: '审核通过',
auditUser: '张三',
auditTime: '2025-01-25 15:33:26',
drugBatch: '1002',
drugRecipient: '',
drugRecipientName: '张三',
drugTime: '2025-01-25 11:23:56',
meterNumTwo: 32,
condNumTwo: 32,
recheckUser: '李四',
recheckTime: '2025-01-26 11:23:23',
recheckSubmit: '2025-01-26 11:23:23'
9 months ago
},
8 months ago
{
id: '3',
taskCode: 'CYSYXXXXXXXXX',
slotNo: '#23', wcName: '化学镀镍作业中心', testEle: '氰化钠',
proContent: 32,
targetValue: 40,
targetLowerLimit: 4,
drugMatterCode: 'XXXX',
drugName: 'XXXX',
addPoints: 45,
drugMatterName: "XXXX",
targetUpperLimit: 45,
testMan: {
userId: '',
userName: '张三',
testEle: '张三'
}, taskMethod: 1, taskMethodName: '周期生成',
status: 5,
statusName: '已完成',
taskTime: '2025-01-22 12:23:35',
testTime: '2025-01-22',
needAdd: 444,
actualAdd: 444,
initialInspectionTime: '2025-01-23 11:12:23',
finishTime: '',
finishReason: '',
meterNum: 32,
condNum: 181,
auditResult: 1,
auditResultName: '审核通过',
auditOpinion: '审核通过',
auditUser: '张三',
auditTime: '2025-01-25 15:33:26',
drugBatch: '1002',
drugRecipient: '',
drugRecipientName: '张三',
drugTime: '2025-01-25 11:23:56',
meterNumTwo: 32,
condNumTwo: 32,
recheckUser: '李四',
recheckTime: '2025-01-26 11:23:23',
recheckSubmit: '2025-01-26 11:23:23'
},
{
id: '4',
taskCode: 'CYSYXXXXXXXXX',
slotNo: '#24', wcName: '化学镀镍作业中心', testEle: '氰化钠',
proContent: 32,
targetValue: 40,
targetLowerLimit: 4,
drugMatterCode: 'XXXX',
drugName: 'XXXX',
addPoints: 45,
drugMatterName: "XXXX",
targetUpperLimit: 45,
testMan: {
userId: '',
userName: '张三',
testEle: '张三'
}, taskMethod: 1, taskMethodName: '周期生成',
status: 3,
statusName: '待加药',
taskTime: '2025-01-22 12:23:35',
testTime: '2025-01-22',
needAdd: 444,
actualAdd: 444,
initialInspectionTime: '2025-01-23 11:12:23',
finishTime: '',
finishReason: '',
meterNum: 32,
condNum: 181,
auditResult: 1,
auditResultName: '审核通过',
auditOpinion: '审核通过',
auditUser: '张三',
auditTime: '2025-01-25 15:33:26',
drugBatch: '1002',
drugRecipient: '',
drugRecipientName: '张三',
drugTime: '2025-01-25 11:23:56',
meterNumTwo: 32,
condNumTwo: 32,
recheckUser: '李四',
recheckTime: '2025-01-26 11:23:23',
recheckSubmit: '2025-01-26 11:23:23'
9 months ago
},
8 months ago
{
id: '5',
taskCode: 'CYSYXXXXXXXXX',
slotNo: '#25', wcName: '化学镀镍作业中心', testEle: '氰化钠',
proContent: 32,
targetValue: 40,
targetLowerLimit: 4,
drugMatterCode: 'XXXX',
drugName: 'XXXX',
addPoints: 45,
drugMatterName: "XXXX",
targetUpperLimit: 45,
testMan: {
userId: '',
userName: '张三',
testEle: '张三'
}, taskMethod: 1, taskMethodName: '需求生成',
status: 2,
statusName: '加药量待审核',
taskTime: '2025-01-22 12:23:35',
testTime: '2025-01-22',
needAdd: 444,
actualAdd: 444,
initialInspectionTime: '2025-01-23 11:12:23',
finishTime: '',
finishReason: '',
meterNum: 32,
condNum: 181,
auditResult: 1,
auditResultName: '审核通过',
auditOpinion: '审核通过',
auditUser: '张三',
auditTime: '2025-01-25 15:33:26',
drugBatch: '1002',
drugRecipient: '',
drugRecipientName: '张三',
drugTime: '2025-01-25 11:23:56',
meterNumTwo: 32,
condNumTwo: 32,
recheckUser: '李四',
recheckTime: '2025-01-26 11:23:23',
recheckSubmit: '2025-01-26 11:23:23'
9 months ago
},
8 months ago
{
id: '6',
taskCode: 'CYSYXXXXXXXXX',
slotNo: '#25', wcName: '化学镀镍作业中心', testEle: '氰化钠',
proContent: 32,
targetValue: 40,
targetLowerLimit: 4,
drugMatterCode: 'XXXX',
drugName: 'XXXX',
addPoints: 45,
drugMatterName: "XXXX",
targetUpperLimit: 45,
testMan: {
userId: '',
userName: '张三',
testEle: '张三'
}, taskMethod: 1, taskMethodName: '需求生成',
status: 6,
statusName: '加药量待审核',
taskTime: '2025-01-22 12:23:35',
testTime: '2025-01-22',
needAdd: 444,
actualAdd: 444,
initialInspectionTime: '2025-01-23 11:12:23',
finishTime: '',
finishReason: '',
meterNum: 32,
condNum: 181,
auditResult: 1,
auditResultName: '审核通过',
auditOpinion: '审核通过',
auditUser: '张三',
auditTime: '2025-01-25 15:33:26',
drugBatch: '1002',
drugRecipient: '',
drugRecipientName: '张三',
drugTime: '2025-01-25 11:23:56',
meterNumTwo: 32,
condNumTwo: 32,
recheckUser: '李四',
recheckTime: '2025-01-26 11:23:23',
recheckSubmit: '2025-01-26 11:23:23'
9 months ago
},
8 months ago
9 months ago
]
this.page.total = this.data.length
this.loading = false
8 months ago
setTimeout(() => {
9 months ago
this.selectionClear();
8 months ago
}, 500)
9 months ago
}
}
}
</script>
8 months ago
<style></style>