add:出入库单增加明细载具物料查询;限位策略增加1109过滤1,2列

This commit is contained in:
zhangzq
2024-12-22 20:24:32 +08:00
parent 8a8cee04d8
commit cf3c8b00e4
11 changed files with 154 additions and 42 deletions

View File

@@ -28,6 +28,22 @@
placeholder="源单号"
/>
</el-form-item>
<el-form-item label="分配载具">
<el-input
v-model="query.vehicles"
size="mini"
clearable
placeholder="分配载具"
/>
</el-form-item>
<el-form-item label="明细物料">
<el-input
v-model="query.material"
size="mini"
clearable
placeholder="物料编码或名称"
/>
</el-form-item>
<el-form-item label="单据类型">
<el-select
v-model="query.bill_type"
@@ -77,10 +93,10 @@
<template v-for="(col,index) in cols">
<el-form-item label="col.lable" prop="bill_code">
<label slot="label">{{ col.lable }}:</label>
<el-input v-model="query.form_query[col.value]" :value="col.value" clearable style="width: 210px"/>
<el-input v-model="query.form_query[col.value]" :value="col.value" clearable style="width: 210px" />
</el-form-item>
</template>
<rrOperation/>
<rrOperation />
</el-form>
</div>
<!--如果想在工具栏加入更多按钮可以使用插槽方式 slot = 'left' or 'right'-->
@@ -132,7 +148,7 @@
@select="handleSelectionChange"
@select-all="onSelectAll"
>
<el-table-column type="selection" width="55"/>
<el-table-column type="selection" width="55" />
<el-table-column show-overflow-tooltip prop="code" width="130" label="单据号">
<template slot-scope="scope">
<el-link type="warning" @click="toView(scope.row)">{{ scope.row.code }}</el-link>
@@ -148,16 +164,16 @@
{{ statusEnum.label.FORM_STATUS[scope.row.status] }}
</template>
</el-table-column>
<el-table-column show-overflow-tooltip prop="source_form_type" min-width="120" label="源单类型"/>
<el-table-column show-overflow-tooltip prop="source_form_code" label="源单编码" min-width="155"/>
<el-table-column show-overflow-tooltip prop="source_form_id" label="源单id" min-width="155"/>
<el-table-column show-overflow-tooltip prop="source_form_date" label="源单时间" min-width="140"/>
<el-table-column show-overflow-tooltip prop="source_form_type" min-width="120" label="源单类型" />
<el-table-column show-overflow-tooltip prop="source_form_code" label="源单编码" min-width="155" />
<el-table-column show-overflow-tooltip prop="source_form_id" label="源单id" min-width="155" />
<el-table-column show-overflow-tooltip prop="source_form_date" label="源单时间" min-width="140" />
<el-table-column v-for="(item, index) in cols" :key="item.value" :label="item.lable">
<template slot-scope="scope">{{ scope.row.form_data[item.value] }}</template>
</el-table-column>
<el-table-column label="创建人" align="center" prop="create_name"/>
<el-table-column label="创建时间" align="center" prop="create_time" width="150"/>
<el-table-column label="备注" align="center" prop="remark"/>
<el-table-column label="创建人" align="center" prop="create_name" />
<el-table-column label="创建时间" align="center" prop="create_time" width="150" />
<el-table-column label="备注" align="center" prop="remark" />
<el-table-column v-permission="[]" label="操作" width="120px" align="center" fixed="right">
<template slot-scope="scope">
<udOperation
@@ -169,18 +185,18 @@
</el-table-column>
</el-table>
<!--分页组件-->
<pagination/>
<pagination />
</div>
<AddDialog ref="editDialog" @AddChanged="querytable"/>
<ViewDialog ref="itemview"/>
<TaskDialog ref="taskDis"/>
<AddDialog ref="editDialog" @AddChanged="querytable" />
<ViewDialog ref="itemview" />
<TaskDialog ref="taskDis" />
</div>
</template>
<script>
import formstruc from '@/views/wms/config_manage/formStruc/formstruc'
import crudProductIn from '@/views/wms/stor_manage/in/storinvin'
import CRUD, {crud, header, form, presenter} from '@crud/crud'
import CRUD, { crud, header, form, presenter } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
@@ -188,7 +204,7 @@ import pagination from '@crud/Pagination'
import AddDialog from '@/views/wms/stor_manage/in/AddDialog'
import TaskDialog from '@/views/wms/stor_manage/in/TaskDialog'
import ViewDialog from '@/views/wms/stor_manage/in/ViewDialog'
import {mapGetters} from 'vuex'
import { mapGetters } from 'vuex'
const defaultForm = {
id: '',
@@ -224,10 +240,10 @@ export default {
cruds() {
return CRUD({
title: '',
optShow: {add: true, reset: true},
optShow: { add: true, reset: true },
idField: 'id',
url: '/api/stIvtIostorinv',
crudMethod: {...crudProductIn},
crudMethod: { ...crudProductIn },
query: {
in_storage: true
},
@@ -264,7 +280,7 @@ export default {
'user'
])
},
mounted: function () {
mounted: function() {
const that = this
window.onresize = function temp() {
that.height = document.documentElement.clientHeight - 180 + 'px;'
@@ -293,7 +309,7 @@ export default {
this.crud.notify('请选择一条单据', CRUD.NOTIFICATION_TYPE.INFO)
return
}
crudProductIn.confirm({'iostorinv_id': this.currentRow.iostorinv_id}).then(res => {
crudProductIn.confirm({ 'iostorinv_id': this.currentRow.iostorinv_id }).then(res => {
this.crud.notify('单据确认成功!', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.toQuery()
})

View File

@@ -2,7 +2,7 @@
<div class="app-container">
<!--工具栏-->
<div class="head-container">
<div >
<div>
<!-- 搜索 -->
<el-form
:inline="true"
@@ -28,6 +28,22 @@
placeholder="单据号"
/>
</el-form-item>
<el-form-item label="分配载具">
<el-input
v-model="query.vehicles"
size="mini"
clearable
placeholder="分配载具"
/>
</el-form-item>
<el-form-item label="明细物料">
<el-input
v-model="query.material"
size="mini"
clearable
placeholder="物料编码或名称"
/>
</el-form-item>
<el-form-item label="单据类型">
<el-select
v-model="query.bill_type"
@@ -76,7 +92,7 @@
</el-form-item>
<template v-for="(col,index) in cols">
<el-form-item label="col.lable" prop="bill_code">
<label slot="label">{{col.lable}}:</label>
<label slot="label">{{ col.lable }}:</label>
<el-input v-model="query.form_query[col.value]" :value="col.value" clearable style="width: 210px" />
</el-form-item>
</template>
@@ -135,7 +151,7 @@
<el-table-column type="selection" width="55" />
<el-table-column show-overflow-tooltip prop="code" width="130" label="单据号">
<template slot-scope="scope">
<el-link type="warning" @click="toView(scope.row)">{{ scope.row.code }}</el-link>
<el-link type="warning" @click="toView(scope.row)">{{ scope.row.code }}</el-link>
</template>
</el-table-column>
<el-table-column prop="bill_type" label="业务类型">
@@ -152,8 +168,8 @@
<el-table-column show-overflow-tooltip prop="source_form_code" label="源单编码" min-width="155" />
<el-table-column show-overflow-tooltip prop="source_form_id" label="源单id" min-width="155" />
<el-table-column show-overflow-tooltip prop="source_form_date" label="源单时间" min-width="140" />
<el-table-column v-for="(item, index) in cols" :key="item.value" :label="item.lable" >
<template slot-scope="scope">{{scope.row.form_data[item.value]}}</template>
<el-table-column v-for="(item, index) in cols" :key="item.value" :label="item.lable">
<template slot-scope="scope">{{ scope.row.form_data[item.value] }}</template>
</el-table-column>
<el-table-column label="创建人" align="center" prop="create_name" />
<el-table-column label="创建时间" align="center" prop="create_time" width="150" />
@@ -171,15 +187,15 @@
<pagination />
</div>
<AddDialog ref="editDialog" @AddChanged="querytable" />
<ViewDialog ref="itemview"/>
<TaskDialog ref="taskDis"/>
<ViewDialog ref="itemview" />
<TaskDialog ref="taskDis" />
</div>
</template>
<script>
import formstruc from '@/views/wms/config_manage/formStruc/formstruc'
import crudProductOut from '@/views/wms/stor_manage/out/storinvout'
import CRUD, { crud, header,form, presenter } from '@crud/crud'
import CRUD, { crud, header, form, presenter } from '@crud/crud'
import rrOperation from '@crud/RR.operation'
import crudOperation from '@crud/CRUD.operation'
import udOperation from '@crud/UD.operation'
@@ -216,8 +232,8 @@ export default {
idField: 'id',
url: '/api/stIvtIostorinvOut',
crudMethod: { ...crudProductOut },
query:{
in_storage :false
query: {
in_storage: false
},
props: {
size: 10
@@ -226,10 +242,10 @@ export default {
},
mixins: [presenter(), header(), form(defaultForm), crud()],
// 数据字典
statusEnums: ['FORM_STATUS','IOBILL_TYPE_OUT','FLOW_STATUS'],
statusEnums: ['FORM_STATUS', 'IOBILL_TYPE_OUT', 'FLOW_STATUS'],
data() {
return {
cols:[],
cols: [],
height: document.documentElement.clientHeight - 180 + 'px;',
permission: {},
dis_flag: true,
@@ -298,7 +314,7 @@ export default {
this.crud.notify('请选择一条单据', CRUD.NOTIFICATION_TYPE.INFO)
return
}
crudProductOut.taskOpen(this.currentRow ).then(res => {
crudProductOut.taskOpen(this.currentRow).then(res => {
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.toQuery()
})
@@ -308,7 +324,7 @@ export default {
this.crud.notify('请选择一条单据', CRUD.NOTIFICATION_TYPE.INFO)
return
}
crudProductOut.cancelMst(this.currentRow.id ).then(res => {
crudProductOut.cancelMst(this.currentRow.id).then(res => {
this.crud.notify('操作成功', CRUD.NOTIFICATION_TYPE.SUCCESS)
this.crud.toQuery()
})
@@ -335,7 +351,7 @@ export default {
buttonChange(currentRow) {
if (currentRow !== null) {
this.currentRow = currentRow
if (currentRow.status === '10'|| currentRow.status === '13') {
if (currentRow.status === '10' || currentRow.status === '13') {
this.dis_flag = false
} else {
this.dis_flag = true
@@ -345,7 +361,7 @@ export default {
} else {
this.confirm_flag = true
}
if (currentRow.status === '13') {
if (currentRow.status === '13') {
this.task_flag = false
} else {
this.task_flag = true