|
@@ -472,16 +472,6 @@
|
|
size="small"
|
|
size="small"
|
|
/>
|
|
/>
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
-
|
|
|
|
- <!--已完成发货量(吨)-->
|
|
|
|
- <!-- <ws-form-item label="已完成发货量(吨)" span="1" prop="contractNo">
|
|
|
|
- <ws-input
|
|
|
|
- v-model="deptBudgetList.contractProcessInfo.imperfectGrain"
|
|
|
|
- placeholder="请输入已完成发货量(吨)"
|
|
|
|
- maxlength="100"
|
|
|
|
- size="small"
|
|
|
|
- />
|
|
|
|
- </ws-form-item> -->
|
|
|
|
<!--双章原件回收情况-->
|
|
<!--双章原件回收情况-->
|
|
<ws-form-item label="双章原件回收情况" span="1" prop="grade">
|
|
<ws-form-item label="双章原件回收情况" span="1" prop="grade">
|
|
<ws-select
|
|
<ws-select
|
|
@@ -698,9 +688,9 @@ export default {
|
|
this.selectedOptions1 = tmp1
|
|
this.selectedOptions1 = tmp1
|
|
this.deptBudgetList = response
|
|
this.deptBudgetList = response
|
|
if (this.deptBudgetList.deliverType == 1) {
|
|
if (this.deptBudgetList.deliverType == 1) {
|
|
- this.deptBudgetList.deliverType1 = '我方自提'
|
|
|
|
|
|
+ this.deptBudgetList.deliverType1 = '我方送货'
|
|
} else if (this.deptBudgetList.deliverType == 2) {
|
|
} else if (this.deptBudgetList.deliverType == 2) {
|
|
- this.deptBudgetList.deliverType1 = '对方送货'
|
|
|
|
|
|
+ this.deptBudgetList.deliverType1 = '对方自提'
|
|
}
|
|
}
|
|
if(this.deptBudgetList.addressUrl != null){
|
|
if(this.deptBudgetList.addressUrl != null){
|
|
this.addressUrls = this.deptBudgetList.addressUrl.split(",")
|
|
this.addressUrls = this.deptBudgetList.addressUrl.split(",")
|
|
@@ -825,15 +815,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
addClick() {
|
|
addClick() {
|
|
- // let [flag, constValue, constKey] = ['check', '', '']
|
|
|
|
- // let obj = { flag, constValue, constKey }
|
|
|
|
- // let objAdd = { flag: 'add', constValue: '新增项目', constKey: '' }
|
|
|
|
- // let result = this.unitList.filter((item, val, arr) => {
|
|
|
|
- // return item.id != '1'
|
|
|
|
- // })
|
|
|
|
- // result.push(obj)
|
|
|
|
- // result.push(objAdd)
|
|
|
|
- // this.unitList = result
|
|
|
|
this.unitList.push({
|
|
this.unitList.push({
|
|
flag: 'add',
|
|
flag: 'add',
|
|
constValue: '',
|
|
constValue: '',
|
|
@@ -843,12 +824,11 @@ export default {
|
|
submit() {
|
|
submit() {
|
|
if (!this.deptBudgetList.contractNo) {
|
|
if (!this.deptBudgetList.contractNo) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '请输入合同编号',
|
|
|
|
|
|
+ message: '合同编号不能为空',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- console.log(this.deptBudgetList.contractNo.length)
|
|
|
|
if (
|
|
if (
|
|
this.deptBudgetList.contractNo.length < 6 ||
|
|
this.deptBudgetList.contractNo.length < 6 ||
|
|
this.deptBudgetList.contractNo.length > 20
|
|
this.deptBudgetList.contractNo.length > 20
|
|
@@ -861,7 +841,7 @@ export default {
|
|
}
|
|
}
|
|
if (!this.deptBudgetList.shippingType) {
|
|
if (!this.deptBudgetList.shippingType) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '请输入运输方式!',
|
|
|
|
|
|
+ message: '运输方式不能为空',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
@@ -878,7 +858,7 @@ export default {
|
|
}
|
|
}
|
|
if (!this.deptBudgetList.buyer) {
|
|
if (!this.deptBudgetList.buyer) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '请输入买方名称!',
|
|
|
|
|
|
+ message: '买方名称不能为空',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
@@ -890,6 +870,23 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if (!this.deptBudgetList.settlementMethod) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '结算方式不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (
|
|
|
|
+ this.deptBudgetList.settlementMethod.length < 1 ||
|
|
|
|
+ this.deptBudgetList.settlementMethod.length > 20
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '结算方式长度不符合要求,请输入1到20个字符之内!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (!this.deptBudgetList.seller) {
|
|
if (!this.deptBudgetList.seller) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '请输入卖方名称!',
|
|
message: '请输入卖方名称!',
|
|
@@ -943,8 +940,8 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- this.deptBudgetList.buyerPhone.length < 7 ||
|
|
|
|
- this.deptBudgetList.buyerPhone.length > 20
|
|
|
|
|
|
+ this.deptBudgetList.sellerPhone.length < 7 ||
|
|
|
|
+ this.deptBudgetList.sellerPhone.length > 20
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '卖方电话长度不符合要求,请输入7到20个字符之内!',
|
|
message: '卖方电话长度不符合要求,请输入7到20个字符之内!',
|
|
@@ -952,78 +949,97 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.settlementMethod) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.acceptanceMethod) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '请输入结算方式!',
|
|
|
|
|
|
+ message: '请选择验收方式',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
-
|
|
|
|
- if (!this.deptBudgetList.sourceGoods) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.weight) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '请输入货源详细地址!',
|
|
|
|
|
|
+ message: '请输入重量!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.placeDelivery) {
|
|
|
|
|
|
+ if (
|
|
|
|
+ isNaN(this.deptBudgetList.weight) ||
|
|
|
|
+ (String(this.deptBudgetList.weight).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList.weight).length -
|
|
|
|
+ (String(this.deptBudgetList.weight).indexOf('.') + 1) >
|
|
|
|
+ 3) ||
|
|
|
|
+ this.deptBudgetList.weight < 0 ||
|
|
|
|
+ this.deptBudgetList.weight > 200000
|
|
|
|
+ ) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '请输入交货详细地址!',
|
|
|
|
|
|
+ message: '输入重量有误!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (this.selectedOptions.length == 0) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.deliveryDateStart) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '请选择货源所在地区!',
|
|
|
|
|
|
+ message: '请选择交货日期(起)',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (this.selectedOptions1.length == 0) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.overShort){
|
|
this.$message({
|
|
this.$message({
|
|
- message: '请选择交货所在地区!',
|
|
|
|
|
|
+ message: '请输入溢短装!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.weight) {
|
|
|
|
|
|
+ if (
|
|
|
|
+ isNaN(this.deptBudgetList.overShort) ||
|
|
|
|
+ (String(this.deptBudgetList.overShort).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList.overShort).length -
|
|
|
|
+ (String(this.deptBudgetList.overShort).indexOf('.') + 1) >
|
|
|
|
+ 2) ||
|
|
|
|
+ this.deptBudgetList.overShort < 0 ||
|
|
|
|
+ this.deptBudgetList.overShort > 50
|
|
|
|
+ ) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '请输入重量!',
|
|
|
|
|
|
+ message: '溢短装输入有误!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
-
|
|
|
|
- if (
|
|
|
|
- isNaN(this.deptBudgetList.weight) ||
|
|
|
|
- (String(this.deptBudgetList.weight).indexOf('.') != -1 &&
|
|
|
|
- String(this.deptBudgetList.weight).length -
|
|
|
|
- (String(this.deptBudgetList.weight).indexOf('.') + 1) >
|
|
|
|
- 3) ||
|
|
|
|
- this.deptBudgetList.weight < 0 ||
|
|
|
|
- this.deptBudgetList.weight > 200000
|
|
|
|
- ) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.deliveryDateEnd) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '输入重量有误!',
|
|
|
|
|
|
+ message: '请选择交货日期(止)',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ //时间
|
|
if (
|
|
if (
|
|
- !this.deptBudgetList.overShort &&
|
|
|
|
- isNaN(this.deptBudgetList.overShort)
|
|
|
|
|
|
+ new Date(this.deptBudgetList.deliveryDateStart).getTime() >
|
|
|
|
+ new Date(this.deptBudgetList.deliveryDateEnd).getTime()
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '溢短装输入有误!',
|
|
|
|
|
|
+ message: '交货日期(止)选择错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList.unitContractPrice) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '请输入合同单价!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- !this.deptBudgetList.unitContractPrice &&
|
|
|
|
- isNaN(this.deptBudgetList.unitContractPrice)
|
|
|
|
|
|
+ isNaN(this.deptBudgetList.unitContractPrice) ||
|
|
|
|
+ (String(this.deptBudgetList.unitContractPrice).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList.unitContractPrice).length -
|
|
|
|
+ (String(this.deptBudgetList.unitContractPrice).indexOf('.') + 1) >
|
|
|
|
+ 2) ||
|
|
|
|
+ this.deptBudgetList.unitContractPrice <= 0 ||
|
|
|
|
+ this.deptBudgetList.unitContractPrice > 10000
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '合同单价输入有误!',
|
|
message: '合同单价输入有误!',
|
|
@@ -1031,9 +1047,21 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if (!this.deptBudgetList.totalContractPrice) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '请输入合同总价!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (
|
|
if (
|
|
- !this.deptBudgetList.totalContractPrice &&
|
|
|
|
- isNaN(this.deptBudgetList.totalContractPrice)
|
|
|
|
|
|
+ isNaN(this.deptBudgetList.totalContractPrice) ||
|
|
|
|
+ (String(this.deptBudgetList.totalContractPrice).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList.totalContractPrice).length -
|
|
|
|
+ (String(this.deptBudgetList.totalContractPrice).indexOf('.') + 1) >
|
|
|
|
+ 2) ||
|
|
|
|
+ this.deptBudgetList.totalContractPrice <= 0 ||
|
|
|
|
+ this.deptBudgetList.totalContractPrice > 1000000000
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '合同总价输入有误!',
|
|
message: '合同总价输入有误!',
|
|
@@ -1041,27 +1069,30 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.deliveryDateStart) {
|
|
|
|
|
|
+ if (this.selectedOptions.length == 0) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '请选择交货日期(起)',
|
|
|
|
|
|
+ message: '请选择货源所在地区!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.deliveryDateEnd) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.sourceGoods) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '请选择交货日期(止)',
|
|
|
|
|
|
+ message: '请输入货源详细地址!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- //时间
|
|
|
|
- if (
|
|
|
|
- new Date(this.deptBudgetList.deliveryDateStart).getTime() >
|
|
|
|
- new Date(this.deptBudgetList.deliveryDateEnd).getTime()
|
|
|
|
- ) {
|
|
|
|
|
|
+ if (this.selectedOptions1.length == 0) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '交货日期(止)选择错误',
|
|
|
|
|
|
+ message: '请选择交货所在地区!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.deptBudgetList.placeDelivery) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '请输入交货详细地址!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
@@ -1073,6 +1104,22 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if (
|
|
|
|
+ isNaN(this.deptBudgetList.finalTradingVolume) ||
|
|
|
|
+ (String(this.deptBudgetList.finalTradingVolume).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList.finalTradingVolume).length -
|
|
|
|
+ (String(this.deptBudgetList.finalTradingVolume).indexOf('.') + 1) >
|
|
|
|
+ 3) ||
|
|
|
|
+ this.deptBudgetList.finalTradingVolume < 0 ||
|
|
|
|
+ this.deptBudgetList.finalTradingVolume > 200000
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '最终实际成交量有误!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ //货物信息
|
|
if (!this.deptBudgetList.contractGoodsInfo.goodsName) {
|
|
if (!this.deptBudgetList.contractGoodsInfo.goodsName) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '请选择货名',
|
|
message: '请选择货名',
|
|
@@ -1087,6 +1134,19 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if (
|
|
|
|
+ this.deptBudgetList.contractGoodsInfo.waterContent &&
|
|
|
|
+ String(this.deptBudgetList.contractGoodsInfo.waterContent).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList.contractGoodsInfo.waterContent).length -
|
|
|
|
+ (String(this.deptBudgetList.contractGoodsInfo.waterContent).indexOf('.') + 1) >
|
|
|
|
+ 2||this.deptBudgetList.contractGoodsInfo.waterContent>40||this.deptBudgetList.contractGoodsInfo.waterContent<1
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '水分输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (!this.deptBudgetList.contractGoodsInfo.grade) {
|
|
if (!this.deptBudgetList.contractGoodsInfo.grade) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '请选择品级',
|
|
message: '请选择品级',
|
|
@@ -1094,16 +1154,19 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if (!this.deptBudgetList.contractGoodsInfo.impurity) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '请输入杂质',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (
|
|
if (
|
|
- !this.deptBudgetList.contractGoodsInfo.impurity ||
|
|
|
|
- (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') !=
|
|
|
|
- -1 &&
|
|
|
|
- String(this.deptBudgetList.contractGoodsInfo.impurity).length -
|
|
|
|
- (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf(
|
|
|
|
- '.'
|
|
|
|
- ) +
|
|
|
|
- 1) >
|
|
|
|
- 2)
|
|
|
|
|
|
+ this.deptBudgetList.contractGoodsInfo.impurity &&
|
|
|
|
+ String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList.contractGoodsInfo.impurity).length -
|
|
|
|
+ (String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') + 1) >
|
|
|
|
+ 2||this.deptBudgetList.contractGoodsInfo.impurity>40||this.deptBudgetList.contractGoodsInfo.impurity<1
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '杂质输入错误',
|
|
message: '杂质输入错误',
|
|
@@ -1111,17 +1174,19 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if (!this.deptBudgetList.contractGoodsInfo.bulkDensity) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '请输入容重',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (
|
|
if (
|
|
- !this.deptBudgetList.contractGoodsInfo.bulkDensity ||
|
|
|
|
- (String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf(
|
|
|
|
- '.'
|
|
|
|
- ) != -1 &&
|
|
|
|
|
|
+ (this.deptBudgetList.contractGoodsInfo.bulkDensity &&
|
|
|
|
+ String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf('.') != -1 &&
|
|
String(this.deptBudgetList.contractGoodsInfo.bulkDensity).length -
|
|
String(this.deptBudgetList.contractGoodsInfo.bulkDensity).length -
|
|
- (String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf(
|
|
|
|
- '.'
|
|
|
|
- ) +
|
|
|
|
- 1) >
|
|
|
|
- 2)
|
|
|
|
|
|
+ (String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf('.') + 1) >
|
|
|
|
+ 2) || this.deptBudgetList.contractGoodsInfo.bulkDensity > 1000 || this.deptBudgetList.contractGoodsInfo.bulkDensity < 500
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '容重输入错误',
|
|
message: '容重输入错误',
|
|
@@ -1129,6 +1194,13 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if (!this.deptBudgetList.contractGoodsInfo.mildewGrain) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '请输入霉变粒',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (
|
|
if (
|
|
!this.deptBudgetList.contractGoodsInfo.mildewGrain ||
|
|
!this.deptBudgetList.contractGoodsInfo.mildewGrain ||
|
|
(String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
|
|
(String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
|
|
@@ -1139,7 +1211,7 @@ export default {
|
|
'.'
|
|
'.'
|
|
) +
|
|
) +
|
|
1) >
|
|
1) >
|
|
- 2)
|
|
|
|
|
|
+ 2||this.deptBudgetList.contractGoodsInfo.mildewGrain>40||this.deptBudgetList.contractGoodsInfo.mildewGrain<1)
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '霉变粒输入错误',
|
|
message: '霉变粒输入错误',
|
|
@@ -1147,6 +1219,13 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if (!this.deptBudgetList.contractGoodsInfo.jiaorenli) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '请输入热损伤',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (
|
|
if (
|
|
!this.deptBudgetList.contractGoodsInfo.jiaorenli ||
|
|
!this.deptBudgetList.contractGoodsInfo.jiaorenli ||
|
|
(String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf('.') !=
|
|
(String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf('.') !=
|
|
@@ -1156,7 +1235,7 @@ export default {
|
|
'.'
|
|
'.'
|
|
) +
|
|
) +
|
|
1) >
|
|
1) >
|
|
- 2)
|
|
|
|
|
|
+ 2||this.deptBudgetList.contractGoodsInfo.jiaorenli>40||this.deptBudgetList.contractGoodsInfo.jiaorenli<1)
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '热损伤输入错误',
|
|
message: '热损伤输入错误',
|
|
@@ -1164,6 +1243,13 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if (!this.deptBudgetList.contractGoodsInfo.imperfectGrain) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '请输入不完善粒',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
if (
|
|
if (
|
|
!this.deptBudgetList.contractGoodsInfo.imperfectGrain ||
|
|
!this.deptBudgetList.contractGoodsInfo.imperfectGrain ||
|
|
(String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).indexOf(
|
|
(String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).indexOf(
|
|
@@ -1174,7 +1260,7 @@ export default {
|
|
this.deptBudgetList.contractGoodsInfo.imperfectGrain
|
|
this.deptBudgetList.contractGoodsInfo.imperfectGrain
|
|
).indexOf('.') +
|
|
).indexOf('.') +
|
|
1) >
|
|
1) >
|
|
- 2)
|
|
|
|
|
|
+ 2||this.deptBudgetList.contractGoodsInfo.imperfectGrain>40||this.deptBudgetList.contractGoodsInfo.imperfectGrain<1)
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '不完整粒输入错误',
|
|
message: '不完整粒输入错误',
|
|
@@ -1183,8 +1269,8 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- (!this.deptBudgetList.contractProcessInfo.goodsNameKey > 1000000000) |
|
|
|
|
- (this.deptBudgetList.contractProcessInfo.goodsNameKey < 0) ||
|
|
|
|
|
|
+ (!this.deptBudgetList.contractProcessInfo.goodsNameKey > 1000000000) ||
|
|
|
|
+ (this.deptBudgetList.contractProcessInfo.goodsNameKey < 100) ||
|
|
(String(this.deptBudgetList.contractProcessInfo.goodsNameKey).indexOf(
|
|
(String(this.deptBudgetList.contractProcessInfo.goodsNameKey).indexOf(
|
|
'.'
|
|
'.'
|
|
) != -1 &&
|
|
) != -1 &&
|
|
@@ -1202,7 +1288,7 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- (this.deptBudgetList.contractProcessInfo.waterContent > 10000000) |
|
|
|
|
|
|
+ (this.deptBudgetList.contractProcessInfo.waterContent > 10000000) ||
|
|
(this.deptBudgetList.contractProcessInfo.waterContent < 0) ||
|
|
(this.deptBudgetList.contractProcessInfo.waterContent < 0) ||
|
|
(String(this.deptBudgetList.contractProcessInfo.waterContent).indexOf(
|
|
(String(this.deptBudgetList.contractProcessInfo.waterContent).indexOf(
|
|
'.'
|
|
'.'
|
|
@@ -1215,7 +1301,7 @@ export default {
|
|
2)
|
|
2)
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '费用金额输入错误',
|
|
|
|
|
|
+ message: '费用支出输入错误',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
@@ -1258,26 +1344,6 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- // if (
|
|
|
|
- // (this.deptBudgetList.contractProcessInfo.imperfectGrain > 200000) |
|
|
|
|
- // (this.deptBudgetList.contractProcessInfo.imperfectGrain < 0) ||
|
|
|
|
- // (String(this.deptBudgetList.contractProcessInfo.imperfectGrain).indexOf(
|
|
|
|
- // '.'
|
|
|
|
- // ) != -1 &&
|
|
|
|
- // String(this.deptBudgetList.contractProcessInfo.imperfectGrain)
|
|
|
|
- // .length -
|
|
|
|
- // (String(
|
|
|
|
- // this.deptBudgetList.contractProcessInfo.imperfectGrain
|
|
|
|
- // ).indexOf('.') +
|
|
|
|
- // 1) >
|
|
|
|
- // 2)
|
|
|
|
- // ) {
|
|
|
|
- // this.$message({
|
|
|
|
- // message: '已完成发运量输入错误',
|
|
|
|
- // type: 'warning',
|
|
|
|
- // })
|
|
|
|
- // return
|
|
|
|
- // }
|
|
|
|
if (
|
|
if (
|
|
(!this.deptBudgetList.contractProcessInfo.mildewGrain > 1000000000) |
|
|
(!this.deptBudgetList.contractProcessInfo.mildewGrain > 1000000000) |
|
|
(this.deptBudgetList.contractProcessInfo.mildewGrain < 0) ||
|
|
(this.deptBudgetList.contractProcessInfo.mildewGrain < 0) ||
|
|
@@ -1297,6 +1363,12 @@ export default {
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ this.$confirm(`确定提交本次修改?`, {
|
|
|
|
+ cancelButtonText: '取消',
|
|
|
|
+ confirmButtonText: '确定',
|
|
|
|
+ type: 'warning'
|
|
|
|
+ })
|
|
|
|
+ .then(() => {
|
|
this.$refs.deptBudgetList.validate((valid) => {
|
|
this.$refs.deptBudgetList.validate((valid) => {
|
|
if (valid) {
|
|
if (valid) {
|
|
this.deptBudgetList.sourceProvince =
|
|
this.deptBudgetList.sourceProvince =
|
|
@@ -1341,6 +1413,7 @@ export default {
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
})
|
|
})
|
|
|
|
+ })
|
|
},
|
|
},
|
|
editInfo() {
|
|
editInfo() {
|
|
editInfo({})
|
|
editInfo({})
|