退料相关修改

This commit is contained in:
zzyuan 2024-11-22 09:04:26 +08:00
parent 757fba9a51
commit b5242d634c
3 changed files with 9 additions and 8 deletions

View File

@ -54,10 +54,11 @@ export function addBackApply(data) {
} }
// 退料--删除 // 退料--删除
export function backApplyRemove(ids) { export function backApplyRemove(data) {
return request({ return request({
url: '/material/back_apply_info/' + ids, url: '/material/back_apply_info/deleteById',
method: 'delete', method: 'post',
data: data
}) })
} }

View File

@ -879,7 +879,7 @@ export default {
const obj = JSON.parse(JSON.stringify(z.data)) const obj = JSON.parse(JSON.stringify(z.data))
console.log(obj) console.log(obj)
obj.typeModel = obj.typeName obj.typeModel = obj.typeName
obj.typeName = deviceTypeList[2].data.typeName obj.typeName = obj.materialName
obj.preNum = 0 obj.preNum = 0
obj.apDetection = '' obj.apDetection = ''
obj.remark = '' obj.remark = ''

View File

@ -28,9 +28,9 @@
style="width: 240px" style="width: 240px"
/> />
</el-form-item> </el-form-item>
<el-form-item label="退料状态" prop="taskStatus"> <el-form-item label="退料状态" prop="status">
<el-select <el-select
v-model="queryParams.taskStatus" v-model="queryParams.status"
clearable clearable
filterable filterable
style="width: 240px" style="width: 240px"
@ -424,7 +424,7 @@ export default {
keyWord: '', // keyWord: '', //
unitId: '', //id unitId: '', //id
lotId: '', //id lotId: '', //id
taskStatus: '', // status: '', //
typeId: '', // typeId: '', //
time: '', time: '',
agreementCode: '', // agreementCode: '', //
@ -630,7 +630,7 @@ export default {
this.$modal this.$modal
.confirm('是否确认删除所选择的退料任务?') .confirm('是否确认删除所选择的退料任务?')
.then(() => { .then(() => {
return backApplyRemove(row.id) return backApplyRemove({id:row.id})
}) })
.then(() => { .then(() => {
this.getList() this.getList()