作者 小范

新增回库功能

... ... @@ -17,6 +17,9 @@ export const selectBywaybillandFhl = params => { return axios.get(`${baseService
export const selectNewInventroyrecords = params => { return axios.get(`${baseServiceURL}/newinventroyrecord/selectNewInventroyrecords`, { params: params }); };
//出库
export const ExtNewinventroyrecord = params => { return axios.get(`${baseServiceURL}/newinventroyrecord/ExtNewinventroyrecord`, { params: params }); };
//回库
export const ReNewinventroyrecord = params => { return axios.post(`${baseServiceURL}/newinventroyrecord/ReNewinventroyrecord`, params); };
//分批出库
export const batchoutbound = params => { return http.post(`${baseUrl2}/batchoutbound`,params)};
//分批改单
... ...
... ... @@ -223,12 +223,14 @@
<el-table-column
fixed="right"
label="操作"
width="120">
width="160">
<template slot-scope="scope">
<el-button v-if="scope.row.ietype ==='E'" disabled type="success" size="mini" @click="outBound(scope.row)">出库</el-button>
<el-button v-else type="success" size="mini" @click="outBound(scope.row)">出库</el-button>
<el-button v-if="scope.row.ietype ==='E'" type="primary" size="mini" @click="inBound(scope.row)">回库</el-button>
<el-button v-else type="primary" disabled size="mini" @click="inBound(scope.row)">回库</el-button>
<!-- <el-button type="success" size="mini" @click="applyEdit(scope.row)">编辑</el-button>-->
<!-- <el-button type="danger" size="mini" @click="applyDel(scope.$index,scope.row)">删除</el-button>-->
<!-- <el-button type="danger" size="mini" @click="applyDel(scope.$index,scope.row)">删除</el-button>-->
</template>
</el-table-column>
</el-table>
... ... @@ -452,7 +454,7 @@
delInventoryrecord,
ediInventroyrecord,
ExtNewinventroyrecord,
selectNewInventroyrecords
selectNewInventroyrecords,ReNewinventroyrecord
} from "../../api/consigner/station";
import packge from '@/api/nmms/packge'
... ... @@ -615,6 +617,26 @@
}).catch(() => {
})
},
//回库
inBound(row) {
this.$confirm('是否确认回库?', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}
).then(() => {
// console.log(row);
ReNewinventroyrecord(row).then((response) => {
console.log(row)
const res = response.data
this.$message.success(res.msg)
this.getList()
}).catch(error => {
this.$message.error(res.msg)
})
}).catch(() => {
})
},
// 删除
applyDel(index, row) {
// 弹框询问是否删除?
... ...