修改
This commit is contained in:
@@ -4,6 +4,14 @@
|
||||
<nav-bar :title="title"></nav-bar>
|
||||
<view class="zd_content">
|
||||
<view class="zd_wrapper">
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">机台</span>
|
||||
</view>
|
||||
<view class="zd-col-17">
|
||||
<search-box v-model="val1"/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">库区编码</span>
|
||||
@@ -14,20 +22,12 @@
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">库区起点</span>
|
||||
<span class="filter_label">料桶号</span>
|
||||
</view>
|
||||
<view class="zd-col-24 filter_select">
|
||||
<uni-data-select v-model="index2" :localdata="options2" @change="selectChange2"></uni-data-select>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">产线终点</span>
|
||||
</view>
|
||||
<view class="zd-col-17">
|
||||
<search-box v-model="val1"/>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">物料信息</span>
|
||||
@@ -60,6 +60,22 @@
|
||||
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.material_code" disabled>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label filter_input_disabled">供应商编码</span>
|
||||
</view>
|
||||
<view class="zd-col-17">
|
||||
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.supp_code" disabled>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label filter_input_disabled">供应商名称</span>
|
||||
</view>
|
||||
<view class="zd-col-17">
|
||||
<input type="text" class="filter_input filter_input_disabled" v-model="currentData.supp_name" disabled>
|
||||
</view>
|
||||
</view>
|
||||
<view class="zd-row border-bottom">
|
||||
<view class="zd-col-7">
|
||||
<span class="filter_label">任务类型</span>
|
||||
@@ -80,7 +96,7 @@
|
||||
<script>
|
||||
import NavBar from '@/components/NavBar.vue'
|
||||
import SearchBox from '@/components/SearchBox.vue'
|
||||
import {getPdaSect, getPdaStruct, checkoutbillcallMaterial} from '@/utils/getData4.js'
|
||||
import {getPdaSect, getPdaVehicleCodeBySectCode, getMaterialSuppByVehicleCode, checkoutbillcallMaterial} from '@/utils/getData4.js'
|
||||
export default {
|
||||
components: {
|
||||
NavBar,
|
||||
@@ -104,20 +120,14 @@
|
||||
this.title = options.title
|
||||
},
|
||||
onShow() {
|
||||
if (this.$store.getters.publicObj !== '') {
|
||||
this.currentData = this.$store.getters.publicObj
|
||||
this.$store.dispatch('setPublicObj', '')
|
||||
}
|
||||
},
|
||||
created () {
|
||||
this._getPdaSect()
|
||||
this._getPdaStruct(e)
|
||||
this._getPdaVehicleCodeBySectCode()
|
||||
},
|
||||
methods: {
|
||||
toJump () {
|
||||
uni.navigateTo({
|
||||
url: '/pages/common/mater-list?title=查询物料'
|
||||
})
|
||||
this._getMaterialSuppByVehicleCode()
|
||||
},
|
||||
async _getPdaSect () {
|
||||
try {
|
||||
@@ -131,9 +141,9 @@
|
||||
this.options = []
|
||||
}
|
||||
},
|
||||
async _getPdaStruct (e) {
|
||||
async _getPdaVehicleCodeBySectCode () {
|
||||
try {
|
||||
let res = await getPdaStruct(this.index)
|
||||
let res = await getPdaVehicleCodeBySectCode(this.index)
|
||||
if (res) {
|
||||
this.options2 = res.data
|
||||
} else {
|
||||
@@ -143,9 +153,23 @@
|
||||
this.options2 = []
|
||||
}
|
||||
},
|
||||
async _getMaterialSuppByVehicleCode () {
|
||||
try {
|
||||
let res = await getMaterialSuppByVehicleCode(this.index2)
|
||||
if (res.code === '200') {
|
||||
this.currentData = res.data
|
||||
} else {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
},
|
||||
selectChange (e) {
|
||||
this.index = e
|
||||
this._getPdaStruct(e)
|
||||
this._getPdaVehicleCodeBySectCode(e)
|
||||
},
|
||||
selectChange2 (e) {
|
||||
this.index2 = e
|
||||
@@ -155,6 +179,9 @@
|
||||
},
|
||||
clearUp () {
|
||||
this.index = ''
|
||||
this.index2 = ''
|
||||
this.val1 = ''
|
||||
this.currentData = {}
|
||||
this.disabled = false
|
||||
},
|
||||
async _checkoutbillcallMaterial () {
|
||||
@@ -164,7 +191,7 @@
|
||||
return
|
||||
}
|
||||
try {
|
||||
let res = await checkoutbillcallMaterial(this.val1, this.index2, this.currentData.material_code, this.index4)
|
||||
let res = await checkoutbillcallMaterial(this.val1, this.index2, this.currentData.material_code, this.index4, this.currentData.supp_code, this.currentData.supp_name)
|
||||
if (res.code === '200') {
|
||||
uni.showToast({
|
||||
title: res.message,
|
||||
|
||||
Reference in New Issue
Block a user