Browse Source

新增开单部分限制

dev
qb 1 month ago
parent
commit
d620af9e41
  1. 2
      src/api/distribution/AddVehicleStowage.js
  2. 10
      src/views/distribution/artery/AddVehicleStowage.vue
  3. 5
      src/views/distribution/inventory/CreateOrder.vue
  4. 5
      src/views/waybill/CreateZeroOrder.vue

2
src/api/distribution/AddVehicleStowage.js

@ -144,7 +144,7 @@ export const postAddOrderToFinalNodeId = data => {
};
/**
* 新增调度池订单
* 编辑配载计划
*/
export const postUpdateCarsLoadBasicData = data => {
return request({

10
src/views/distribution/artery/AddVehicleStowage.vue

@ -164,6 +164,16 @@
</el-form-item>
</div>
<!-- 外请人 -->
<div
class="form_row_item"
v-if="Number(form.driverType) === 3 || Number(form.driverType) === 4"
>
<el-form-item inline label="外请站点">
<el-input v-model="form.outsideStation" placeholder="请输入外请站点" />
</el-form-item>
</div>
<!-- 副驾司机 -->
<div class="form_row_item">
<el-form-item inline label="副驾司机">

5
src/views/distribution/inventory/CreateOrder.vue

@ -3777,6 +3777,11 @@ const handleSubmit = (formEl: FormInstance | undefined) => {
const timer = setTimeout(async () => {
try {
if (!details.query.shipperId)
return ElMessage.warning('未选择系统内维护的发货单位,请选择或维护');
if (!details.query.consigneeId)
return ElMessage.warning('未选择系统内维护的收货单位,请选择或维护');
//
for (let i = 0; i < details.goodsList.length; i++) {
const val = details.goodsList[i];

5
src/views/waybill/CreateZeroOrder.vue

@ -2945,6 +2945,11 @@ const handleSubmit = async (formEl: FormInstance | undefined) => {
const timer = setTimeout(async () => {
try {
if (!details.query.shipperId)
return ElMessage.warning('请选择系统内维护的发货单位,请选择或维护');
if (!details.query.consigneeId)
return ElMessage.warning('请选择系统内维护的收货单位,请选择或维护');
let _arr = [];
for (let i = 0; i < details.goodsList.length; i++) {

Loading…
Cancel
Save