|
|
|
@ -3,15 +3,17 @@
|
|
|
|
|
<div class="avue-crud"> |
|
|
|
|
<!-- 搜索模块 --> |
|
|
|
|
<div v-h5uShow="search"> |
|
|
|
|
<!-- 查询模块 --> |
|
|
|
|
<!-- 查询模块 --> |
|
|
|
|
<el-form :inline="true" :model="query" class="header_search" label-width="100px"> |
|
|
|
|
<el-form-item label="品牌" prop="brandName"> |
|
|
|
|
<el-form-item label="品牌" prop="brands"> |
|
|
|
|
<el-select |
|
|
|
|
class="w100" |
|
|
|
|
v-model="query.brand" |
|
|
|
|
v-model="query.brands" |
|
|
|
|
filterable |
|
|
|
|
placeholder="请选择" |
|
|
|
|
default-first-option |
|
|
|
|
multiple |
|
|
|
|
clearable |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
@ -75,10 +77,11 @@
|
|
|
|
|
<el-form-item label="事业线"> |
|
|
|
|
<el-select |
|
|
|
|
class="w100" |
|
|
|
|
v-model="query.businessLine" |
|
|
|
|
v-model="query.businessLines" |
|
|
|
|
filterable |
|
|
|
|
placeholder="请选择" |
|
|
|
|
default-first-option |
|
|
|
|
multiple |
|
|
|
|
clearable |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
@ -90,12 +93,46 @@
|
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="始发仓"> |
|
|
|
|
<el-input v-model="query.departureWarehouseName" placeholder="请输入" clearable /> |
|
|
|
|
<el-form-item label="发站仓"> |
|
|
|
|
<el-select |
|
|
|
|
class="w100" |
|
|
|
|
v-model="query.departureWarehouseIds" |
|
|
|
|
filterable |
|
|
|
|
placeholder="请选择" |
|
|
|
|
default-first-option |
|
|
|
|
multiple |
|
|
|
|
clearable |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="value in details.warehouseOption" |
|
|
|
|
:key="value.dictKey" |
|
|
|
|
:label="value.dictValue" |
|
|
|
|
:value="value.dictKey" |
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="目的仓"> |
|
|
|
|
<el-input v-model="query.destinationWarehouseName" placeholder="请输入" clearable /> |
|
|
|
|
<el-select |
|
|
|
|
class="w100" |
|
|
|
|
v-model="query.destinationWarehouseIds" |
|
|
|
|
filterable |
|
|
|
|
placeholder="请选择" |
|
|
|
|
default-first-option |
|
|
|
|
multiple |
|
|
|
|
clearable |
|
|
|
|
> |
|
|
|
|
<el-option |
|
|
|
|
v-for="value in details.warehouseOption" |
|
|
|
|
:key="value.dictKey" |
|
|
|
|
:label="value.dictValue" |
|
|
|
|
:value="value.dictKey" |
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item label="收货单位"> |
|
|
|
|
<el-input placeholder="请输入" v-model="details.query.consignee" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<!-- 查询按钮 --> |
|
|
|
@ -192,6 +229,7 @@ import {
|
|
|
|
|
} from '@/utils/util'; |
|
|
|
|
import { useRouter } from 'vue-router'; |
|
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus'; |
|
|
|
|
import { getListName } from '@/api/basicdata/basicdataVehicle'; |
|
|
|
|
import { columnList } from '@/option/reportforms/ConsigneeReport'; |
|
|
|
|
|
|
|
|
|
// 获取路由实例 |
|
|
|
@ -262,6 +300,8 @@ const details = reactive<any>({
|
|
|
|
|
brandOptions: [], |
|
|
|
|
/** 事业线 */ |
|
|
|
|
businessLineOption: [], |
|
|
|
|
/** 仓库 */ |
|
|
|
|
warehouseOption: [], |
|
|
|
|
/** 弹出层显示 */ |
|
|
|
|
popUpShow: {}, |
|
|
|
|
/** 全屏 */ |
|
|
|
@ -356,6 +396,18 @@ const handleFindBrand = async () => {
|
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** 初始化请求仓库数据 */ |
|
|
|
|
getListName({ name: '' }).then(res => { |
|
|
|
|
const { code, data } = res.data; |
|
|
|
|
if (code !== 200 || getObjType(data) !== 'array') return; |
|
|
|
|
details.warehouseOption = data.map(val => { |
|
|
|
|
return { |
|
|
|
|
dictKey: val.id, |
|
|
|
|
dictValue: val.name, |
|
|
|
|
}; |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
/** 查询事业线 */ |
|
|
|
|
const handleFindbusinessLine = async () => { |
|
|
|
|
try { |
|
|
|
|