|
@@ -83,7 +83,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
- <view class="l">生产商出注册号:</view>
|
|
|
+ <view class="l" style="flex: 7;">生产商注册号:</view>
|
|
|
<view class="r">
|
|
|
<u-input placeholder="生产商出注册号" @input="handler()" v-model="form.producerCode" />
|
|
|
</view>
|
|
@@ -101,7 +101,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
- <view class="l" style="flex: 7;">运输车辆:</view>
|
|
|
+ <view class="l">运输车辆:</view>
|
|
|
<view class="r">
|
|
|
<u--textarea @input="handler()" v-model="form.chinaCarNo" placeholder="运输车车牌,多个请用逗号隔开">
|
|
|
</u--textarea>
|
|
@@ -147,7 +147,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
- <view class="l"><text style="color: red;">*</text>生产批号:</view>
|
|
|
+ <view class="l">生产批号:</view>
|
|
|
<view class="r">
|
|
|
<u-input placeholder="生产批号" @input="handler()" v-model="form.productionCode" />
|
|
|
</view>
|
|
@@ -159,7 +159,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="item">
|
|
|
- <view class="l">越南车牌:</view>
|
|
|
+ <view class="l"><text style="color: red;">*</text>越南车牌:</view>
|
|
|
<view class="r">
|
|
|
<u-input placeholder="越南车牌" @input="handler()" v-model="form.carNo" />
|
|
|
</view>
|
|
@@ -182,8 +182,8 @@
|
|
|
declarePeople: '',
|
|
|
declarePhone: '',
|
|
|
goodsName: '',
|
|
|
- grossWeight: 0,
|
|
|
- num: 0,
|
|
|
+ grossWeight: '',
|
|
|
+ num: '',
|
|
|
productionDate: '',
|
|
|
expirationDate: '',
|
|
|
productionMode: '',
|
|
@@ -272,7 +272,7 @@
|
|
|
this.$common.toast('请填写申报人');
|
|
|
return;
|
|
|
}
|
|
|
- if (!this.form.declarePhone) {
|
|
|
+ if (this.$common.isPhone(this.form.declarePhone)&&!this.form.declarePhone) {
|
|
|
this.$common.toast('请填写申报电话');
|
|
|
return;
|
|
|
}
|
|
@@ -280,14 +280,14 @@
|
|
|
this.$common.toast('请填写产品');
|
|
|
return;
|
|
|
}
|
|
|
- if (!this.form.productionCode) {
|
|
|
- this.$common.toast('请填写生产批号');
|
|
|
- return;
|
|
|
- }
|
|
|
if (!this.form.grossWeight || this.form.grossWeight <= 0) {
|
|
|
this.$common.toast('请填写毛重');
|
|
|
return;
|
|
|
}
|
|
|
+ if (!this.form.carNo) {
|
|
|
+ this.$common.toast('请填写越南车牌');
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.$api.addDeclare(this.$common.removeNull(this.form)).then(resp => {
|
|
|
this.cleanStore();
|
|
|
this.$common.to('/pages/declare/addDeclareSuccess')
|