This commit is contained in:
shilixia 2022-01-17 14:13:28 +08:00
parent 1c62a21a56
commit a14dac9bda
4 changed files with 33 additions and 10 deletions

View File

@ -61,6 +61,14 @@ export function getfifoList(query) {
}) })
} }
//出入库记录删除 //出入库记录删除
export function deleteFifo(id, data) {
return request({
url: `/inm/fifo/${id}/`,
method: 'delete',
data
})
}
//出入库记录删除
export function deleteFifoitem(id, data) { export function deleteFifoitem(id, data) {
return request({ return request({
url: `/inm/fifoitem/${id}/`, url: `/inm/fifoitem/${id}/`,

View File

@ -234,6 +234,7 @@ import {
createInventory, createInventory,
getWarehouseList, getWarehouseList,
deleteFifoitem, deleteFifoitem,
deleteFifo,
audit, audit,
} from "@/api/inm"; } from "@/api/inm";
import checkPermission from "@/utils/permission"; import checkPermission from "@/utils/permission";
@ -402,7 +403,7 @@ export default {
type: "error", type: "error",
}) })
.then(async () => { .then(async () => {
await deleteFifoitem(scope.row.id); await deleteFifo(scope.row.id);
this.getList(); this.getList();
this.$message.success("成功"); this.$message.success("成功");
}) })

View File

@ -256,7 +256,7 @@ getMaterial(){
}) })
}, },
getOrderList(){ getOrderList(){
getOrderList({product:this.material,page:0}).then((response) => { getOrderList({material:this.material,page:0}).then((response) => {
if (response.data) { if (response.data) {
this.orderlist = response.data;//物料关联的订单 this.orderlist = response.data;//物料关联的订单
@ -264,7 +264,7 @@ getMaterial(){
}) })
}, },
getplanList() { getplanList() {
getProductionplanList({product:this.material,page:0}).then((response) => { getProductionplanList({material:this.material,page:0}).then((response) => {
if (response.data) { if (response.data) {
this.productionplanList = response.data;//物料关联计划 this.productionplanList = response.data;//物料关联计划
} }

View File

@ -129,12 +129,6 @@
@click="handlework(item)" @click="handlework(item)"
>{{ item.name }}</el-button >{{ item.name }}</el-button
> >
<el-button
type="primary"
@click="handleAll()"
style="float: right"
>显示全部</el-button
>
<el-button <el-button
type="primary" type="primary"
@click="handleScrapbcp()" @click="handleScrapbcp()"
@ -142,6 +136,16 @@
style="float: right; display: none" style="float: right; display: none"
>报废</el-button >报废</el-button
> >
<el-badge :value="count" class="item" style="float:right">
<el-button
type="primary"
@click="handleAll()"
>显示全部</el-button
>
</el-badge>
<el-table <el-table
:data="wproductData" :data="wproductData"
@ -714,6 +718,12 @@
</div> </div>
</template> </template>
<style>
.item {
margin-right: 20px;
}
</style>
<script> <script>
import { getsubproductionplanList, createPick_need } from "@/api/pm"; import { getsubproductionplanList, createPick_need } from "@/api/pm";
import checkPermission from "@/utils/permission"; import checkPermission from "@/utils/permission";
@ -832,6 +842,7 @@ export default {
{ lable: "划伤", value: 30 }, { lable: "划伤", value: 30 },
{ lable: "其他", value: 40 }, { lable: "其他", value: 40 },
], ],
count:null,
}; };
}, },
process: "", process: "",
@ -1100,7 +1111,10 @@ export default {
if (this.values++ > this.forms.length) this.values = 0; if (this.values++ > this.forms.length) this.values = 0;
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.count=val.length;
console.log(this.count);
let _this = this; let _this = this;
_this.wpID = []; _this.wpID = [];
val.forEach((item) => { val.forEach((item) => {
_this.wpID.push(item.id); _this.wpID.push(item.id);