fix: 部分改动

This commit is contained in:
2025-08-05 10:47:14 +08:00
parent 838cfecc09
commit a1a820d522
15 changed files with 149 additions and 29 deletions

View File

@@ -39,6 +39,13 @@ export function getPointList(data) {
data
})
}
export function getPointsByCode(data) {
return request({
url: 'api/schBasePoint/getPointsByCode',
method: 'post',
data
})
}
export function getPointList2(data) {
return request({
url: 'api/schBasePoint/getPointList2',
@@ -55,4 +62,4 @@ export function changeLock(data) {
})
}
export default { add, edit, del, changeUsed, getPointList, getPointList2, changeLock }
export default { add, edit, del, changeUsed, getPointList, getPointsByCode, getPointList2, changeLock }

View File

@@ -259,13 +259,9 @@ export default {
this.sects = res.content
})
const area_type = 'YLXCQ'
// 点位类型,因为卸货区的点位类型(出库区、入库区)会变动,因需要增加点位类型字段进行判断
// 1-入库区2-出库区
const region_type = '1'
crudPoint.getPointList({ 'region_code': area_type, 'region_type': region_type }).then(res => {
this.pointlist = res
const area_type = 'RKQ,YLXCQ'
crudPoint.getPointsByCode(area_type).then(res => {
this.pointList = res
})
},
toDelete(data) {

View File

@@ -161,6 +161,7 @@
<el-select
v-model="form2.point_code"
clearable
filterable
placeholder="请选择"
class="filter-item"
style="width: 150px;"
@@ -323,12 +324,10 @@ export default {
crudSectattr.getSect({ 'stor_id': this.storId }).then(res => {
this.sects = res.content
})
const area_type = 'YLXCQ'
// 点位类型,因为卸货区的点位类型(出库区、入库区)会变动,因需要增加点位类型字段进行判断
// 1-入库区2-出库区
const region_type = '2'
crudPoint.getPointList({ 'region_code': area_type, 'region_type': region_type }).then(res => {
this.pointlist = res
const area_type = 'CKQ,YLXCQ'
crudPoint.getPointsByCode(area_type).then(res => {
this.pointList = res
})
},
close() {