diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/all.vue b/src/views/device/standardEquipment/components/listApply/all.vue new file mode 100644 index 0000000..d124307 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/all.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/all.vue b/src/views/device/standardEquipment/components/listApply/all.vue new file mode 100644 index 0000000..d124307 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/all.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/approvalPending.vue b/src/views/device/standardEquipment/components/listApply/approvalPending.vue new file mode 100644 index 0000000..8a7a8bc --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/approvalPending.vue @@ -0,0 +1,16 @@ + + + + diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/all.vue b/src/views/device/standardEquipment/components/listApply/all.vue new file mode 100644 index 0000000..d124307 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/all.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/approvalPending.vue b/src/views/device/standardEquipment/components/listApply/approvalPending.vue new file mode 100644 index 0000000..8a7a8bc --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/approvalPending.vue @@ -0,0 +1,16 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/canceled.vue b/src/views/device/standardEquipment/components/listApply/canceled.vue new file mode 100644 index 0000000..3b9657c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/canceled.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/all.vue b/src/views/device/standardEquipment/components/listApply/all.vue new file mode 100644 index 0000000..d124307 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/all.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/approvalPending.vue b/src/views/device/standardEquipment/components/listApply/approvalPending.vue new file mode 100644 index 0000000..8a7a8bc --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/approvalPending.vue @@ -0,0 +1,16 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/canceled.vue b/src/views/device/standardEquipment/components/listApply/canceled.vue new file mode 100644 index 0000000..3b9657c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/canceled.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/draftBox.vue b/src/views/device/standardEquipment/components/listApply/draftBox.vue new file mode 100644 index 0000000..43d7b75 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/draftBox.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/all.vue b/src/views/device/standardEquipment/components/listApply/all.vue new file mode 100644 index 0000000..d124307 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/all.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/approvalPending.vue b/src/views/device/standardEquipment/components/listApply/approvalPending.vue new file mode 100644 index 0000000..8a7a8bc --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/approvalPending.vue @@ -0,0 +1,16 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/canceled.vue b/src/views/device/standardEquipment/components/listApply/canceled.vue new file mode 100644 index 0000000..3b9657c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/canceled.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/draftBox.vue b/src/views/device/standardEquipment/components/listApply/draftBox.vue new file mode 100644 index 0000000..43d7b75 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/draftBox.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue new file mode 100644 index 0000000..c13f95a --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/all.vue b/src/views/device/standardEquipment/components/listApply/all.vue new file mode 100644 index 0000000..d124307 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/all.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/approvalPending.vue b/src/views/device/standardEquipment/components/listApply/approvalPending.vue new file mode 100644 index 0000000..8a7a8bc --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/approvalPending.vue @@ -0,0 +1,16 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/canceled.vue b/src/views/device/standardEquipment/components/listApply/canceled.vue new file mode 100644 index 0000000..3b9657c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/canceled.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/draftBox.vue b/src/views/device/standardEquipment/components/listApply/draftBox.vue new file mode 100644 index 0000000..43d7b75 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/draftBox.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue new file mode 100644 index 0000000..c13f95a --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPage.vue b/src/views/device/standardEquipment/components/listApply/listPage.vue new file mode 100644 index 0000000..5133627 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPage.vue @@ -0,0 +1,493 @@ + + + + + diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/all.vue b/src/views/device/standardEquipment/components/listApply/all.vue new file mode 100644 index 0000000..d124307 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/all.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/approvalPending.vue b/src/views/device/standardEquipment/components/listApply/approvalPending.vue new file mode 100644 index 0000000..8a7a8bc --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/approvalPending.vue @@ -0,0 +1,16 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/canceled.vue b/src/views/device/standardEquipment/components/listApply/canceled.vue new file mode 100644 index 0000000..3b9657c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/canceled.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/draftBox.vue b/src/views/device/standardEquipment/components/listApply/draftBox.vue new file mode 100644 index 0000000..43d7b75 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/draftBox.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue new file mode 100644 index 0000000..c13f95a --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPage.vue b/src/views/device/standardEquipment/components/listApply/listPage.vue new file mode 100644 index 0000000..5133627 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPage.vue @@ -0,0 +1,493 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue new file mode 100644 index 0000000..eb506ec --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -0,0 +1,1021 @@ + + + + + diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/all.vue b/src/views/device/standardEquipment/components/listApply/all.vue new file mode 100644 index 0000000..d124307 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/all.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/approvalPending.vue b/src/views/device/standardEquipment/components/listApply/approvalPending.vue new file mode 100644 index 0000000..8a7a8bc --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/approvalPending.vue @@ -0,0 +1,16 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/canceled.vue b/src/views/device/standardEquipment/components/listApply/canceled.vue new file mode 100644 index 0000000..3b9657c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/canceled.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/draftBox.vue b/src/views/device/standardEquipment/components/listApply/draftBox.vue new file mode 100644 index 0000000..43d7b75 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/draftBox.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue new file mode 100644 index 0000000..c13f95a --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPage.vue b/src/views/device/standardEquipment/components/listApply/listPage.vue new file mode 100644 index 0000000..5133627 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPage.vue @@ -0,0 +1,493 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue new file mode 100644 index 0000000..eb506ec --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -0,0 +1,1021 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/notPass.vue b/src/views/device/standardEquipment/components/listApply/notPass.vue new file mode 100644 index 0000000..5a4b817 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/notPass.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/all.vue b/src/views/device/standardEquipment/components/listApply/all.vue new file mode 100644 index 0000000..d124307 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/all.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/approvalPending.vue b/src/views/device/standardEquipment/components/listApply/approvalPending.vue new file mode 100644 index 0000000..8a7a8bc --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/approvalPending.vue @@ -0,0 +1,16 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/canceled.vue b/src/views/device/standardEquipment/components/listApply/canceled.vue new file mode 100644 index 0000000..3b9657c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/canceled.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/draftBox.vue b/src/views/device/standardEquipment/components/listApply/draftBox.vue new file mode 100644 index 0000000..43d7b75 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/draftBox.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue new file mode 100644 index 0000000..c13f95a --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPage.vue b/src/views/device/standardEquipment/components/listApply/listPage.vue new file mode 100644 index 0000000..5133627 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPage.vue @@ -0,0 +1,493 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue new file mode 100644 index 0000000..eb506ec --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -0,0 +1,1021 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/notPass.vue b/src/views/device/standardEquipment/components/listApply/notPass.vue new file mode 100644 index 0000000..5a4b817 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/notPass.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/passed.vue b/src/views/device/standardEquipment/components/listApply/passed.vue new file mode 100644 index 0000000..31cd21c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/passed.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/all.vue b/src/views/device/standardEquipment/components/listApply/all.vue new file mode 100644 index 0000000..d124307 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/all.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/approvalPending.vue b/src/views/device/standardEquipment/components/listApply/approvalPending.vue new file mode 100644 index 0000000..8a7a8bc --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/approvalPending.vue @@ -0,0 +1,16 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/canceled.vue b/src/views/device/standardEquipment/components/listApply/canceled.vue new file mode 100644 index 0000000..3b9657c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/canceled.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/draftBox.vue b/src/views/device/standardEquipment/components/listApply/draftBox.vue new file mode 100644 index 0000000..43d7b75 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/draftBox.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue new file mode 100644 index 0000000..c13f95a --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPage.vue b/src/views/device/standardEquipment/components/listApply/listPage.vue new file mode 100644 index 0000000..5133627 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPage.vue @@ -0,0 +1,493 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue new file mode 100644 index 0000000..eb506ec --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -0,0 +1,1021 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/notPass.vue b/src/views/device/standardEquipment/components/listApply/notPass.vue new file mode 100644 index 0000000..5a4b817 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/notPass.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/passed.vue b/src/views/device/standardEquipment/components/listApply/passed.vue new file mode 100644 index 0000000..31cd21c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/passed.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/addRow.vue b/src/views/device/standardEquipment/components/standardList/addRow.vue new file mode 100644 index 0000000..9f2bf81 --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/addRow.vue @@ -0,0 +1,270 @@ + + + + diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/all.vue b/src/views/device/standardEquipment/components/listApply/all.vue new file mode 100644 index 0000000..d124307 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/all.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/approvalPending.vue b/src/views/device/standardEquipment/components/listApply/approvalPending.vue new file mode 100644 index 0000000..8a7a8bc --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/approvalPending.vue @@ -0,0 +1,16 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/canceled.vue b/src/views/device/standardEquipment/components/listApply/canceled.vue new file mode 100644 index 0000000..3b9657c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/canceled.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/draftBox.vue b/src/views/device/standardEquipment/components/listApply/draftBox.vue new file mode 100644 index 0000000..43d7b75 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/draftBox.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue new file mode 100644 index 0000000..c13f95a --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPage.vue b/src/views/device/standardEquipment/components/listApply/listPage.vue new file mode 100644 index 0000000..5133627 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPage.vue @@ -0,0 +1,493 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue new file mode 100644 index 0000000..eb506ec --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -0,0 +1,1021 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/notPass.vue b/src/views/device/standardEquipment/components/listApply/notPass.vue new file mode 100644 index 0000000..5a4b817 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/notPass.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/passed.vue b/src/views/device/standardEquipment/components/listApply/passed.vue new file mode 100644 index 0000000..31cd21c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/passed.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/addRow.vue b/src/views/device/standardEquipment/components/standardList/addRow.vue new file mode 100644 index 0000000..9f2bf81 --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/addRow.vue @@ -0,0 +1,270 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue new file mode 100644 index 0000000..c47ad1d --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -0,0 +1,675 @@ + + + + + diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/all.vue b/src/views/device/standardEquipment/components/listApply/all.vue new file mode 100644 index 0000000..d124307 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/all.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/approvalPending.vue b/src/views/device/standardEquipment/components/listApply/approvalPending.vue new file mode 100644 index 0000000..8a7a8bc --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/approvalPending.vue @@ -0,0 +1,16 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/canceled.vue b/src/views/device/standardEquipment/components/listApply/canceled.vue new file mode 100644 index 0000000..3b9657c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/canceled.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/draftBox.vue b/src/views/device/standardEquipment/components/listApply/draftBox.vue new file mode 100644 index 0000000..43d7b75 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/draftBox.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue new file mode 100644 index 0000000..c13f95a --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPage.vue b/src/views/device/standardEquipment/components/listApply/listPage.vue new file mode 100644 index 0000000..5133627 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPage.vue @@ -0,0 +1,493 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue new file mode 100644 index 0000000..eb506ec --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -0,0 +1,1021 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/notPass.vue b/src/views/device/standardEquipment/components/listApply/notPass.vue new file mode 100644 index 0000000..5a4b817 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/notPass.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/passed.vue b/src/views/device/standardEquipment/components/listApply/passed.vue new file mode 100644 index 0000000..31cd21c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/passed.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/addRow.vue b/src/views/device/standardEquipment/components/standardList/addRow.vue new file mode 100644 index 0000000..9f2bf81 --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/addRow.vue @@ -0,0 +1,270 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue new file mode 100644 index 0000000..c47ad1d --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -0,0 +1,675 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue new file mode 100644 index 0000000..20eb800 --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -0,0 +1,387 @@ + + + + + + diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/all.vue b/src/views/device/standardEquipment/components/listApply/all.vue new file mode 100644 index 0000000..d124307 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/all.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/approvalPending.vue b/src/views/device/standardEquipment/components/listApply/approvalPending.vue new file mode 100644 index 0000000..8a7a8bc --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/approvalPending.vue @@ -0,0 +1,16 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/canceled.vue b/src/views/device/standardEquipment/components/listApply/canceled.vue new file mode 100644 index 0000000..3b9657c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/canceled.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/draftBox.vue b/src/views/device/standardEquipment/components/listApply/draftBox.vue new file mode 100644 index 0000000..43d7b75 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/draftBox.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue new file mode 100644 index 0000000..c13f95a --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPage.vue b/src/views/device/standardEquipment/components/listApply/listPage.vue new file mode 100644 index 0000000..5133627 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPage.vue @@ -0,0 +1,493 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue new file mode 100644 index 0000000..eb506ec --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -0,0 +1,1021 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/notPass.vue b/src/views/device/standardEquipment/components/listApply/notPass.vue new file mode 100644 index 0000000..5a4b817 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/notPass.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/passed.vue b/src/views/device/standardEquipment/components/listApply/passed.vue new file mode 100644 index 0000000..31cd21c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/passed.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/addRow.vue b/src/views/device/standardEquipment/components/standardList/addRow.vue new file mode 100644 index 0000000..9f2bf81 --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/addRow.vue @@ -0,0 +1,270 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue new file mode 100644 index 0000000..c47ad1d --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -0,0 +1,675 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue new file mode 100644 index 0000000..20eb800 --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -0,0 +1,387 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index ea13629..348bb41 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -3,6 +3,8 @@ import { ElMessage, ElMessageBox } from 'element-plus' import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' +import baseInfo from './standardList/baseInfo.vue' +import table from './standardList/temptable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -17,188 +19,35 @@ default: '', }, }) -const emit = defineEmits(['close']) // 关闭 -const ruleFormRef = ref() -// 逻辑代码 -const formInline = ref({ - assessDate: '', - assessmentUnit: '', - category: null, - categoryName: '', - constructionStandardProject: '', - constructionStandardUnitName: '', - contactInfo: '', - createTime: null, - createUser: null, - id: '', - isDel: null, - laboratoryOwner: null, - laboratoryOwnerContact: null, - laboratoryOwnerName: null, - managerState: null, - managerStateName: '', - measureMajor: null, - fileList: [], - measureMajorName: '', - mesureRange: '', - organizeNo: '', - preparationDate: '', - projectNo: '', - remark: '', - standardHumidity: null, - standardLaboratory: null, - standardLaboratoryName: '', - standardLevel: null, - standardLevelName: '', - standardName: '', - standardNo: '', - standardOwner: null, - standardOwnerName: '', - standardTemperature: null, - totalInvestment: null, - transmitRange: null, - transmitRangeName: '', - uncertainty: '', - updateTime: null, - version: null, -}) -const checkTypeOptions = ref([]) - -const standardOwnerOptions = ref([]) // 标准负责人 -const fileList = ref([]) // 文件对象数组 -const measureMajorList = ref([]) // 计量专业下拉框 -const standardManagerStateList = ref([]) // 管理状态下拉框 -const standardLevelList = ref([]) // 标准等级下拉框 -const transmitRangeList = ref([]) // 传递范围下拉框 -// 标准所在部门下拉框 -const standardUsersDeptList = ref([]) -// 获取下拉框 -const getSelectList = (code: string) => { - getTypeSelect(code).then((res) => { - if (code === 'measureMajor') { - measureMajorList.value = res.data - } - else if (code === 'standardManagerState') { - standardManagerStateList.value = res.data - } - else if (code === 'standardLevel') { - standardLevelList.value = res.data - } - else if (code === 'transmitRange') { - transmitRangeList.value = res.data - } - else if (code === 'standardCategory') { - checkTypeOptions.value = res.data - } - }) +const emit = defineEmits(['close']) +// 定义数据 +const formInline = ref({}) +// 关闭 +interface menuType { + name: string + comp: any } -getSelectList('measureMajor') // 获取计量专业下拉框 -getSelectList('standardManagerState') // 获取管理状态下拉框 -getSelectList('standardLevel') // 获取标准等级下拉框 -getSelectList('transmitRange') // 获取传递范围下拉框 -getSelectList('standardCategory') // 获取类别下拉框 -// 获取部门信息 -getUsersDept({ - createTime: '', - director: '', - meterMajor: '', - organizeName: '', - organizeNo: '', - organizeType: '2', - pdeptId: null, - offset: 1, - limit: 999999, -}).then((res) => { - standardUsersDeptList.value = res.data.rows +const menu = shallowRef([ + { name: '基本信息', comp: baseInfo }, + { name: '计量人员', comp: table }, + { name: '标准配套设备', comp: table }, + { name: '检定规程', comp: table }, + { name: '重复性考核记录', comp: table }, + { name: '稳定性考核记录', comp: table }, + { name: '证书管理', comp: table }, +]) +const currentCompRef = ref() +const current = ref('基本信息') +const currentComp = shallowRef(baseInfo) +watch(current, (newValue) => { + currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp }) -// 获取到标准负责人数组 -const getStandardOwnerOptions = () => { - const params = { - staffNo: '', // 人员编号 - name: '', // 姓名 - deptId: '', // 工作部门 - major: '', // 计量专业 - verifierCertificateNo: '', // 证书号 - certificateStatus: '', // 证书状态 - limit: 100000, - offset: 1, - } - getStaffList(params).then((res) => { - standardOwnerOptions.value = res.data.records - }) -} -getStandardOwnerOptions() // 关闭 const close = () => { emit('close') } -const rules = ref({ - standardName: [{ required: true, message: '标准名称不能为空', trigger: 'blur' }], - projectNo: [{ required: true, message: '项目编号不能为空', trigger: 'blur' }], - constructionStandardProject: [{ required: true, message: '建标项目不能为空', trigger: 'blur' }], - organizeNo: [{ required: true, message: '组织机构代码不能为空', trigger: 'blur' }], - constructionStandardUnitName: [{ required: true, message: '建标单位名称不能为空', trigger: 'blur' }], - standardOwner: [{ required: true, message: '标准负责人不能为空', trigger: 'blur' }], - contactInfo: [{ required: true, message: '联系方式不能为空', trigger: 'blur' }], - category: [{ required: true, message: '类 别不能为空', trigger: 'blur' }], - standardLevel: [{ required: true, message: '标准等级不能为空', trigger: 'blur' }], - transmitRange: [{ required: true, message: '传递范围不能为空', trigger: 'blur' }], - preparationDate: [{ required: true, message: '筹建日期不能为空', trigger: 'blur' }], - managerState: [{ required: true, message: '管理状态不能为空', trigger: 'blur' }], - measureMajor: [{ required: true, message: '计量专业不能为空', trigger: 'blur' }], - assessmentUnit: [{ required: true, message: '考核单位不能为空', trigger: 'blur' }], - assessDate: [{ required: true, message: '考核日期不能为空', trigger: 'blur' }], - uncertainty: [{ required: true, message: '不确定度不能为空', trigger: 'blur' }], - mesureRange: [{ required: true, message: '测量范围不能为空', trigger: 'blur' }], - standardTemperature: [{ required: true, message: '标准温度不能为空', trigger: 'blur' }, - { pattern: /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/, message: '标准温度只能为数字', trigger: 'blur' }], - standardHumidity: [{ required: true, message: '标准湿度不能为空', trigger: 'blur' }, - { pattern: /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/, message: '标准湿度只能为数字', trigger: 'blur' }], -}) // 表单验证规则 -// 上传请求 -const uploadQuarterlyEvaluateFile = (file: File) => { - const fd = new FormData() - fd.append('multipartFile', file.file) - UploadFile(fd).then((res) => { - if (res.code === 200) { - formInline.value.fileList = res.data - // 重置当前验证 - ElMessage.success('文件上传成功') - } - }) -} -const handleExceed: UploadProps['onExceed'] = (files, uploadFiles) => { - ElMessage.warning('只能上传一个文件') -} -// 移除时触发 -const beforeRemove: UploadProps['beforeRemove'] = (uploadFile, uploadFiles) => { - return ElMessageBox.confirm( - `确认移除${uploadFile.name}文件吗 ?`, - ).then( - () => true, - () => false, - - ) -} -// 点击文件预览 -const uploadShow = (e: any) => { - const URL = window.URL || window.webkitURL - window.open(URL.createObjectURL(e.raw)) -} -const testForm = ref({ - fileList: [], - fileContent: '', -}) -const handleFileChange = (files: any, fileList: any) => { - testForm.value.fileList = fileList - const reader = new FileReader() - reader.readAsText(files.raw) - // reader.onload = (e) => { - // testForm.value.fileContent = e.target!.result?.replace( - // /\n|\r\n/g, - // '
', - // ) - // } +const setData = (newValue: object) => { + formInline.value = newValue } // 编辑获取详情的提交按钮 const submitFormDetail = () => { @@ -223,60 +72,29 @@ } } // 提交 -const submitForm = (formEl: FormInstance | undefined) => { - if (!formEl) { return } +const submitForm = () => { if (props.buttonType === '详情') { return submitFormDetail() } - formEl.validate((valid, fields) => { - if (valid) { - ElMessageBox.confirm( - '确认提交吗?', - '提示', - { - confirmButtonText: '确认', - cancelButtonText: '取消', - type: 'warning', - }, - ).then(() => { - props.buttonType === '' - ? getStandardListAdd(formInline.value).then((res) => { - if (res.code === 200) { - close() - } - }) - : submitFormDetail() - }) - } - }) -} -// 标准实验室发生改变row类型 -interface rowReturn { - phone: string - director: string -} -// 标准实验室发生改变 -const changeDeptList = (row: object) => { - formInline.value.laboratoryOwnerContact = row.phone - formInline.value.laboratoryOwner = row.director -} -// 标准实验室清空时 -const clearDeptList = () => { - formInline.value.laboratoryOwnerContact = null - formInline.value.laboratoryOwner = null -} -// 获取详情信息 -const getInfo = () => { - getStandardListDetail({ id: props.infoId }).then((res) => { - Object.keys(res.data).map((item) => { - if (typeof (res.data[item]) === 'number') { - res.data[item] = res.data[item].toString() - } + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + current.value = '基本信息' + currentCompRef.value.submitForm().validate().then(() => { + props.buttonType === '' + ? getStandardListAdd(formInline.value).then((res) => { + if (res.code === 200) { + close() + } + }) + : submitFormDetail() }) - formInline.value = res.data }) } -if (props.buttonType !== '') { - getInfo() -} @@ -719,14 +149,8 @@ } } -.info-content { - margin-top: 10px; - padding: 30px; - border-radius: 10px; +.body { background-color: #fff; -} - -:deep .el-input .el-input--default .el-input--suffix { - width: 200px !important; + margin-top: 10px; } diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/all.vue b/src/views/device/standardEquipment/components/listApply/all.vue new file mode 100644 index 0000000..d124307 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/all.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/approvalPending.vue b/src/views/device/standardEquipment/components/listApply/approvalPending.vue new file mode 100644 index 0000000..8a7a8bc --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/approvalPending.vue @@ -0,0 +1,16 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/canceled.vue b/src/views/device/standardEquipment/components/listApply/canceled.vue new file mode 100644 index 0000000..3b9657c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/canceled.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/draftBox.vue b/src/views/device/standardEquipment/components/listApply/draftBox.vue new file mode 100644 index 0000000..43d7b75 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/draftBox.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue new file mode 100644 index 0000000..c13f95a --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPage.vue b/src/views/device/standardEquipment/components/listApply/listPage.vue new file mode 100644 index 0000000..5133627 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPage.vue @@ -0,0 +1,493 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue new file mode 100644 index 0000000..eb506ec --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -0,0 +1,1021 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/notPass.vue b/src/views/device/standardEquipment/components/listApply/notPass.vue new file mode 100644 index 0000000..5a4b817 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/notPass.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/passed.vue b/src/views/device/standardEquipment/components/listApply/passed.vue new file mode 100644 index 0000000..31cd21c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/passed.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/addRow.vue b/src/views/device/standardEquipment/components/standardList/addRow.vue new file mode 100644 index 0000000..9f2bf81 --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/addRow.vue @@ -0,0 +1,270 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue new file mode 100644 index 0000000..c47ad1d --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -0,0 +1,675 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue new file mode 100644 index 0000000..20eb800 --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -0,0 +1,387 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index ea13629..348bb41 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -3,6 +3,8 @@ import { ElMessage, ElMessageBox } from 'element-plus' import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' +import baseInfo from './standardList/baseInfo.vue' +import table from './standardList/temptable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -17,188 +19,35 @@ default: '', }, }) -const emit = defineEmits(['close']) // 关闭 -const ruleFormRef = ref() -// 逻辑代码 -const formInline = ref({ - assessDate: '', - assessmentUnit: '', - category: null, - categoryName: '', - constructionStandardProject: '', - constructionStandardUnitName: '', - contactInfo: '', - createTime: null, - createUser: null, - id: '', - isDel: null, - laboratoryOwner: null, - laboratoryOwnerContact: null, - laboratoryOwnerName: null, - managerState: null, - managerStateName: '', - measureMajor: null, - fileList: [], - measureMajorName: '', - mesureRange: '', - organizeNo: '', - preparationDate: '', - projectNo: '', - remark: '', - standardHumidity: null, - standardLaboratory: null, - standardLaboratoryName: '', - standardLevel: null, - standardLevelName: '', - standardName: '', - standardNo: '', - standardOwner: null, - standardOwnerName: '', - standardTemperature: null, - totalInvestment: null, - transmitRange: null, - transmitRangeName: '', - uncertainty: '', - updateTime: null, - version: null, -}) -const checkTypeOptions = ref([]) - -const standardOwnerOptions = ref([]) // 标准负责人 -const fileList = ref([]) // 文件对象数组 -const measureMajorList = ref([]) // 计量专业下拉框 -const standardManagerStateList = ref([]) // 管理状态下拉框 -const standardLevelList = ref([]) // 标准等级下拉框 -const transmitRangeList = ref([]) // 传递范围下拉框 -// 标准所在部门下拉框 -const standardUsersDeptList = ref([]) -// 获取下拉框 -const getSelectList = (code: string) => { - getTypeSelect(code).then((res) => { - if (code === 'measureMajor') { - measureMajorList.value = res.data - } - else if (code === 'standardManagerState') { - standardManagerStateList.value = res.data - } - else if (code === 'standardLevel') { - standardLevelList.value = res.data - } - else if (code === 'transmitRange') { - transmitRangeList.value = res.data - } - else if (code === 'standardCategory') { - checkTypeOptions.value = res.data - } - }) +const emit = defineEmits(['close']) +// 定义数据 +const formInline = ref({}) +// 关闭 +interface menuType { + name: string + comp: any } -getSelectList('measureMajor') // 获取计量专业下拉框 -getSelectList('standardManagerState') // 获取管理状态下拉框 -getSelectList('standardLevel') // 获取标准等级下拉框 -getSelectList('transmitRange') // 获取传递范围下拉框 -getSelectList('standardCategory') // 获取类别下拉框 -// 获取部门信息 -getUsersDept({ - createTime: '', - director: '', - meterMajor: '', - organizeName: '', - organizeNo: '', - organizeType: '2', - pdeptId: null, - offset: 1, - limit: 999999, -}).then((res) => { - standardUsersDeptList.value = res.data.rows +const menu = shallowRef([ + { name: '基本信息', comp: baseInfo }, + { name: '计量人员', comp: table }, + { name: '标准配套设备', comp: table }, + { name: '检定规程', comp: table }, + { name: '重复性考核记录', comp: table }, + { name: '稳定性考核记录', comp: table }, + { name: '证书管理', comp: table }, +]) +const currentCompRef = ref() +const current = ref('基本信息') +const currentComp = shallowRef(baseInfo) +watch(current, (newValue) => { + currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp }) -// 获取到标准负责人数组 -const getStandardOwnerOptions = () => { - const params = { - staffNo: '', // 人员编号 - name: '', // 姓名 - deptId: '', // 工作部门 - major: '', // 计量专业 - verifierCertificateNo: '', // 证书号 - certificateStatus: '', // 证书状态 - limit: 100000, - offset: 1, - } - getStaffList(params).then((res) => { - standardOwnerOptions.value = res.data.records - }) -} -getStandardOwnerOptions() // 关闭 const close = () => { emit('close') } -const rules = ref({ - standardName: [{ required: true, message: '标准名称不能为空', trigger: 'blur' }], - projectNo: [{ required: true, message: '项目编号不能为空', trigger: 'blur' }], - constructionStandardProject: [{ required: true, message: '建标项目不能为空', trigger: 'blur' }], - organizeNo: [{ required: true, message: '组织机构代码不能为空', trigger: 'blur' }], - constructionStandardUnitName: [{ required: true, message: '建标单位名称不能为空', trigger: 'blur' }], - standardOwner: [{ required: true, message: '标准负责人不能为空', trigger: 'blur' }], - contactInfo: [{ required: true, message: '联系方式不能为空', trigger: 'blur' }], - category: [{ required: true, message: '类 别不能为空', trigger: 'blur' }], - standardLevel: [{ required: true, message: '标准等级不能为空', trigger: 'blur' }], - transmitRange: [{ required: true, message: '传递范围不能为空', trigger: 'blur' }], - preparationDate: [{ required: true, message: '筹建日期不能为空', trigger: 'blur' }], - managerState: [{ required: true, message: '管理状态不能为空', trigger: 'blur' }], - measureMajor: [{ required: true, message: '计量专业不能为空', trigger: 'blur' }], - assessmentUnit: [{ required: true, message: '考核单位不能为空', trigger: 'blur' }], - assessDate: [{ required: true, message: '考核日期不能为空', trigger: 'blur' }], - uncertainty: [{ required: true, message: '不确定度不能为空', trigger: 'blur' }], - mesureRange: [{ required: true, message: '测量范围不能为空', trigger: 'blur' }], - standardTemperature: [{ required: true, message: '标准温度不能为空', trigger: 'blur' }, - { pattern: /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/, message: '标准温度只能为数字', trigger: 'blur' }], - standardHumidity: [{ required: true, message: '标准湿度不能为空', trigger: 'blur' }, - { pattern: /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/, message: '标准湿度只能为数字', trigger: 'blur' }], -}) // 表单验证规则 -// 上传请求 -const uploadQuarterlyEvaluateFile = (file: File) => { - const fd = new FormData() - fd.append('multipartFile', file.file) - UploadFile(fd).then((res) => { - if (res.code === 200) { - formInline.value.fileList = res.data - // 重置当前验证 - ElMessage.success('文件上传成功') - } - }) -} -const handleExceed: UploadProps['onExceed'] = (files, uploadFiles) => { - ElMessage.warning('只能上传一个文件') -} -// 移除时触发 -const beforeRemove: UploadProps['beforeRemove'] = (uploadFile, uploadFiles) => { - return ElMessageBox.confirm( - `确认移除${uploadFile.name}文件吗 ?`, - ).then( - () => true, - () => false, - - ) -} -// 点击文件预览 -const uploadShow = (e: any) => { - const URL = window.URL || window.webkitURL - window.open(URL.createObjectURL(e.raw)) -} -const testForm = ref({ - fileList: [], - fileContent: '', -}) -const handleFileChange = (files: any, fileList: any) => { - testForm.value.fileList = fileList - const reader = new FileReader() - reader.readAsText(files.raw) - // reader.onload = (e) => { - // testForm.value.fileContent = e.target!.result?.replace( - // /\n|\r\n/g, - // '
', - // ) - // } +const setData = (newValue: object) => { + formInline.value = newValue } // 编辑获取详情的提交按钮 const submitFormDetail = () => { @@ -223,60 +72,29 @@ } } // 提交 -const submitForm = (formEl: FormInstance | undefined) => { - if (!formEl) { return } +const submitForm = () => { if (props.buttonType === '详情') { return submitFormDetail() } - formEl.validate((valid, fields) => { - if (valid) { - ElMessageBox.confirm( - '确认提交吗?', - '提示', - { - confirmButtonText: '确认', - cancelButtonText: '取消', - type: 'warning', - }, - ).then(() => { - props.buttonType === '' - ? getStandardListAdd(formInline.value).then((res) => { - if (res.code === 200) { - close() - } - }) - : submitFormDetail() - }) - } - }) -} -// 标准实验室发生改变row类型 -interface rowReturn { - phone: string - director: string -} -// 标准实验室发生改变 -const changeDeptList = (row: object) => { - formInline.value.laboratoryOwnerContact = row.phone - formInline.value.laboratoryOwner = row.director -} -// 标准实验室清空时 -const clearDeptList = () => { - formInline.value.laboratoryOwnerContact = null - formInline.value.laboratoryOwner = null -} -// 获取详情信息 -const getInfo = () => { - getStandardListDetail({ id: props.infoId }).then((res) => { - Object.keys(res.data).map((item) => { - if (typeof (res.data[item]) === 'number') { - res.data[item] = res.data[item].toString() - } + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + current.value = '基本信息' + currentCompRef.value.submitForm().validate().then(() => { + props.buttonType === '' + ? getStandardListAdd(formInline.value).then((res) => { + if (res.code === 200) { + close() + } + }) + : submitFormDetail() }) - formInline.value = res.data }) } -if (props.buttonType !== '') { - getInfo() -} @@ -719,14 +149,8 @@ } } -.info-content { - margin-top: 10px; - padding: 30px; - border-radius: 10px; +.body { background-color: #fff; -} - -:deep .el-input .el-input--default .el-input--suffix { - width: 200px !important; + margin-top: 10px; } diff --git a/src/views/device/standardEquipment/expirationRemind.vue b/src/views/device/standardEquipment/expirationRemind.vue index 35786b2..1826c22 100644 --- a/src/views/device/standardEquipment/expirationRemind.vue +++ b/src/views/device/standardEquipment/expirationRemind.vue @@ -26,39 +26,47 @@ text: '标准代码', value: 'standardNo', width: '160', + align: 'center', }, { text: '标准名称', value: 'standardName', width: '90', + align: 'center', }, { text: '管理状态', value: 'managerStateName', width: '100', + align: 'center', }, { text: '标准所在部门', value: 'standardLaboratoryName', width: '120', + align: 'center', }, { text: '负责人', value: 'standardOwnerName', + align: 'center', }, { text: '建标项目', value: 'standardOwnerName', + align: 'center', }, { text: '筹建日期', value: 'preparationDate', width: '160', + align: 'center', }, { text: '有效日期', value: 'preparationDate', width: '160', + align: 'center', }, ]) const total = ref(0) @@ -326,12 +334,8 @@ - 编辑 + 详情 - 详情 + 提醒 +import applyList from './components/applyList.vue' // 逻辑代码 diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/all.vue b/src/views/device/standardEquipment/components/listApply/all.vue new file mode 100644 index 0000000..d124307 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/all.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/approvalPending.vue b/src/views/device/standardEquipment/components/listApply/approvalPending.vue new file mode 100644 index 0000000..8a7a8bc --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/approvalPending.vue @@ -0,0 +1,16 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/canceled.vue b/src/views/device/standardEquipment/components/listApply/canceled.vue new file mode 100644 index 0000000..3b9657c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/canceled.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/draftBox.vue b/src/views/device/standardEquipment/components/listApply/draftBox.vue new file mode 100644 index 0000000..43d7b75 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/draftBox.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue new file mode 100644 index 0000000..c13f95a --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPage.vue b/src/views/device/standardEquipment/components/listApply/listPage.vue new file mode 100644 index 0000000..5133627 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPage.vue @@ -0,0 +1,493 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue new file mode 100644 index 0000000..eb506ec --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -0,0 +1,1021 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/notPass.vue b/src/views/device/standardEquipment/components/listApply/notPass.vue new file mode 100644 index 0000000..5a4b817 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/notPass.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/passed.vue b/src/views/device/standardEquipment/components/listApply/passed.vue new file mode 100644 index 0000000..31cd21c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/passed.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/addRow.vue b/src/views/device/standardEquipment/components/standardList/addRow.vue new file mode 100644 index 0000000..9f2bf81 --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/addRow.vue @@ -0,0 +1,270 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue new file mode 100644 index 0000000..c47ad1d --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -0,0 +1,675 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue new file mode 100644 index 0000000..20eb800 --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -0,0 +1,387 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index ea13629..348bb41 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -3,6 +3,8 @@ import { ElMessage, ElMessageBox } from 'element-plus' import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' +import baseInfo from './standardList/baseInfo.vue' +import table from './standardList/temptable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -17,188 +19,35 @@ default: '', }, }) -const emit = defineEmits(['close']) // 关闭 -const ruleFormRef = ref() -// 逻辑代码 -const formInline = ref({ - assessDate: '', - assessmentUnit: '', - category: null, - categoryName: '', - constructionStandardProject: '', - constructionStandardUnitName: '', - contactInfo: '', - createTime: null, - createUser: null, - id: '', - isDel: null, - laboratoryOwner: null, - laboratoryOwnerContact: null, - laboratoryOwnerName: null, - managerState: null, - managerStateName: '', - measureMajor: null, - fileList: [], - measureMajorName: '', - mesureRange: '', - organizeNo: '', - preparationDate: '', - projectNo: '', - remark: '', - standardHumidity: null, - standardLaboratory: null, - standardLaboratoryName: '', - standardLevel: null, - standardLevelName: '', - standardName: '', - standardNo: '', - standardOwner: null, - standardOwnerName: '', - standardTemperature: null, - totalInvestment: null, - transmitRange: null, - transmitRangeName: '', - uncertainty: '', - updateTime: null, - version: null, -}) -const checkTypeOptions = ref([]) - -const standardOwnerOptions = ref([]) // 标准负责人 -const fileList = ref([]) // 文件对象数组 -const measureMajorList = ref([]) // 计量专业下拉框 -const standardManagerStateList = ref([]) // 管理状态下拉框 -const standardLevelList = ref([]) // 标准等级下拉框 -const transmitRangeList = ref([]) // 传递范围下拉框 -// 标准所在部门下拉框 -const standardUsersDeptList = ref([]) -// 获取下拉框 -const getSelectList = (code: string) => { - getTypeSelect(code).then((res) => { - if (code === 'measureMajor') { - measureMajorList.value = res.data - } - else if (code === 'standardManagerState') { - standardManagerStateList.value = res.data - } - else if (code === 'standardLevel') { - standardLevelList.value = res.data - } - else if (code === 'transmitRange') { - transmitRangeList.value = res.data - } - else if (code === 'standardCategory') { - checkTypeOptions.value = res.data - } - }) +const emit = defineEmits(['close']) +// 定义数据 +const formInline = ref({}) +// 关闭 +interface menuType { + name: string + comp: any } -getSelectList('measureMajor') // 获取计量专业下拉框 -getSelectList('standardManagerState') // 获取管理状态下拉框 -getSelectList('standardLevel') // 获取标准等级下拉框 -getSelectList('transmitRange') // 获取传递范围下拉框 -getSelectList('standardCategory') // 获取类别下拉框 -// 获取部门信息 -getUsersDept({ - createTime: '', - director: '', - meterMajor: '', - organizeName: '', - organizeNo: '', - organizeType: '2', - pdeptId: null, - offset: 1, - limit: 999999, -}).then((res) => { - standardUsersDeptList.value = res.data.rows +const menu = shallowRef([ + { name: '基本信息', comp: baseInfo }, + { name: '计量人员', comp: table }, + { name: '标准配套设备', comp: table }, + { name: '检定规程', comp: table }, + { name: '重复性考核记录', comp: table }, + { name: '稳定性考核记录', comp: table }, + { name: '证书管理', comp: table }, +]) +const currentCompRef = ref() +const current = ref('基本信息') +const currentComp = shallowRef(baseInfo) +watch(current, (newValue) => { + currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp }) -// 获取到标准负责人数组 -const getStandardOwnerOptions = () => { - const params = { - staffNo: '', // 人员编号 - name: '', // 姓名 - deptId: '', // 工作部门 - major: '', // 计量专业 - verifierCertificateNo: '', // 证书号 - certificateStatus: '', // 证书状态 - limit: 100000, - offset: 1, - } - getStaffList(params).then((res) => { - standardOwnerOptions.value = res.data.records - }) -} -getStandardOwnerOptions() // 关闭 const close = () => { emit('close') } -const rules = ref({ - standardName: [{ required: true, message: '标准名称不能为空', trigger: 'blur' }], - projectNo: [{ required: true, message: '项目编号不能为空', trigger: 'blur' }], - constructionStandardProject: [{ required: true, message: '建标项目不能为空', trigger: 'blur' }], - organizeNo: [{ required: true, message: '组织机构代码不能为空', trigger: 'blur' }], - constructionStandardUnitName: [{ required: true, message: '建标单位名称不能为空', trigger: 'blur' }], - standardOwner: [{ required: true, message: '标准负责人不能为空', trigger: 'blur' }], - contactInfo: [{ required: true, message: '联系方式不能为空', trigger: 'blur' }], - category: [{ required: true, message: '类 别不能为空', trigger: 'blur' }], - standardLevel: [{ required: true, message: '标准等级不能为空', trigger: 'blur' }], - transmitRange: [{ required: true, message: '传递范围不能为空', trigger: 'blur' }], - preparationDate: [{ required: true, message: '筹建日期不能为空', trigger: 'blur' }], - managerState: [{ required: true, message: '管理状态不能为空', trigger: 'blur' }], - measureMajor: [{ required: true, message: '计量专业不能为空', trigger: 'blur' }], - assessmentUnit: [{ required: true, message: '考核单位不能为空', trigger: 'blur' }], - assessDate: [{ required: true, message: '考核日期不能为空', trigger: 'blur' }], - uncertainty: [{ required: true, message: '不确定度不能为空', trigger: 'blur' }], - mesureRange: [{ required: true, message: '测量范围不能为空', trigger: 'blur' }], - standardTemperature: [{ required: true, message: '标准温度不能为空', trigger: 'blur' }, - { pattern: /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/, message: '标准温度只能为数字', trigger: 'blur' }], - standardHumidity: [{ required: true, message: '标准湿度不能为空', trigger: 'blur' }, - { pattern: /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/, message: '标准湿度只能为数字', trigger: 'blur' }], -}) // 表单验证规则 -// 上传请求 -const uploadQuarterlyEvaluateFile = (file: File) => { - const fd = new FormData() - fd.append('multipartFile', file.file) - UploadFile(fd).then((res) => { - if (res.code === 200) { - formInline.value.fileList = res.data - // 重置当前验证 - ElMessage.success('文件上传成功') - } - }) -} -const handleExceed: UploadProps['onExceed'] = (files, uploadFiles) => { - ElMessage.warning('只能上传一个文件') -} -// 移除时触发 -const beforeRemove: UploadProps['beforeRemove'] = (uploadFile, uploadFiles) => { - return ElMessageBox.confirm( - `确认移除${uploadFile.name}文件吗 ?`, - ).then( - () => true, - () => false, - - ) -} -// 点击文件预览 -const uploadShow = (e: any) => { - const URL = window.URL || window.webkitURL - window.open(URL.createObjectURL(e.raw)) -} -const testForm = ref({ - fileList: [], - fileContent: '', -}) -const handleFileChange = (files: any, fileList: any) => { - testForm.value.fileList = fileList - const reader = new FileReader() - reader.readAsText(files.raw) - // reader.onload = (e) => { - // testForm.value.fileContent = e.target!.result?.replace( - // /\n|\r\n/g, - // '
', - // ) - // } +const setData = (newValue: object) => { + formInline.value = newValue } // 编辑获取详情的提交按钮 const submitFormDetail = () => { @@ -223,60 +72,29 @@ } } // 提交 -const submitForm = (formEl: FormInstance | undefined) => { - if (!formEl) { return } +const submitForm = () => { if (props.buttonType === '详情') { return submitFormDetail() } - formEl.validate((valid, fields) => { - if (valid) { - ElMessageBox.confirm( - '确认提交吗?', - '提示', - { - confirmButtonText: '确认', - cancelButtonText: '取消', - type: 'warning', - }, - ).then(() => { - props.buttonType === '' - ? getStandardListAdd(formInline.value).then((res) => { - if (res.code === 200) { - close() - } - }) - : submitFormDetail() - }) - } - }) -} -// 标准实验室发生改变row类型 -interface rowReturn { - phone: string - director: string -} -// 标准实验室发生改变 -const changeDeptList = (row: object) => { - formInline.value.laboratoryOwnerContact = row.phone - formInline.value.laboratoryOwner = row.director -} -// 标准实验室清空时 -const clearDeptList = () => { - formInline.value.laboratoryOwnerContact = null - formInline.value.laboratoryOwner = null -} -// 获取详情信息 -const getInfo = () => { - getStandardListDetail({ id: props.infoId }).then((res) => { - Object.keys(res.data).map((item) => { - if (typeof (res.data[item]) === 'number') { - res.data[item] = res.data[item].toString() - } + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + current.value = '基本信息' + currentCompRef.value.submitForm().validate().then(() => { + props.buttonType === '' + ? getStandardListAdd(formInline.value).then((res) => { + if (res.code === 200) { + close() + } + }) + : submitFormDetail() }) - formInline.value = res.data }) } -if (props.buttonType !== '') { - getInfo() -} @@ -719,14 +149,8 @@ } } -.info-content { - margin-top: 10px; - padding: 30px; - border-radius: 10px; +.body { background-color: #fff; -} - -:deep .el-input .el-input--default .el-input--suffix { - width: 200px !important; + margin-top: 10px; } diff --git a/src/views/device/standardEquipment/expirationRemind.vue b/src/views/device/standardEquipment/expirationRemind.vue index 35786b2..1826c22 100644 --- a/src/views/device/standardEquipment/expirationRemind.vue +++ b/src/views/device/standardEquipment/expirationRemind.vue @@ -26,39 +26,47 @@ text: '标准代码', value: 'standardNo', width: '160', + align: 'center', }, { text: '标准名称', value: 'standardName', width: '90', + align: 'center', }, { text: '管理状态', value: 'managerStateName', width: '100', + align: 'center', }, { text: '标准所在部门', value: 'standardLaboratoryName', width: '120', + align: 'center', }, { text: '负责人', value: 'standardOwnerName', + align: 'center', }, { text: '建标项目', value: 'standardOwnerName', + align: 'center', }, { text: '筹建日期', value: 'preparationDate', width: '160', + align: 'center', }, { text: '有效日期', value: 'preparationDate', width: '160', + align: 'center', }, ]) const total = ref(0) @@ -326,12 +334,8 @@ - 编辑 + 详情
- 详情 + 提醒 +import applyList from './components/applyList.vue' // 逻辑代码 diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/all.vue b/src/views/device/standardEquipment/components/listApply/all.vue new file mode 100644 index 0000000..d124307 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/all.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/approvalPending.vue b/src/views/device/standardEquipment/components/listApply/approvalPending.vue new file mode 100644 index 0000000..8a7a8bc --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/approvalPending.vue @@ -0,0 +1,16 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/canceled.vue b/src/views/device/standardEquipment/components/listApply/canceled.vue new file mode 100644 index 0000000..3b9657c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/canceled.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/draftBox.vue b/src/views/device/standardEquipment/components/listApply/draftBox.vue new file mode 100644 index 0000000..43d7b75 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/draftBox.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue new file mode 100644 index 0000000..c13f95a --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPage.vue b/src/views/device/standardEquipment/components/listApply/listPage.vue new file mode 100644 index 0000000..5133627 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPage.vue @@ -0,0 +1,493 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue new file mode 100644 index 0000000..eb506ec --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -0,0 +1,1021 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/notPass.vue b/src/views/device/standardEquipment/components/listApply/notPass.vue new file mode 100644 index 0000000..5a4b817 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/notPass.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/passed.vue b/src/views/device/standardEquipment/components/listApply/passed.vue new file mode 100644 index 0000000..31cd21c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/passed.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/addRow.vue b/src/views/device/standardEquipment/components/standardList/addRow.vue new file mode 100644 index 0000000..9f2bf81 --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/addRow.vue @@ -0,0 +1,270 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue new file mode 100644 index 0000000..c47ad1d --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -0,0 +1,675 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue new file mode 100644 index 0000000..20eb800 --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -0,0 +1,387 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index ea13629..348bb41 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -3,6 +3,8 @@ import { ElMessage, ElMessageBox } from 'element-plus' import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' +import baseInfo from './standardList/baseInfo.vue' +import table from './standardList/temptable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -17,188 +19,35 @@ default: '', }, }) -const emit = defineEmits(['close']) // 关闭 -const ruleFormRef = ref() -// 逻辑代码 -const formInline = ref({ - assessDate: '', - assessmentUnit: '', - category: null, - categoryName: '', - constructionStandardProject: '', - constructionStandardUnitName: '', - contactInfo: '', - createTime: null, - createUser: null, - id: '', - isDel: null, - laboratoryOwner: null, - laboratoryOwnerContact: null, - laboratoryOwnerName: null, - managerState: null, - managerStateName: '', - measureMajor: null, - fileList: [], - measureMajorName: '', - mesureRange: '', - organizeNo: '', - preparationDate: '', - projectNo: '', - remark: '', - standardHumidity: null, - standardLaboratory: null, - standardLaboratoryName: '', - standardLevel: null, - standardLevelName: '', - standardName: '', - standardNo: '', - standardOwner: null, - standardOwnerName: '', - standardTemperature: null, - totalInvestment: null, - transmitRange: null, - transmitRangeName: '', - uncertainty: '', - updateTime: null, - version: null, -}) -const checkTypeOptions = ref([]) - -const standardOwnerOptions = ref([]) // 标准负责人 -const fileList = ref([]) // 文件对象数组 -const measureMajorList = ref([]) // 计量专业下拉框 -const standardManagerStateList = ref([]) // 管理状态下拉框 -const standardLevelList = ref([]) // 标准等级下拉框 -const transmitRangeList = ref([]) // 传递范围下拉框 -// 标准所在部门下拉框 -const standardUsersDeptList = ref([]) -// 获取下拉框 -const getSelectList = (code: string) => { - getTypeSelect(code).then((res) => { - if (code === 'measureMajor') { - measureMajorList.value = res.data - } - else if (code === 'standardManagerState') { - standardManagerStateList.value = res.data - } - else if (code === 'standardLevel') { - standardLevelList.value = res.data - } - else if (code === 'transmitRange') { - transmitRangeList.value = res.data - } - else if (code === 'standardCategory') { - checkTypeOptions.value = res.data - } - }) +const emit = defineEmits(['close']) +// 定义数据 +const formInline = ref({}) +// 关闭 +interface menuType { + name: string + comp: any } -getSelectList('measureMajor') // 获取计量专业下拉框 -getSelectList('standardManagerState') // 获取管理状态下拉框 -getSelectList('standardLevel') // 获取标准等级下拉框 -getSelectList('transmitRange') // 获取传递范围下拉框 -getSelectList('standardCategory') // 获取类别下拉框 -// 获取部门信息 -getUsersDept({ - createTime: '', - director: '', - meterMajor: '', - organizeName: '', - organizeNo: '', - organizeType: '2', - pdeptId: null, - offset: 1, - limit: 999999, -}).then((res) => { - standardUsersDeptList.value = res.data.rows +const menu = shallowRef([ + { name: '基本信息', comp: baseInfo }, + { name: '计量人员', comp: table }, + { name: '标准配套设备', comp: table }, + { name: '检定规程', comp: table }, + { name: '重复性考核记录', comp: table }, + { name: '稳定性考核记录', comp: table }, + { name: '证书管理', comp: table }, +]) +const currentCompRef = ref() +const current = ref('基本信息') +const currentComp = shallowRef(baseInfo) +watch(current, (newValue) => { + currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp }) -// 获取到标准负责人数组 -const getStandardOwnerOptions = () => { - const params = { - staffNo: '', // 人员编号 - name: '', // 姓名 - deptId: '', // 工作部门 - major: '', // 计量专业 - verifierCertificateNo: '', // 证书号 - certificateStatus: '', // 证书状态 - limit: 100000, - offset: 1, - } - getStaffList(params).then((res) => { - standardOwnerOptions.value = res.data.records - }) -} -getStandardOwnerOptions() // 关闭 const close = () => { emit('close') } -const rules = ref({ - standardName: [{ required: true, message: '标准名称不能为空', trigger: 'blur' }], - projectNo: [{ required: true, message: '项目编号不能为空', trigger: 'blur' }], - constructionStandardProject: [{ required: true, message: '建标项目不能为空', trigger: 'blur' }], - organizeNo: [{ required: true, message: '组织机构代码不能为空', trigger: 'blur' }], - constructionStandardUnitName: [{ required: true, message: '建标单位名称不能为空', trigger: 'blur' }], - standardOwner: [{ required: true, message: '标准负责人不能为空', trigger: 'blur' }], - contactInfo: [{ required: true, message: '联系方式不能为空', trigger: 'blur' }], - category: [{ required: true, message: '类 别不能为空', trigger: 'blur' }], - standardLevel: [{ required: true, message: '标准等级不能为空', trigger: 'blur' }], - transmitRange: [{ required: true, message: '传递范围不能为空', trigger: 'blur' }], - preparationDate: [{ required: true, message: '筹建日期不能为空', trigger: 'blur' }], - managerState: [{ required: true, message: '管理状态不能为空', trigger: 'blur' }], - measureMajor: [{ required: true, message: '计量专业不能为空', trigger: 'blur' }], - assessmentUnit: [{ required: true, message: '考核单位不能为空', trigger: 'blur' }], - assessDate: [{ required: true, message: '考核日期不能为空', trigger: 'blur' }], - uncertainty: [{ required: true, message: '不确定度不能为空', trigger: 'blur' }], - mesureRange: [{ required: true, message: '测量范围不能为空', trigger: 'blur' }], - standardTemperature: [{ required: true, message: '标准温度不能为空', trigger: 'blur' }, - { pattern: /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/, message: '标准温度只能为数字', trigger: 'blur' }], - standardHumidity: [{ required: true, message: '标准湿度不能为空', trigger: 'blur' }, - { pattern: /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/, message: '标准湿度只能为数字', trigger: 'blur' }], -}) // 表单验证规则 -// 上传请求 -const uploadQuarterlyEvaluateFile = (file: File) => { - const fd = new FormData() - fd.append('multipartFile', file.file) - UploadFile(fd).then((res) => { - if (res.code === 200) { - formInline.value.fileList = res.data - // 重置当前验证 - ElMessage.success('文件上传成功') - } - }) -} -const handleExceed: UploadProps['onExceed'] = (files, uploadFiles) => { - ElMessage.warning('只能上传一个文件') -} -// 移除时触发 -const beforeRemove: UploadProps['beforeRemove'] = (uploadFile, uploadFiles) => { - return ElMessageBox.confirm( - `确认移除${uploadFile.name}文件吗 ?`, - ).then( - () => true, - () => false, - - ) -} -// 点击文件预览 -const uploadShow = (e: any) => { - const URL = window.URL || window.webkitURL - window.open(URL.createObjectURL(e.raw)) -} -const testForm = ref({ - fileList: [], - fileContent: '', -}) -const handleFileChange = (files: any, fileList: any) => { - testForm.value.fileList = fileList - const reader = new FileReader() - reader.readAsText(files.raw) - // reader.onload = (e) => { - // testForm.value.fileContent = e.target!.result?.replace( - // /\n|\r\n/g, - // '
', - // ) - // } +const setData = (newValue: object) => { + formInline.value = newValue } // 编辑获取详情的提交按钮 const submitFormDetail = () => { @@ -223,60 +72,29 @@ } } // 提交 -const submitForm = (formEl: FormInstance | undefined) => { - if (!formEl) { return } +const submitForm = () => { if (props.buttonType === '详情') { return submitFormDetail() } - formEl.validate((valid, fields) => { - if (valid) { - ElMessageBox.confirm( - '确认提交吗?', - '提示', - { - confirmButtonText: '确认', - cancelButtonText: '取消', - type: 'warning', - }, - ).then(() => { - props.buttonType === '' - ? getStandardListAdd(formInline.value).then((res) => { - if (res.code === 200) { - close() - } - }) - : submitFormDetail() - }) - } - }) -} -// 标准实验室发生改变row类型 -interface rowReturn { - phone: string - director: string -} -// 标准实验室发生改变 -const changeDeptList = (row: object) => { - formInline.value.laboratoryOwnerContact = row.phone - formInline.value.laboratoryOwner = row.director -} -// 标准实验室清空时 -const clearDeptList = () => { - formInline.value.laboratoryOwnerContact = null - formInline.value.laboratoryOwner = null -} -// 获取详情信息 -const getInfo = () => { - getStandardListDetail({ id: props.infoId }).then((res) => { - Object.keys(res.data).map((item) => { - if (typeof (res.data[item]) === 'number') { - res.data[item] = res.data[item].toString() - } + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + current.value = '基本信息' + currentCompRef.value.submitForm().validate().then(() => { + props.buttonType === '' + ? getStandardListAdd(formInline.value).then((res) => { + if (res.code === 200) { + close() + } + }) + : submitFormDetail() }) - formInline.value = res.data }) } -if (props.buttonType !== '') { - getInfo() -} @@ -719,14 +149,8 @@ } } -.info-content { - margin-top: 10px; - padding: 30px; - border-radius: 10px; +.body { background-color: #fff; -} - -:deep .el-input .el-input--default .el-input--suffix { - width: 200px !important; + margin-top: 10px; } diff --git a/src/views/device/standardEquipment/expirationRemind.vue b/src/views/device/standardEquipment/expirationRemind.vue index 35786b2..1826c22 100644 --- a/src/views/device/standardEquipment/expirationRemind.vue +++ b/src/views/device/standardEquipment/expirationRemind.vue @@ -26,39 +26,47 @@ text: '标准代码', value: 'standardNo', width: '160', + align: 'center', }, { text: '标准名称', value: 'standardName', width: '90', + align: 'center', }, { text: '管理状态', value: 'managerStateName', width: '100', + align: 'center', }, { text: '标准所在部门', value: 'standardLaboratoryName', width: '120', + align: 'center', }, { text: '负责人', value: 'standardOwnerName', + align: 'center', }, { text: '建标项目', value: 'standardOwnerName', + align: 'center', }, { text: '筹建日期', value: 'preparationDate', width: '160', + align: 'center', }, { text: '有效日期', value: 'preparationDate', width: '160', + align: 'center', }, ]) const total = ref(0) @@ -326,12 +334,8 @@ - 编辑 + 详情
- 详情 + 提醒 +import applyList from './components/applyList.vue' // 逻辑代码 diff --git a/src/views/device/standardEquipment/resumeApply.vue b/src/views/device/standardEquipment/resumeApply.vue index d4a80e8..b5896fc 100644 --- a/src/views/device/standardEquipment/resumeApply.vue +++ b/src/views/device/standardEquipment/resumeApply.vue @@ -1,10 +1,11 @@ diff --git a/src/components.d.ts b/src/components.d.ts index fea7d82..6e85584 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -16,6 +16,7 @@ BarChartHorizontal: typeof import('./components/Echart/BarChartHorizontal.vue')['default'] BarChartVertical: typeof import('./components/Echart/BarChartVertical.vue')['default'] BatchActionBar: typeof import('./components/BatchActionBar/index.vue')['default'] + Benchcol: typeof import('./components/benchcol/index.vue')['default'] BenchCol: typeof import('./components/benchCol/index.vue')['default'] ConditionDrawer: typeof import('./components/drawer/conditionDrawer.vue')['default'] copy: typeof import('./components/DetailPage/index copy.vue')['default'] diff --git a/src/views/device/standardEquipment/cancelApply.vue b/src/views/device/standardEquipment/cancelApply.vue index c093520..1e50f44 100644 --- a/src/views/device/standardEquipment/cancelApply.vue +++ b/src/views/device/standardEquipment/cancelApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/changeApply.vue b/src/views/device/standardEquipment/changeApply.vue index 0762330..6625970 100644 --- a/src/views/device/standardEquipment/changeApply.vue +++ b/src/views/device/standardEquipment/changeApply.vue @@ -1,10 +1,11 @@ - diff --git a/src/views/device/standardEquipment/checkApply.vue b/src/views/device/standardEquipment/checkApply.vue index 9cadc01..6625970 100644 --- a/src/views/device/standardEquipment/checkApply.vue +++ b/src/views/device/standardEquipment/checkApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/components/applyList.vue b/src/views/device/standardEquipment/components/applyList.vue new file mode 100644 index 0000000..45be74a --- /dev/null +++ b/src/views/device/standardEquipment/components/applyList.vue @@ -0,0 +1,65 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/all.vue b/src/views/device/standardEquipment/components/listApply/all.vue new file mode 100644 index 0000000..d124307 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/all.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/approvalPending.vue b/src/views/device/standardEquipment/components/listApply/approvalPending.vue new file mode 100644 index 0000000..8a7a8bc --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/approvalPending.vue @@ -0,0 +1,16 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/canceled.vue b/src/views/device/standardEquipment/components/listApply/canceled.vue new file mode 100644 index 0000000..3b9657c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/canceled.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/draftBox.vue b/src/views/device/standardEquipment/components/listApply/draftBox.vue new file mode 100644 index 0000000..43d7b75 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/draftBox.vue @@ -0,0 +1,15 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue new file mode 100644 index 0000000..c13f95a --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/examineAndApprove.vue @@ -0,0 +1,17 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPage.vue b/src/views/device/standardEquipment/components/listApply/listPage.vue new file mode 100644 index 0000000..5133627 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPage.vue @@ -0,0 +1,493 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/listPageAdd.vue b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue new file mode 100644 index 0000000..eb506ec --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/listPageAdd.vue @@ -0,0 +1,1021 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/listApply/notPass.vue b/src/views/device/standardEquipment/components/listApply/notPass.vue new file mode 100644 index 0000000..5a4b817 --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/notPass.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/views/device/standardEquipment/components/listApply/passed.vue b/src/views/device/standardEquipment/components/listApply/passed.vue new file mode 100644 index 0000000..31cd21c --- /dev/null +++ b/src/views/device/standardEquipment/components/listApply/passed.vue @@ -0,0 +1,10 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/addRow.vue b/src/views/device/standardEquipment/components/standardList/addRow.vue new file mode 100644 index 0000000..9f2bf81 --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/addRow.vue @@ -0,0 +1,270 @@ + + + + diff --git a/src/views/device/standardEquipment/components/standardList/baseInfo.vue b/src/views/device/standardEquipment/components/standardList/baseInfo.vue new file mode 100644 index 0000000..c47ad1d --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/baseInfo.vue @@ -0,0 +1,675 @@ + + + + + diff --git a/src/views/device/standardEquipment/components/standardList/temptable.vue b/src/views/device/standardEquipment/components/standardList/temptable.vue new file mode 100644 index 0000000..20eb800 --- /dev/null +++ b/src/views/device/standardEquipment/components/standardList/temptable.vue @@ -0,0 +1,387 @@ + + + + + + diff --git a/src/views/device/standardEquipment/components/standardListAdd.vue b/src/views/device/standardEquipment/components/standardListAdd.vue index ea13629..348bb41 100644 --- a/src/views/device/standardEquipment/components/standardListAdd.vue +++ b/src/views/device/standardEquipment/components/standardListAdd.vue @@ -3,6 +3,8 @@ import { ElMessage, ElMessageBox } from 'element-plus' import type { FormInstance, UploadProps, UploadUserFile } from 'element-plus' import type { IOptions } from '../standard_interface' +import baseInfo from './standardList/baseInfo.vue' +import table from './standardList/temptable.vue' import { getStaffList } from '@/api/measure/person' import { getTypeSelect } from '@/api/system/price' import { getStandardLisUpdate, getStandardListAdd, getStandardListDetail, getUsersDept } from '@/api/device/standard' @@ -17,188 +19,35 @@ default: '', }, }) -const emit = defineEmits(['close']) // 关闭 -const ruleFormRef = ref() -// 逻辑代码 -const formInline = ref({ - assessDate: '', - assessmentUnit: '', - category: null, - categoryName: '', - constructionStandardProject: '', - constructionStandardUnitName: '', - contactInfo: '', - createTime: null, - createUser: null, - id: '', - isDel: null, - laboratoryOwner: null, - laboratoryOwnerContact: null, - laboratoryOwnerName: null, - managerState: null, - managerStateName: '', - measureMajor: null, - fileList: [], - measureMajorName: '', - mesureRange: '', - organizeNo: '', - preparationDate: '', - projectNo: '', - remark: '', - standardHumidity: null, - standardLaboratory: null, - standardLaboratoryName: '', - standardLevel: null, - standardLevelName: '', - standardName: '', - standardNo: '', - standardOwner: null, - standardOwnerName: '', - standardTemperature: null, - totalInvestment: null, - transmitRange: null, - transmitRangeName: '', - uncertainty: '', - updateTime: null, - version: null, -}) -const checkTypeOptions = ref([]) - -const standardOwnerOptions = ref([]) // 标准负责人 -const fileList = ref([]) // 文件对象数组 -const measureMajorList = ref([]) // 计量专业下拉框 -const standardManagerStateList = ref([]) // 管理状态下拉框 -const standardLevelList = ref([]) // 标准等级下拉框 -const transmitRangeList = ref([]) // 传递范围下拉框 -// 标准所在部门下拉框 -const standardUsersDeptList = ref([]) -// 获取下拉框 -const getSelectList = (code: string) => { - getTypeSelect(code).then((res) => { - if (code === 'measureMajor') { - measureMajorList.value = res.data - } - else if (code === 'standardManagerState') { - standardManagerStateList.value = res.data - } - else if (code === 'standardLevel') { - standardLevelList.value = res.data - } - else if (code === 'transmitRange') { - transmitRangeList.value = res.data - } - else if (code === 'standardCategory') { - checkTypeOptions.value = res.data - } - }) +const emit = defineEmits(['close']) +// 定义数据 +const formInline = ref({}) +// 关闭 +interface menuType { + name: string + comp: any } -getSelectList('measureMajor') // 获取计量专业下拉框 -getSelectList('standardManagerState') // 获取管理状态下拉框 -getSelectList('standardLevel') // 获取标准等级下拉框 -getSelectList('transmitRange') // 获取传递范围下拉框 -getSelectList('standardCategory') // 获取类别下拉框 -// 获取部门信息 -getUsersDept({ - createTime: '', - director: '', - meterMajor: '', - organizeName: '', - organizeNo: '', - organizeType: '2', - pdeptId: null, - offset: 1, - limit: 999999, -}).then((res) => { - standardUsersDeptList.value = res.data.rows +const menu = shallowRef([ + { name: '基本信息', comp: baseInfo }, + { name: '计量人员', comp: table }, + { name: '标准配套设备', comp: table }, + { name: '检定规程', comp: table }, + { name: '重复性考核记录', comp: table }, + { name: '稳定性考核记录', comp: table }, + { name: '证书管理', comp: table }, +]) +const currentCompRef = ref() +const current = ref('基本信息') +const currentComp = shallowRef(baseInfo) +watch(current, (newValue) => { + currentComp.value = menu.value.filter(item => item.name === newValue)[0].comp }) -// 获取到标准负责人数组 -const getStandardOwnerOptions = () => { - const params = { - staffNo: '', // 人员编号 - name: '', // 姓名 - deptId: '', // 工作部门 - major: '', // 计量专业 - verifierCertificateNo: '', // 证书号 - certificateStatus: '', // 证书状态 - limit: 100000, - offset: 1, - } - getStaffList(params).then((res) => { - standardOwnerOptions.value = res.data.records - }) -} -getStandardOwnerOptions() // 关闭 const close = () => { emit('close') } -const rules = ref({ - standardName: [{ required: true, message: '标准名称不能为空', trigger: 'blur' }], - projectNo: [{ required: true, message: '项目编号不能为空', trigger: 'blur' }], - constructionStandardProject: [{ required: true, message: '建标项目不能为空', trigger: 'blur' }], - organizeNo: [{ required: true, message: '组织机构代码不能为空', trigger: 'blur' }], - constructionStandardUnitName: [{ required: true, message: '建标单位名称不能为空', trigger: 'blur' }], - standardOwner: [{ required: true, message: '标准负责人不能为空', trigger: 'blur' }], - contactInfo: [{ required: true, message: '联系方式不能为空', trigger: 'blur' }], - category: [{ required: true, message: '类 别不能为空', trigger: 'blur' }], - standardLevel: [{ required: true, message: '标准等级不能为空', trigger: 'blur' }], - transmitRange: [{ required: true, message: '传递范围不能为空', trigger: 'blur' }], - preparationDate: [{ required: true, message: '筹建日期不能为空', trigger: 'blur' }], - managerState: [{ required: true, message: '管理状态不能为空', trigger: 'blur' }], - measureMajor: [{ required: true, message: '计量专业不能为空', trigger: 'blur' }], - assessmentUnit: [{ required: true, message: '考核单位不能为空', trigger: 'blur' }], - assessDate: [{ required: true, message: '考核日期不能为空', trigger: 'blur' }], - uncertainty: [{ required: true, message: '不确定度不能为空', trigger: 'blur' }], - mesureRange: [{ required: true, message: '测量范围不能为空', trigger: 'blur' }], - standardTemperature: [{ required: true, message: '标准温度不能为空', trigger: 'blur' }, - { pattern: /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/, message: '标准温度只能为数字', trigger: 'blur' }], - standardHumidity: [{ required: true, message: '标准湿度不能为空', trigger: 'blur' }, - { pattern: /(^-?\d\d*\.\d*$)|(^-?\d\d*$)|(^-?\.\d\d*$)/, message: '标准湿度只能为数字', trigger: 'blur' }], -}) // 表单验证规则 -// 上传请求 -const uploadQuarterlyEvaluateFile = (file: File) => { - const fd = new FormData() - fd.append('multipartFile', file.file) - UploadFile(fd).then((res) => { - if (res.code === 200) { - formInline.value.fileList = res.data - // 重置当前验证 - ElMessage.success('文件上传成功') - } - }) -} -const handleExceed: UploadProps['onExceed'] = (files, uploadFiles) => { - ElMessage.warning('只能上传一个文件') -} -// 移除时触发 -const beforeRemove: UploadProps['beforeRemove'] = (uploadFile, uploadFiles) => { - return ElMessageBox.confirm( - `确认移除${uploadFile.name}文件吗 ?`, - ).then( - () => true, - () => false, - - ) -} -// 点击文件预览 -const uploadShow = (e: any) => { - const URL = window.URL || window.webkitURL - window.open(URL.createObjectURL(e.raw)) -} -const testForm = ref({ - fileList: [], - fileContent: '', -}) -const handleFileChange = (files: any, fileList: any) => { - testForm.value.fileList = fileList - const reader = new FileReader() - reader.readAsText(files.raw) - // reader.onload = (e) => { - // testForm.value.fileContent = e.target!.result?.replace( - // /\n|\r\n/g, - // '
', - // ) - // } +const setData = (newValue: object) => { + formInline.value = newValue } // 编辑获取详情的提交按钮 const submitFormDetail = () => { @@ -223,60 +72,29 @@ } } // 提交 -const submitForm = (formEl: FormInstance | undefined) => { - if (!formEl) { return } +const submitForm = () => { if (props.buttonType === '详情') { return submitFormDetail() } - formEl.validate((valid, fields) => { - if (valid) { - ElMessageBox.confirm( - '确认提交吗?', - '提示', - { - confirmButtonText: '确认', - cancelButtonText: '取消', - type: 'warning', - }, - ).then(() => { - props.buttonType === '' - ? getStandardListAdd(formInline.value).then((res) => { - if (res.code === 200) { - close() - } - }) - : submitFormDetail() - }) - } - }) -} -// 标准实验室发生改变row类型 -interface rowReturn { - phone: string - director: string -} -// 标准实验室发生改变 -const changeDeptList = (row: object) => { - formInline.value.laboratoryOwnerContact = row.phone - formInline.value.laboratoryOwner = row.director -} -// 标准实验室清空时 -const clearDeptList = () => { - formInline.value.laboratoryOwnerContact = null - formInline.value.laboratoryOwner = null -} -// 获取详情信息 -const getInfo = () => { - getStandardListDetail({ id: props.infoId }).then((res) => { - Object.keys(res.data).map((item) => { - if (typeof (res.data[item]) === 'number') { - res.data[item] = res.data[item].toString() - } + ElMessageBox.confirm( + '确认提交吗?', + '提示', + { + confirmButtonText: '确认', + cancelButtonText: '取消', + type: 'warning', + }, + ).then(() => { + current.value = '基本信息' + currentCompRef.value.submitForm().validate().then(() => { + props.buttonType === '' + ? getStandardListAdd(formInline.value).then((res) => { + if (res.code === 200) { + close() + } + }) + : submitFormDetail() }) - formInline.value = res.data }) } -if (props.buttonType !== '') { - getInfo() -} @@ -719,14 +149,8 @@ } } -.info-content { - margin-top: 10px; - padding: 30px; - border-radius: 10px; +.body { background-color: #fff; -} - -:deep .el-input .el-input--default .el-input--suffix { - width: 200px !important; + margin-top: 10px; } diff --git a/src/views/device/standardEquipment/expirationRemind.vue b/src/views/device/standardEquipment/expirationRemind.vue index 35786b2..1826c22 100644 --- a/src/views/device/standardEquipment/expirationRemind.vue +++ b/src/views/device/standardEquipment/expirationRemind.vue @@ -26,39 +26,47 @@ text: '标准代码', value: 'standardNo', width: '160', + align: 'center', }, { text: '标准名称', value: 'standardName', width: '90', + align: 'center', }, { text: '管理状态', value: 'managerStateName', width: '100', + align: 'center', }, { text: '标准所在部门', value: 'standardLaboratoryName', width: '120', + align: 'center', }, { text: '负责人', value: 'standardOwnerName', + align: 'center', }, { text: '建标项目', value: 'standardOwnerName', + align: 'center', }, { text: '筹建日期', value: 'preparationDate', width: '160', + align: 'center', }, { text: '有效日期', value: 'preparationDate', width: '160', + align: 'center', }, ]) const total = ref(0) @@ -326,12 +334,8 @@ - 编辑 + 详情
- 详情 + 提醒 +import applyList from './components/applyList.vue' // 逻辑代码 diff --git a/src/views/device/standardEquipment/resumeApply.vue b/src/views/device/standardEquipment/resumeApply.vue index d4a80e8..b5896fc 100644 --- a/src/views/device/standardEquipment/resumeApply.vue +++ b/src/views/device/standardEquipment/resumeApply.vue @@ -1,10 +1,11 @@ diff --git a/src/views/device/standardEquipment/standardList.vue b/src/views/device/standardEquipment/standardList.vue index 4f1bfdf..348ed71 100644 --- a/src/views/device/standardEquipment/standardList.vue +++ b/src/views/device/standardEquipment/standardList.vue @@ -29,50 +29,60 @@ text: '标准代码', value: 'standardNo', width: '120', + align: 'center', }, { text: '标准名称', value: 'standardName', width: '90', + align: 'center', }, { text: '类别', value: 'categoryName', width: '80', + align: 'center', }, { text: '标准等级', value: 'standardLevelName', width: '100', + align: 'center', }, { text: '传递范围', value: 'transmitRange', width: '110', + align: 'center', }, { text: '管理状态', value: 'managerStateName', width: '100', + align: 'center', }, { text: '标准所在部门', value: 'standardLaboratoryName', width: '120', + align: 'center', }, { text: '负责人', value: 'laboratoryOwner', + align: 'center', }, { text: '筹建日期', value: 'preparationDate', width: '110', + align: 'center', }, { text: '备注', value: 'remark', width: '80', + align: 'center', }, ]) const total = ref(0) @@ -250,6 +260,9 @@ buttonType.value = text isShow.value = false } +const renderHeader = (e: any) => { + console.log(e) +}