diff --git a/sgzb-ui/src/api/scrap/forecastWaste.js b/sgzb-ui/src/api/scrap/forecastWaste.js index 3a921659..79c2164a 100644 --- a/sgzb-ui/src/api/scrap/forecastWaste.js +++ b/sgzb-ui/src/api/scrap/forecastWaste.js @@ -11,7 +11,7 @@ export const getDialogListApi = (data) => { } /* 预报废审核接口 */ -export const auditingScrapApi = (data) => { +export const auditingPreScrapApi = (data) => { return request.post('/material/scrap/forecastWasteAudit', data) } @@ -19,3 +19,18 @@ export const auditingScrapApi = (data) => { export const getPreScrapListApi = (data) => { return request.get('/material/scrap/getScrapTaskList', { params: data }) } + +/* 报废列表提交报废接口 */ +export const submitScrapApi = (data) => { + return request.post('/material/scrap/submitScrapTask', data) +} + +/* 报废列表 */ +export const getScrapListApi = (data) => { + return request.post('/material/scrap/scrapTaskReviewList', data) +} + +/* 报废审核接口 */ +export const auditingScrapApi = (data) => { + return request.post('/material/scrap/scrapTaskReview', data) +} diff --git a/sgzb-ui/src/components/FormModel/index.vue b/sgzb-ui/src/components/FormModel/index.vue index 284503a9..06c8cc7e 100644 --- a/sgzb-ui/src/components/FormModel/index.vue +++ b/sgzb-ui/src/components/FormModel/index.vue @@ -38,6 +38,7 @@ -
- - - - - -
- 请上传 - - - 的文件 -
+
+ + + - - - -
+ +
+ 请上传 + + + 的文件 +
+ + + + +
- diff --git a/sgzb-ui/src/components/TableModel/index.vue b/sgzb-ui/src/components/TableModel/index.vue index d1b6688b..de7bbf14 100644 --- a/sgzb-ui/src/components/TableModel/index.vue +++ b/sgzb-ui/src/components/TableModel/index.vue @@ -9,7 +9,8 @@ @@ -77,6 +82,9 @@ rejectReason: '', } }, + created() { + console.log(process.env.VUE_APP_BASE_UPLOAD_URL, '**') + }, methods: { /* 按钮操作 */ handleBtn(row, id) { diff --git a/sgzb-ui/src/views/scrapManage/scrap/scrapAuditing/config.js b/sgzb-ui/src/views/scrapManage/scrap/scrapAuditing/config.js index a81be811..e41431f1 100644 --- a/sgzb-ui/src/views/scrapManage/scrap/scrapAuditing/config.js +++ b/sgzb-ui/src/views/scrapManage/scrap/scrapAuditing/config.js @@ -16,21 +16,15 @@ export const config = { ], 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 }, + { t_props: 'scrapNum', t_label: '报废单号' }, + { t_props: 'scrapSource', t_label: '报废来源', t_slot: 'source' }, + { t_props: 'repairNum', t_label: '预报废单号' }, + { t_props: 'unitName', t_label: '退料单位名称' }, + { t_props: 'projectName', t_label: '退料工程名称' }, + { t_props: 'itemType', t_label: '机具类型' }, + { t_props: 'createBy', t_label: '任务创建人' }, + { t_props: 'createTime', t_label: '任务创建时间' }, + { t_props: '', t_label: '审核状态', t_slot: 'type' }, ], } @@ -50,28 +44,12 @@ export const dialogConfig = { ], 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: 'machineTypeName', t_label: '设备类型' }, + { t_props: 'specificationType', t_label: '规格型号' }, + { t_props: 'maCode', t_label: '设备编码' }, + { t_props: 'scrapNum', t_label: '设备数量' }, + { t_props: 'remark', t_label: '报废原因' }, + { t_props: 'fileUrl', 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 index f1b21c45..0d21cc1e 100644 --- a/sgzb-ui/src/views/scrapManage/scrap/scrapAuditing/index.vue +++ b/sgzb-ui/src/views/scrapManage/scrap/scrapAuditing/index.vue @@ -3,7 +3,8 @@ + + + + + + -