From 82ce5836eefbfacc0e8033ea099d5462068e4f14 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Wed, 24 Apr 2024 09:22:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sgzb-ui/src/components/DialogModel/index.vue | 2 - sgzb-ui/src/components/TableModel/index.vue | 2 - .../views/scrapManage/component/selDepart.vue | 5 +- .../forecastWaste/auditingReturn.vue | 94 ----- .../scrapManage/forecastWaste/auditingcss.vue | 357 ------------------ .../views/scrapManage/forecastWaste/index.js | 152 -------- .../forecastWaste/listing/index.vue | 13 +- .../scrapManage/forecastWaste/listingcss.vue | 263 ------------- .../scrapManage/scrap/disposition/index.vue | 2 +- 9 files changed, 14 insertions(+), 876 deletions(-) delete mode 100644 sgzb-ui/src/views/scrapManage/forecastWaste/auditingReturn.vue delete mode 100644 sgzb-ui/src/views/scrapManage/forecastWaste/auditingcss.vue delete mode 100644 sgzb-ui/src/views/scrapManage/forecastWaste/index.js delete mode 100644 sgzb-ui/src/views/scrapManage/forecastWaste/listingcss.vue diff --git a/sgzb-ui/src/components/DialogModel/index.vue b/sgzb-ui/src/components/DialogModel/index.vue index 744762e5..0db62f1f 100644 --- a/sgzb-ui/src/components/DialogModel/index.vue +++ b/sgzb-ui/src/components/DialogModel/index.vue @@ -53,5 +53,3 @@ }, } - - diff --git a/sgzb-ui/src/components/TableModel/index.vue b/sgzb-ui/src/components/TableModel/index.vue index 29c4af47..d1b6688b 100644 --- a/sgzb-ui/src/components/TableModel/index.vue +++ b/sgzb-ui/src/components/TableModel/index.vue @@ -167,7 +167,6 @@ methods: { /* form 查询组件触发的自定义事件 */ async queryList(val, reset) { - console.log('查询') if (reset) { this.pageParams.pageNum = 1 this.pageParams.pageSize = 10 @@ -197,7 +196,6 @@ /* 表格复选框事件 */ handleSelectionChange(row) { - console.log(row, '列表复选框') this.$emit('getTableSelectionChange', row) }, /* 清除表格的选中状态 */ diff --git a/sgzb-ui/src/views/scrapManage/component/selDepart.vue b/sgzb-ui/src/views/scrapManage/component/selDepart.vue index 2efafe42..046e976a 100644 --- a/sgzb-ui/src/views/scrapManage/component/selDepart.vue +++ b/sgzb-ui/src/views/scrapManage/component/selDepart.vue @@ -106,7 +106,6 @@ } }) - console.log(temp, 'temp') if (temp) { this.$message.error('该单位已选择,不可重复选择') return @@ -145,13 +144,15 @@ /* 取消按钮 */ handelCancel() { - this.selDeptList = [] this.$emit('closeDepartSel', false) + this.selDeptList = [] + this.selDeptAmount = 0 }, /* 确定按钮 */ handelSubmit() { this.$emit('closeDepartSel', false, this.selDeptList) this.selDeptList = [] + this.selDeptAmount = 0 }, }, watch: { diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/auditingReturn.vue b/sgzb-ui/src/views/scrapManage/forecastWaste/auditingReturn.vue deleted file mode 100644 index 555230fb..00000000 --- a/sgzb-ui/src/views/scrapManage/forecastWaste/auditingReturn.vue +++ /dev/null @@ -1,94 +0,0 @@ - - - - - diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/auditingcss.vue b/sgzb-ui/src/views/scrapManage/forecastWaste/auditingcss.vue deleted file mode 100644 index 9c3f5d09..00000000 --- a/sgzb-ui/src/views/scrapManage/forecastWaste/auditingcss.vue +++ /dev/null @@ -1,357 +0,0 @@ - - - - - diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/index.js b/sgzb-ui/src/views/scrapManage/forecastWaste/index.js deleted file mode 100644 index b3128b43..00000000 --- a/sgzb-ui/src/views/scrapManage/forecastWaste/index.js +++ /dev/null @@ -1,152 +0,0 @@ - -import { - getUnitInfoSelectApi, - listPartTypeApi, -} from '@/api/repairTest/repair' -import { getProjectList } from '@/api/claimAndRefund/receive' - -let unitList = [] //单位下拉数据 -let proList = [] //工程下拉数据 -let typeList = [] //类型下拉数据 -export const config = { - /* 预报废审核主页 列表参数 */ - tableProps: [ - { t_width: '55px', t_props: '', t_label: '序号' }, - { t_width: '', t_props: 'scrapNum', t_label: '预报废单号', }, - { t_width: '', t_props: '', t_label: '报废来源', t_slot: 'source', }, - { t_width: '', t_props: 'repairNum', t_label: '单号', t_slot: 'code', }, - { t_width: '', t_props: 'unitName', t_label: '退料单位名称', }, - { t_width: '', t_props: 'projectName', t_label: '退料工程名称', }, - { t_width: '', t_props: 'itemType', t_label: '设备类型', }, - { t_width: '', t_props: 'createBy', t_label: '任务创建人', }, - { t_width: '', t_props: 'createTime', t_label: '任务创建时间', }, - { t_width: '', t_props: 'taskStatus', t_label: '审核状态', t_slot: 'type', }, - { t_width: '', t_props: '', t_label: '不通过原因', }, - ], - /* 预报废审核主页表单 查询参数 */ - formLabel: [ - { f_label: '关键字', f_model: 'keywords', f_type: 'ipt' }, - { f_label: '单位名称', f_model: 'backUnit', f_type: 'sel', f_selList: [] }, - { f_label: '工程名称', f_model: 'backPro', f_type: 'sel', f_selList: [] }, - { f_label: '工机具类型', f_model: 'type', f_type: 'selCas', f_selList: [], optionProps: { value: 'id', } }, - { f_label: '报废来源', f_model: 'laiyuan', f_type: 'sel', f_selList: [] }, - { f_label: '审批状态', f_model: 'taskStatus', f_type: 'sel', f_selList: [] }, - { f_label: '创建时间', f_model: 'time', f_type: 'date' }, - ], - /* 预报废审核弹框内 列表参数 */ - previewTableProps: [ - { t_width: '55px', t_props: '', t_label: '序号' }, - { t_width: '', t_props: 'machineTypeName', t_label: '设备类型' }, - { t_width: '', t_props: 'specificationType', t_label: '规格型号' }, - { t_width: '', t_props: 'maCode', t_label: '设备编码' }, - { t_width: '', t_props: 'scrapNum', t_label: '设备数量' }, - { t_width: '', t_props: 'status', t_label: '审批状态', t_slot: 't_type' }, - { t_width: '', t_props: '', t_label: '报废原因' }, - { t_width: '', t_props: '', t_label: '报废图片' }, - { t_width: '', t_props: 'remark', t_label: '备注' }, - ], - /* 预报废审核弹框表单 查询参数 */ - previewFormLabel: [ - { f_label: '类型名称', f_model: 'keywords', f_type: 'ipt' }, - ], - - /* 预报废列表主页 列表参数 */ - listingTableProps: [ - { t_width: '55px', t_props: '', t_label: '序号' }, - { t_width: '', t_props: 'scrapNum', t_label: '报废单号' }, - { t_width: '', t_props: '', t_label: '报废类型' }, - { t_width: '', t_props: 'repairNum', t_label: '预报废单号' }, - { t_width: '', t_props: 'unitName', t_label: '退料单位名称' }, - { t_width: '', t_props: 'projectName', t_label: '退料工程名称' }, - { t_width: '', t_props: 'itemType', t_label: '机具类型' }, - { t_width: '', t_props: 'createBy', t_label: '任务创建人' }, - { t_width: '', t_props: 'createTime', t_label: '任务创建时间' }, - { t_width: '', t_props: 'taskStatus', t_label: '审核状态', t_slot: 'type' }, - ], - /* 预报废列表主页表单 查询参数 */ - listingFormLabel: [ - { f_label: '关键字', f_model: 'keywords', f_type: 'ipt' }, - { f_label: '单位名称', f_model: 'backUnit', f_type: 'sel', f_selList: [] }, - { f_label: '工程名称', f_model: 'backPro', f_type: 'sel', f_selList: [] }, - { f_label: '工机具类型', f_model: 'type', f_type: 'selCas', f_selList: [], optionProps: { value: 'id', } }, - { f_label: '报废单号', f_model: 'laiyuan', f_type: 'ipt', f_selList: [] }, - { f_label: '审批状态', f_model: 'shentype', f_type: 'sel', f_selList: [] }, - { f_label: '创建时间', f_model: 'time', f_type: 'date' }, - { f_label: '报废类型', f_model: 'shentype', f_type: 'sel', f_selList: [] }, - ], - /* 预报废列表查看弹框内 列表参数 */ - listingPreviewTableProps: [ - { t_width: '55px', t_props: '', t_label: '序号' }, - { t_width: '', t_props: 'demo', t_label: '设备类型' }, - { t_width: '', t_props: '', t_label: '规格型号' }, - { t_width: '', t_props: '', t_label: '设备编码' }, - { t_width: '', t_props: '', t_label: '设备数量' }, - { t_width: '', t_props: '', t_label: '报废原因' }, - { t_width: '', t_props: '', t_label: '报废图片' }, - { t_width: '', t_props: '', t_label: '备注' }, - ], - /* 预报废列表页面驳回退料 列表参数 */ - returnTableProps: [ - { t_width: '55px', t_props: '', t_label: '序号' }, - { t_width: '', t_props: 'demo', t_label: '类型名称' }, - { t_width: '', t_props: '', t_label: '规格型号' }, - { t_width: '', t_props: '', t_label: '数量' }, - { t_width: '', t_props: '', t_label: '合格数量' }, - { t_width: '', t_props: '', t_label: '维修数量' }, - { t_width: '', t_props: '', t_label: '预报废数量' }, - { t_width: '', t_props: '', t_label: '状态' }, - ], - /* 预报废页面驳回退料 查询参数 */ - returnFormLabel: [ - { f_label: '关键字', f_model: 'keywords', f_type: 'ipt' }, - { f_label: '类型名称', f_model: 'backUnit', f_type: 'sel', f_selList: [] }, - { f_label: '规格型号', f_model: 'backPro', f_type: 'sel', f_selList: [] }, - ], - - /* 预报废页面驳回退料 查看弹框内列表参数 */ - returnPreviewTableProps: [ - { t_width: '55px', t_props: '', t_label: '序号' }, - { t_width: '', t_props: 'demo', t_label: '设备类型' }, - { t_width: '', t_props: '', t_label: '规格型号' }, - { t_width: '', t_props: '', t_label: '设备编码' }, - { t_width: '', t_props: '', t_label: '退料状态' }, - ], -} - -export const getSelList = () => { - new Promise(async (resolve) => { - const { data: unitRes } = await getUnitInfoSelectApi() - unitList = unitRes.map((e) => { - e.value = e.unitId - e.label = e.unitName - return e - }) - const { data: proRes } = await getProjectList() - proList = proRes.map((e) => { - e.value = e.projectId - e.label = e.projectName - return e - }) - const { data: typeRes } = await listPartTypeApi() - typeList = typeRes - resolve() - }).then(() => { - config.formLabel.map((item) => { - if (item.f_model === 'backUnit') { - item.f_selList = unitList - return item - } - if (item.f_model === 'backPro') { - item.f_selList = proList - return item - } - if (item.f_model === 'type') { - item.f_selList = typeList - return item - } - }) - }).catch(() => { - - }) -} - diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/listing/index.vue b/sgzb-ui/src/views/scrapManage/forecastWaste/listing/index.vue index 2ec5bb77..19caffe5 100644 --- a/sgzb-ui/src/views/scrapManage/forecastWaste/listing/index.vue +++ b/sgzb-ui/src/views/scrapManage/forecastWaste/listing/index.vue @@ -5,6 +5,7 @@