rev: 成品出库:新增出库单时将同一货位上的所有物料带出、设置任务时同一货位的任务不在生成、发货单状态修改

This commit is contained in:
2023-07-27 17:00:57 +08:00
parent bd5ae21530
commit ed000b6f56
13 changed files with 132 additions and 9 deletions

View File

@@ -170,7 +170,7 @@
</template>
</el-table-column>
<el-table-column show-overflow-tooltip prop="source_bill_type" label="源单类型" />
<el-table-column show-overflow-tooltip prop="source_bill_code" label="单号" />
<el-table-column show-overflow-tooltip prop="source_bill_code" label="发货单号" />
<el-table-column v-if="crud.status.cu > 0" align="center" label="操作" width="170" fixed="right">
<template scope="scope">

View File

@@ -120,6 +120,7 @@ import CRUD, { crud, header, presenter } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import pagination from '@crud/Pagination'
import productOut from '@/views/wms/storage_manage/product/productOut/productout'
export default {
name: 'AddDtl',
@@ -200,14 +201,24 @@ export default {
this.$emit('tableChanged', this.tableRadio)
return
}
this.rows = this.$refs.multipleTable.selection
if (this.rows.length <= 0) {
this.$message('请先勾选物料')
return
}
this.crud.resetQuery(false)
this.$emit('update:dialogShow', false)
this.$emit('tableChanged', this.rows)
// 将此托盘上的所有物料都带出
const data = {
'data': this.rows
}
productOut.queryStructAll(data).then(res => {
debugger
this.rows = res
this.crud.resetQuery(false)
this.$emit('update:dialogShow', false)
this.$emit('tableChanged', this.rows)
})
}
}
}

View File

@@ -219,7 +219,7 @@ export default {
name: 'ProductOut',
components: { ViewDialog, AddDialog, crudOperation, rrOperation, udOperation, pagination, DivDialog, TaskDialog },
cruds() {
return CRUD({ title: '用户', idField: 'iostorinv_id', url: 'api/productOut', crudMethod: { ...productOut },
return CRUD({ title: '出库单', idField: 'iostorinv_id', url: 'api/productOut', crudMethod: { ...productOut },
optShow: {
add: true,
edit: false,

View File

@@ -112,6 +112,14 @@ export function confirmTask(data) {
})
}
export function queryStructAll(data) {
return request({
url: '/api/productOut/queryStructAll',
method: 'post',
data
})
}
export default {
add,
edit,
@@ -126,5 +134,6 @@ export default {
manualDiv,
delTask,
sendTask,
confirmTask
confirmTask,
queryStructAll
}