优化页面字段
This commit is contained in:
parent
8e07744e10
commit
1f83edc71d
|
|
@ -140,7 +140,7 @@ export const dialogConfigReturnDet = {
|
|||
|
||||
|
||||
export const getSelList = () => {
|
||||
new Promise(async (resolve) => {
|
||||
new Promise(async resolve => {
|
||||
const { data: unitRes } = await getUnitInfoSelectApi()
|
||||
unitList = unitRes.map((e) => {
|
||||
e.value = e.unitId
|
||||
|
|
@ -157,7 +157,7 @@ export const getSelList = () => {
|
|||
typeList = typeRes
|
||||
resolve()
|
||||
}).then(() => {
|
||||
config.formLabel.map((item) => {
|
||||
config.formLabel.map(item => {
|
||||
if (item.f_model === 'unitId') {
|
||||
item.f_selList = unitList
|
||||
return item
|
||||
|
|
@ -172,7 +172,7 @@ export const getSelList = () => {
|
|||
}
|
||||
})
|
||||
|
||||
configReturn.formLabel.map((item) => {
|
||||
configReturn.formLabel.map(item => {
|
||||
if (item.f_model === 'typeId') {
|
||||
item.f_selList = proList
|
||||
return item
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@
|
|||
size="small"
|
||||
maxlength="50"
|
||||
style="width: 350px"
|
||||
></el-input>
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="损坏原因:" prop="scrapType">
|
||||
<el-radio-group
|
||||
|
|
@ -462,6 +462,7 @@ export default {
|
|||
},
|
||||
// 编辑退料
|
||||
handleEditReturn(data) {
|
||||
// manageType 0、编码退料 1、数量退料
|
||||
if (data.manageType == 0) {
|
||||
this.isQuery = true
|
||||
this.isNumDetails = false
|
||||
|
|
|
|||
|
|
@ -166,7 +166,7 @@
|
|||
align="center"
|
||||
:selectable="
|
||||
(row) => {
|
||||
return row.repairStatusCode == 44
|
||||
return row.repairStatusCode == 44 && row.commit == 0
|
||||
}
|
||||
"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -167,7 +167,7 @@
|
|||
align="center"
|
||||
:selectable="
|
||||
(row) => {
|
||||
return row.repairStatusCode == 44
|
||||
return row.repairStatusCode == 44 && row.commit == 0
|
||||
}
|
||||
"
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -207,22 +207,18 @@ export default {
|
|||
getForecastWasteListApi,
|
||||
getSelList,
|
||||
getTypeListSel,
|
||||
/* 驳回原因 */
|
||||
rejectReason: '',
|
||||
/* 选中的审核数据 */
|
||||
selAuditingList: [],
|
||||
/* 请求参数 */
|
||||
sendParams: {},
|
||||
/* 当前登录的用户id */
|
||||
userId: sessionStorage.getItem('userId'),
|
||||
rejectReason: '', // 驳回原因
|
||||
selAuditingList: [], // 选中的审核数据
|
||||
sendParams: {}, // 弹框内列表请求参数
|
||||
userId: sessionStorage.getItem('userId'), // 当前登录的用户id
|
||||
tbAllChecked: false, // 判断当前设备是否全部审核过
|
||||
dataCondition: [], // 导出taskId列表
|
||||
isRefresh: false,
|
||||
/* 审核参数 */
|
||||
auditingParams: {
|
||||
taskId: '',
|
||||
scrapDetailList: [],
|
||||
},
|
||||
tbAllChecked: false, // 判断当前设备是否全部审核过
|
||||
dataCondition: [], // 导出taskId列表
|
||||
isRefresh: false,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
|
@ -256,6 +252,7 @@ export default {
|
|||
getDialogTbSelList(list) {
|
||||
this.selAuditingList = list
|
||||
},
|
||||
/* 主列表复选框勾选后数据 */
|
||||
getTableSelectionList(list) {
|
||||
this.dataCondition = []
|
||||
if (list.length > 0)
|
||||
|
|
@ -341,11 +338,6 @@ export default {
|
|||
},
|
||||
/* 数据导出 */
|
||||
handleExport(data) {
|
||||
console.log(
|
||||
'🚀 ~ 导出 ~ this.dataCondition:',
|
||||
data,
|
||||
this.dataCondition,
|
||||
)
|
||||
if (this.dataCondition.length > 0)
|
||||
data.dataCondition = this.dataCondition
|
||||
this.download(
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@
|
|||
>
|
||||
|
||||
<!-- 批量提交报废 -->
|
||||
|
||||
<el-button
|
||||
type="success"
|
||||
plain
|
||||
|
|
@ -191,27 +190,28 @@ export default {
|
|||
getPreScrapListApi,
|
||||
getDialogListApi,
|
||||
tableSelList: [],
|
||||
sendParams: {
|
||||
taskId: '',
|
||||
}, // 列表查看时参数
|
||||
temp: false,
|
||||
getSelList,
|
||||
getTypeListSel,
|
||||
imgCommonUrl: process.env.VUE_APP_BASE_API + '/system',
|
||||
|
||||
/* 提交报废申请参数 */
|
||||
auditingList: [],
|
||||
pageContent: '驳回退料',
|
||||
parentId: '',
|
||||
// 提交报废申请参数
|
||||
submitScrapParams: {
|
||||
taskIdList: [],
|
||||
deptIds: [],
|
||||
},
|
||||
auditingList: [],
|
||||
// 驳回退料弹框内数据查询参数
|
||||
sendParamsAuditing: {
|
||||
taskId: '',
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
},
|
||||
pageContent: '驳回退料',
|
||||
parentId: '',
|
||||
// 弹框内列表查询参数
|
||||
sendParams: {
|
||||
taskId: '',
|
||||
},
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
|
|
|||
|
|
@ -158,18 +158,17 @@
|
|||
</DialogModel>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getDispositionListApi,
|
||||
submitDispositionApi,
|
||||
getDialogListApi,
|
||||
} from '@/api/scrap/forecastWaste.js'
|
||||
import TableModel from '@/components/TableModel'
|
||||
import DialogModel from '@/components/DialogModel'
|
||||
import ScrapSource from '../../component/scrapSource.vue'
|
||||
import ScrapImg from '../../component/scrapImg.vue'
|
||||
import { config, dialogConfig, getSelList } from './config.js'
|
||||
import {
|
||||
getDispositionListApi,
|
||||
submitDispositionApi,
|
||||
getDialogListApi,
|
||||
} from '@/api/scrap/forecastWaste.js'
|
||||
export default {
|
||||
components: {
|
||||
TableModel,
|
||||
|
|
@ -183,26 +182,15 @@ export default {
|
|||
dialogConfig,
|
||||
getDispositionListApi,
|
||||
getDialogListApi,
|
||||
/* 选中的列表数据 */
|
||||
selectionList: [],
|
||||
/* 驳回原因 */
|
||||
rejectReason: '',
|
||||
selectionList: [], // 选中的列表数据
|
||||
rejectReason: '', // 驳回原因
|
||||
fileType: ['png', 'jpg', 'jpeg', 'pdf', 'doc', 'xls', 'docx'],
|
||||
uploadFileList: [],
|
||||
sendParams: {},
|
||||
fileList: [],
|
||||
tbSelectList: [],
|
||||
/* 处置提交参数 */
|
||||
|
||||
dispositionParams: [],
|
||||
// dispositionParams: {
|
||||
// taskId: '',
|
||||
// fileUrl: '', // 附件url
|
||||
// fileName: '', // 附件名称
|
||||
// disposition: 1, // 处置状态 0、未通过 1、通过
|
||||
// },
|
||||
/* 附件预览地址 */
|
||||
filePreviewUrl: process.env.VUE_APP_BASE_API + '/system',
|
||||
dispositionParams: [], // 处置参数
|
||||
filePreviewUrl: process.env.VUE_APP_BASE_API + '/system', // 附件预览地址
|
||||
getSelList,
|
||||
}
|
||||
},
|
||||
|
|
@ -266,7 +254,6 @@ export default {
|
|||
this.$message.error('请先上传文件')
|
||||
return
|
||||
}
|
||||
|
||||
let fileUrl = ''
|
||||
let fileName = ''
|
||||
this.uploadFileList.map((e) => {
|
||||
|
|
|
|||
|
|
@ -198,13 +198,11 @@ export default {
|
|||
dialogConfig,
|
||||
getScrapListApi,
|
||||
getDialogListApi,
|
||||
/* 选中的列表数据 */
|
||||
selectionList: [],
|
||||
/* 驳回原因 */
|
||||
rejectReason: '',
|
||||
sendParams: {}, // 列表查看时参数
|
||||
selectionList: [], // 选中的列表数据
|
||||
rejectReason: '', // 驳回原因
|
||||
deptId: sessionStorage.getItem('deptId'),
|
||||
|
||||
auditingList: [], // 审批详情的列表
|
||||
getSelList,
|
||||
/* 审核参数 */
|
||||
auditingParams: {
|
||||
deptId: parseInt(sessionStorage.getItem('deptId')),
|
||||
|
|
@ -213,10 +211,7 @@ export default {
|
|||
status: '',
|
||||
reasonRejection: '',
|
||||
},
|
||||
|
||||
/* 审批详情的列表 */
|
||||
auditingList: [],
|
||||
getSelList,
|
||||
sendParams: {}, // 弹框内列表查看时参数
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue