|
@@ -108,7 +108,11 @@
|
|
|
</view>
|
|
|
<upload class="upload" ref="upload" :action="action" :max-size="maxSize" :max-count="1"
|
|
|
:size-type="['compressed']" @on-success="getImgUrl" @on-remove="onRemove"
|
|
|
- @on-uploaded="isAdd = true" :before-upload="filterFileType"></upload>
|
|
|
+ @on-uploaded="isAdd = true" :before-upload="filterFileType"
|
|
|
+ v-if="WarehouseInOutInfo.addressUrl == null || WarehouseInOutInfo.addressUrl == '' "></upload>
|
|
|
+ <image :src="WarehouseInOutInfo.addressUrl" mode=""
|
|
|
+ v-if="WarehouseInOutInfo.addressUrl != null || WarehouseInOutInfo.addressUrl != '' "
|
|
|
+ class="picture"></image>
|
|
|
<!-- <view style="height: 90px; margin-left: 16px;" class="flex">
|
|
|
<image v-bind:src="license1" class="picture1" v-if="this.license1 != null || this.license1 !=''"></image>
|
|
|
<view @click="uploadPictures">
|
|
@@ -333,10 +337,29 @@
|
|
|
id: id1
|
|
|
}).then(res => {
|
|
|
this.WarehouseInOutInfo = res.data.data
|
|
|
- if(this.WarehouseInOutInfo.warehouseInOutDetail != null || this.WarehouseInOutInfo.warehouseInOutDetail != ""){
|
|
|
+ if (this.WarehouseInOutInfo.warehouseInOutDetail != null || this.WarehouseInOutInfo
|
|
|
+ .warehouseInOutDetail != "") {
|
|
|
this.list = this.WarehouseInOutInfo.warehouseInOutDetail
|
|
|
}
|
|
|
-
|
|
|
+ this.ruIndex = this.WarehouseInOutInfo.inOutTypeKey
|
|
|
+ this.warehouseIndex1 = this.WarehouseInOutInfo.binNumberKey
|
|
|
+ this.warehouseIndex = this.WarehouseInOutInfo.warehouseNameKey
|
|
|
+ this.pinIndex = this.WarehouseInOutInfo.gradeKey
|
|
|
+ var positionid
|
|
|
+ for (var i = 0; i < this.warehouselist.length; i++) {
|
|
|
+ if (this.warehouselist[i].warehouseName == this.WarehouseInOutInfo.warehouseName) {
|
|
|
+ this.warehouseIndex = i
|
|
|
+ positionid = this.warehouselist[i].id
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // this.warehouse1 = this.warehouseChange3(positionid)
|
|
|
+ // console.log(this.warehouse1,"仓库号")
|
|
|
+ for (var i = 0; i < this.warehouse1.length; i++) {
|
|
|
+ if (this.warehouse1[i] == this.WarehouseInOutInfo.binNumber) {
|
|
|
+ this.warehouseIndex1 = i
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
})
|
|
|
.catch(res => {
|
|
|
uni.showToast({
|
|
@@ -346,7 +369,23 @@
|
|
|
})
|
|
|
});
|
|
|
},
|
|
|
+ async warehouseChange3(id){
|
|
|
+ var that = this
|
|
|
+ this.$api.doRequest('get', '/warehouseBaseInfo/getWarehouse', {
|
|
|
+ id: id,
|
|
|
+ }).then(res => {
|
|
|
+ var arr = []
|
|
|
+ for (var i = 0; i < res.data.data.warehousePositionInfoList.length; i++) {
|
|
|
+
|
|
|
+ arr.push(res.data.data.warehousePositionInfoList[i].binNumber)
|
|
|
+ }
|
|
|
+ that.warehouse1 = arr
|
|
|
+ this.warehouselist11 = res.data.data
|
|
|
+ })
|
|
|
+ return that.warehouse1
|
|
|
+ },
|
|
|
warehouseChange(e) {
|
|
|
+ console.log(e)
|
|
|
var id = ''
|
|
|
this.warehouseIndex = e.detail.value
|
|
|
this.WarehouseInOutInfo.warehouseName = this.warehouse[this.warehouseIndex]
|
|
@@ -370,6 +409,7 @@
|
|
|
warehouseChange1(e) {
|
|
|
var id = ''
|
|
|
this.warehouseIndex1 = e.detail.value
|
|
|
+ this.WarehouseInOutInfo.binNumberKey = this.warehouseIndex1
|
|
|
this.WarehouseInOutInfo.binNumber = this.warehouse1[this.warehouseIndex1]
|
|
|
},
|
|
|
|
|
@@ -504,7 +544,7 @@
|
|
|
if (this.imgUrls.length > 0) {
|
|
|
this.WarehouseInOutInfo.addressUrl = this.imgUrls[0]
|
|
|
}
|
|
|
- console.log(this.WarehouseInOutInfo,"出库暂存对象")
|
|
|
+ console.log(this.WarehouseInOutInfo, "出库暂存对象")
|
|
|
this.$api.doRequest('post', '/warehouseInOutInfo/InOutWarehouse', this.WarehouseInOutInfo).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
uni.showToast({
|
|
@@ -512,7 +552,7 @@
|
|
|
icon: 'none',
|
|
|
duration: 2000
|
|
|
})
|
|
|
-
|
|
|
+
|
|
|
// setTimeout(() => {
|
|
|
// uni.navigateBack({})
|
|
|
// }, 200)
|
|
@@ -898,4 +938,11 @@
|
|
|
height: 90px;
|
|
|
border-radius: 10px;
|
|
|
}
|
|
|
+
|
|
|
+ .picture {
|
|
|
+ width: 75px;
|
|
|
+ height: 75px;
|
|
|
+ border-radius: 10px;
|
|
|
+ margin-left: 16px;
|
|
|
+ }
|
|
|
</style>
|