|
@@ -85,6 +85,11 @@
|
|
|
" class="putstorage" @click="edits(scope.row)">
|
|
|
毛检
|
|
|
</ws-button>
|
|
|
+ <ws-button v-hasPermission="
|
|
|
+ `warehouseManagement.warehouse.warehouseInfo.view`
|
|
|
+ " class="putstorage" @click="exchange(scope.row)">
|
|
|
+ 换仓
|
|
|
+ </ws-button>
|
|
|
<!-- <el-button @click="print(scope.row)" v-hasPermission="`acquisitionManagement.acquisitionWeight.print`">打印</el-button > -->
|
|
|
|
|
|
<!-- <div class="record" @click="edits(scope.row)">编辑</div>
|
|
@@ -100,7 +105,21 @@
|
|
|
:total="deptBudgetTotal">
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
-
|
|
|
+ <el-dialog
|
|
|
+ title="提示"
|
|
|
+ :visible.sync="dialogVisible"
|
|
|
+ width="30%"
|
|
|
+ :before-close="handleClose">
|
|
|
+ <el-select filterable clearable v-model="binNumber" placeholder="请选择仓位" class="typeselect"
|
|
|
+ @change="binNumberChange">
|
|
|
+ <el-option v-for="item in binnumberList" :key="item.binNumber" :label="item.binNumber"
|
|
|
+ :value="item.binNumber" />
|
|
|
+ </el-select>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="dialogVisibleconfirm">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</ws-form>
|
|
|
|
|
@@ -112,6 +131,8 @@
|
|
|
delInOut,
|
|
|
completeList,
|
|
|
getPrintInfo,
|
|
|
+ getbinnumber,
|
|
|
+ addstorageputList
|
|
|
// deletewarehouse,
|
|
|
// warehouseName,
|
|
|
// addstorageputList,
|
|
@@ -147,6 +168,7 @@
|
|
|
tableDate: [],
|
|
|
// 是否显示
|
|
|
showType: true,
|
|
|
+ binNumber:'',
|
|
|
// 年
|
|
|
year: '',
|
|
|
deptBudgetTotal: 0,
|
|
@@ -158,12 +180,15 @@
|
|
|
startDate: null,
|
|
|
endDate: null,
|
|
|
value2: [],
|
|
|
+ dialogVisible:false,
|
|
|
+ id:0,
|
|
|
deletewarehouse: [],
|
|
|
improved: [],
|
|
|
row: [],
|
|
|
deptBudgetList1: [],
|
|
|
// 提交类型
|
|
|
submitType: true,
|
|
|
+ binnumberList:[],
|
|
|
selectpackingMethod: {},
|
|
|
size: 10,
|
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
@@ -190,7 +215,7 @@
|
|
|
//cg.viewSpareMoney
|
|
|
// this.getVesselData();
|
|
|
this.deptBudgetList1.warehouseName = this.$route.query.warehouseName
|
|
|
- this.binNumber = this.$route.params.binNumber
|
|
|
+ this.binNumber = this.$route.query.binNumber
|
|
|
this.status = this.$route.query.status
|
|
|
this.deptBudgetList.warehouseType = this.$route.query.warehouseType
|
|
|
this.createType = this.$route.query.createType
|
|
@@ -204,6 +229,55 @@
|
|
|
this.showType = this.isShow
|
|
|
},
|
|
|
methods: {
|
|
|
+ handleClose(){
|
|
|
+ this.dialogVisible=false
|
|
|
+ },
|
|
|
+ dialogVisibleconfirm(){
|
|
|
+ this.$confirm(`确定修改仓位?`, {
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ addstorageputList({statusFlag:1,id:this.id,positionId:this.deptBudgetList.positionId,binNumber:this.binNumber,warehouseInOutDetail:{}}).toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.$notify.success({
|
|
|
+ title: '成功',
|
|
|
+ message: '修改仓位成功',
|
|
|
+ })
|
|
|
+ this.dialogVisible=false
|
|
|
+ this.getList(
|
|
|
+ this.$route.query.baseId,
|
|
|
+ this.$route.query.positionId,
|
|
|
+ this.$route.query.warehouseType
|
|
|
+ )
|
|
|
+
|
|
|
+ })
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ return false
|
|
|
+ })
|
|
|
+
|
|
|
+ },
|
|
|
+ binNumberChange(e){
|
|
|
+ for (let i = 0; i < this.binnumberList.length; i++) {
|
|
|
+ if(this.binnumberList[i].binNumber==e){
|
|
|
+ this.deptBudgetList.positionId=this.binnumberList[i].id
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ exchange(row){
|
|
|
+ var that=this
|
|
|
+ getbinnumber({id: this.$route.query.baseId}).toPromise()
|
|
|
+ .then((response) => {
|
|
|
+
|
|
|
+ this.binnumberList = response.warehousePositionInfoList
|
|
|
+ this.$forceUpdate()
|
|
|
+ })
|
|
|
+ this.id=row.id
|
|
|
+ this.dialogVisible=true
|
|
|
+
|
|
|
+ },
|
|
|
datechange() {
|
|
|
this.getList()
|
|
|
},
|