-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -56,7 +90,6 @@
-
import { getReceiveList, receiveDelete } from '@/api/business/index'
+import { getProjectList, } from '@/api/lease/apply'
export default {
name: 'DirectApplyRecord',
@@ -141,7 +175,9 @@ export default {
status: '', // 审核状态
timeRange: [], // 日期范围
startTime: '', // 开始日期
- endTime: '' // 结束日期
+ endTime: '', // 结束日期
+ backProId: '', // 转出工程
+ leaseProId: '', // 转入工程
},
// 考勤状态
statusOptions: [
@@ -164,11 +200,15 @@ export default {
{ label: '业务联单', prop: 'businessCode', showTooltip: true },
],
// 表格数据
- tableList: []
+ tableList: [],
+ impProOptions: [],//转出工程下拉
+ leaseProjectList: [],
}
},
created() {
this.getList()
+ this.getImpProOptions()
+ this.getLeaseProjectList()
},
methods: {
// 查询
@@ -204,10 +244,23 @@ export default {
this.loading = false
}
},
- // 多选
- selectionChange(val) {
- console.log('selectionChange', val)
+
+ async getImpProOptions() {
+ const res = await getProjectList({ departName: null })
+ this.impProOptions = res.data.map(item => ({
+ label: item.proName,
+ value: item.proId
+ }))
},
+
+ async getLeaseProjectList() {
+ const res = await getProjectList({ departName: null,enableFilter: false })
+ this.leaseProjectList = res.data.map(item => ({
+ label: item.proName,
+ value: item.proId
+ }))
+ },
+
handleAdd() {
console.log('领料申请')
this.$router.push({ path: '/materialsStation/straight/directApply' })
@@ -265,15 +318,16 @@ export default {
}
const currentTime = formatTime(new Date())
- let fileName = `直转记录_${currentTime}.xLsx`
- let url = '/material/directRotation/export'
+ let fileName = `直转记录_${currentTime}.xlsx`
+ let url = '/material/directRotation/exportDetail'
const params = { ...this.queryParams }
console.log('🚀 ~ 导出 ~ params:', params)
this.download(url, params, fileName)
} catch (error) {
console.log('导出数据失败', error)
}
- }
+ },
+
}
}