物料入库修改
This commit is contained in:
@@ -20,6 +20,7 @@
|
|||||||
<view class="zd-col-17">
|
<view class="zd-col-17">
|
||||||
<search-box
|
<search-box
|
||||||
v-model="val2"
|
v-model="val2"
|
||||||
|
@handleChange="handleChange"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -93,7 +94,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 {regionList, handheldBlanking} from '@/utils/getData2.js'
|
import {regionList, handheldBlanking, selectMaterial} from '@/utils/getData2.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -118,6 +119,11 @@
|
|||||||
this._regionList()
|
this._regionList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleChange (e) {
|
||||||
|
if (e) {
|
||||||
|
this._selectMaterial()
|
||||||
|
}
|
||||||
|
},
|
||||||
selectChange (e) {
|
selectChange (e) {
|
||||||
this.dataList = []
|
this.dataList = []
|
||||||
this.index1 = ''
|
this.index1 = ''
|
||||||
@@ -130,6 +136,10 @@
|
|||||||
this.$set(el, 'text', el.label)
|
this.$set(el, 'text', el.label)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
async _selectMaterial () {
|
||||||
|
let res = await selectMaterial(this.val2)
|
||||||
|
this.dataList = [...res.content]
|
||||||
|
},
|
||||||
addRow () {
|
addRow () {
|
||||||
this.dataList.push({order_code: '', material_code: '', material_qty: 0, due_date: this.getCurrentDateTime()})
|
this.dataList.push({order_code: '', material_code: '', material_qty: 0, due_date: this.getCurrentDateTime()})
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -117,3 +117,9 @@ export const generateStoreInTask = (code, pcode, scode, tcode) => request({
|
|||||||
url:'api/handheld/generateStoreInTask',
|
url:'api/handheld/generateStoreInTask',
|
||||||
data: {vehicle_code: code, point_code: pcode, source_vehicle_code: scode, target_vehicle_code: tcode}
|
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}
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user