...
|
...
|
@@ -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) {
|
|
|
// 弹框询问是否删除?
|
...
|
...
|
|