新购入库审核逻辑优化

This commit is contained in:
BianLzhaoMin 2024-08-14 13:31:00 +08:00
parent d2067df999
commit 2ed7eab8a4
1 changed files with 35 additions and 38 deletions

View File

@ -246,16 +246,11 @@
</el-form> </el-form>
<el-row :gutter="10" class="mb8" v-if="showHandle"> <el-row :gutter="10" class="mb8" v-if="showHandle">
<el-col :span="1.5"> <el-col :span="1.5">
<el-button <el-button type="success" plain size="mini" @click="passAll"
type="primary" >确认入库</el-button
plain
size="mini"
:disabled="multiple"
@click="passAll"
>批量通过</el-button
> >
</el-col> </el-col>
<el-col :span="1.5"> <!-- <el-col :span="1.5">
<el-button <el-button
type="danger" type="danger"
plain plain
@ -264,7 +259,7 @@
:disabled="multiple" :disabled="multiple"
>批量不通过</el-button >批量不通过</el-button
> >
</el-col> </el-col> -->
<!-- <el-col :span="1.5">--> <!-- <el-col :span="1.5">-->
<!-- <el-button--> <!-- <el-button-->
<!-- type="warning"--> <!-- type="warning"-->
@ -276,18 +271,13 @@
<!-- >导出</el-button>--> <!-- >导出</el-button>-->
<!-- </el-col>--> <!-- </el-col>-->
</el-row> </el-row>
<el-table <el-table v-loading="loading" :data="detailTableList" border>
v-loading="loading" <!-- <el-table-column
:data="detailTableList"
@selection-change="handleSelectionChange"
border
>
<el-table-column
type="selection" type="selection"
width="55" width="55"
align="center" align="center"
:selectable="selectable" :selectable="selectable"
/> /> -->
<el-table-column <el-table-column
label="序号" label="序号"
align="center" align="center"
@ -345,7 +335,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <!-- <el-table-column
label="操作" label="操作"
align="center" align="center"
class-name="small-padding fixed-width" class-name="small-padding fixed-width"
@ -375,7 +365,7 @@
>不通过</el-button >不通过</el-button
> >
</template> </template>
</el-table-column> </el-table-column> -->
</el-table> </el-table>
<pagination <pagination
@ -732,28 +722,35 @@ export default {
}) })
}, },
passAll() { passAll() {
console.log(this.query.taskId) const params = {
console.log(this.ids) pageNum: 1,
this.ids.forEach((item) => { pageSize: 9999,
item.taskId = this.query.taskId
item.typeId = item.typeId
item.maId = item.maId
item.inputNum = item.checkNum
item.maCode = item.maCode
})
let param = {
taskId: this.query.taskId, taskId: this.query.taskId,
checkResult: '1', dictName: this.query.dictName,
inputRecordList: this.ids,
} }
changePutinStatus(param).then((response) => { getPutinDetailsList(params).then((res) => {
if (response.code == 200) { let deviceList = res.rows
this.$modal.msgSuccess('审批成功') deviceList.forEach((item) => {
this.getDialogTable() item.taskId = this.query.taskId
this.getList() item.typeId = item.typeId
} else { item.maId = item.maId
this.$modal.msgSuccess('审批失败') item.inputNum = item.checkNum
item.maCode = item.maCode
})
let param = {
taskId: this.query.taskId,
checkResult: '1',
inputRecordList: deviceList,
} }
changePutinStatus(param).then((response) => {
if (response.code == 200) {
this.$modal.msgSuccess('审批成功')
this.getDialogTable()
this.getList()
} else {
this.$modal.msgSuccess('审批失败')
}
})
}) })
}, },
// //