This commit is contained in:
2025-08-15 10:36:42 +08:00
parent 971245ba90
commit 76079650c1
3 changed files with 35 additions and 6 deletions

View File

@@ -29,6 +29,14 @@
<search-box v-model="val1"/>
</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 class="zd_wrapper grid-wraper">
<view class="slide_new">
@@ -61,7 +69,7 @@
</view>
<view class="zd-row submit-bar">
<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>
</template>
@@ -69,7 +77,7 @@
<script>
import NavBar from '@/components/NavBar.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 {
components: {
NavBar,
@@ -82,6 +90,8 @@
index: '',
val1: '',
val2: '',
options1: [],
index1: '',
dataList: [],
pkId: '',
pkObj: {},
@@ -107,6 +117,18 @@
this.options = []
}
},
async _getFloor () {
try {
let res = await getFloor()
if (res) {
this.options1 = [...res]
} else {
this.options1 =[]
}
} catch (e) {
this.options1 = []
}
},
async _linegetMaterialDtl () {
this.pkId = ''
try {
@@ -126,12 +148,12 @@
},
async _callMaterialConfirm () {
this.disabled = true
if (!this.pkId || !this.val1) {
if (!this.pkId || !this.val1 || !this.index1) {
this.disabled = false
return
}
try {
let res = await callMaterialConfirm(this.val1, this.pkObj)
let res = await callMaterialConfirm(this.val1, this.pkObj, this.index1)
if (res.status === '200') {
this.clearUp()
}
@@ -148,6 +170,7 @@
this.index = ''
this.val1 = ''
this.val2 = ''
this.index1 = ''
this.pkId = ''
this.pkObj = {}
this.dataList = []

View File

@@ -94,6 +94,7 @@
})
},
toEmpty () {
this.val1 = ''
this.currentData = {}
this.qty = null
this.disabled = false

View File

@@ -37,6 +37,11 @@ export const getMaterialList = (search, page, size) => request({
url:'api/pda/iosIn/getMaterialList',
data: {search: search, page: page, size: size}
})
//目的楼层
export const getFloor = () => request({
url:'api/pda/iosIn/getFloor',
data: {}
})
// 物料组盘确认
export const groupPlate = (mid, qty, vcode) => request({
@@ -65,9 +70,9 @@ export const linegetMaterialDtl = (sid, search) => request({
url:'api/pda/iosOut/getMaterialDtl',
data: {sect_id: sid, search: search}
})
export const callMaterialConfirm = (siteCode, obj) => request({
export const callMaterialConfirm = (siteCode, obj, floor) => request({
url:'api/pda/iosOut/callMaterialConfirm',
data: {siteCode: siteCode, obj: obj}
data: {siteCode: siteCode, obj: obj, floor_code: floor}
})
// 手工移库