|
@@ -3,9 +3,7 @@
|
|
|
<div>
|
|
|
<BaseHeaderLayout :leftSpan="20">
|
|
|
<template slot="left">
|
|
|
- <ws-button
|
|
|
- type="primary"
|
|
|
- @click="handleAdd()"
|
|
|
+ <ws-button type="primary" @click="handleAdd()"
|
|
|
><img
|
|
|
width="11"
|
|
|
height="11"
|
|
@@ -15,6 +13,10 @@
|
|
|
/>
|
|
|
添加</ws-button
|
|
|
>
|
|
|
+
|
|
|
+ <ws-button @click="handleLook()">查看</ws-button>
|
|
|
+ <ws-button @click="handleEdit()">编辑</ws-button>
|
|
|
+ <ws-button @click="handleDelete()">删除</ws-button>
|
|
|
<ws-button @click="handleLook()">查看</ws-button>
|
|
|
<ws-button @click="handleEdit()">编辑</ws-button>
|
|
|
<ws-button @click="handleDelete()">删除</ws-button>
|
|
@@ -41,11 +43,7 @@
|
|
|
class="findValue"
|
|
|
></ws-input>
|
|
|
<!-- v-hasPermission="'procurement.sparepart.directShip'" -->
|
|
|
- <ws-button
|
|
|
- class="find"
|
|
|
- type="primary"
|
|
|
- @click="find()"
|
|
|
-
|
|
|
+ <ws-button class="find" type="primary" @click="find()"
|
|
|
><img
|
|
|
width="16"
|
|
|
height="16"
|
|
@@ -122,23 +120,13 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="seller" label="出入库" width="300">
|
|
|
<template slot-scope="scope">
|
|
|
- <ws-button
|
|
|
- class="completed"
|
|
|
- @click="nocomplete(scope.row)"
|
|
|
-
|
|
|
- >
|
|
|
+ <ws-button class="completed" @click="nocomplete(scope.row)">
|
|
|
待完成({{ scope.row.number }})
|
|
|
</ws-button>
|
|
|
- <ws-button
|
|
|
- class="putstorage"
|
|
|
- @click="warehousing(scope.row)"
|
|
|
- >
|
|
|
+ <ws-button class="putstorage" @click="warehousing(scope.row)">
|
|
|
入库
|
|
|
</ws-button>
|
|
|
- <ws-button
|
|
|
- class="deliverystorage"
|
|
|
- @click="delivery(scope.row)"
|
|
|
- >
|
|
|
+ <ws-button class="deliverystorage" @click="delivery(scope.row)">
|
|
|
出库
|
|
|
</ws-button>
|
|
|
</template>
|
|
@@ -159,7 +147,11 @@
|
|
|
style="width: 100%; margin-top: 20px"
|
|
|
height="780"
|
|
|
>
|
|
|
- <el-table-column prop="index" label="序号" width="80">
|
|
|
+ <el-table-column type="index" label="序号" width="80">
|
|
|
+ <template scope="scope">
|
|
|
+ <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
|
+ <span v-else>{{ scope.$index + 1 }}</span>
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="warehouseName" label="仓库名" width="80">
|
|
|
</el-table-column>
|
|
@@ -199,30 +191,24 @@
|
|
|
style="height: 24px"
|
|
|
v-for="(item, i) in scope.row.warehouseNumViewList"
|
|
|
>
|
|
|
+ {{ item.inNetWeight - item.outNetWeight }}
|
|
|
+
|
|
|
{{ item.storage }}
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="seller" label="出入库" width="300">
|
|
|
<template slot-scope="scope">
|
|
|
- <ws-button
|
|
|
- class="completed"
|
|
|
- @click="nocomplete(scope.row)"
|
|
|
-
|
|
|
- >
|
|
|
+ <ws-button class="completed" @click="nocomplete(scope.row)">
|
|
|
待完成({{ scope.row.number }})
|
|
|
</ws-button>
|
|
|
- <ws-button
|
|
|
- class="putstorage"
|
|
|
- @click="warehousing(scope.row)"
|
|
|
-
|
|
|
- >
|
|
|
+ <ws-button class="putstorage" @click="warehousing(scope.row)">
|
|
|
入库
|
|
|
</ws-button>
|
|
|
<ws-button
|
|
|
class="deliverystorage"
|
|
|
+ v-if="scope.row.clearStatusFlag != 3"
|
|
|
@click="delivery(scope.row)"
|
|
|
-
|
|
|
>
|
|
|
出库
|
|
|
</ws-button>
|
|
@@ -231,7 +217,16 @@
|
|
|
<el-table-column prop="address" label="操作" width="200">
|
|
|
<template slot-scope="scope">
|
|
|
<div class="record" @click="record(scope.row)">记录</div>
|
|
|
- <div class="adjustment" @click="loss(scope.row)">清仓</div>
|
|
|
+ <div
|
|
|
+ class="adjustment"
|
|
|
+ v-if="scope.row.clearStatusFlag == 1"
|
|
|
+ @click="clearance(scope.row)"
|
|
|
+ >
|
|
|
+ 清仓
|
|
|
+ </div>
|
|
|
+ <div class="adjustment" v-if="scope.row.clearStatusFlag == 3">
|
|
|
+ 已清仓
|
|
|
+ </div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -244,6 +239,7 @@ import {
|
|
|
export1,
|
|
|
editstatus,
|
|
|
billoperatehis,
|
|
|
+ clearancee,
|
|
|
} from '@/model/warehouse/index'
|
|
|
import { downloadFile } from '@/utils/batchDown'
|
|
|
import Pagination from '@/components/Pagination'
|
|
@@ -277,6 +273,7 @@ export default {
|
|
|
showType: true,
|
|
|
// 年
|
|
|
year: '',
|
|
|
+ clearancee: {},
|
|
|
currentPage: 1,
|
|
|
pageSize: 10,
|
|
|
searchType: 1,
|
|
@@ -307,7 +304,46 @@ export default {
|
|
|
this.getList()
|
|
|
this.showType = this.isShow
|
|
|
},
|
|
|
+
|
|
|
methods: {
|
|
|
+ //清仓
|
|
|
+ clearance(row) {
|
|
|
+ console.log(row.outNumber)
|
|
|
+ if (row.outNumber > 0) {
|
|
|
+ this.$confirm(`你还有未完善的出库记录,请完善提交后再进行操作`, {
|
|
|
+ cancelButtonText: '关闭',
|
|
|
+ })
|
|
|
+ .then(() => {})
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$confirm(
|
|
|
+ `清仓操作代表库存已清零,清仓后不可进行出库操作,是否确定清仓`,
|
|
|
+ {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning',
|
|
|
+ }
|
|
|
+ )
|
|
|
+ .then(() => {
|
|
|
+ clearancee({ id: row.warehouseId })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$notify.success({
|
|
|
+ title: '成功',
|
|
|
+ message: '状态清仓成功',
|
|
|
+ })
|
|
|
+ this.getList()
|
|
|
+ })
|
|
|
+ .catch((response) => {})
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
|
|
|
//出库
|
|
|
delivery(item) {
|
|
@@ -341,7 +377,7 @@ export default {
|
|
|
capacity: item.capacity - free,
|
|
|
id: item.id,
|
|
|
warehouseType: this.warehouseType,
|
|
|
- createType: item.createType
|
|
|
+ createType: item.createType,
|
|
|
},
|
|
|
})
|
|
|
},
|
|
@@ -519,6 +555,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
fujian(row) {
|
|
|
if (
|
|
|
row.receiveAttachmentPath === null ||
|
|
@@ -543,6 +580,7 @@ export default {
|
|
|
handleCloe() {
|
|
|
this.dialogViewSpareMoney = false
|
|
|
},
|
|
|
+
|
|
|
history(row) {
|
|
|
billoperatehis({ id: row.id })
|
|
|
.toPromise()
|