From 8b8d2b9f54a22a0f8bb9f174c2b8dbd71c58e996 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Mon, 22 Apr 2024 18:15:42 +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/api/scrap/forecastWaste.js | 5 + sgzb-ui/src/assets/styles/index.scss | 8 + sgzb-ui/src/components/DialogModel/index.vue | 57 +++++ sgzb-ui/src/components/FormModel/index.vue | 114 +++++++++ sgzb-ui/src/components/TableModel/index.vue | 230 ++++++++++++++++++ .../forecastWaste/auditingReturn.vue | 10 +- .../views/scrapManage/forecastWaste/index.js | 11 +- .../scrapManage/forecastWaste/listing.vue | 3 + .../scrapManage/scrap/disposition/config.js | 62 +++++ .../scrapManage/scrap/disposition/index.vue | 105 ++++++++ sgzb-ui/src/views/scrapManage/scrap/index.vue | 12 - .../scrapManage/scrap/scrapAuditing/config.js | 77 ++++++ .../scrapManage/scrap/scrapAuditing/index.vue | 217 +++++++++++++++++ 13 files changed, 896 insertions(+), 15 deletions(-) create mode 100644 sgzb-ui/src/components/DialogModel/index.vue create mode 100644 sgzb-ui/src/components/FormModel/index.vue create mode 100644 sgzb-ui/src/components/TableModel/index.vue create mode 100644 sgzb-ui/src/views/scrapManage/scrap/disposition/config.js create mode 100644 sgzb-ui/src/views/scrapManage/scrap/disposition/index.vue delete mode 100644 sgzb-ui/src/views/scrapManage/scrap/index.vue create mode 100644 sgzb-ui/src/views/scrapManage/scrap/scrapAuditing/config.js create mode 100644 sgzb-ui/src/views/scrapManage/scrap/scrapAuditing/index.vue diff --git a/sgzb-ui/src/api/scrap/forecastWaste.js b/sgzb-ui/src/api/scrap/forecastWaste.js index 1229286a..3a921659 100644 --- a/sgzb-ui/src/api/scrap/forecastWaste.js +++ b/sgzb-ui/src/api/scrap/forecastWaste.js @@ -14,3 +14,8 @@ export const getDialogListApi = (data) => { export const auditingScrapApi = (data) => { return request.post('/material/scrap/forecastWasteAudit', data) } + +/* 预报废列表 */ +export const getPreScrapListApi = (data) => { + return request.get('/material/scrap/getScrapTaskList', { params: data }) +} diff --git a/sgzb-ui/src/assets/styles/index.scss b/sgzb-ui/src/assets/styles/index.scss index 4371698a..3fafc321 100644 --- a/sgzb-ui/src/assets/styles/index.scss +++ b/sgzb-ui/src/assets/styles/index.scss @@ -188,3 +188,11 @@ i { ul { list-style: none; } + +/* 弹框审核按钮样式 */ +.dialog-common-btn { + margin-top: 15px; + padding-top: 8px; + text-align: right; + border-top: 1px solid #393737; +} diff --git a/sgzb-ui/src/components/DialogModel/index.vue b/sgzb-ui/src/components/DialogModel/index.vue new file mode 100644 index 00000000..744762e5 --- /dev/null +++ b/sgzb-ui/src/components/DialogModel/index.vue @@ -0,0 +1,57 @@ + + + + + diff --git a/sgzb-ui/src/components/FormModel/index.vue b/sgzb-ui/src/components/FormModel/index.vue new file mode 100644 index 00000000..284503a9 --- /dev/null +++ b/sgzb-ui/src/components/FormModel/index.vue @@ -0,0 +1,114 @@ + + + + + diff --git a/sgzb-ui/src/components/TableModel/index.vue b/sgzb-ui/src/components/TableModel/index.vue new file mode 100644 index 00000000..5ad91ded --- /dev/null +++ b/sgzb-ui/src/components/TableModel/index.vue @@ -0,0 +1,230 @@ + + + + + diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/auditingReturn.vue b/sgzb-ui/src/views/scrapManage/forecastWaste/auditingReturn.vue index eba7a8cb..555230fb 100644 --- a/sgzb-ui/src/views/scrapManage/forecastWaste/auditingReturn.vue +++ b/sgzb-ui/src/views/scrapManage/forecastWaste/auditingReturn.vue @@ -33,7 +33,9 @@ :dialogVisible="dialogVisible" :width="dialogWidth" @closeDialog="closeDialog" - > + > + + @@ -54,7 +56,7 @@ config, title: '', dialogVisible: false, - + dialogWidth: '', handleBtn: [ { btn_title: '查看', id: 1 }, { btn_title: '编辑退料', id: 2 }, @@ -73,6 +75,10 @@ case 2: this.title = '编辑退料' this.dialogWidth = '70%' + break + case 3: + this.title = '撤回' + break } this.dialogVisible = true diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/index.js b/sgzb-ui/src/views/scrapManage/forecastWaste/index.js index 0d63b69d..d5d9105b 100644 --- a/sgzb-ui/src/views/scrapManage/forecastWaste/index.js +++ b/sgzb-ui/src/views/scrapManage/forecastWaste/index.js @@ -86,7 +86,7 @@ export const config = { { 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: '类型名称' }, @@ -103,6 +103,15 @@ export const config = { { 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 = () => { diff --git a/sgzb-ui/src/views/scrapManage/forecastWaste/listing.vue b/sgzb-ui/src/views/scrapManage/forecastWaste/listing.vue index 73aaf691..9c945ef5 100644 --- a/sgzb-ui/src/views/scrapManage/forecastWaste/listing.vue +++ b/sgzb-ui/src/views/scrapManage/forecastWaste/listing.vue @@ -4,6 +4,7 @@ + + diff --git a/sgzb-ui/src/views/scrapManage/scrap/index.vue b/sgzb-ui/src/views/scrapManage/scrap/index.vue deleted file mode 100644 index 81136f28..00000000 --- a/sgzb-ui/src/views/scrapManage/scrap/index.vue +++ /dev/null @@ -1,12 +0,0 @@ - - - - - diff --git a/sgzb-ui/src/views/scrapManage/scrap/scrapAuditing/config.js b/sgzb-ui/src/views/scrapManage/scrap/scrapAuditing/config.js new file mode 100644 index 00000000..a81be811 --- /dev/null +++ b/sgzb-ui/src/views/scrapManage/scrap/scrapAuditing/config.js @@ -0,0 +1,77 @@ +export const config = { + handleColShow: true, // 是否显示操作列 + pageShow: true, // 是否显示分页组件 + isSelShow: true,// 表格是否需要复选框 + isFormShow: true, // 是否显示表单查询组件 + handleWidth: '', // 操作列宽度 + 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: 'ipt', }, + { f_label: '审批状态', f_model: 'taskStatus', f_type: 'sel', f_selList: [] }, + { f_label: '报废类型', f_model: 'taskStatus', f_type: 'sel', f_selList: [] }, + { f_label: '创建时间', f_model: 'time', f_type: 'date' }, + ], + columnsList: [ + { t_width: '55px', t_props: '', t_label: '序号' }, + { t_props: '', t_label: '报废单号' }, + { t_props: '', t_label: '报废类型' }, + { t_props: '', t_label: '预报废单号' }, + { t_props: '', t_label: '退料单位名称' }, + { t_props: '', t_label: '退料工程名称' }, + { t_props: '', t_label: '机具类型' }, + { t_props: '', t_label: '任务创建人' }, + { t_props: '', t_label: '任务创建时间' }, + { t_props: '', t_label: '审核状态' }, + ], + + handleBtn: [ + { btn_title: '查看', id: 1 }, + { btn_title: '审核', id: 2 }, + { btn_title: '审批详情', id: 3 }, + ], +} + +export const dialogConfig = { + outerWidth: '70%', + outerTitle: '', + outerVisible: false, + innerWidth: '50%', + innerTitle: '', + innerVisible: false, + handleColShow: false, // 是否显示操作列 + pageShow: false, // 是否显示分页组件 + isSelShow: false,// 表格是否需要复选框 + isFormShow: true, // 是否显示表单查询组件 + formLabel: [ + { f_label: '类型名称', f_model: 'keywords', f_type: 'ipt' }, + ], + columnsList: [ + { t_width: '55px', t_props: '', t_label: '序号' }, + { t_props: '', t_label: '设备类型' }, + { t_props: '', t_label: '规格型号' }, + { t_props: '', t_label: '设备编码' }, + { t_props: '', t_label: '设备数量' }, + { t_props: '', t_label: '报废原因' }, + { t_props: '', t_label: '报废图片' }, + { t_props: '', t_label: '备注' }, + ], + +} + +export const detailsConfig = { + detailsShow: false, + handleColShow: false, // 是否显示操作列 + pageShow: false, // 是否显示分页组件 + isSelShow: false,// 表格是否需要复选框 + isFormShow: false, // 是否显示表单查询组件 + + columnsList: [ + { t_props: '', t_label: '审批部门' }, + { t_props: '', t_label: '审批状态' }, + { t_props: '', t_label: '审批意见' }, + ], + +} \ No newline at end of file diff --git a/sgzb-ui/src/views/scrapManage/scrap/scrapAuditing/index.vue b/sgzb-ui/src/views/scrapManage/scrap/scrapAuditing/index.vue new file mode 100644 index 00000000..f1b21c45 --- /dev/null +++ b/sgzb-ui/src/views/scrapManage/scrap/scrapAuditing/index.vue @@ -0,0 +1,217 @@ + + +