|
@@ -324,7 +324,7 @@
|
|
|
</el-form-item>
|
|
|
<!--预估运费(元/吨)-->
|
|
|
<el-form-item label="预估运费(元/吨)" span="1" >
|
|
|
- <el-input v-model="dataList1.estimatedFreight" placeholder="请输入预估运费"
|
|
|
+ <el-input v-model="dataList.estimatedFreight" placeholder="请输入预估运费"
|
|
|
maxlength="20" size="small" />
|
|
|
</el-form-item>
|
|
|
<!--发货人-->
|
|
@@ -861,7 +861,8 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.dataList.unitPrice) {
|
|
|
+ if(this.Pricetype){
|
|
|
+ if (!this.dataList.unitPrice) {
|
|
|
this.$message({
|
|
|
message: '单价不能为空!',
|
|
|
type: 'warning'
|
|
@@ -883,6 +884,9 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
if (!this.dataList.predictDate) {
|
|
|
this.$message({
|
|
|
message: '预计出库日期不能为空!',
|
|
@@ -890,6 +894,13 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ if (isNaN(this.dataList.estimatedFreight)) {
|
|
|
+ this.$message({
|
|
|
+ message: '预估运费输入错误!',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
// if (!this.dataList.agent) {
|
|
|
// this.$message({
|
|
|
// message: '出库经办人不能为空!',
|
|
@@ -1001,7 +1012,8 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.dataList1.unitPrice) {
|
|
|
+ if(this.Pricetype){
|
|
|
+ if (!this.dataList1.unitPrice) {
|
|
|
this.$message({
|
|
|
message: '单价不能为空!',
|
|
|
type: 'warning'
|
|
@@ -1023,12 +1035,21 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
if (!this.dataList1.predictDate) {
|
|
|
this.$message({
|
|
|
message: '预计入库日期不能为空!',
|
|
|
type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
+ }
|
|
|
+ if (isNaN(this.dataList1.estimatedFreight)) {
|
|
|
+ this.$message({
|
|
|
+ message: '预估运费输入错误!',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
}
|
|
|
// if (!this.dataList1.agent) {
|
|
|
// this.$message({
|
|
@@ -1095,6 +1116,13 @@
|
|
|
type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
+ }
|
|
|
+ if (isNaN(this.dataList1.estimatedFreight)) {
|
|
|
+ this.$message({
|
|
|
+ message: '预估运费输入错误!',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
}
|
|
|
if (!this.dataList1.predictDate) {
|
|
|
this.$message({
|
|
@@ -1235,7 +1263,8 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.dataList1.unitPrice) {
|
|
|
+ if(this.Pricetype){
|
|
|
+ if (!this.dataList1.unitPrice) {
|
|
|
this.$message({
|
|
|
message: '单价不能为空!',
|
|
|
type: 'warning'
|
|
@@ -1257,6 +1286,8 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
if (!this.dataList.predictDate) {
|
|
|
this.$message({
|
|
|
message: '预计出库日期不能为空!',
|
|
@@ -1264,12 +1295,20 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
if (!this.dataList1.predictDate) {
|
|
|
this.$message({
|
|
|
message: '预计入库日期不能为空!',
|
|
|
type: 'warning'
|
|
|
})
|
|
|
return
|
|
|
+ }
|
|
|
+ if (isNaN(this.dataList1.estimatedFreight)) {
|
|
|
+ this.$message({
|
|
|
+ message: '预估运费输入错误!',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+ return
|
|
|
}
|
|
|
// if (!this.dataList.agent) {
|
|
|
// this.$message({
|