组盘
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
<span class="filter_label">物料信息</span>
|
<span class="filter_label">物料信息</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-col-17">
|
<view class="zd-col-17">
|
||||||
<input type="text" class="filter_input" v-model="currentData.material_name" @tap="toJump">
|
<input type="text" class="filter_input" v-model="currentData.material_name" @tap="toJump" disabled>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd-row border-bottom">
|
<view class="zd-row border-bottom">
|
||||||
@@ -75,7 +75,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 {getFormDataList, zwgroupPlate} from '@/utils/getData4.js'
|
import {getFormDataList, getFormMaterial, zwgroupPlate} from '@/utils/getData4.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -95,19 +95,12 @@
|
|||||||
onLoad (options) {
|
onLoad (options) {
|
||||||
this.title = options.title
|
this.title = options.title
|
||||||
},
|
},
|
||||||
onShow() {
|
|
||||||
if (this.$store.getters.publicObj !== '') {
|
|
||||||
this.currentData = this.$store.getters.publicObj
|
|
||||||
}
|
|
||||||
},
|
|
||||||
created () {
|
created () {
|
||||||
this._getFormDataList()
|
this._getFormDataList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
toJump () {
|
toJump () {
|
||||||
uni.navigateTo({
|
this._getFormMaterial()
|
||||||
url: '/pages/common/mater-list?title=查询物料'
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
async _getFormDataList () {
|
async _getFormDataList () {
|
||||||
try {
|
try {
|
||||||
@@ -121,8 +114,23 @@
|
|||||||
this.options = []
|
this.options = []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
async _getFormMaterial () {
|
||||||
|
try {
|
||||||
|
let res = await getFormMaterial(this.index)
|
||||||
|
if (res) {
|
||||||
|
this.currentData = res.data
|
||||||
|
} else {
|
||||||
|
this.options = []
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.options = []
|
||||||
|
}
|
||||||
|
},
|
||||||
selectChange (e) {
|
selectChange (e) {
|
||||||
this.index = e
|
this.index = e
|
||||||
|
if (e) {
|
||||||
|
this._getFormMaterial()
|
||||||
|
}
|
||||||
},
|
},
|
||||||
clearUp () {
|
clearUp () {
|
||||||
this.val1 = ''
|
this.val1 = ''
|
||||||
|
|||||||
@@ -263,3 +263,8 @@ export const zwgroupPlate = (vcode, mid, qty, ecode) => request({
|
|||||||
// url:'api/pda/iosIn/getFormDataList',
|
// url:'api/pda/iosIn/getFormDataList',
|
||||||
// data: {form_data_code: fdcode}
|
// data: {form_data_code: fdcode}
|
||||||
// })
|
// })
|
||||||
|
// 获取物料详情
|
||||||
|
export const getFormMaterial = (ecode) => request({
|
||||||
|
url:'api/pda/iosIn/getFormMaterial',
|
||||||
|
data: {ext_code: ecode}
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user