This commit is contained in:
bb_pan 2025-04-21 16:40:14 +08:00
parent 514d7f226d
commit fb7bd7d752
5 changed files with 29 additions and 14 deletions

View File

@ -544,6 +544,7 @@ export default {
return { return {
open: false, open: false,
leaseApplyData: {}, // leaseApplyData: {}, //
leaseApplyDetails: [],
// //
loading: false, loading: false,
// //
@ -704,7 +705,7 @@ export default {
// }) // })
// this.$emit('addPicking') // this.$emit('addPicking')
this.$emit('handlePicking', 1) this.$emit('handlePicking', 1, '' , this.queryParams)
}, },
// //
handleSelectionChange(selection) { handleSelectionChange(selection) {
@ -725,7 +726,7 @@ export default {
// this.$tab.refreshPage() // this.$tab.refreshPage()
// }) // })
// this.$emit('viewPicking', row.taskId, this.queryParams) // this.$emit('viewPicking', row.taskId, this.queryParams)
this.$emit('handlePicking', 3, row.taskId) this.$emit('handlePicking', 3, row.taskId, this.queryParams)
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
@ -737,7 +738,7 @@ export default {
// }, // },
// }) // })
// this.$emit('editPicking', row.taskId, this.queryParams) // this.$emit('editPicking', row.taskId, this.queryParams)
this.$emit('handlePicking', 2, row.taskId) this.$emit('handlePicking', 2, row.taskId, this.queryParams)
}, },
/** 驳回按钮操作 */ /** 驳回按钮操作 */
handleUpdate2(row) { handleUpdate2(row) {
@ -755,7 +756,7 @@ export default {
// this.queryParams, // this.queryParams,
// row.taskStatus, // row.taskStatus,
// ) // )
this.$emit('handlePicking', 2, row.taskId) this.$emit('handlePicking', 2, row.taskId, this.queryParams)
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
async handleDelete(row) { async handleDelete(row) {
@ -798,7 +799,7 @@ export default {
const res = await getLeaseListAll({ taskId: row.taskId }) const res = await getLeaseListAll({ taskId: row.taskId })
this.leaseApplyDetails = res.rows[0].leaseApplyDetails this.leaseApplyDetails = res.rows[0].leaseApplyDetails || []
this.leaseApplyData = res.rows[0] this.leaseApplyData = res.rows[0]
console.log('this.leaseApplyData ============', this.leaseApplyData) console.log('this.leaseApplyData ============', this.leaseApplyData)

View File

@ -79,25 +79,28 @@ export default {
}, },
// //
handlePicking(type, taskId) { handlePicking(type, taskId, routerParams) {
switch (type) { switch (type) {
case 1: case 1:
this.pageContent = '新增领料任务' this.pageContent = '新增领料任务'
this.isAdd = true this.isAdd = true
this.isEdit = false this.isEdit = false
this.viewTaskId = '' this.viewTaskId = ''
this.routerParams = routerParams
break break
case 2: case 2:
this.pageContent = '领料任务编辑' this.pageContent = '领料任务编辑'
this.isAdd = false this.isAdd = false
this.isEdit = true this.isEdit = true
this.viewTaskId = taskId this.viewTaskId = taskId
this.routerParams = routerParams
break break
case 3: case 3:
this.pageContent = '领料任务详情' this.pageContent = '领料任务详情'
this.isAdd = false this.isAdd = false
this.isEdit = false this.isEdit = false
this.viewTaskId = taskId this.viewTaskId = taskId
this.routerParams = routerParams
break break
} }

View File

@ -359,6 +359,7 @@
append-to-body append-to-body
> >
<el-form <el-form
v-if="openCode"
:model="codeOutForm" :model="codeOutForm"
ref="codeOutForm" ref="codeOutForm"
size="small" size="small"
@ -488,6 +489,7 @@
append-to-body append-to-body
> >
<el-form <el-form
v-if="openNum"
:model="numOutForm" :model="numOutForm"
ref="numOutForm" ref="numOutForm"
size="small" size="small"
@ -1018,6 +1020,9 @@ export default {
this.outNum = row.outNum this.outNum = row.outNum
this.outQuery.typeId = row.typeId this.outQuery.typeId = row.typeId
this.outObj = row this.outObj = row
this.noCarCode = true
this.codeOutForm.carCode = ''
this.outQuery.maCode = ''
this.handleOutQuery() this.handleOutQuery()
}, },
// //
@ -1043,6 +1048,8 @@ export default {
this.$set(obj, 'num', row.num) // this.$set(obj, 'num', row.num) //
this.$set(obj, 'createBy', sessionStorage.getItem('userId')) // Id this.$set(obj, 'createBy', sessionStorage.getItem('userId')) // Id
this.outNumList = [obj] this.outNumList = [obj]
this.noCarCode = true
this.numOutForm.carCode = ''
}, },
// //
manualOperation(row) { manualOperation(row) {
@ -1224,6 +1231,7 @@ export default {
this.proName = proName this.proName = proName
this.unitName = unitName this.unitName = unitName
this.outboundParams.parentId = row.id this.outboundParams.parentId = row.id
this.outboundParams.carCode = ''
this.getCarCodeList() this.getCarCodeList()
this.queryOutBoundList() this.queryOutBoundList()
this.dialogConfig.outerVisible = true this.dialogConfig.outerVisible = true

View File

@ -76,7 +76,7 @@
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
type="date" type="daterange"
value-format="yyyy-MM-dd" value-format="yyyy-MM-dd"
placeholder="请选择时间" placeholder="请选择时间"
style="width: 240px" style="width: 240px"
@ -716,6 +716,7 @@ export default {
// companyId: this.companyId, // companyId: this.companyId,
...this.queryParams, ...this.queryParams,
} }
delete params.time
const res = await ApiGetBackApplyList(params) const res = await ApiGetBackApplyList(params)
this.typeList = res.data.rows this.typeList = res.data.rows
this.total = res.data.total this.total = res.data.total

View File

@ -6,13 +6,15 @@
:pageContent="pageContent" :pageContent="pageContent"
@goBack="goBack" @goBack="goBack"
/> />
<component <keep-alive include="Home">
:is="isShowComponent" <component
:rejectId="rejectId" :is="isShowComponent"
@returnApply="returnApply" :rejectId="rejectId"
@rejectSubmit="rejectSubmit" @returnApply="returnApply"
@goBackPage="goBack" @rejectSubmit="rejectSubmit"
/> @goBackPage="goBack"
/>
</keep-alive>
</div> </div>
</template> </template>