优化页面字段

This commit is contained in:
BianLzhaoMin 2024-07-09 17:51:47 +08:00
parent 8e07744e10
commit 1f83edc71d
8 changed files with 38 additions and 63 deletions

View File

@ -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

View File

@ -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

View File

@ -166,7 +166,7 @@
align="center"
:selectable="
(row) => {
return row.repairStatusCode == 44
return row.repairStatusCode == 44 && row.commit == 0
}
"
/>

View File

@ -167,7 +167,7 @@
align="center"
:selectable="
(row) => {
return row.repairStatusCode == 44
return row.repairStatusCode == 44 && row.commit == 0
}
"
/>

View File

@ -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(

View File

@ -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() {

View File

@ -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) => {

View File

@ -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() {