|
@@ -87,7 +87,7 @@
|
|
|
|
|
|
|
|
</u--input>
|
|
</u--input>
|
|
|
</u-cell>
|
|
</u-cell>
|
|
|
- <u-cell title="派车类型" arrow-direction="down" v-if="form.isPieCar==1">
|
|
|
|
|
|
|
+ <u-cell title="派车类型" arrow-direction="down" class="required-mark-new" v-if="form.isPieCar==1">
|
|
|
<uni-data-picker v-if="isDisable" v-model="form.pieCarType" slot="value" placeholder="请选择"
|
|
<uni-data-picker v-if="isDisable" v-model="form.pieCarType" slot="value" placeholder="请选择"
|
|
|
:localdata="pie_car_type">
|
|
:localdata="pie_car_type">
|
|
|
</uni-data-picker>
|
|
</uni-data-picker>
|
|
@@ -353,6 +353,7 @@
|
|
|
console.log('res', res.orderCode)
|
|
console.log('res', res.orderCode)
|
|
|
let data = JSON.parse(JSON.stringify(res));
|
|
let data = JSON.parse(JSON.stringify(res));
|
|
|
console.log('data111', data.orderCode)
|
|
console.log('data111', data.orderCode)
|
|
|
|
|
+ data.pieCarType = data.pieCarType?.toString() || '';
|
|
|
this.form = data;
|
|
this.form = data;
|
|
|
['afterSalesType'].forEach(key => {
|
|
['afterSalesType'].forEach(key => {
|
|
|
this.$set(
|
|
this.$set(
|
|
@@ -506,6 +507,14 @@
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (data.isPieCar==1 && !data.pieCarType) {
|
|
|
|
|
+ this.$refs.uToast.show({
|
|
|
|
|
+ type: "warning",
|
|
|
|
|
+ message: "请选择派车类型",
|
|
|
|
|
+ })
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (!data.orderCode && this.form.associationType !== '3') {
|
|
if (!data.orderCode && this.form.associationType !== '3') {
|
|
|
const message = this.form.associationType === "1" ? "请选择发货单" : "请选择销售订单"
|
|
const message = this.form.associationType === "1" ? "请选择发货单" : "请选择销售订单"
|
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|