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

View File

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

View File

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

View File

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

View File

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