rev:安全库存、库区维护
This commit is contained in:
@@ -24,12 +24,12 @@ export function edit(data) {
|
||||
})
|
||||
}
|
||||
|
||||
export function insertSafe(data) {
|
||||
export function save(data) {
|
||||
return request({
|
||||
url: 'api/materialsafeivt/insertSafe',
|
||||
url: 'api/materialsafeivt/save',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export default { add, edit, del, insertSafe }
|
||||
export default { add, edit, del, save }
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
placeholder="物料类型"
|
||||
/>
|
||||
<el-input
|
||||
v-model="query.search"
|
||||
v-model="query.material_search"
|
||||
clearable
|
||||
style="width: 200px"
|
||||
size="mini"
|
||||
@@ -51,9 +51,9 @@
|
||||
>
|
||||
<el-table-column prop="stor_code" label="仓库编码" />
|
||||
<el-table-column prop="stor_name" label="仓库名称" />
|
||||
<el-table-column prop="material_code" label="物料编码" min-width="150" show-overflow-tooltip />
|
||||
<el-table-column prop="material_code" label="物料编码" min-width="120" show-overflow-tooltip />
|
||||
<el-table-column prop="material_name" label="物料名称" min-width="200" show-overflow-tooltip />
|
||||
<el-table-column prop="safe_ivt_down" label="安全库存" width="150">
|
||||
<el-table-column prop="safe_ivt_down" label="安全库存" width="170">
|
||||
<template slot-scope="scope">
|
||||
<el-input-number
|
||||
v-model="crud.data[scope.$index].safe_ivt_down"
|
||||
@@ -107,7 +107,7 @@ export default {
|
||||
return CRUD({
|
||||
title: '安全库存',
|
||||
optShow: { reset: true },
|
||||
url: 'api/materialsafeivt',
|
||||
url: '/api/materialsafeivt',
|
||||
idField: 'material_id',
|
||||
sort: 'material_id,desc',
|
||||
crudMethod: { ...crudMaterialsafeivt }
|
||||
@@ -207,7 +207,7 @@ export default {
|
||||
const data = {}
|
||||
data.stor_id = this.stor_id
|
||||
data.rows = this.crud.data
|
||||
crudMaterialsafeivt.insertSafe(data).then(() => {
|
||||
crudMaterialsafeivt.save(data).then(() => {
|
||||
this.crud.dleChangePage(1)
|
||||
this.crud.editSuccessNotify()
|
||||
this.crud.refresh()
|
||||
|
||||
@@ -180,7 +180,7 @@ import rrOperation from '@crud/RR.operation'
|
||||
import crudOperation from '@crud/CRUD.operation'
|
||||
import udOperation from '@crud/UD.operation'
|
||||
import pagination from '@crud/Pagination'
|
||||
import crudStorattr from '@/api/wms/basedata/st/storattr'
|
||||
import crudStorattr from '@/views/wms/storage_manage/basedata/basedata'
|
||||
import { isvalidPhone } from '@/utils/validate'
|
||||
|
||||
const defaultForm = {
|
||||
@@ -283,7 +283,7 @@ export default {
|
||||
}
|
||||
},
|
||||
created() {
|
||||
crudStorattr.getStor().then(res => {
|
||||
crudStorattr.getStor({}).then(res => {
|
||||
this.stors = res.content
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user