add
This commit is contained in:
@@ -29,6 +29,14 @@
|
|||||||
<search-box v-model="val1"/>
|
<search-box v-model="val1"/>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="zd-row border-bottom">
|
||||||
|
<view class="zd-col-7">
|
||||||
|
<span class="filter_label">目的楼层</span>
|
||||||
|
</view>
|
||||||
|
<view class="zd-col-17 filter_select">
|
||||||
|
<uni-data-select v-model="index1" :localdata="options1"></uni-data-select>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="zd_wrapper grid-wraper">
|
<view class="zd_wrapper grid-wraper">
|
||||||
<view class="slide_new">
|
<view class="slide_new">
|
||||||
@@ -61,7 +69,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="zd-row submit-bar">
|
<view class="zd-row submit-bar">
|
||||||
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
<button class="zd-col-6 button-default" @tap="clearUp">清空</button>
|
||||||
<button class="zd-col-16 button-primary" :class="{'button-info': !pkId || !val1}" @tap="_callMaterialConfirm">确认</button>
|
<button class="zd-col-16 button-primary" :class="{'button-info': !pkId || !val1 || !index1}" @tap="_callMaterialConfirm">确认</button>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -69,7 +77,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 {getSect, linegetMaterialDtl, callMaterialConfirm} from '@/utils/getData.js'
|
import {getSect, getFloor, linegetMaterialDtl, callMaterialConfirm} from '@/utils/getData.js'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
NavBar,
|
NavBar,
|
||||||
@@ -82,6 +90,8 @@
|
|||||||
index: '',
|
index: '',
|
||||||
val1: '',
|
val1: '',
|
||||||
val2: '',
|
val2: '',
|
||||||
|
options1: [],
|
||||||
|
index1: '',
|
||||||
dataList: [],
|
dataList: [],
|
||||||
pkId: '',
|
pkId: '',
|
||||||
pkObj: {},
|
pkObj: {},
|
||||||
@@ -107,6 +117,18 @@
|
|||||||
this.options = []
|
this.options = []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
async _getFloor () {
|
||||||
|
try {
|
||||||
|
let res = await getFloor()
|
||||||
|
if (res) {
|
||||||
|
this.options1 = [...res]
|
||||||
|
} else {
|
||||||
|
this.options1 =[]
|
||||||
|
}
|
||||||
|
} catch (e) {
|
||||||
|
this.options1 = []
|
||||||
|
}
|
||||||
|
},
|
||||||
async _linegetMaterialDtl () {
|
async _linegetMaterialDtl () {
|
||||||
this.pkId = ''
|
this.pkId = ''
|
||||||
try {
|
try {
|
||||||
@@ -126,12 +148,12 @@
|
|||||||
},
|
},
|
||||||
async _callMaterialConfirm () {
|
async _callMaterialConfirm () {
|
||||||
this.disabled = true
|
this.disabled = true
|
||||||
if (!this.pkId || !this.val1) {
|
if (!this.pkId || !this.val1 || !this.index1) {
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
let res = await callMaterialConfirm(this.val1, this.pkObj)
|
let res = await callMaterialConfirm(this.val1, this.pkObj, this.index1)
|
||||||
if (res.status === '200') {
|
if (res.status === '200') {
|
||||||
this.clearUp()
|
this.clearUp()
|
||||||
}
|
}
|
||||||
@@ -148,6 +170,7 @@
|
|||||||
this.index = ''
|
this.index = ''
|
||||||
this.val1 = ''
|
this.val1 = ''
|
||||||
this.val2 = ''
|
this.val2 = ''
|
||||||
|
this.index1 = ''
|
||||||
this.pkId = ''
|
this.pkId = ''
|
||||||
this.pkObj = {}
|
this.pkObj = {}
|
||||||
this.dataList = []
|
this.dataList = []
|
||||||
|
|||||||
@@ -94,6 +94,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
toEmpty () {
|
toEmpty () {
|
||||||
|
this.val1 = ''
|
||||||
this.currentData = {}
|
this.currentData = {}
|
||||||
this.qty = null
|
this.qty = null
|
||||||
this.disabled = false
|
this.disabled = false
|
||||||
|
|||||||
@@ -37,6 +37,11 @@ export const getMaterialList = (search, page, size) => request({
|
|||||||
url:'api/pda/iosIn/getMaterialList',
|
url:'api/pda/iosIn/getMaterialList',
|
||||||
data: {search: search, page: page, size: size}
|
data: {search: search, page: page, size: size}
|
||||||
})
|
})
|
||||||
|
//目的楼层
|
||||||
|
export const getFloor = () => request({
|
||||||
|
url:'api/pda/iosIn/getFloor',
|
||||||
|
data: {}
|
||||||
|
})
|
||||||
|
|
||||||
// 物料组盘确认
|
// 物料组盘确认
|
||||||
export const groupPlate = (mid, qty, vcode) => request({
|
export const groupPlate = (mid, qty, vcode) => request({
|
||||||
@@ -65,9 +70,9 @@ export const linegetMaterialDtl = (sid, search) => request({
|
|||||||
url:'api/pda/iosOut/getMaterialDtl',
|
url:'api/pda/iosOut/getMaterialDtl',
|
||||||
data: {sect_id: sid, search: search}
|
data: {sect_id: sid, search: search}
|
||||||
})
|
})
|
||||||
export const callMaterialConfirm = (siteCode, obj) => request({
|
export const callMaterialConfirm = (siteCode, obj, floor) => request({
|
||||||
url:'api/pda/iosOut/callMaterialConfirm',
|
url:'api/pda/iosOut/callMaterialConfirm',
|
||||||
data: {siteCode: siteCode, obj: obj}
|
data: {siteCode: siteCode, obj: obj, floor_code: floor}
|
||||||
})
|
})
|
||||||
|
|
||||||
// 手工移库
|
// 手工移库
|
||||||
|
|||||||
Reference in New Issue
Block a user