入库模块增加库区信息
This commit is contained in:
@@ -79,6 +79,29 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="filter_label">当前库位可用数:</view>
|
||||||
|
<view class="zd_wrapper">
|
||||||
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_label" style="font-size: 24rpx;">高库位</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.g}}个</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_label" style="font-size: 24rpx;">中库位</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.z}}个</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_label" style="font-size: 24rpx;">低库位</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.d}}个</span>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<button class="zd-col-6 button-default" @tap="toEmpty">清空</button>
|
<button class="zd-col-6 button-default" @tap="toEmpty">清空</button>
|
||||||
@@ -130,7 +153,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import {inStorageOrder, getBillNoInfo, storList, inStorageConfirm} from '@/utils/getData2.js'
|
import {getStructCount, inStorageOrder, getBillNoInfo, storList, inStorageConfirm} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -151,7 +174,8 @@
|
|||||||
index: '',
|
index: '',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
options1: [],
|
options1: [],
|
||||||
index1: ''
|
index1: '',
|
||||||
|
kwData: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
@@ -257,6 +281,19 @@
|
|||||||
} else {
|
} else {
|
||||||
this.index ='FStockId'
|
this.index ='FStockId'
|
||||||
}
|
}
|
||||||
|
this._getStructCount()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async _getStructCount () {
|
||||||
|
try {
|
||||||
|
let res = await getStructCount()
|
||||||
|
if (res) {
|
||||||
|
this.kwData = res
|
||||||
|
} else {
|
||||||
|
this.kwData = {}
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.kwData = {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleDel2 () {
|
handleDel2 () {
|
||||||
@@ -271,6 +308,7 @@
|
|||||||
this.val2 = null
|
this.val2 = null
|
||||||
this.index1 = ''
|
this.index1 = ''
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
|
this.kwData = {}
|
||||||
},
|
},
|
||||||
async _inStorageConfirm () {
|
async _inStorageConfirm () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
|
|||||||
@@ -77,6 +77,29 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="filter_label">当前库位可用数:</view>
|
||||||
|
<view class="zd_wrapper">
|
||||||
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_label" style="font-size: 24rpx;">高库位</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.g}}个</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_label" style="font-size: 24rpx;">中库位</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.z}}个</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_label" style="font-size: 24rpx;">低库位</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.d}}个</span>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<button class="zd-col-6 button-default" @tap="toEmpty">清空</button>
|
<button class="zd-col-6 button-default" @tap="toEmpty">清空</button>
|
||||||
@@ -89,7 +112,7 @@
|
|||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import NumberInput from '@/components/NumberInput.vue'
|
import NumberInput from '@/components/NumberInput.vue'
|
||||||
import {storList, queryMaterByVehicleCode, checkMaterConfirm} from '@/utils/getData2.js'
|
import {getStructCount, storList, queryMaterByVehicleCode, checkMaterConfirm} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -106,7 +129,8 @@
|
|||||||
qty: null,
|
qty: null,
|
||||||
storCode: null,
|
storCode: null,
|
||||||
options: [],
|
options: [],
|
||||||
disabled: false
|
disabled: false,
|
||||||
|
kwData: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
@@ -151,6 +175,19 @@
|
|||||||
handleChange (e) {
|
handleChange (e) {
|
||||||
if (e) {
|
if (e) {
|
||||||
this._queryMaterByVehicleCode(e)
|
this._queryMaterByVehicleCode(e)
|
||||||
|
this._getStructCount()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async _getStructCount () {
|
||||||
|
try {
|
||||||
|
let res = await getStructCount()
|
||||||
|
if (res) {
|
||||||
|
this.kwData = res
|
||||||
|
} else {
|
||||||
|
this.kwData = {}
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.kwData = {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async _queryMaterByVehicleCode (e) {
|
async _queryMaterByVehicleCode (e) {
|
||||||
@@ -179,6 +216,7 @@
|
|||||||
this.qty = null
|
this.qty = null
|
||||||
this.storCode = null
|
this.storCode = null
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
|
this.kwData = {}
|
||||||
},
|
},
|
||||||
async _checkMaterConfirm () {
|
async _checkMaterConfirm () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
|
|||||||
@@ -11,6 +11,7 @@
|
|||||||
<view class="zd-col-17">
|
<view class="zd-col-17">
|
||||||
<search-box
|
<search-box
|
||||||
v-model="val1"
|
v-model="val1"
|
||||||
|
@handleChange="handleChange"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -23,6 +24,29 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="filter_label">当前库位可用数:</view>
|
||||||
|
<view class="zd_wrapper">
|
||||||
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_label" style="font-size: 24rpx;">高库位</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.g}}个</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_label" style="font-size: 24rpx;">中库位</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.z}}个</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_label" style="font-size: 24rpx;">低库位</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.d}}个</span>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||||
@@ -34,7 +58,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import {pdaPalletIostorinvIn} from '@/utils/getData2.js'
|
import {getStructCount, pdaPalletIostorinvIn} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -46,7 +70,8 @@
|
|||||||
val1: '',
|
val1: '',
|
||||||
options: [{text:'堆叠托盘', value:'11111111'},{text:'料箱',value: '22222222'},{text:'白色EPH',value: '33333333'}],
|
options: [{text:'堆叠托盘', value:'11111111'},{text:'料箱',value: '22222222'},{text:'白色EPH',value: '33333333'}],
|
||||||
index: '',
|
index: '',
|
||||||
disabled: false
|
disabled: false,
|
||||||
|
kwData: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
@@ -55,6 +80,23 @@
|
|||||||
created () {
|
created () {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleChange (e) {
|
||||||
|
if (e) {
|
||||||
|
this._getStructCount()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async _getStructCount () {
|
||||||
|
try {
|
||||||
|
let res = await getStructCount()
|
||||||
|
if (res) {
|
||||||
|
this.kwData = res
|
||||||
|
} else {
|
||||||
|
this.kwData = {}
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.kwData = {}
|
||||||
|
}
|
||||||
|
},
|
||||||
selectChange (e) {
|
selectChange (e) {
|
||||||
this.index = e
|
this.index = e
|
||||||
},
|
},
|
||||||
@@ -62,6 +104,7 @@
|
|||||||
this.val1 = ''
|
this.val1 = ''
|
||||||
this.index = ''
|
this.index = ''
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
|
this.kwData = {}
|
||||||
},
|
},
|
||||||
async _pdaPalletIostorinvIn () {
|
async _pdaPalletIostorinvIn () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
<span class="filter_label">物料编码</span>
|
<span class="filter_label">物料编码</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-24">
|
<view class="zd-col-17">
|
||||||
<input type="text" class="filter_input" v-model="currentData.material_code" @tap="toJump">
|
<input type="text" class="filter_input" v-model="currentData.material_code" @tap="toJump">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
<span class="filter_label filter_input_disabled">物料名称</span>
|
<span class="filter_label filter_input_disabled">物料名称</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-24">
|
<view class="zd-col-17">
|
||||||
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_name" disabled>
|
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_name" disabled>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
<span class="filter_label filter_input_disabled">物料规格</span>
|
<span class="filter_label filter_input_disabled">物料规格</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-24">
|
<view class="zd-col-17">
|
||||||
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_spec" disabled>
|
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_spec" disabled>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -32,7 +32,7 @@
|
|||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
<span class="filter_label filter_input_disabled">单位</span>
|
<span class="filter_label filter_input_disabled">单位</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-24">
|
<view class="zd-col-17">
|
||||||
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.unit_name" disabled>
|
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.unit_name" disabled>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
<span class="filter_label">物料单重</span>
|
<span class="filter_label">物料单重</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-24">
|
<view class="zd-col-17">
|
||||||
<NumberInput v-model="currentData.single_weight" />
|
<NumberInput v-model="currentData.single_weight" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -48,7 +48,7 @@
|
|||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
<span class="filter_label">物料批次</span>
|
<span class="filter_label">物料批次</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-24">
|
<view class="zd-col-17">
|
||||||
<input type="text" class="filter_input" v-model="currentData.pcsn">
|
<input type="text" class="filter_input" v-model="currentData.pcsn">
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -56,7 +56,7 @@
|
|||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
<span class="filter_label">物料数量</span>
|
<span class="filter_label">物料数量</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-24">
|
<view class="zd-col-17">
|
||||||
<NumberInput v-model="currentData.qty" />
|
<NumberInput v-model="currentData.qty" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
<span class="filter_label">载具编码</span>
|
<span class="filter_label">载具编码</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-24">
|
<view class="zd-col-17">
|
||||||
<search-box v-model="currentData.vehicle_code" @handleChange="handleChange" @handleDel="handleDel" />
|
<search-box v-model="currentData.vehicle_code" @handleChange="handleChange" @handleDel="handleDel" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -72,12 +72,35 @@
|
|||||||
<view class="zd-col-7">
|
<view class="zd-col-7">
|
||||||
<span class="filter_label">仓库编码</span>
|
<span class="filter_label">仓库编码</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-24 filter_select">
|
<view class="zd-col-17 filter_select">
|
||||||
<!-- <search-box v-model="currentData.stor_code"/> -->
|
<!-- <search-box v-model="currentData.stor_code"/> -->
|
||||||
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
<uni-data-select v-model="index" :localdata="options" @change="selectChange"></uni-data-select>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="filter_label">当前库位可用数:</view>
|
||||||
|
<view class="zd_wrapper">
|
||||||
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_label" style="font-size: 24rpx;">高库位</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.g}}个</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_label" style="font-size: 24rpx;">中库位</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.z}}个</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_label" style="font-size: 24rpx;">低库位</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.d}}个</span>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<button class="zd-col-6 button-default" @tap="toEmpty">清空</button>
|
<button class="zd-col-6 button-default" @tap="toEmpty">清空</button>
|
||||||
@@ -90,7 +113,7 @@
|
|||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import NumberInput from '@/components/NumberInput.vue'
|
import NumberInput from '@/components/NumberInput.vue'
|
||||||
import {storList, groupMaterIn} from '@/utils/getData2.js'
|
import {storList, getStructCount, groupMaterIn} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -103,7 +126,8 @@
|
|||||||
currentData: {},
|
currentData: {},
|
||||||
options: [],
|
options: [],
|
||||||
index: '',
|
index: '',
|
||||||
disabled: false
|
disabled: false,
|
||||||
|
kwData: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
@@ -120,12 +144,17 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if (this.currentData.vehicle_code.charAt(0).toUpperCase() === 'T') {
|
if (this.currentData.vehicle_code && this.currentData.vehicle_code.charAt(0).toUpperCase() === 'T') {
|
||||||
this.index ='FStockPallet'
|
this.index ='FStockPallet'
|
||||||
} else {
|
} else {
|
||||||
this.index ='FStockId'
|
this.index ='FStockId'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (this.currentData.vehicle_code) {
|
||||||
|
this._getStructCount()
|
||||||
|
} else {
|
||||||
|
this.kwData = {}
|
||||||
|
}
|
||||||
this.$store.dispatch('setPublicObj', '')
|
this.$store.dispatch('setPublicObj', '')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -154,6 +183,19 @@
|
|||||||
} else {
|
} else {
|
||||||
this.index ='FStockId'
|
this.index ='FStockId'
|
||||||
}
|
}
|
||||||
|
this._getStructCount()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async _getStructCount () {
|
||||||
|
try {
|
||||||
|
let res = await getStructCount()
|
||||||
|
if (res) {
|
||||||
|
this.kwData = res
|
||||||
|
} else {
|
||||||
|
this.kwData = {}
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.kwData = {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleDel () {
|
handleDel () {
|
||||||
@@ -163,6 +205,7 @@
|
|||||||
this.currentData = {}
|
this.currentData = {}
|
||||||
this.index = ''
|
this.index = ''
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
|
this.kwData = {}
|
||||||
},
|
},
|
||||||
async _groupMaterIn () {
|
async _groupMaterIn () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
|
|||||||
@@ -78,6 +78,29 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="filter_label">当前库位可用数:</view>
|
||||||
|
<view class="zd_wrapper">
|
||||||
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_label" style="font-size: 24rpx;">高库位</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.g}}个</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_label" style="font-size: 24rpx;">中库位</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.z}}个</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_label" style="font-size: 24rpx;">低库位</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-4">
|
||||||
|
<span class="filter_input" style="font-size: 28rpx; color: #ff6a00; font-weight: 700;">{{kwData.d}}个</span>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<button class="zd-col-6 button-default" @tap="toEmpty">清空</button>
|
<button class="zd-col-6 button-default" @tap="toEmpty">清空</button>
|
||||||
@@ -89,7 +112,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import NavBar from '@/components/NavBar.vue'
|
import NavBar from '@/components/NavBar.vue'
|
||||||
import SearchBox from '@/components/SearchBox.vue'
|
import SearchBox from '@/components/SearchBox.vue'
|
||||||
import {storList, getCertificateInfo, inStorageConfirm} from '@/utils/getData2.js'
|
import {getStructCount, storList, getCertificateInfo, inStorageConfirm} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -104,7 +127,8 @@
|
|||||||
currentData: {},
|
currentData: {},
|
||||||
options: [],
|
options: [],
|
||||||
index: '',
|
index: '',
|
||||||
disabled: false
|
disabled: false,
|
||||||
|
kwData: {}
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
@@ -138,6 +162,19 @@
|
|||||||
} else {
|
} else {
|
||||||
this.index ='FStockId'
|
this.index ='FStockId'
|
||||||
}
|
}
|
||||||
|
this._getStructCount()
|
||||||
|
}
|
||||||
|
},
|
||||||
|
async _getStructCount () {
|
||||||
|
try {
|
||||||
|
let res = await getStructCount()
|
||||||
|
if (res) {
|
||||||
|
this.kwData = res
|
||||||
|
} else {
|
||||||
|
this.kwData = {}
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.kwData = {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleDel2 () {
|
handleDel2 () {
|
||||||
@@ -150,6 +187,7 @@
|
|||||||
this.currentData = {}
|
this.currentData = {}
|
||||||
this.index = ''
|
this.index = ''
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
|
this.kwData = {}
|
||||||
},
|
},
|
||||||
async _inStorageConfirm () {
|
async _inStorageConfirm () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
|
|||||||
@@ -272,4 +272,11 @@ export const queryMaterByVehicleCode = (code) => request({
|
|||||||
export const checkMaterConfirm = (obj) => request({
|
export const checkMaterConfirm = (obj) => request({
|
||||||
url:'api/groupMater/checkMaterConfirm',
|
url:'api/groupMater/checkMaterConfirm',
|
||||||
data: obj
|
data: obj
|
||||||
|
})
|
||||||
|
/**
|
||||||
|
* 扫载具码调接口
|
||||||
|
*/
|
||||||
|
export const getStructCount = (code) => request({
|
||||||
|
url:'api/pda/common/getStructCount',
|
||||||
|
data: {vehicle_code: code}
|
||||||
})
|
})
|
||||||
@@ -73,7 +73,7 @@ export const groupMaterList = () => {
|
|||||||
assign_qty: '0.000',
|
assign_qty: '0.000',
|
||||||
unit_id: null,
|
unit_id: null,
|
||||||
pcsn: null,
|
pcsn: null,
|
||||||
vehicle_code: null,
|
vehicle_code: '100',
|
||||||
vehicle_id: null
|
vehicle_id: null
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -388,4 +388,12 @@ export const queryMaterByVehicleCode = (code) => {
|
|||||||
"msg": "查询成功"
|
"msg": "查询成功"
|
||||||
}
|
}
|
||||||
return res
|
return res
|
||||||
|
}
|
||||||
|
export const getStructCount = (code) => {
|
||||||
|
let res = {
|
||||||
|
d: 100,
|
||||||
|
g: 200,
|
||||||
|
z: 300
|
||||||
|
}
|
||||||
|
return res
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user