|
|
|
@ -138,14 +138,14 @@
|
|
|
|
|
|
|
|
|
|
<div style="display: flex"> |
|
|
|
|
<el-form-item label="送货车辆" prop="driverName" class="flex1 mr10"> |
|
|
|
|
<el-select |
|
|
|
|
<!-- <el-select |
|
|
|
|
v-model="form.driverName" |
|
|
|
|
filterable |
|
|
|
|
:teleported="false" |
|
|
|
|
remote |
|
|
|
|
@change="handleNameChange" |
|
|
|
|
reserve-keyword |
|
|
|
|
placeholder="输入司机名称" |
|
|
|
|
placeholder="输入车牌" |
|
|
|
|
:remote-method="remoteMethodDriver" |
|
|
|
|
:loading="details.loadingObj.driverName" |
|
|
|
|
> |
|
|
|
@ -155,7 +155,29 @@
|
|
|
|
|
:label="val.driverName" |
|
|
|
|
:value="val.driverId" |
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-select> --> |
|
|
|
|
<SelectBox |
|
|
|
|
ref="goodsNameRef" |
|
|
|
|
className="goodsName" |
|
|
|
|
:input="() => debounce(handleFindCar(form.carNumber), 1000)" |
|
|
|
|
v-model="form.carNumber" |
|
|
|
|
placeholder="请选择车辆" |
|
|
|
|
> |
|
|
|
|
<div v-loading="details.loadingObj.loading"> |
|
|
|
|
<template v-if="details.driverListByName > 0"> |
|
|
|
|
<div |
|
|
|
|
v-for="val in details.driverListByName" |
|
|
|
|
:key="val.driverName" |
|
|
|
|
@click="() => handleChooseCar(val)" |
|
|
|
|
> |
|
|
|
|
{{ val.goodsName }} |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
<div class="goodsNameRow">暂无数据</div> |
|
|
|
|
</template> |
|
|
|
|
</div> |
|
|
|
|
</SelectBox> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-button type="primary" @click="handleAddCarrier" icon="Plus" /> |
|
|
|
@ -468,14 +490,13 @@ import { downloadXls, computeNumber, setNodeHeight, debounce, deepClone } from '
|
|
|
|
|
import { columnList, newColumnList } from '@/option/distribution/addVehicleStowage'; |
|
|
|
|
import { |
|
|
|
|
postloadFindLoadInitData, |
|
|
|
|
postFindWarehouseListByName, |
|
|
|
|
postFindAllOrderList, |
|
|
|
|
postFindCarListByName, |
|
|
|
|
postFindDriverListByName, |
|
|
|
|
postFindCarrierByName, |
|
|
|
|
postFindUseOrderList, |
|
|
|
|
postSelectEditDetailByLoadId, |
|
|
|
|
postFindCarListByName |
|
|
|
|
} from '@/api/distribution/AddVehicleStowage'; |
|
|
|
|
import { postSelectEditDetailByLoadId } from '@/api/distribution/AddVehicleStowage'; |
|
|
|
|
import { |
|
|
|
|
postSaveNewTripartiteTransfer, |
|
|
|
|
postUpdateTripartiteTransfer, |
|
|
|
@ -894,6 +915,17 @@ const remoteMethodDriver = async val => {
|
|
|
|
|
|
|
|
|
|
remoteMethodDriver(''); |
|
|
|
|
|
|
|
|
|
/** 查询车辆 */ |
|
|
|
|
const handleFindCar = async value => { |
|
|
|
|
const res = await postFindCarListByName({ carNumber: value }); |
|
|
|
|
const { code, data } = res.data; |
|
|
|
|
if (code !== 200) return; |
|
|
|
|
details.carListByName = data; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** 选择车辆 */ |
|
|
|
|
const handleChooseCar = val => {}; |
|
|
|
|
|
|
|
|
|
/** 表格表头输入框搜索 */ |
|
|
|
|
const inputsc = (index, row) => { |
|
|
|
|
details.query[row.prop] = index; |
|
|
|
@ -1214,6 +1246,11 @@ const handleSubmit = (formEl: FormInstance | undefined) => {
|
|
|
|
|
|
|
|
|
|
:deep(.el-select) { |
|
|
|
|
width: 100%; |
|
|
|
|
height: 100%; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
:deep(.selectBox) { |
|
|
|
|
height: 100%; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
:deep(.el-input-number) { |
|
|
|
|