|
|
|
|
@ -48,7 +48,7 @@ |
|
|
|
|
></el-option> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="终点站点" prop="endLocationId"> |
|
|
|
|
<el-form-item label="终点站点" prop="endLocationId" v-if="form.bindType == 'bind'"> |
|
|
|
|
<el-select |
|
|
|
|
v-model="form.endLocationId" |
|
|
|
|
placeholder="请选择作业中心" |
|
|
|
|
@ -71,6 +71,9 @@ |
|
|
|
|
<el-option v-for="item in regionData" :key="item" :label="item" :value="item" /> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item label="终点站点" prop="endLocationId" v-if="form.bindType == 'unbind'"> |
|
|
|
|
<el-input v-model="form.endStationCode" placeholder="请扫描箱条码" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-form> |
|
|
|
|
|
|
|
|
|
<template #footer> |
|
|
|
|
@ -109,11 +112,12 @@ export default { |
|
|
|
|
endLocationRange: '', //终点区域 |
|
|
|
|
regionIndex: '', //起点区域 |
|
|
|
|
regionCode: '', //起点区域码 |
|
|
|
|
endStationCode:'',//终点区域码 |
|
|
|
|
}, |
|
|
|
|
rules: { |
|
|
|
|
boxBarcode: [{ required: true, message: '请扫描箱条码', trigger: 'blur' }], |
|
|
|
|
stationCode: [{ required: true, message: '请扫描站点码', trigger: 'blur' }], |
|
|
|
|
endLocationId: [{ required: true, message: '请选择作业中心', trigger: 'blur' }], |
|
|
|
|
// endLocationId: [{ required: true, message: '请选择作业中心', trigger: 'blur' }], |
|
|
|
|
}, |
|
|
|
|
workCenterOptions: [], |
|
|
|
|
regionData: [], //终点区域数据 |
|
|
|
|
@ -177,9 +181,10 @@ export default { |
|
|
|
|
this.submitLoading = true; |
|
|
|
|
// 根据模式区分提交参数 |
|
|
|
|
let params = { |
|
|
|
|
boxBarcode: this.form.boxBarcode,//箱条码 |
|
|
|
|
boxBarcode: this.form.boxBarcode, //箱条码 |
|
|
|
|
// endWcId: this.form.endLocationId, |
|
|
|
|
endWcId: this.form.endLocationId, // 配送模式 |
|
|
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// 送料模式:使用 stationCode |
|
|
|
|
@ -189,8 +194,9 @@ export default { |
|
|
|
|
// 叫料模式:使用 regionCode 和 regionIndex |
|
|
|
|
else if (this.form.bindType === 'unbind') { |
|
|
|
|
params.startStationCode = this.form.regionCode; |
|
|
|
|
params.endStationCode = this.form.endStationCode; |
|
|
|
|
} |
|
|
|
|
console.log(9898989898989, params) |
|
|
|
|
console.log(9898989898989, params); |
|
|
|
|
|
|
|
|
|
boxBinding(params) |
|
|
|
|
.then(res => { |
|
|
|
|
|