物料入库修改

This commit is contained in:
2025-12-12 10:41:51 +08:00
parent 8046d06b45
commit d25115e849
2 changed files with 18 additions and 2 deletions

View File

@@ -20,6 +20,7 @@
<view class="zd-col-17">
<search-box
v-model="val2"
@handleChange="handleChange"
/>
</view>
</view>
@@ -93,7 +94,7 @@
<script>
import NavBar from '@/components/NavBar.vue'
import SearchBox from '@/components/SearchBox.vue'
import {regionList, handheldBlanking} from '@/utils/getData2.js'
import {regionList, handheldBlanking, selectMaterial} from '@/utils/getData2.js'
export default {
components: {
NavBar,
@@ -118,6 +119,11 @@
this._regionList()
},
methods: {
handleChange (e) {
if (e) {
this._selectMaterial()
}
},
selectChange (e) {
this.dataList = []
this.index1 = ''
@@ -130,6 +136,10 @@
this.$set(el, 'text', el.label)
})
},
async _selectMaterial () {
let res = await selectMaterial(this.val2)
this.dataList = [...res.content]
},
addRow () {
this.dataList.push({order_code: '', material_code: '', material_qty: 0, due_date: this.getCurrentDateTime()})
},

View File

@@ -116,4 +116,10 @@ export const combineMaterials = (oPallet, tPallet, data) => request({
export const generateStoreInTask = (code, pcode, scode, tcode) => request({
url:'api/handheld/generateStoreInTask',
data: {vehicle_code: code, point_code: pcode, source_vehicle_code: scode, target_vehicle_code: tcode}
})
})
// 物料入库-查询组盘
export const selectMaterial = (code) => request({
url:'api/handheld/selectMaterial',
data: {pointCode: code}
})