组盘
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
<span class="filter_label">物料信息</span>
|
||||
</view>
|
||||
<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 class="zd-row border-bottom">
|
||||
@@ -75,7 +75,7 @@
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import NumberInput from '@/components/NumberInput.vue'
|
||||
import {getFormDataList, zwgroupPlate} from '@/utils/getData4.js'
|
||||
import {getFormDataList, getFormMaterial, zwgroupPlate} from '@/utils/getData4.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -95,19 +95,12 @@
|
||||
onLoad (options) {
|
||||
this.title = options.title
|
||||
},
|
||||
onShow() {
|
||||
if (this.$store.getters.publicObj !== '') {
|
||||
this.currentData = this.$store.getters.publicObj
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this._getFormDataList()
|
||||
},
|
||||
methods: {
|
||||
toJump () {
|
||||
uni.navigateTo({
|
||||
url: '/pages/common/mater-list?title=查询物料'
|
||||
})
|
||||
this._getFormMaterial()
|
||||
},
|
||||
async _getFormDataList () {
|
||||
try {
|
||||
@@ -121,8 +114,23 @@
|
||||
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) {
|
||||
this.index = e
|
||||
if (e) {
|
||||
this._getFormMaterial()
|
||||
}
|
||||
},
|
||||
clearUp () {
|
||||
this.val1 = ''
|
||||
|
||||
@@ -263,3 +263,8 @@ export const zwgroupPlate = (vcode, mid, qty, ecode) => request({
|
||||
// url:'api/pda/iosIn/getFormDataList',
|
||||
// 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