diff --git a/src/components.d.ts b/src/components.d.ts index 90f2dde..9cf2b29 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -28,6 +28,7 @@ CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] + DeptSelectByName: typeof import('./components/DeptSelectByName/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] DetailBlockSwitch: typeof import('./components/DetailPage/DetailBlockSwitch.vue')['default'] DetailPage: typeof import('./components/DetailPage/index.vue')['default'] diff --git a/src/components.d.ts b/src/components.d.ts index 90f2dde..9cf2b29 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -28,6 +28,7 @@ CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] + DeptSelectByName: typeof import('./components/DeptSelectByName/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] DetailBlockSwitch: typeof import('./components/DetailPage/DetailBlockSwitch.vue')['default'] DetailPage: typeof import('./components/DetailPage/index.vue')['default'] diff --git a/src/views/business/board/standardReminder/list.vue b/src/views/business/board/standardReminder/list.vue index 85efbb1..fd60743 100644 --- a/src/views/business/board/standardReminder/list.vue +++ b/src/views/business/board/standardReminder/list.vue @@ -94,12 +94,33 @@ const preparation = ref('') // 到期开始以及结束 const validTime = ref('') +watch(preparation, (val) => { + if (val) { + listQuery.value.preparationStartDate = `${val[0]}` + listQuery.value.preparationEndDate = `${val[1]}` + } + else { + listQuery.value.preparationStartDate = '' + listQuery.value.preparationEndDate = '' + } +}) +// 有效日期变更 +watch(validTime, (val) => { + if (val) { + listQuery.value.validStartTime = `${val[0]}` + listQuery.value.validEndTime = `${val[1]}` + } + else { + listQuery.value.validStartTime = '' + listQuery.value.validEndTime = '' + } +}) // 获取数据 const fetchData = (isNowPage: boolean) => { - listQuery.value.preparationStartDate = preparation.value[0] || '' - listQuery.value.preparationEndDate = preparation.value[1] || '' - listQuery.value.validStartTime = validTime.value[0] || '' - listQuery.value.validEndTime = validTime.value[1] || '' + // listQuery.value.preparationStartDate = preparation.value[0] || '' + // listQuery.value.preparationEndDate = preparation.value[1] || '' + // listQuery.value.validStartTime = validTime.value[0] || '' + // listQuery.value.validEndTime = validTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 @@ -223,16 +244,16 @@ }) if (list.value.length > 0) { const params = { - category: '', // 类别 - id: '', // 主键id - managerState: '', // 管理状态 - preparationEndDate: '', // 结束时间 - preparationStartDate: '', // 开始时间 - standardLaboratory: '', // 标准所在部门 - standardName: '', // 标准名称 - standardNo: '', // 标准编号 - validEndTime: '', // 结束时间 - validStartTime: '', // 开始时间 + category: listQuery.value.category, // 类别 + id: listQuery.value.id, // 主键id + managerState: listQuery.value.managerState, // 管理状态 + preparationEndDate: listQuery.value.preparationEndDate, // 结束时间 + preparationStartDate: listQuery.value.preparationStartDate, // 开始时间 + standardLaboratory: listQuery.value.standardLaboratory, // 标准所在部门 + standardName: listQuery.value.standardName, // 标准名称 + standardNo: listQuery.value.standardNo, // 标准编号 + validEndTime: listQuery.value.validEndTime, // 结束时间 + validStartTime: listQuery.value.validStartTime, // 开始时间 offset: 1, // 当前页 limit: 20, // 每页多少条 ids: checkoutList.value, diff --git a/src/components.d.ts b/src/components.d.ts index 90f2dde..9cf2b29 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -28,6 +28,7 @@ CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] + DeptSelectByName: typeof import('./components/DeptSelectByName/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] DetailBlockSwitch: typeof import('./components/DetailPage/DetailBlockSwitch.vue')['default'] DetailPage: typeof import('./components/DetailPage/index.vue')['default'] diff --git a/src/views/business/board/standardReminder/list.vue b/src/views/business/board/standardReminder/list.vue index 85efbb1..fd60743 100644 --- a/src/views/business/board/standardReminder/list.vue +++ b/src/views/business/board/standardReminder/list.vue @@ -94,12 +94,33 @@ const preparation = ref('') // 到期开始以及结束 const validTime = ref('') +watch(preparation, (val) => { + if (val) { + listQuery.value.preparationStartDate = `${val[0]}` + listQuery.value.preparationEndDate = `${val[1]}` + } + else { + listQuery.value.preparationStartDate = '' + listQuery.value.preparationEndDate = '' + } +}) +// 有效日期变更 +watch(validTime, (val) => { + if (val) { + listQuery.value.validStartTime = `${val[0]}` + listQuery.value.validEndTime = `${val[1]}` + } + else { + listQuery.value.validStartTime = '' + listQuery.value.validEndTime = '' + } +}) // 获取数据 const fetchData = (isNowPage: boolean) => { - listQuery.value.preparationStartDate = preparation.value[0] || '' - listQuery.value.preparationEndDate = preparation.value[1] || '' - listQuery.value.validStartTime = validTime.value[0] || '' - listQuery.value.validEndTime = validTime.value[1] || '' + // listQuery.value.preparationStartDate = preparation.value[0] || '' + // listQuery.value.preparationEndDate = preparation.value[1] || '' + // listQuery.value.validStartTime = validTime.value[0] || '' + // listQuery.value.validEndTime = validTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 @@ -223,16 +244,16 @@ }) if (list.value.length > 0) { const params = { - category: '', // 类别 - id: '', // 主键id - managerState: '', // 管理状态 - preparationEndDate: '', // 结束时间 - preparationStartDate: '', // 开始时间 - standardLaboratory: '', // 标准所在部门 - standardName: '', // 标准名称 - standardNo: '', // 标准编号 - validEndTime: '', // 结束时间 - validStartTime: '', // 开始时间 + category: listQuery.value.category, // 类别 + id: listQuery.value.id, // 主键id + managerState: listQuery.value.managerState, // 管理状态 + preparationEndDate: listQuery.value.preparationEndDate, // 结束时间 + preparationStartDate: listQuery.value.preparationStartDate, // 开始时间 + standardLaboratory: listQuery.value.standardLaboratory, // 标准所在部门 + standardName: listQuery.value.standardName, // 标准名称 + standardNo: listQuery.value.standardNo, // 标准编号 + validEndTime: listQuery.value.validEndTime, // 结束时间 + validStartTime: listQuery.value.validStartTime, // 开始时间 offset: 1, // 当前页 limit: 20, // 每页多少条 ids: checkoutList.value, diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue index 8666957..37ac73f 100644 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue @@ -137,7 +137,7 @@ // 点击分发, 弹窗 const distributeDialogRef = ref() const handleDistribute = (row: ITaskList) => { - distributeDialogRef.value.initDialog(row.id, row.sampleId, row.orderId) + distributeDialogRef.value.initDialog(row.orderId, row.sampleId, row.sampleStatus) } // 点击标签绑定 const barCodeBind = ref() diff --git a/src/components.d.ts b/src/components.d.ts index 90f2dde..9cf2b29 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -28,6 +28,7 @@ CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] + DeptSelectByName: typeof import('./components/DeptSelectByName/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] DetailBlockSwitch: typeof import('./components/DetailPage/DetailBlockSwitch.vue')['default'] DetailPage: typeof import('./components/DetailPage/index.vue')['default'] diff --git a/src/views/business/board/standardReminder/list.vue b/src/views/business/board/standardReminder/list.vue index 85efbb1..fd60743 100644 --- a/src/views/business/board/standardReminder/list.vue +++ b/src/views/business/board/standardReminder/list.vue @@ -94,12 +94,33 @@ const preparation = ref('') // 到期开始以及结束 const validTime = ref('') +watch(preparation, (val) => { + if (val) { + listQuery.value.preparationStartDate = `${val[0]}` + listQuery.value.preparationEndDate = `${val[1]}` + } + else { + listQuery.value.preparationStartDate = '' + listQuery.value.preparationEndDate = '' + } +}) +// 有效日期变更 +watch(validTime, (val) => { + if (val) { + listQuery.value.validStartTime = `${val[0]}` + listQuery.value.validEndTime = `${val[1]}` + } + else { + listQuery.value.validStartTime = '' + listQuery.value.validEndTime = '' + } +}) // 获取数据 const fetchData = (isNowPage: boolean) => { - listQuery.value.preparationStartDate = preparation.value[0] || '' - listQuery.value.preparationEndDate = preparation.value[1] || '' - listQuery.value.validStartTime = validTime.value[0] || '' - listQuery.value.validEndTime = validTime.value[1] || '' + // listQuery.value.preparationStartDate = preparation.value[0] || '' + // listQuery.value.preparationEndDate = preparation.value[1] || '' + // listQuery.value.validStartTime = validTime.value[0] || '' + // listQuery.value.validEndTime = validTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 @@ -223,16 +244,16 @@ }) if (list.value.length > 0) { const params = { - category: '', // 类别 - id: '', // 主键id - managerState: '', // 管理状态 - preparationEndDate: '', // 结束时间 - preparationStartDate: '', // 开始时间 - standardLaboratory: '', // 标准所在部门 - standardName: '', // 标准名称 - standardNo: '', // 标准编号 - validEndTime: '', // 结束时间 - validStartTime: '', // 开始时间 + category: listQuery.value.category, // 类别 + id: listQuery.value.id, // 主键id + managerState: listQuery.value.managerState, // 管理状态 + preparationEndDate: listQuery.value.preparationEndDate, // 结束时间 + preparationStartDate: listQuery.value.preparationStartDate, // 开始时间 + standardLaboratory: listQuery.value.standardLaboratory, // 标准所在部门 + standardName: listQuery.value.standardName, // 标准名称 + standardNo: listQuery.value.standardNo, // 标准编号 + validEndTime: listQuery.value.validEndTime, // 结束时间 + validStartTime: listQuery.value.validStartTime, // 开始时间 offset: 1, // 当前页 limit: 20, // 每页多少条 ids: checkoutList.value, diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue index 8666957..37ac73f 100644 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue @@ -137,7 +137,7 @@ // 点击分发, 弹窗 const distributeDialogRef = ref() const handleDistribute = (row: ITaskList) => { - distributeDialogRef.value.initDialog(row.id, row.sampleId, row.orderId) + distributeDialogRef.value.initDialog(row.orderId, row.sampleId, row.sampleStatus) } // 点击标签绑定 const barCodeBind = ref() diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue index 807ea30..4e4eb46 100644 --- a/src/views/business/lab/environmental/environmentalList.vue +++ b/src/views/business/lab/environmental/environmentalList.vue @@ -37,11 +37,21 @@ { text: '输出电压(V)', value: 'outputVoltage', align: 'center' }, { text: '零地电压(V)', value: 'zeroGroundVoltage', align: 'center' }, ]) - +// 时间变更 +watch(trainTime, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 查询列表 const fetchData = (isNowPage: boolean) => { - listQuery.value.startTime = trainTime.value[0] || '' - listQuery.value.endTime = trainTime.value[1] || '' + // listQuery.value.startTime = trainTime.value[0] || '' + // listQuery.value.endTime = trainTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 diff --git a/src/components.d.ts b/src/components.d.ts index 90f2dde..9cf2b29 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -28,6 +28,7 @@ CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] + DeptSelectByName: typeof import('./components/DeptSelectByName/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] DetailBlockSwitch: typeof import('./components/DetailPage/DetailBlockSwitch.vue')['default'] DetailPage: typeof import('./components/DetailPage/index.vue')['default'] diff --git a/src/views/business/board/standardReminder/list.vue b/src/views/business/board/standardReminder/list.vue index 85efbb1..fd60743 100644 --- a/src/views/business/board/standardReminder/list.vue +++ b/src/views/business/board/standardReminder/list.vue @@ -94,12 +94,33 @@ const preparation = ref('') // 到期开始以及结束 const validTime = ref('') +watch(preparation, (val) => { + if (val) { + listQuery.value.preparationStartDate = `${val[0]}` + listQuery.value.preparationEndDate = `${val[1]}` + } + else { + listQuery.value.preparationStartDate = '' + listQuery.value.preparationEndDate = '' + } +}) +// 有效日期变更 +watch(validTime, (val) => { + if (val) { + listQuery.value.validStartTime = `${val[0]}` + listQuery.value.validEndTime = `${val[1]}` + } + else { + listQuery.value.validStartTime = '' + listQuery.value.validEndTime = '' + } +}) // 获取数据 const fetchData = (isNowPage: boolean) => { - listQuery.value.preparationStartDate = preparation.value[0] || '' - listQuery.value.preparationEndDate = preparation.value[1] || '' - listQuery.value.validStartTime = validTime.value[0] || '' - listQuery.value.validEndTime = validTime.value[1] || '' + // listQuery.value.preparationStartDate = preparation.value[0] || '' + // listQuery.value.preparationEndDate = preparation.value[1] || '' + // listQuery.value.validStartTime = validTime.value[0] || '' + // listQuery.value.validEndTime = validTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 @@ -223,16 +244,16 @@ }) if (list.value.length > 0) { const params = { - category: '', // 类别 - id: '', // 主键id - managerState: '', // 管理状态 - preparationEndDate: '', // 结束时间 - preparationStartDate: '', // 开始时间 - standardLaboratory: '', // 标准所在部门 - standardName: '', // 标准名称 - standardNo: '', // 标准编号 - validEndTime: '', // 结束时间 - validStartTime: '', // 开始时间 + category: listQuery.value.category, // 类别 + id: listQuery.value.id, // 主键id + managerState: listQuery.value.managerState, // 管理状态 + preparationEndDate: listQuery.value.preparationEndDate, // 结束时间 + preparationStartDate: listQuery.value.preparationStartDate, // 开始时间 + standardLaboratory: listQuery.value.standardLaboratory, // 标准所在部门 + standardName: listQuery.value.standardName, // 标准名称 + standardNo: listQuery.value.standardNo, // 标准编号 + validEndTime: listQuery.value.validEndTime, // 结束时间 + validStartTime: listQuery.value.validStartTime, // 开始时间 offset: 1, // 当前页 limit: 20, // 每页多少条 ids: checkoutList.value, diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue index 8666957..37ac73f 100644 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue @@ -137,7 +137,7 @@ // 点击分发, 弹窗 const distributeDialogRef = ref() const handleDistribute = (row: ITaskList) => { - distributeDialogRef.value.initDialog(row.id, row.sampleId, row.orderId) + distributeDialogRef.value.initDialog(row.orderId, row.sampleId, row.sampleStatus) } // 点击标签绑定 const barCodeBind = ref() diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue index 807ea30..4e4eb46 100644 --- a/src/views/business/lab/environmental/environmentalList.vue +++ b/src/views/business/lab/environmental/environmentalList.vue @@ -37,11 +37,21 @@ { text: '输出电压(V)', value: 'outputVoltage', align: 'center' }, { text: '零地电压(V)', value: 'zeroGroundVoltage', align: 'center' }, ]) - +// 时间变更 +watch(trainTime, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 查询列表 const fetchData = (isNowPage: boolean) => { - listQuery.value.startTime = trainTime.value[0] || '' - listQuery.value.endTime = trainTime.value[1] || '' + // listQuery.value.startTime = trainTime.value[0] || '' + // listQuery.value.endTime = trainTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue index 2f7c1d0..bccde84 100644 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ b/src/views/business/schedule/interchange/interchangeList.vue @@ -139,7 +139,17 @@ id: '2', // 后端规定已收入传2 }) } - +// 时间变更 +watch(timeRange, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 数据查询 function fetchData(isNowPage = false) { loadingTable.value = true @@ -147,8 +157,8 @@ // 是否显示当前页,否则跳转第一页 listQuery.value.offset = 1 } - listQuery.value.startTime = timeRange.value[0] as string || '' - listQuery.value.endTime = timeRange.value[1] as string || '' + // listQuery.value.startTime = timeRange.value[0] as string || '' + // listQuery.value.endTime = timeRange.value[1] as string || '' listQuery.value.sampleStatus = active.value getInterChangeList(listQuery.value).then((response) => { list.value = response.data.rows.map((item: IinterchangeList) => { @@ -280,7 +290,7 @@ else if (type === 'delete') { // 无需检测 interchangeStatusChange({ orderId: row.orderId, reason: '', sampleId: row.sampleId, status: '7' }).then((res) => { if (res.code === 200) { - ElMessage.success(`已${title}`) + ElMessage.success('操作成功') fetchData(true) } }) diff --git a/src/components.d.ts b/src/components.d.ts index 90f2dde..9cf2b29 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -28,6 +28,7 @@ CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] + DeptSelectByName: typeof import('./components/DeptSelectByName/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] DetailBlockSwitch: typeof import('./components/DetailPage/DetailBlockSwitch.vue')['default'] DetailPage: typeof import('./components/DetailPage/index.vue')['default'] diff --git a/src/views/business/board/standardReminder/list.vue b/src/views/business/board/standardReminder/list.vue index 85efbb1..fd60743 100644 --- a/src/views/business/board/standardReminder/list.vue +++ b/src/views/business/board/standardReminder/list.vue @@ -94,12 +94,33 @@ const preparation = ref('') // 到期开始以及结束 const validTime = ref('') +watch(preparation, (val) => { + if (val) { + listQuery.value.preparationStartDate = `${val[0]}` + listQuery.value.preparationEndDate = `${val[1]}` + } + else { + listQuery.value.preparationStartDate = '' + listQuery.value.preparationEndDate = '' + } +}) +// 有效日期变更 +watch(validTime, (val) => { + if (val) { + listQuery.value.validStartTime = `${val[0]}` + listQuery.value.validEndTime = `${val[1]}` + } + else { + listQuery.value.validStartTime = '' + listQuery.value.validEndTime = '' + } +}) // 获取数据 const fetchData = (isNowPage: boolean) => { - listQuery.value.preparationStartDate = preparation.value[0] || '' - listQuery.value.preparationEndDate = preparation.value[1] || '' - listQuery.value.validStartTime = validTime.value[0] || '' - listQuery.value.validEndTime = validTime.value[1] || '' + // listQuery.value.preparationStartDate = preparation.value[0] || '' + // listQuery.value.preparationEndDate = preparation.value[1] || '' + // listQuery.value.validStartTime = validTime.value[0] || '' + // listQuery.value.validEndTime = validTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 @@ -223,16 +244,16 @@ }) if (list.value.length > 0) { const params = { - category: '', // 类别 - id: '', // 主键id - managerState: '', // 管理状态 - preparationEndDate: '', // 结束时间 - preparationStartDate: '', // 开始时间 - standardLaboratory: '', // 标准所在部门 - standardName: '', // 标准名称 - standardNo: '', // 标准编号 - validEndTime: '', // 结束时间 - validStartTime: '', // 开始时间 + category: listQuery.value.category, // 类别 + id: listQuery.value.id, // 主键id + managerState: listQuery.value.managerState, // 管理状态 + preparationEndDate: listQuery.value.preparationEndDate, // 结束时间 + preparationStartDate: listQuery.value.preparationStartDate, // 开始时间 + standardLaboratory: listQuery.value.standardLaboratory, // 标准所在部门 + standardName: listQuery.value.standardName, // 标准名称 + standardNo: listQuery.value.standardNo, // 标准编号 + validEndTime: listQuery.value.validEndTime, // 结束时间 + validStartTime: listQuery.value.validStartTime, // 开始时间 offset: 1, // 当前页 limit: 20, // 每页多少条 ids: checkoutList.value, diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue index 8666957..37ac73f 100644 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue @@ -137,7 +137,7 @@ // 点击分发, 弹窗 const distributeDialogRef = ref() const handleDistribute = (row: ITaskList) => { - distributeDialogRef.value.initDialog(row.id, row.sampleId, row.orderId) + distributeDialogRef.value.initDialog(row.orderId, row.sampleId, row.sampleStatus) } // 点击标签绑定 const barCodeBind = ref() diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue index 807ea30..4e4eb46 100644 --- a/src/views/business/lab/environmental/environmentalList.vue +++ b/src/views/business/lab/environmental/environmentalList.vue @@ -37,11 +37,21 @@ { text: '输出电压(V)', value: 'outputVoltage', align: 'center' }, { text: '零地电压(V)', value: 'zeroGroundVoltage', align: 'center' }, ]) - +// 时间变更 +watch(trainTime, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 查询列表 const fetchData = (isNowPage: boolean) => { - listQuery.value.startTime = trainTime.value[0] || '' - listQuery.value.endTime = trainTime.value[1] || '' + // listQuery.value.startTime = trainTime.value[0] || '' + // listQuery.value.endTime = trainTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue index 2f7c1d0..bccde84 100644 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ b/src/views/business/schedule/interchange/interchangeList.vue @@ -139,7 +139,17 @@ id: '2', // 后端规定已收入传2 }) } - +// 时间变更 +watch(timeRange, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 数据查询 function fetchData(isNowPage = false) { loadingTable.value = true @@ -147,8 +157,8 @@ // 是否显示当前页,否则跳转第一页 listQuery.value.offset = 1 } - listQuery.value.startTime = timeRange.value[0] as string || '' - listQuery.value.endTime = timeRange.value[1] as string || '' + // listQuery.value.startTime = timeRange.value[0] as string || '' + // listQuery.value.endTime = timeRange.value[1] as string || '' listQuery.value.sampleStatus = active.value getInterChangeList(listQuery.value).then((response) => { list.value = response.data.rows.map((item: IinterchangeList) => { @@ -280,7 +290,7 @@ else if (type === 'delete') { // 无需检测 interchangeStatusChange({ orderId: row.orderId, reason: '', sampleId: row.sampleId, status: '7' }).then((res) => { if (res.code === 200) { - ElMessage.success(`已${title}`) + ElMessage.success('操作成功') fetchData(true) } }) diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue index 275a053..83d93f4 100644 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ b/src/views/business/schedule/interchangeReceipt/receiptList.vue @@ -42,7 +42,17 @@ const loadingTable = ref(false) // 选中的内容 const checkoutList = ref([]) - +// 时间变更 +watch(timeRange, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 数据查询 function fetchData(isNowPage = false) { loadingTable.value = true @@ -50,8 +60,8 @@ // 是否显示当前页,否则跳转第一页 listQuery.value.offset = 1 } - listQuery.value.startTime = timeRange.value[0] as string || '' - listQuery.value.endTime = timeRange.value[1] as string || '' + // listQuery.value.startTime = timeRange.value[0] as string || '' + // listQuery.value.endTime = timeRange.value[1] as string || '' getReceiptList(listQuery.value).then((response) => { list.value = response.data.rows total.value = parseInt(response.data.total) @@ -124,13 +134,13 @@ }) if (list.value.length > 0) { const params = { - interchangeCode: '', // 交接单编号 - customerNo: '', // 委托方代码 - customerName: '', // 委托方名称 - reciever: '', // 接收人 - deliverer: '', // 送样人 - startTime: '', // 交接开始时间 - endTime: '', // 交接结束时间 + interchangeCode: listQuery.value.interchangeCode, // 交接单编号 + customerNo: listQuery.value.customerNo, // 委托方代码 + customerName: listQuery.value.customerName, // 委托方名称 + reciever: listQuery.value.reciever, // 接收人 + deliverer: listQuery.value.deliverer, // 送样人 + startTime: listQuery.value.startTime, // 交接开始时间 + endTime: listQuery.value.endTime, // 交接结束时间 offset: 1, limit: 20, ids: checkoutList.value, diff --git a/src/components.d.ts b/src/components.d.ts index 90f2dde..9cf2b29 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -28,6 +28,7 @@ CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] + DeptSelectByName: typeof import('./components/DeptSelectByName/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] DetailBlockSwitch: typeof import('./components/DetailPage/DetailBlockSwitch.vue')['default'] DetailPage: typeof import('./components/DetailPage/index.vue')['default'] diff --git a/src/views/business/board/standardReminder/list.vue b/src/views/business/board/standardReminder/list.vue index 85efbb1..fd60743 100644 --- a/src/views/business/board/standardReminder/list.vue +++ b/src/views/business/board/standardReminder/list.vue @@ -94,12 +94,33 @@ const preparation = ref('') // 到期开始以及结束 const validTime = ref('') +watch(preparation, (val) => { + if (val) { + listQuery.value.preparationStartDate = `${val[0]}` + listQuery.value.preparationEndDate = `${val[1]}` + } + else { + listQuery.value.preparationStartDate = '' + listQuery.value.preparationEndDate = '' + } +}) +// 有效日期变更 +watch(validTime, (val) => { + if (val) { + listQuery.value.validStartTime = `${val[0]}` + listQuery.value.validEndTime = `${val[1]}` + } + else { + listQuery.value.validStartTime = '' + listQuery.value.validEndTime = '' + } +}) // 获取数据 const fetchData = (isNowPage: boolean) => { - listQuery.value.preparationStartDate = preparation.value[0] || '' - listQuery.value.preparationEndDate = preparation.value[1] || '' - listQuery.value.validStartTime = validTime.value[0] || '' - listQuery.value.validEndTime = validTime.value[1] || '' + // listQuery.value.preparationStartDate = preparation.value[0] || '' + // listQuery.value.preparationEndDate = preparation.value[1] || '' + // listQuery.value.validStartTime = validTime.value[0] || '' + // listQuery.value.validEndTime = validTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 @@ -223,16 +244,16 @@ }) if (list.value.length > 0) { const params = { - category: '', // 类别 - id: '', // 主键id - managerState: '', // 管理状态 - preparationEndDate: '', // 结束时间 - preparationStartDate: '', // 开始时间 - standardLaboratory: '', // 标准所在部门 - standardName: '', // 标准名称 - standardNo: '', // 标准编号 - validEndTime: '', // 结束时间 - validStartTime: '', // 开始时间 + category: listQuery.value.category, // 类别 + id: listQuery.value.id, // 主键id + managerState: listQuery.value.managerState, // 管理状态 + preparationEndDate: listQuery.value.preparationEndDate, // 结束时间 + preparationStartDate: listQuery.value.preparationStartDate, // 开始时间 + standardLaboratory: listQuery.value.standardLaboratory, // 标准所在部门 + standardName: listQuery.value.standardName, // 标准名称 + standardNo: listQuery.value.standardNo, // 标准编号 + validEndTime: listQuery.value.validEndTime, // 结束时间 + validStartTime: listQuery.value.validStartTime, // 开始时间 offset: 1, // 当前页 limit: 20, // 每页多少条 ids: checkoutList.value, diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue index 8666957..37ac73f 100644 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue @@ -137,7 +137,7 @@ // 点击分发, 弹窗 const distributeDialogRef = ref() const handleDistribute = (row: ITaskList) => { - distributeDialogRef.value.initDialog(row.id, row.sampleId, row.orderId) + distributeDialogRef.value.initDialog(row.orderId, row.sampleId, row.sampleStatus) } // 点击标签绑定 const barCodeBind = ref() diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue index 807ea30..4e4eb46 100644 --- a/src/views/business/lab/environmental/environmentalList.vue +++ b/src/views/business/lab/environmental/environmentalList.vue @@ -37,11 +37,21 @@ { text: '输出电压(V)', value: 'outputVoltage', align: 'center' }, { text: '零地电压(V)', value: 'zeroGroundVoltage', align: 'center' }, ]) - +// 时间变更 +watch(trainTime, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 查询列表 const fetchData = (isNowPage: boolean) => { - listQuery.value.startTime = trainTime.value[0] || '' - listQuery.value.endTime = trainTime.value[1] || '' + // listQuery.value.startTime = trainTime.value[0] || '' + // listQuery.value.endTime = trainTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue index 2f7c1d0..bccde84 100644 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ b/src/views/business/schedule/interchange/interchangeList.vue @@ -139,7 +139,17 @@ id: '2', // 后端规定已收入传2 }) } - +// 时间变更 +watch(timeRange, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 数据查询 function fetchData(isNowPage = false) { loadingTable.value = true @@ -147,8 +157,8 @@ // 是否显示当前页,否则跳转第一页 listQuery.value.offset = 1 } - listQuery.value.startTime = timeRange.value[0] as string || '' - listQuery.value.endTime = timeRange.value[1] as string || '' + // listQuery.value.startTime = timeRange.value[0] as string || '' + // listQuery.value.endTime = timeRange.value[1] as string || '' listQuery.value.sampleStatus = active.value getInterChangeList(listQuery.value).then((response) => { list.value = response.data.rows.map((item: IinterchangeList) => { @@ -280,7 +290,7 @@ else if (type === 'delete') { // 无需检测 interchangeStatusChange({ orderId: row.orderId, reason: '', sampleId: row.sampleId, status: '7' }).then((res) => { if (res.code === 200) { - ElMessage.success(`已${title}`) + ElMessage.success('操作成功') fetchData(true) } }) diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue index 275a053..83d93f4 100644 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ b/src/views/business/schedule/interchangeReceipt/receiptList.vue @@ -42,7 +42,17 @@ const loadingTable = ref(false) // 选中的内容 const checkoutList = ref([]) - +// 时间变更 +watch(timeRange, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 数据查询 function fetchData(isNowPage = false) { loadingTable.value = true @@ -50,8 +60,8 @@ // 是否显示当前页,否则跳转第一页 listQuery.value.offset = 1 } - listQuery.value.startTime = timeRange.value[0] as string || '' - listQuery.value.endTime = timeRange.value[1] as string || '' + // listQuery.value.startTime = timeRange.value[0] as string || '' + // listQuery.value.endTime = timeRange.value[1] as string || '' getReceiptList(listQuery.value).then((response) => { list.value = response.data.rows total.value = parseInt(response.data.total) @@ -124,13 +134,13 @@ }) if (list.value.length > 0) { const params = { - interchangeCode: '', // 交接单编号 - customerNo: '', // 委托方代码 - customerName: '', // 委托方名称 - reciever: '', // 接收人 - deliverer: '', // 送样人 - startTime: '', // 交接开始时间 - endTime: '', // 交接结束时间 + interchangeCode: listQuery.value.interchangeCode, // 交接单编号 + customerNo: listQuery.value.customerNo, // 委托方代码 + customerName: listQuery.value.customerName, // 委托方名称 + reciever: listQuery.value.reciever, // 接收人 + deliverer: listQuery.value.deliverer, // 送样人 + startTime: listQuery.value.startTime, // 交接开始时间 + endTime: listQuery.value.endTime, // 交接结束时间 offset: 1, limit: 20, ids: checkoutList.value, diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue index cf0b532..f2fc852 100644 --- a/src/views/business/schedule/order/orderList.vue +++ b/src/views/business/schedule/order/orderList.vue @@ -26,8 +26,8 @@ customerNo: '', // 委托方代码 customerName: '', // 委托方名称 deliverer: '', // 送样人 - isUrgent: 2, // 是否加急 2全部 1是 0否 - status: 0, // 接收状态 + isUrgent: '', // 是否加急 2全部 1是 0否 + status: '', // 接收状态 offset: 1, limit: 20, }) @@ -70,11 +70,11 @@ } }) // 在已有的字典的基础上增加一个全部0进去 - isUrgentMap.value.unshift({ - id: '', - name: '全部', - value: 2, // 是否加急全部后端定为2 - }) + // isUrgentMap.value.unshift({ + // id: '', + // name: '全部', + // value: 2, // 是否加急全部后端定为2 + // }) }) // 接收状态 getDictByCode('orderStatus').then((response) => { @@ -85,11 +85,11 @@ } }) // 在已有的字典的基础上增加一个全部0进去 - statusMap.value.unshift({ - id: '', - name: '全部', - value: 0, - }) + // statusMap.value.unshift({ + // id: '', + // name: '全部', + // value: 0, + // }) console.log(statusMap.value) }) } @@ -125,8 +125,8 @@ customerNo: '', // 委托方代码 customerName: '', // 委托方名称 deliverer: '', // 送样人 - isUrgent: 2, // 是否加急 - status: 0, // 接收状态 + isUrgent: '', // 是否加急 2全部 1是 0否 + status: '', // 接收状态 offset: 1, limit: 20, } @@ -191,12 +191,12 @@ }) if (list.value.length > 0) { const params = { - orderCode: '', // 委托书编号 - customerNo: '', // 委托方代码 - customerName: '', // 委托方名称 - deliverer: '', // 送样人 - isUrgent: 2, // 是否加急 - status: 0, // 接收状态 + orderCode: listQuery.value.orderCode, // 委托书编号 + customerNo: listQuery.value.customerNo, // 委托方代码 + customerName: listQuery.value.customerName, // 委托方名称 + deliverer: listQuery.value.deliverer, // 送样人 + isUrgent: listQuery.value.isUrgent, // 是否加急 + status: listQuery.value.status, // 接收状态 offset: 1, limit: 20, ids: checkoutList.value, diff --git a/src/components.d.ts b/src/components.d.ts index 90f2dde..9cf2b29 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -28,6 +28,7 @@ CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] + DeptSelectByName: typeof import('./components/DeptSelectByName/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] DetailBlockSwitch: typeof import('./components/DetailPage/DetailBlockSwitch.vue')['default'] DetailPage: typeof import('./components/DetailPage/index.vue')['default'] diff --git a/src/views/business/board/standardReminder/list.vue b/src/views/business/board/standardReminder/list.vue index 85efbb1..fd60743 100644 --- a/src/views/business/board/standardReminder/list.vue +++ b/src/views/business/board/standardReminder/list.vue @@ -94,12 +94,33 @@ const preparation = ref('') // 到期开始以及结束 const validTime = ref('') +watch(preparation, (val) => { + if (val) { + listQuery.value.preparationStartDate = `${val[0]}` + listQuery.value.preparationEndDate = `${val[1]}` + } + else { + listQuery.value.preparationStartDate = '' + listQuery.value.preparationEndDate = '' + } +}) +// 有效日期变更 +watch(validTime, (val) => { + if (val) { + listQuery.value.validStartTime = `${val[0]}` + listQuery.value.validEndTime = `${val[1]}` + } + else { + listQuery.value.validStartTime = '' + listQuery.value.validEndTime = '' + } +}) // 获取数据 const fetchData = (isNowPage: boolean) => { - listQuery.value.preparationStartDate = preparation.value[0] || '' - listQuery.value.preparationEndDate = preparation.value[1] || '' - listQuery.value.validStartTime = validTime.value[0] || '' - listQuery.value.validEndTime = validTime.value[1] || '' + // listQuery.value.preparationStartDate = preparation.value[0] || '' + // listQuery.value.preparationEndDate = preparation.value[1] || '' + // listQuery.value.validStartTime = validTime.value[0] || '' + // listQuery.value.validEndTime = validTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 @@ -223,16 +244,16 @@ }) if (list.value.length > 0) { const params = { - category: '', // 类别 - id: '', // 主键id - managerState: '', // 管理状态 - preparationEndDate: '', // 结束时间 - preparationStartDate: '', // 开始时间 - standardLaboratory: '', // 标准所在部门 - standardName: '', // 标准名称 - standardNo: '', // 标准编号 - validEndTime: '', // 结束时间 - validStartTime: '', // 开始时间 + category: listQuery.value.category, // 类别 + id: listQuery.value.id, // 主键id + managerState: listQuery.value.managerState, // 管理状态 + preparationEndDate: listQuery.value.preparationEndDate, // 结束时间 + preparationStartDate: listQuery.value.preparationStartDate, // 开始时间 + standardLaboratory: listQuery.value.standardLaboratory, // 标准所在部门 + standardName: listQuery.value.standardName, // 标准名称 + standardNo: listQuery.value.standardNo, // 标准编号 + validEndTime: listQuery.value.validEndTime, // 结束时间 + validStartTime: listQuery.value.validStartTime, // 开始时间 offset: 1, // 当前页 limit: 20, // 每页多少条 ids: checkoutList.value, diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue index 8666957..37ac73f 100644 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue @@ -137,7 +137,7 @@ // 点击分发, 弹窗 const distributeDialogRef = ref() const handleDistribute = (row: ITaskList) => { - distributeDialogRef.value.initDialog(row.id, row.sampleId, row.orderId) + distributeDialogRef.value.initDialog(row.orderId, row.sampleId, row.sampleStatus) } // 点击标签绑定 const barCodeBind = ref() diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue index 807ea30..4e4eb46 100644 --- a/src/views/business/lab/environmental/environmentalList.vue +++ b/src/views/business/lab/environmental/environmentalList.vue @@ -37,11 +37,21 @@ { text: '输出电压(V)', value: 'outputVoltage', align: 'center' }, { text: '零地电压(V)', value: 'zeroGroundVoltage', align: 'center' }, ]) - +// 时间变更 +watch(trainTime, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 查询列表 const fetchData = (isNowPage: boolean) => { - listQuery.value.startTime = trainTime.value[0] || '' - listQuery.value.endTime = trainTime.value[1] || '' + // listQuery.value.startTime = trainTime.value[0] || '' + // listQuery.value.endTime = trainTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue index 2f7c1d0..bccde84 100644 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ b/src/views/business/schedule/interchange/interchangeList.vue @@ -139,7 +139,17 @@ id: '2', // 后端规定已收入传2 }) } - +// 时间变更 +watch(timeRange, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 数据查询 function fetchData(isNowPage = false) { loadingTable.value = true @@ -147,8 +157,8 @@ // 是否显示当前页,否则跳转第一页 listQuery.value.offset = 1 } - listQuery.value.startTime = timeRange.value[0] as string || '' - listQuery.value.endTime = timeRange.value[1] as string || '' + // listQuery.value.startTime = timeRange.value[0] as string || '' + // listQuery.value.endTime = timeRange.value[1] as string || '' listQuery.value.sampleStatus = active.value getInterChangeList(listQuery.value).then((response) => { list.value = response.data.rows.map((item: IinterchangeList) => { @@ -280,7 +290,7 @@ else if (type === 'delete') { // 无需检测 interchangeStatusChange({ orderId: row.orderId, reason: '', sampleId: row.sampleId, status: '7' }).then((res) => { if (res.code === 200) { - ElMessage.success(`已${title}`) + ElMessage.success('操作成功') fetchData(true) } }) diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue index 275a053..83d93f4 100644 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ b/src/views/business/schedule/interchangeReceipt/receiptList.vue @@ -42,7 +42,17 @@ const loadingTable = ref(false) // 选中的内容 const checkoutList = ref([]) - +// 时间变更 +watch(timeRange, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 数据查询 function fetchData(isNowPage = false) { loadingTable.value = true @@ -50,8 +60,8 @@ // 是否显示当前页,否则跳转第一页 listQuery.value.offset = 1 } - listQuery.value.startTime = timeRange.value[0] as string || '' - listQuery.value.endTime = timeRange.value[1] as string || '' + // listQuery.value.startTime = timeRange.value[0] as string || '' + // listQuery.value.endTime = timeRange.value[1] as string || '' getReceiptList(listQuery.value).then((response) => { list.value = response.data.rows total.value = parseInt(response.data.total) @@ -124,13 +134,13 @@ }) if (list.value.length > 0) { const params = { - interchangeCode: '', // 交接单编号 - customerNo: '', // 委托方代码 - customerName: '', // 委托方名称 - reciever: '', // 接收人 - deliverer: '', // 送样人 - startTime: '', // 交接开始时间 - endTime: '', // 交接结束时间 + interchangeCode: listQuery.value.interchangeCode, // 交接单编号 + customerNo: listQuery.value.customerNo, // 委托方代码 + customerName: listQuery.value.customerName, // 委托方名称 + reciever: listQuery.value.reciever, // 接收人 + deliverer: listQuery.value.deliverer, // 送样人 + startTime: listQuery.value.startTime, // 交接开始时间 + endTime: listQuery.value.endTime, // 交接结束时间 offset: 1, limit: 20, ids: checkoutList.value, diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue index cf0b532..f2fc852 100644 --- a/src/views/business/schedule/order/orderList.vue +++ b/src/views/business/schedule/order/orderList.vue @@ -26,8 +26,8 @@ customerNo: '', // 委托方代码 customerName: '', // 委托方名称 deliverer: '', // 送样人 - isUrgent: 2, // 是否加急 2全部 1是 0否 - status: 0, // 接收状态 + isUrgent: '', // 是否加急 2全部 1是 0否 + status: '', // 接收状态 offset: 1, limit: 20, }) @@ -70,11 +70,11 @@ } }) // 在已有的字典的基础上增加一个全部0进去 - isUrgentMap.value.unshift({ - id: '', - name: '全部', - value: 2, // 是否加急全部后端定为2 - }) + // isUrgentMap.value.unshift({ + // id: '', + // name: '全部', + // value: 2, // 是否加急全部后端定为2 + // }) }) // 接收状态 getDictByCode('orderStatus').then((response) => { @@ -85,11 +85,11 @@ } }) // 在已有的字典的基础上增加一个全部0进去 - statusMap.value.unshift({ - id: '', - name: '全部', - value: 0, - }) + // statusMap.value.unshift({ + // id: '', + // name: '全部', + // value: 0, + // }) console.log(statusMap.value) }) } @@ -125,8 +125,8 @@ customerNo: '', // 委托方代码 customerName: '', // 委托方名称 deliverer: '', // 送样人 - isUrgent: 2, // 是否加急 - status: 0, // 接收状态 + isUrgent: '', // 是否加急 2全部 1是 0否 + status: '', // 接收状态 offset: 1, limit: 20, } @@ -191,12 +191,12 @@ }) if (list.value.length > 0) { const params = { - orderCode: '', // 委托书编号 - customerNo: '', // 委托方代码 - customerName: '', // 委托方名称 - deliverer: '', // 送样人 - isUrgent: 2, // 是否加急 - status: 0, // 接收状态 + orderCode: listQuery.value.orderCode, // 委托书编号 + customerNo: listQuery.value.customerNo, // 委托方代码 + customerName: listQuery.value.customerName, // 委托方名称 + deliverer: listQuery.value.deliverer, // 送样人 + isUrgent: listQuery.value.isUrgent, // 是否加急 + status: listQuery.value.status, // 接收状态 offset: 1, limit: 20, ids: checkoutList.value, diff --git a/src/views/business/schedule/order/orderList_interface.ts b/src/views/business/schedule/order/orderList_interface.ts index 2d92da9..14cd1ce 100644 --- a/src/views/business/schedule/order/orderList_interface.ts +++ b/src/views/business/schedule/order/orderList_interface.ts @@ -6,7 +6,7 @@ customerName: string // 委托方名称 deliverer: string // 送样人 isUrgent: number | string // 是否加急 - status: number // 接收状态 + status: number | string// 接收状态 offset: number limit: number } diff --git a/src/components.d.ts b/src/components.d.ts index 90f2dde..9cf2b29 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -28,6 +28,7 @@ CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] + DeptSelectByName: typeof import('./components/DeptSelectByName/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] DetailBlockSwitch: typeof import('./components/DetailPage/DetailBlockSwitch.vue')['default'] DetailPage: typeof import('./components/DetailPage/index.vue')['default'] diff --git a/src/views/business/board/standardReminder/list.vue b/src/views/business/board/standardReminder/list.vue index 85efbb1..fd60743 100644 --- a/src/views/business/board/standardReminder/list.vue +++ b/src/views/business/board/standardReminder/list.vue @@ -94,12 +94,33 @@ const preparation = ref('') // 到期开始以及结束 const validTime = ref('') +watch(preparation, (val) => { + if (val) { + listQuery.value.preparationStartDate = `${val[0]}` + listQuery.value.preparationEndDate = `${val[1]}` + } + else { + listQuery.value.preparationStartDate = '' + listQuery.value.preparationEndDate = '' + } +}) +// 有效日期变更 +watch(validTime, (val) => { + if (val) { + listQuery.value.validStartTime = `${val[0]}` + listQuery.value.validEndTime = `${val[1]}` + } + else { + listQuery.value.validStartTime = '' + listQuery.value.validEndTime = '' + } +}) // 获取数据 const fetchData = (isNowPage: boolean) => { - listQuery.value.preparationStartDate = preparation.value[0] || '' - listQuery.value.preparationEndDate = preparation.value[1] || '' - listQuery.value.validStartTime = validTime.value[0] || '' - listQuery.value.validEndTime = validTime.value[1] || '' + // listQuery.value.preparationStartDate = preparation.value[0] || '' + // listQuery.value.preparationEndDate = preparation.value[1] || '' + // listQuery.value.validStartTime = validTime.value[0] || '' + // listQuery.value.validEndTime = validTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 @@ -223,16 +244,16 @@ }) if (list.value.length > 0) { const params = { - category: '', // 类别 - id: '', // 主键id - managerState: '', // 管理状态 - preparationEndDate: '', // 结束时间 - preparationStartDate: '', // 开始时间 - standardLaboratory: '', // 标准所在部门 - standardName: '', // 标准名称 - standardNo: '', // 标准编号 - validEndTime: '', // 结束时间 - validStartTime: '', // 开始时间 + category: listQuery.value.category, // 类别 + id: listQuery.value.id, // 主键id + managerState: listQuery.value.managerState, // 管理状态 + preparationEndDate: listQuery.value.preparationEndDate, // 结束时间 + preparationStartDate: listQuery.value.preparationStartDate, // 开始时间 + standardLaboratory: listQuery.value.standardLaboratory, // 标准所在部门 + standardName: listQuery.value.standardName, // 标准名称 + standardNo: listQuery.value.standardNo, // 标准编号 + validEndTime: listQuery.value.validEndTime, // 结束时间 + validStartTime: listQuery.value.validStartTime, // 开始时间 offset: 1, // 当前页 limit: 20, // 每页多少条 ids: checkoutList.value, diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue index 8666957..37ac73f 100644 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue @@ -137,7 +137,7 @@ // 点击分发, 弹窗 const distributeDialogRef = ref() const handleDistribute = (row: ITaskList) => { - distributeDialogRef.value.initDialog(row.id, row.sampleId, row.orderId) + distributeDialogRef.value.initDialog(row.orderId, row.sampleId, row.sampleStatus) } // 点击标签绑定 const barCodeBind = ref() diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue index 807ea30..4e4eb46 100644 --- a/src/views/business/lab/environmental/environmentalList.vue +++ b/src/views/business/lab/environmental/environmentalList.vue @@ -37,11 +37,21 @@ { text: '输出电压(V)', value: 'outputVoltage', align: 'center' }, { text: '零地电压(V)', value: 'zeroGroundVoltage', align: 'center' }, ]) - +// 时间变更 +watch(trainTime, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 查询列表 const fetchData = (isNowPage: boolean) => { - listQuery.value.startTime = trainTime.value[0] || '' - listQuery.value.endTime = trainTime.value[1] || '' + // listQuery.value.startTime = trainTime.value[0] || '' + // listQuery.value.endTime = trainTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue index 2f7c1d0..bccde84 100644 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ b/src/views/business/schedule/interchange/interchangeList.vue @@ -139,7 +139,17 @@ id: '2', // 后端规定已收入传2 }) } - +// 时间变更 +watch(timeRange, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 数据查询 function fetchData(isNowPage = false) { loadingTable.value = true @@ -147,8 +157,8 @@ // 是否显示当前页,否则跳转第一页 listQuery.value.offset = 1 } - listQuery.value.startTime = timeRange.value[0] as string || '' - listQuery.value.endTime = timeRange.value[1] as string || '' + // listQuery.value.startTime = timeRange.value[0] as string || '' + // listQuery.value.endTime = timeRange.value[1] as string || '' listQuery.value.sampleStatus = active.value getInterChangeList(listQuery.value).then((response) => { list.value = response.data.rows.map((item: IinterchangeList) => { @@ -280,7 +290,7 @@ else if (type === 'delete') { // 无需检测 interchangeStatusChange({ orderId: row.orderId, reason: '', sampleId: row.sampleId, status: '7' }).then((res) => { if (res.code === 200) { - ElMessage.success(`已${title}`) + ElMessage.success('操作成功') fetchData(true) } }) diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue index 275a053..83d93f4 100644 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ b/src/views/business/schedule/interchangeReceipt/receiptList.vue @@ -42,7 +42,17 @@ const loadingTable = ref(false) // 选中的内容 const checkoutList = ref([]) - +// 时间变更 +watch(timeRange, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 数据查询 function fetchData(isNowPage = false) { loadingTable.value = true @@ -50,8 +60,8 @@ // 是否显示当前页,否则跳转第一页 listQuery.value.offset = 1 } - listQuery.value.startTime = timeRange.value[0] as string || '' - listQuery.value.endTime = timeRange.value[1] as string || '' + // listQuery.value.startTime = timeRange.value[0] as string || '' + // listQuery.value.endTime = timeRange.value[1] as string || '' getReceiptList(listQuery.value).then((response) => { list.value = response.data.rows total.value = parseInt(response.data.total) @@ -124,13 +134,13 @@ }) if (list.value.length > 0) { const params = { - interchangeCode: '', // 交接单编号 - customerNo: '', // 委托方代码 - customerName: '', // 委托方名称 - reciever: '', // 接收人 - deliverer: '', // 送样人 - startTime: '', // 交接开始时间 - endTime: '', // 交接结束时间 + interchangeCode: listQuery.value.interchangeCode, // 交接单编号 + customerNo: listQuery.value.customerNo, // 委托方代码 + customerName: listQuery.value.customerName, // 委托方名称 + reciever: listQuery.value.reciever, // 接收人 + deliverer: listQuery.value.deliverer, // 送样人 + startTime: listQuery.value.startTime, // 交接开始时间 + endTime: listQuery.value.endTime, // 交接结束时间 offset: 1, limit: 20, ids: checkoutList.value, diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue index cf0b532..f2fc852 100644 --- a/src/views/business/schedule/order/orderList.vue +++ b/src/views/business/schedule/order/orderList.vue @@ -26,8 +26,8 @@ customerNo: '', // 委托方代码 customerName: '', // 委托方名称 deliverer: '', // 送样人 - isUrgent: 2, // 是否加急 2全部 1是 0否 - status: 0, // 接收状态 + isUrgent: '', // 是否加急 2全部 1是 0否 + status: '', // 接收状态 offset: 1, limit: 20, }) @@ -70,11 +70,11 @@ } }) // 在已有的字典的基础上增加一个全部0进去 - isUrgentMap.value.unshift({ - id: '', - name: '全部', - value: 2, // 是否加急全部后端定为2 - }) + // isUrgentMap.value.unshift({ + // id: '', + // name: '全部', + // value: 2, // 是否加急全部后端定为2 + // }) }) // 接收状态 getDictByCode('orderStatus').then((response) => { @@ -85,11 +85,11 @@ } }) // 在已有的字典的基础上增加一个全部0进去 - statusMap.value.unshift({ - id: '', - name: '全部', - value: 0, - }) + // statusMap.value.unshift({ + // id: '', + // name: '全部', + // value: 0, + // }) console.log(statusMap.value) }) } @@ -125,8 +125,8 @@ customerNo: '', // 委托方代码 customerName: '', // 委托方名称 deliverer: '', // 送样人 - isUrgent: 2, // 是否加急 - status: 0, // 接收状态 + isUrgent: '', // 是否加急 2全部 1是 0否 + status: '', // 接收状态 offset: 1, limit: 20, } @@ -191,12 +191,12 @@ }) if (list.value.length > 0) { const params = { - orderCode: '', // 委托书编号 - customerNo: '', // 委托方代码 - customerName: '', // 委托方名称 - deliverer: '', // 送样人 - isUrgent: 2, // 是否加急 - status: 0, // 接收状态 + orderCode: listQuery.value.orderCode, // 委托书编号 + customerNo: listQuery.value.customerNo, // 委托方代码 + customerName: listQuery.value.customerName, // 委托方名称 + deliverer: listQuery.value.deliverer, // 送样人 + isUrgent: listQuery.value.isUrgent, // 是否加急 + status: listQuery.value.status, // 接收状态 offset: 1, limit: 20, ids: checkoutList.value, diff --git a/src/views/business/schedule/order/orderList_interface.ts b/src/views/business/schedule/order/orderList_interface.ts index 2d92da9..14cd1ce 100644 --- a/src/views/business/schedule/order/orderList_interface.ts +++ b/src/views/business/schedule/order/orderList_interface.ts @@ -6,7 +6,7 @@ customerName: string // 委托方名称 deliverer: string // 送样人 isUrgent: number | string // 是否加急 - status: number // 接收状态 + status: number | string// 接收状态 offset: number limit: number } diff --git a/src/views/business/schedule/task/task-interface.ts b/src/views/business/schedule/task/task-interface.ts index 50308c7..25c5cf9 100644 --- a/src/views/business/schedule/task/task-interface.ts +++ b/src/views/business/schedule/task/task-interface.ts @@ -53,6 +53,7 @@ handOutProperty: string // 分发性质-初次分发、退回分发 id?: string // 实验室id customerId?: string // 客户id + certificationState?: string // 证书出具 } // 实验室检测/我的检测列表 diff --git a/src/components.d.ts b/src/components.d.ts index 90f2dde..9cf2b29 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -28,6 +28,7 @@ CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] + DeptSelectByName: typeof import('./components/DeptSelectByName/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] DetailBlockSwitch: typeof import('./components/DetailPage/DetailBlockSwitch.vue')['default'] DetailPage: typeof import('./components/DetailPage/index.vue')['default'] diff --git a/src/views/business/board/standardReminder/list.vue b/src/views/business/board/standardReminder/list.vue index 85efbb1..fd60743 100644 --- a/src/views/business/board/standardReminder/list.vue +++ b/src/views/business/board/standardReminder/list.vue @@ -94,12 +94,33 @@ const preparation = ref('') // 到期开始以及结束 const validTime = ref('') +watch(preparation, (val) => { + if (val) { + listQuery.value.preparationStartDate = `${val[0]}` + listQuery.value.preparationEndDate = `${val[1]}` + } + else { + listQuery.value.preparationStartDate = '' + listQuery.value.preparationEndDate = '' + } +}) +// 有效日期变更 +watch(validTime, (val) => { + if (val) { + listQuery.value.validStartTime = `${val[0]}` + listQuery.value.validEndTime = `${val[1]}` + } + else { + listQuery.value.validStartTime = '' + listQuery.value.validEndTime = '' + } +}) // 获取数据 const fetchData = (isNowPage: boolean) => { - listQuery.value.preparationStartDate = preparation.value[0] || '' - listQuery.value.preparationEndDate = preparation.value[1] || '' - listQuery.value.validStartTime = validTime.value[0] || '' - listQuery.value.validEndTime = validTime.value[1] || '' + // listQuery.value.preparationStartDate = preparation.value[0] || '' + // listQuery.value.preparationEndDate = preparation.value[1] || '' + // listQuery.value.validStartTime = validTime.value[0] || '' + // listQuery.value.validEndTime = validTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 @@ -223,16 +244,16 @@ }) if (list.value.length > 0) { const params = { - category: '', // 类别 - id: '', // 主键id - managerState: '', // 管理状态 - preparationEndDate: '', // 结束时间 - preparationStartDate: '', // 开始时间 - standardLaboratory: '', // 标准所在部门 - standardName: '', // 标准名称 - standardNo: '', // 标准编号 - validEndTime: '', // 结束时间 - validStartTime: '', // 开始时间 + category: listQuery.value.category, // 类别 + id: listQuery.value.id, // 主键id + managerState: listQuery.value.managerState, // 管理状态 + preparationEndDate: listQuery.value.preparationEndDate, // 结束时间 + preparationStartDate: listQuery.value.preparationStartDate, // 开始时间 + standardLaboratory: listQuery.value.standardLaboratory, // 标准所在部门 + standardName: listQuery.value.standardName, // 标准名称 + standardNo: listQuery.value.standardNo, // 标准编号 + validEndTime: listQuery.value.validEndTime, // 结束时间 + validStartTime: listQuery.value.validStartTime, // 开始时间 offset: 1, // 当前页 limit: 20, // 每页多少条 ids: checkoutList.value, diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue index 8666957..37ac73f 100644 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue @@ -137,7 +137,7 @@ // 点击分发, 弹窗 const distributeDialogRef = ref() const handleDistribute = (row: ITaskList) => { - distributeDialogRef.value.initDialog(row.id, row.sampleId, row.orderId) + distributeDialogRef.value.initDialog(row.orderId, row.sampleId, row.sampleStatus) } // 点击标签绑定 const barCodeBind = ref() diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue index 807ea30..4e4eb46 100644 --- a/src/views/business/lab/environmental/environmentalList.vue +++ b/src/views/business/lab/environmental/environmentalList.vue @@ -37,11 +37,21 @@ { text: '输出电压(V)', value: 'outputVoltage', align: 'center' }, { text: '零地电压(V)', value: 'zeroGroundVoltage', align: 'center' }, ]) - +// 时间变更 +watch(trainTime, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 查询列表 const fetchData = (isNowPage: boolean) => { - listQuery.value.startTime = trainTime.value[0] || '' - listQuery.value.endTime = trainTime.value[1] || '' + // listQuery.value.startTime = trainTime.value[0] || '' + // listQuery.value.endTime = trainTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue index 2f7c1d0..bccde84 100644 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ b/src/views/business/schedule/interchange/interchangeList.vue @@ -139,7 +139,17 @@ id: '2', // 后端规定已收入传2 }) } - +// 时间变更 +watch(timeRange, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 数据查询 function fetchData(isNowPage = false) { loadingTable.value = true @@ -147,8 +157,8 @@ // 是否显示当前页,否则跳转第一页 listQuery.value.offset = 1 } - listQuery.value.startTime = timeRange.value[0] as string || '' - listQuery.value.endTime = timeRange.value[1] as string || '' + // listQuery.value.startTime = timeRange.value[0] as string || '' + // listQuery.value.endTime = timeRange.value[1] as string || '' listQuery.value.sampleStatus = active.value getInterChangeList(listQuery.value).then((response) => { list.value = response.data.rows.map((item: IinterchangeList) => { @@ -280,7 +290,7 @@ else if (type === 'delete') { // 无需检测 interchangeStatusChange({ orderId: row.orderId, reason: '', sampleId: row.sampleId, status: '7' }).then((res) => { if (res.code === 200) { - ElMessage.success(`已${title}`) + ElMessage.success('操作成功') fetchData(true) } }) diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue index 275a053..83d93f4 100644 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ b/src/views/business/schedule/interchangeReceipt/receiptList.vue @@ -42,7 +42,17 @@ const loadingTable = ref(false) // 选中的内容 const checkoutList = ref([]) - +// 时间变更 +watch(timeRange, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 数据查询 function fetchData(isNowPage = false) { loadingTable.value = true @@ -50,8 +60,8 @@ // 是否显示当前页,否则跳转第一页 listQuery.value.offset = 1 } - listQuery.value.startTime = timeRange.value[0] as string || '' - listQuery.value.endTime = timeRange.value[1] as string || '' + // listQuery.value.startTime = timeRange.value[0] as string || '' + // listQuery.value.endTime = timeRange.value[1] as string || '' getReceiptList(listQuery.value).then((response) => { list.value = response.data.rows total.value = parseInt(response.data.total) @@ -124,13 +134,13 @@ }) if (list.value.length > 0) { const params = { - interchangeCode: '', // 交接单编号 - customerNo: '', // 委托方代码 - customerName: '', // 委托方名称 - reciever: '', // 接收人 - deliverer: '', // 送样人 - startTime: '', // 交接开始时间 - endTime: '', // 交接结束时间 + interchangeCode: listQuery.value.interchangeCode, // 交接单编号 + customerNo: listQuery.value.customerNo, // 委托方代码 + customerName: listQuery.value.customerName, // 委托方名称 + reciever: listQuery.value.reciever, // 接收人 + deliverer: listQuery.value.deliverer, // 送样人 + startTime: listQuery.value.startTime, // 交接开始时间 + endTime: listQuery.value.endTime, // 交接结束时间 offset: 1, limit: 20, ids: checkoutList.value, diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue index cf0b532..f2fc852 100644 --- a/src/views/business/schedule/order/orderList.vue +++ b/src/views/business/schedule/order/orderList.vue @@ -26,8 +26,8 @@ customerNo: '', // 委托方代码 customerName: '', // 委托方名称 deliverer: '', // 送样人 - isUrgent: 2, // 是否加急 2全部 1是 0否 - status: 0, // 接收状态 + isUrgent: '', // 是否加急 2全部 1是 0否 + status: '', // 接收状态 offset: 1, limit: 20, }) @@ -70,11 +70,11 @@ } }) // 在已有的字典的基础上增加一个全部0进去 - isUrgentMap.value.unshift({ - id: '', - name: '全部', - value: 2, // 是否加急全部后端定为2 - }) + // isUrgentMap.value.unshift({ + // id: '', + // name: '全部', + // value: 2, // 是否加急全部后端定为2 + // }) }) // 接收状态 getDictByCode('orderStatus').then((response) => { @@ -85,11 +85,11 @@ } }) // 在已有的字典的基础上增加一个全部0进去 - statusMap.value.unshift({ - id: '', - name: '全部', - value: 0, - }) + // statusMap.value.unshift({ + // id: '', + // name: '全部', + // value: 0, + // }) console.log(statusMap.value) }) } @@ -125,8 +125,8 @@ customerNo: '', // 委托方代码 customerName: '', // 委托方名称 deliverer: '', // 送样人 - isUrgent: 2, // 是否加急 - status: 0, // 接收状态 + isUrgent: '', // 是否加急 2全部 1是 0否 + status: '', // 接收状态 offset: 1, limit: 20, } @@ -191,12 +191,12 @@ }) if (list.value.length > 0) { const params = { - orderCode: '', // 委托书编号 - customerNo: '', // 委托方代码 - customerName: '', // 委托方名称 - deliverer: '', // 送样人 - isUrgent: 2, // 是否加急 - status: 0, // 接收状态 + orderCode: listQuery.value.orderCode, // 委托书编号 + customerNo: listQuery.value.customerNo, // 委托方代码 + customerName: listQuery.value.customerName, // 委托方名称 + deliverer: listQuery.value.deliverer, // 送样人 + isUrgent: listQuery.value.isUrgent, // 是否加急 + status: listQuery.value.status, // 接收状态 offset: 1, limit: 20, ids: checkoutList.value, diff --git a/src/views/business/schedule/order/orderList_interface.ts b/src/views/business/schedule/order/orderList_interface.ts index 2d92da9..14cd1ce 100644 --- a/src/views/business/schedule/order/orderList_interface.ts +++ b/src/views/business/schedule/order/orderList_interface.ts @@ -6,7 +6,7 @@ customerName: string // 委托方名称 deliverer: string // 送样人 isUrgent: number | string // 是否加急 - status: number // 接收状态 + status: number | string// 接收状态 offset: number limit: number } diff --git a/src/views/business/schedule/task/task-interface.ts b/src/views/business/schedule/task/task-interface.ts index 50308c7..25c5cf9 100644 --- a/src/views/business/schedule/task/task-interface.ts +++ b/src/views/business/schedule/task/task-interface.ts @@ -53,6 +53,7 @@ handOutProperty: string // 分发性质-初次分发、退回分发 id?: string // 实验室id customerId?: string // 客户id + certificationState?: string // 证书出具 } // 实验室检测/我的检测列表 diff --git a/src/views/business/schedule/task/taskEdit.vue b/src/views/business/schedule/task/taskEdit.vue index 7c17365..7159350 100644 --- a/src/views/business/schedule/task/taskEdit.vue +++ b/src/views/business/schedule/task/taskEdit.vue @@ -1,6 +1,6 @@ @@ -162,13 +176,13 @@ 同意 - - 拒绝 - 驳回 - + + 拒绝 + + 取消 @@ -201,6 +215,7 @@ + diff --git a/src/components.d.ts b/src/components.d.ts index 90f2dde..9cf2b29 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -28,6 +28,7 @@ CopyerDrawer: typeof import('./components/drawer/copyerDrawer.vue')['default'] Copyright: typeof import('./components/Copyright/index.vue')['default'] DeptSelect: typeof import('./components/DeptSelect/index.vue')['default'] + DeptSelectByName: typeof import('./components/DeptSelectByName/index.vue')['default'] DetailBlock: typeof import('./components/DetailPage/DetailBlock.vue')['default'] DetailBlockSwitch: typeof import('./components/DetailPage/DetailBlockSwitch.vue')['default'] DetailPage: typeof import('./components/DetailPage/index.vue')['default'] diff --git a/src/views/business/board/standardReminder/list.vue b/src/views/business/board/standardReminder/list.vue index 85efbb1..fd60743 100644 --- a/src/views/business/board/standardReminder/list.vue +++ b/src/views/business/board/standardReminder/list.vue @@ -94,12 +94,33 @@ const preparation = ref('') // 到期开始以及结束 const validTime = ref('') +watch(preparation, (val) => { + if (val) { + listQuery.value.preparationStartDate = `${val[0]}` + listQuery.value.preparationEndDate = `${val[1]}` + } + else { + listQuery.value.preparationStartDate = '' + listQuery.value.preparationEndDate = '' + } +}) +// 有效日期变更 +watch(validTime, (val) => { + if (val) { + listQuery.value.validStartTime = `${val[0]}` + listQuery.value.validEndTime = `${val[1]}` + } + else { + listQuery.value.validStartTime = '' + listQuery.value.validEndTime = '' + } +}) // 获取数据 const fetchData = (isNowPage: boolean) => { - listQuery.value.preparationStartDate = preparation.value[0] || '' - listQuery.value.preparationEndDate = preparation.value[1] || '' - listQuery.value.validStartTime = validTime.value[0] || '' - listQuery.value.validEndTime = validTime.value[1] || '' + // listQuery.value.preparationStartDate = preparation.value[0] || '' + // listQuery.value.preparationEndDate = preparation.value[1] || '' + // listQuery.value.validStartTime = validTime.value[0] || '' + // listQuery.value.validEndTime = validTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 @@ -223,16 +244,16 @@ }) if (list.value.length > 0) { const params = { - category: '', // 类别 - id: '', // 主键id - managerState: '', // 管理状态 - preparationEndDate: '', // 结束时间 - preparationStartDate: '', // 开始时间 - standardLaboratory: '', // 标准所在部门 - standardName: '', // 标准名称 - standardNo: '', // 标准编号 - validEndTime: '', // 结束时间 - validStartTime: '', // 开始时间 + category: listQuery.value.category, // 类别 + id: listQuery.value.id, // 主键id + managerState: listQuery.value.managerState, // 管理状态 + preparationEndDate: listQuery.value.preparationEndDate, // 结束时间 + preparationStartDate: listQuery.value.preparationStartDate, // 开始时间 + standardLaboratory: listQuery.value.standardLaboratory, // 标准所在部门 + standardName: listQuery.value.standardName, // 标准名称 + standardNo: listQuery.value.standardNo, // 标准编号 + validEndTime: listQuery.value.validEndTime, // 结束时间 + validStartTime: listQuery.value.validStartTime, // 开始时间 offset: 1, // 当前页 limit: 20, // 每页多少条 ids: checkoutList.value, diff --git a/src/views/business/lab/deptMeasure/deptMeasureList.vue b/src/views/business/lab/deptMeasure/deptMeasureList.vue index 8666957..37ac73f 100644 --- a/src/views/business/lab/deptMeasure/deptMeasureList.vue +++ b/src/views/business/lab/deptMeasure/deptMeasureList.vue @@ -137,7 +137,7 @@ // 点击分发, 弹窗 const distributeDialogRef = ref() const handleDistribute = (row: ITaskList) => { - distributeDialogRef.value.initDialog(row.id, row.sampleId, row.orderId) + distributeDialogRef.value.initDialog(row.orderId, row.sampleId, row.sampleStatus) } // 点击标签绑定 const barCodeBind = ref() diff --git a/src/views/business/lab/environmental/environmentalList.vue b/src/views/business/lab/environmental/environmentalList.vue index 807ea30..4e4eb46 100644 --- a/src/views/business/lab/environmental/environmentalList.vue +++ b/src/views/business/lab/environmental/environmentalList.vue @@ -37,11 +37,21 @@ { text: '输出电压(V)', value: 'outputVoltage', align: 'center' }, { text: '零地电压(V)', value: 'zeroGroundVoltage', align: 'center' }, ]) - +// 时间变更 +watch(trainTime, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 查询列表 const fetchData = (isNowPage: boolean) => { - listQuery.value.startTime = trainTime.value[0] || '' - listQuery.value.endTime = trainTime.value[1] || '' + // listQuery.value.startTime = trainTime.value[0] || '' + // listQuery.value.endTime = trainTime.value[1] || '' loadingTable.value = true if (!isNowPage) { // 是否显示当前页,否则跳转第一页 diff --git a/src/views/business/schedule/interchange/interchangeList.vue b/src/views/business/schedule/interchange/interchangeList.vue index 2f7c1d0..bccde84 100644 --- a/src/views/business/schedule/interchange/interchangeList.vue +++ b/src/views/business/schedule/interchange/interchangeList.vue @@ -139,7 +139,17 @@ id: '2', // 后端规定已收入传2 }) } - +// 时间变更 +watch(timeRange, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 数据查询 function fetchData(isNowPage = false) { loadingTable.value = true @@ -147,8 +157,8 @@ // 是否显示当前页,否则跳转第一页 listQuery.value.offset = 1 } - listQuery.value.startTime = timeRange.value[0] as string || '' - listQuery.value.endTime = timeRange.value[1] as string || '' + // listQuery.value.startTime = timeRange.value[0] as string || '' + // listQuery.value.endTime = timeRange.value[1] as string || '' listQuery.value.sampleStatus = active.value getInterChangeList(listQuery.value).then((response) => { list.value = response.data.rows.map((item: IinterchangeList) => { @@ -280,7 +290,7 @@ else if (type === 'delete') { // 无需检测 interchangeStatusChange({ orderId: row.orderId, reason: '', sampleId: row.sampleId, status: '7' }).then((res) => { if (res.code === 200) { - ElMessage.success(`已${title}`) + ElMessage.success('操作成功') fetchData(true) } }) diff --git a/src/views/business/schedule/interchangeReceipt/receiptList.vue b/src/views/business/schedule/interchangeReceipt/receiptList.vue index 275a053..83d93f4 100644 --- a/src/views/business/schedule/interchangeReceipt/receiptList.vue +++ b/src/views/business/schedule/interchangeReceipt/receiptList.vue @@ -42,7 +42,17 @@ const loadingTable = ref(false) // 选中的内容 const checkoutList = ref([]) - +// 时间变更 +watch(timeRange, (val) => { + if (val) { + listQuery.value.startTime = `${val[0]}` + listQuery.value.endTime = `${val[1]}` + } + else { + listQuery.value.startTime = '' + listQuery.value.endTime = '' + } +}) // 数据查询 function fetchData(isNowPage = false) { loadingTable.value = true @@ -50,8 +60,8 @@ // 是否显示当前页,否则跳转第一页 listQuery.value.offset = 1 } - listQuery.value.startTime = timeRange.value[0] as string || '' - listQuery.value.endTime = timeRange.value[1] as string || '' + // listQuery.value.startTime = timeRange.value[0] as string || '' + // listQuery.value.endTime = timeRange.value[1] as string || '' getReceiptList(listQuery.value).then((response) => { list.value = response.data.rows total.value = parseInt(response.data.total) @@ -124,13 +134,13 @@ }) if (list.value.length > 0) { const params = { - interchangeCode: '', // 交接单编号 - customerNo: '', // 委托方代码 - customerName: '', // 委托方名称 - reciever: '', // 接收人 - deliverer: '', // 送样人 - startTime: '', // 交接开始时间 - endTime: '', // 交接结束时间 + interchangeCode: listQuery.value.interchangeCode, // 交接单编号 + customerNo: listQuery.value.customerNo, // 委托方代码 + customerName: listQuery.value.customerName, // 委托方名称 + reciever: listQuery.value.reciever, // 接收人 + deliverer: listQuery.value.deliverer, // 送样人 + startTime: listQuery.value.startTime, // 交接开始时间 + endTime: listQuery.value.endTime, // 交接结束时间 offset: 1, limit: 20, ids: checkoutList.value, diff --git a/src/views/business/schedule/order/orderList.vue b/src/views/business/schedule/order/orderList.vue index cf0b532..f2fc852 100644 --- a/src/views/business/schedule/order/orderList.vue +++ b/src/views/business/schedule/order/orderList.vue @@ -26,8 +26,8 @@ customerNo: '', // 委托方代码 customerName: '', // 委托方名称 deliverer: '', // 送样人 - isUrgent: 2, // 是否加急 2全部 1是 0否 - status: 0, // 接收状态 + isUrgent: '', // 是否加急 2全部 1是 0否 + status: '', // 接收状态 offset: 1, limit: 20, }) @@ -70,11 +70,11 @@ } }) // 在已有的字典的基础上增加一个全部0进去 - isUrgentMap.value.unshift({ - id: '', - name: '全部', - value: 2, // 是否加急全部后端定为2 - }) + // isUrgentMap.value.unshift({ + // id: '', + // name: '全部', + // value: 2, // 是否加急全部后端定为2 + // }) }) // 接收状态 getDictByCode('orderStatus').then((response) => { @@ -85,11 +85,11 @@ } }) // 在已有的字典的基础上增加一个全部0进去 - statusMap.value.unshift({ - id: '', - name: '全部', - value: 0, - }) + // statusMap.value.unshift({ + // id: '', + // name: '全部', + // value: 0, + // }) console.log(statusMap.value) }) } @@ -125,8 +125,8 @@ customerNo: '', // 委托方代码 customerName: '', // 委托方名称 deliverer: '', // 送样人 - isUrgent: 2, // 是否加急 - status: 0, // 接收状态 + isUrgent: '', // 是否加急 2全部 1是 0否 + status: '', // 接收状态 offset: 1, limit: 20, } @@ -191,12 +191,12 @@ }) if (list.value.length > 0) { const params = { - orderCode: '', // 委托书编号 - customerNo: '', // 委托方代码 - customerName: '', // 委托方名称 - deliverer: '', // 送样人 - isUrgent: 2, // 是否加急 - status: 0, // 接收状态 + orderCode: listQuery.value.orderCode, // 委托书编号 + customerNo: listQuery.value.customerNo, // 委托方代码 + customerName: listQuery.value.customerName, // 委托方名称 + deliverer: listQuery.value.deliverer, // 送样人 + isUrgent: listQuery.value.isUrgent, // 是否加急 + status: listQuery.value.status, // 接收状态 offset: 1, limit: 20, ids: checkoutList.value, diff --git a/src/views/business/schedule/order/orderList_interface.ts b/src/views/business/schedule/order/orderList_interface.ts index 2d92da9..14cd1ce 100644 --- a/src/views/business/schedule/order/orderList_interface.ts +++ b/src/views/business/schedule/order/orderList_interface.ts @@ -6,7 +6,7 @@ customerName: string // 委托方名称 deliverer: string // 送样人 isUrgent: number | string // 是否加急 - status: number // 接收状态 + status: number | string// 接收状态 offset: number limit: number } diff --git a/src/views/business/schedule/task/task-interface.ts b/src/views/business/schedule/task/task-interface.ts index 50308c7..25c5cf9 100644 --- a/src/views/business/schedule/task/task-interface.ts +++ b/src/views/business/schedule/task/task-interface.ts @@ -53,6 +53,7 @@ handOutProperty: string // 分发性质-初次分发、退回分发 id?: string // 实验室id customerId?: string // 客户id + certificationState?: string // 证书出具 } // 实验室检测/我的检测列表 diff --git a/src/views/business/schedule/task/taskEdit.vue b/src/views/business/schedule/task/taskEdit.vue index 7c17365..7159350 100644 --- a/src/views/business/schedule/task/taskEdit.vue +++ b/src/views/business/schedule/task/taskEdit.vue @@ -1,6 +1,6 @@ @@ -162,13 +176,13 @@ 同意 - - 拒绝 - 驳回 - + + 拒绝 + + 取消 @@ -201,6 +215,7 @@ + diff --git a/src/views/measure/source/list.vue b/src/views/measure/source/list.vue index e352e61..cda7d0c 100644 --- a/src/views/measure/source/list.vue +++ b/src/views/measure/source/list.vue @@ -89,7 +89,7 @@ getSoucreList(listQuery.value).then((response) => { list.value = response.data.rows.map((item: ISupplier) => { if (item.companyProvinceName && item.companyCityName) { - item.briefName = `${item.companyProvinceName}/${item.companyCityName}` + item.briefName = `${item.companyProvinceName}${item.companyCityName}` } else { item.briefName = item.companyProvinceName || item.companyCityName @@ -184,9 +184,10 @@ }) if (list.value.length > 0) { const params = { - supplierNo: '', // 业务内容 - supplierName: '', // 溯源供方名称 - businessContent: '', // 溯源供方编号 + supplierNo: listQuery.value.supplierNo, // 业务内容 + supplierName: listQuery.value.supplierName, // 溯源供方名称 + businessContent: listQuery.value.businessContent, // 溯源供方编号 + formId: SCHEDULE.SUPPLIER_APPROVAL, ids: checkoutList.value, } exportSourceList(params).then((res) => { @@ -256,8 +257,8 @@ diff --git a/src/views/measure/source/list.vue b/src/views/measure/source/list.vue index e352e61..cda7d0c 100644 --- a/src/views/measure/source/list.vue +++ b/src/views/measure/source/list.vue @@ -89,7 +89,7 @@ getSoucreList(listQuery.value).then((response) => { list.value = response.data.rows.map((item: ISupplier) => { if (item.companyProvinceName && item.companyCityName) { - item.briefName = `${item.companyProvinceName}/${item.companyCityName}` + item.briefName = `${item.companyProvinceName}${item.companyCityName}` } else { item.briefName = item.companyProvinceName || item.companyCityName @@ -184,9 +184,10 @@ }) if (list.value.length > 0) { const params = { - supplierNo: '', // 业务内容 - supplierName: '', // 溯源供方名称 - businessContent: '', // 溯源供方编号 + supplierNo: listQuery.value.supplierNo, // 业务内容 + supplierName: listQuery.value.supplierName, // 溯源供方名称 + businessContent: listQuery.value.businessContent, // 溯源供方编号 + formId: SCHEDULE.SUPPLIER_APPROVAL, ids: checkoutList.value, } exportSourceList(params).then((res) => { @@ -256,8 +257,8 @@ diff --git a/src/views/measure/source/list.vue b/src/views/measure/source/list.vue index e352e61..cda7d0c 100644 --- a/src/views/measure/source/list.vue +++ b/src/views/measure/source/list.vue @@ -89,7 +89,7 @@ getSoucreList(listQuery.value).then((response) => { list.value = response.data.rows.map((item: ISupplier) => { if (item.companyProvinceName && item.companyCityName) { - item.briefName = `${item.companyProvinceName}/${item.companyCityName}` + item.briefName = `${item.companyProvinceName}${item.companyCityName}` } else { item.briefName = item.companyProvinceName || item.companyCityName @@ -184,9 +184,10 @@ }) if (list.value.length > 0) { const params = { - supplierNo: '', // 业务内容 - supplierName: '', // 溯源供方名称 - businessContent: '', // 溯源供方编号 + supplierNo: listQuery.value.supplierNo, // 业务内容 + supplierName: listQuery.value.supplierName, // 溯源供方名称 + businessContent: listQuery.value.businessContent, // 溯源供方编号 + formId: SCHEDULE.SUPPLIER_APPROVAL, ids: checkoutList.value, } exportSourceList(params).then((res) => { @@ -256,8 +257,8 @@ diff --git a/src/views/measure/source/list.vue b/src/views/measure/source/list.vue index e352e61..cda7d0c 100644 --- a/src/views/measure/source/list.vue +++ b/src/views/measure/source/list.vue @@ -89,7 +89,7 @@ getSoucreList(listQuery.value).then((response) => { list.value = response.data.rows.map((item: ISupplier) => { if (item.companyProvinceName && item.companyCityName) { - item.briefName = `${item.companyProvinceName}/${item.companyCityName}` + item.briefName = `${item.companyProvinceName}${item.companyCityName}` } else { item.briefName = item.companyProvinceName || item.companyCityName @@ -184,9 +184,10 @@ }) if (list.value.length > 0) { const params = { - supplierNo: '', // 业务内容 - supplierName: '', // 溯源供方名称 - businessContent: '', // 溯源供方编号 + supplierNo: listQuery.value.supplierNo, // 业务内容 + supplierName: listQuery.value.supplierName, // 溯源供方名称 + businessContent: listQuery.value.businessContent, // 溯源供方编号 + formId: SCHEDULE.SUPPLIER_APPROVAL, ids: checkoutList.value, } exportSourceList(params).then((res) => { @@ -256,8 +257,8 @@