|
@@ -130,25 +130,6 @@
|
|
<ws-date-picker v-model="deptBudgetList.signingDate" type="date" placeholder="请选择合同签订日期"
|
|
<ws-date-picker v-model="deptBudgetList.signingDate" type="date" placeholder="请选择合同签订日期"
|
|
value-format="yyyy-MM-dd" />
|
|
value-format="yyyy-MM-dd" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
- <!-- 货源所在地区 -->
|
|
|
|
- <ws-form-item label="货源所在地区" span="1" prop="sourceGoods">
|
|
|
|
- <!-- <el-cascader
|
|
|
|
- :options="options_"
|
|
|
|
- v-model="selectedOptions"
|
|
|
|
- clearable
|
|
|
|
- size="large"
|
|
|
|
- placeholder="请选择货源所在地区"
|
|
|
|
- style="width: 200%"
|
|
|
|
- @change="handleChange"
|
|
|
|
- /> -->
|
|
|
|
- <el-button @click="mapInputClick('source')" class="address-btn">
|
|
|
|
- {{ newSelectedOptions }}
|
|
|
|
- </el-button>
|
|
|
|
- </ws-form-item>
|
|
|
|
- <!-- 货源详细地址 -->
|
|
|
|
- <ws-form-item label="货源详细地址" span="1" prop="sourceGoods">
|
|
|
|
- <ws-input v-model="deptBudgetList.sourceGoods" maxlength="100" placeholder="请输入货源详细地址" size="small" />
|
|
|
|
- </ws-form-item>
|
|
|
|
<!-- 交货地所在地区 -->
|
|
<!-- 交货地所在地区 -->
|
|
<ws-form-item label="交货地所在地区" span="1" prop="placeDelivery">
|
|
<ws-form-item label="交货地所在地区" span="1" prop="placeDelivery">
|
|
<!-- <el-cascader
|
|
<!-- <el-cascader
|
|
@@ -342,6 +323,7 @@
|
|
editxiala,
|
|
editxiala,
|
|
delxiala,
|
|
delxiala,
|
|
getRelationContractNo,
|
|
getRelationContractNo,
|
|
|
|
+ getstafffind
|
|
} from '@/model/contarct/index'
|
|
} from '@/model/contarct/index'
|
|
import { getstaff, } from '@/model/warehouse/index'
|
|
import { getstaff, } from '@/model/warehouse/index'
|
|
export default {
|
|
export default {
|
|
@@ -378,6 +360,7 @@
|
|
// 提交类型
|
|
// 提交类型
|
|
submitType: true,
|
|
submitType: true,
|
|
options_: regionData,
|
|
options_: regionData,
|
|
|
|
+ options:[],
|
|
selectedOptions: [],
|
|
selectedOptions: [],
|
|
selectedOptions1: [],
|
|
selectedOptions1: [],
|
|
tableData: [{
|
|
tableData: [{
|
|
@@ -427,6 +410,14 @@
|
|
//cg.viewBudget
|
|
//cg.viewBudget
|
|
//cg.viewSpareMoney
|
|
//cg.viewSpareMoney
|
|
// this.getVesselData();
|
|
// this.getVesselData();
|
|
|
|
+ getstafffind({
|
|
|
|
+ roles: 'd6a5c8a52da544309259f91f75de1ec6'
|
|
|
|
+ })
|
|
|
|
+ .toPromise()
|
|
|
|
+ .then((response) => {
|
|
|
|
+ this.options = response
|
|
|
|
+ this.staffList = response
|
|
|
|
+ })
|
|
this.loaddata()
|
|
this.loaddata()
|
|
this.editInfo()
|
|
this.editInfo()
|
|
this.showType = this.isShow
|
|
this.showType = this.isShow
|
|
@@ -434,6 +425,18 @@
|
|
this.showType = this.isShow
|
|
this.showType = this.isShow
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ selectstaff(e) {
|
|
|
|
+ this.deptBudgetList.personCharge = ''
|
|
|
|
+ for (var i = 0; i < this.staffList.length; i++) {
|
|
|
|
+ for (var j = 0; j < e.length; j++) {
|
|
|
|
+ if (this.staffList[i].staffMobilePhone == e[j]) {
|
|
|
|
+ this.deptBudgetList.personCharge += this.staffList[i].staffName + ' ' + this.staffList[i]
|
|
|
|
+ .staffMobilePhone + ','
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ console.log(this.deptBudgetList)
|
|
|
|
+ },
|
|
feedbackLeaderChange(e){
|
|
feedbackLeaderChange(e){
|
|
this.deptBudgetList.feedbackLeader = this.feedbackLeaders[e].staffName
|
|
this.deptBudgetList.feedbackLeader = this.feedbackLeaders[e].staffName
|
|
this.deptBudgetList.feedbackLeaderPhone = this.feedbackLeaders[e].staffMobilePhone
|
|
this.deptBudgetList.feedbackLeaderPhone = this.feedbackLeaders[e].staffMobilePhone
|
|
@@ -478,7 +481,7 @@
|
|
returnsales() {
|
|
returnsales() {
|
|
this.deptBudgetList = {}
|
|
this.deptBudgetList = {}
|
|
this.$router.push({
|
|
this.$router.push({
|
|
- path: 'salesContract'
|
|
|
|
|
|
+ path: 'collectionContract'
|
|
})
|
|
})
|
|
},
|
|
},
|
|
handleChange(value) {
|
|
handleChange(value) {
|
|
@@ -506,18 +509,18 @@
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
- var tmp = []
|
|
|
|
- tmp[0] = TextToCode[response.sourceProvince].code
|
|
|
|
- tmp[1] = TextToCode[response.sourceProvince][response.sourceCity].code
|
|
|
|
- if (tmp[0] == 810000 || tmp[0] == 820000) {
|
|
|
|
- tmp[2] = null
|
|
|
|
- } else {
|
|
|
|
- tmp[2] =
|
|
|
|
- TextToCode[response.sourceProvince][response.sourceCity][
|
|
|
|
- response.sourceArea
|
|
|
|
- ].code
|
|
|
|
- }
|
|
|
|
- this.selectedOptions = tmp
|
|
|
|
|
|
+ // var tmp = []
|
|
|
|
+ // tmp[0] = TextToCode[response.sourceProvince].code
|
|
|
|
+ // tmp[1] = TextToCode[response.sourceProvince][response.sourceCity].code
|
|
|
|
+ // if (tmp[0] == 810000 || tmp[0] == 820000) {
|
|
|
|
+ // tmp[2] = null
|
|
|
|
+ // } else {
|
|
|
|
+ // tmp[2] =
|
|
|
|
+ // TextToCode[response.sourceProvince][response.sourceCity][
|
|
|
|
+ // response.sourceArea
|
|
|
|
+ // ].code
|
|
|
|
+ // }
|
|
|
|
+ // this.selectedOptions = tmp
|
|
var tmp1 = []
|
|
var tmp1 = []
|
|
tmp1[0] = TextToCode[response.deliveryProvince].code
|
|
tmp1[0] = TextToCode[response.deliveryProvince].code
|
|
tmp1[1] =
|
|
tmp1[1] =
|
|
@@ -533,6 +536,16 @@
|
|
|
|
|
|
this.selectedOptions1 = tmp1
|
|
this.selectedOptions1 = tmp1
|
|
this.deptBudgetList = response
|
|
this.deptBudgetList = response
|
|
|
|
+ var name=[]
|
|
|
|
+ this.deptBudgetList.personPhone=this.deptBudgetList.personPhone.split(',')
|
|
|
|
+ // var arr=this.deptBudgetList.personCharge.split(',')
|
|
|
|
+ // for (let i = 0; i < arr.length; i++) {
|
|
|
|
+ // if(arr[i].split(' ')[0]!=''){
|
|
|
|
+ // name.push(arr[i].split(' ')[0])
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // this.
|
|
|
|
+ // console.log(name)
|
|
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) {
|
|
@@ -709,23 +722,7 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.shippingType) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '运输方式不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- this.deptBudgetList.shippingType.length < 1 ||
|
|
|
|
- this.deptBudgetList.shippingType.length > 20
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '运输方式长度不符合要求,请输入1到20个字符之内!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
if (!this.deptBudgetList.buyer) {
|
|
if (!this.deptBudgetList.buyer) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '买方名称不能为空',
|
|
message: '买方名称不能为空',
|
|
@@ -778,13 +775,13 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (isNaN(this.deptBudgetList.buyerPhone)) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '输入买方电话有误!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ // if (isNaN(this.deptBudgetList.buyerPhone)) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '输入买方电话有误!',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
if (!this.deptBudgetList.sellerPhone) {
|
|
if (!this.deptBudgetList.sellerPhone) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '请输入卖方电话!',
|
|
message: '请输入卖方电话!',
|
|
@@ -799,15 +796,15 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if(this.deptBudgetList.deliverType == '2'){
|
|
|
|
- if (!this.deptBudgetList.feedbackLeader){
|
|
|
|
- this.$message({
|
|
|
|
- message: '请选择收货反馈负责人',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ // if (this.deptBudgetList.deliverType == '2') {
|
|
|
|
+ // if (!this.deptBudgetList.feedbackLeader) {
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '请选择收货反馈负责人',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
|
|
if (!this.deptBudgetList.acceptanceMethod) {
|
|
if (!this.deptBudgetList.acceptanceMethod) {
|
|
this.$message({
|
|
this.$message({
|
|
@@ -838,107 +835,78 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.deliveryDateStart) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.agencyCharge) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '请选择交货日期(起)',
|
|
|
|
|
|
+ message: '代收费不能为空!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.overShort) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.grainDelivery) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '请输入溢短装!',
|
|
|
|
|
|
+ message: '客户送粮上限不能为空!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- isNaN(this.deptBudgetList.overShort) ||
|
|
|
|
- (String(this.deptBudgetList.overShort).indexOf('.') != -1 &&
|
|
|
|
- String(this.deptBudgetList.overShort).length -
|
|
|
|
- (String(this.deptBudgetList.overShort).indexOf('.') + 1) >
|
|
|
|
|
|
+ isNaN(this.deptBudgetList.agencyCharge) ||
|
|
|
|
+ (String(this.deptBudgetList.agencyCharge).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList.agencyCharge).length -
|
|
|
|
+ (String(this.deptBudgetList.agencyCharge).indexOf('.') + 1) >
|
|
2) ||
|
|
2) ||
|
|
- this.deptBudgetList.overShort < 0 ||
|
|
|
|
- this.deptBudgetList.overShort > 50
|
|
|
|
|
|
+ this.deptBudgetList.agencyCharge < 0 ||
|
|
|
|
+ this.deptBudgetList.agencyCharge > 1000
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '溢短装输入有误!',
|
|
|
|
|
|
+ message: '代收费填写错误!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.deliveryDateEnd) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '请选择交货日期(止)',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- //时间
|
|
|
|
- if (
|
|
|
|
- new Date(this.deptBudgetList.deliveryDateStart).getTime() >
|
|
|
|
- new Date(this.deptBudgetList.deliveryDateEnd).getTime()
|
|
|
|
- ) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.deliveryDateStart) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '交货日期(止)选择错误',
|
|
|
|
|
|
+ message: '请选择交货日期(起)',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.unitContractPrice) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.overShort) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '请输入合同单价!',
|
|
|
|
|
|
+ message: '请输入溢短装!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- isNaN(this.deptBudgetList.unitContractPrice) ||
|
|
|
|
- (String(this.deptBudgetList.unitContractPrice).indexOf('.') != -1 &&
|
|
|
|
- String(this.deptBudgetList.unitContractPrice).length -
|
|
|
|
- (String(this.deptBudgetList.unitContractPrice).indexOf('.') + 1) >
|
|
|
|
|
|
+ isNaN(this.deptBudgetList.overShort) ||
|
|
|
|
+ (String(this.deptBudgetList.overShort).indexOf('.') != -1 &&
|
|
|
|
+ String(this.deptBudgetList.overShort).length -
|
|
|
|
+ (String(this.deptBudgetList.overShort).indexOf('.') + 1) >
|
|
2) ||
|
|
2) ||
|
|
- this.deptBudgetList.unitContractPrice <= 0 ||
|
|
|
|
- this.deptBudgetList.unitContractPrice > 10000
|
|
|
|
|
|
+ this.deptBudgetList.overShort < 0 ||
|
|
|
|
+ this.deptBudgetList.overShort > 50
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '合同单价输入有误!',
|
|
|
|
|
|
+ message: '溢短装输入有误!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (!this.deptBudgetList.totalContractPrice) {
|
|
|
|
|
|
+ if (!this.deptBudgetList.deliveryDateEnd) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '请输入合同总价!',
|
|
|
|
|
|
+ message: '请选择交货日期(止)',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ //时间
|
|
if (
|
|
if (
|
|
- 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
|
|
|
|
|
|
+ new Date(this.deptBudgetList.deliveryDateStart).getTime() >
|
|
|
|
+ new Date(this.deptBudgetList.deliveryDateEnd).getTime()
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '合同总价输入有误!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.newSelectedOptions) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '请选择货源所在地区!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.deptBudgetList.sourceGoods) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '请输入货源详细地址!',
|
|
|
|
|
|
+ message: '交货日期(止)选择错误',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
@@ -995,12 +963,18 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
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 < 0
|
|
|
|
|
|
+ (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 < 0
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '水分输入错误',
|
|
message: '水分输入错误',
|
|
@@ -1023,11 +997,17 @@
|
|
return
|
|
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 > 40 || this.deptBudgetList.contractGoodsInfo.impurity < 0
|
|
|
|
|
|
+ (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 < 0
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '杂质输入错误',
|
|
message: '杂质输入错误',
|
|
@@ -1044,11 +1024,17 @@
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
(this.deptBudgetList.contractGoodsInfo.bulkDensity &&
|
|
(this.deptBudgetList.contractGoodsInfo.bulkDensity &&
|
|
- String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf('.') != -1 &&
|
|
|
|
|
|
+ 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) || this.deptBudgetList.contractGoodsInfo.bulkDensity > 1000 || this.deptBudgetList.contractGoodsInfo
|
|
|
|
- .bulkDensity < 0
|
|
|
|
|
|
+ (String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf(
|
|
|
|
+ '.'
|
|
|
|
+ ) +
|
|
|
|
+ 1) >
|
|
|
|
+ 2) ||
|
|
|
|
+ this.deptBudgetList.contractGoodsInfo.bulkDensity > 1000 ||
|
|
|
|
+ this.deptBudgetList.contractGoodsInfo.bulkDensity < 0
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '容重输入错误',
|
|
message: '容重输入错误',
|
|
@@ -1073,8 +1059,9 @@
|
|
'.'
|
|
'.'
|
|
) +
|
|
) +
|
|
1) >
|
|
1) >
|
|
- 2 || this.deptBudgetList.contractGoodsInfo.mildewGrain > 40 || this.deptBudgetList.contractGoodsInfo
|
|
|
|
- .mildewGrain < 0)
|
|
|
|
|
|
+ 2) ||
|
|
|
|
+ this.deptBudgetList.contractGoodsInfo.mildewGrain > 40 ||
|
|
|
|
+ this.deptBudgetList.contractGoodsInfo.mildewGrain < 0
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '霉变粒输入错误',
|
|
message: '霉变粒输入错误',
|
|
@@ -1098,8 +1085,9 @@
|
|
'.'
|
|
'.'
|
|
) +
|
|
) +
|
|
1) >
|
|
1) >
|
|
- 2 || this.deptBudgetList.contractGoodsInfo.jiaorenli > 40 || this.deptBudgetList.contractGoodsInfo
|
|
|
|
- .jiaorenli < 0)
|
|
|
|
|
|
+ 2) ||
|
|
|
|
+ this.deptBudgetList.contractGoodsInfo.jiaorenli > 40 ||
|
|
|
|
+ this.deptBudgetList.contractGoodsInfo.jiaorenli < 0
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '热损伤输入错误',
|
|
message: '热损伤输入错误',
|
|
@@ -1124,8 +1112,9 @@
|
|
this.deptBudgetList.contractGoodsInfo.imperfectGrain
|
|
this.deptBudgetList.contractGoodsInfo.imperfectGrain
|
|
).indexOf('.') +
|
|
).indexOf('.') +
|
|
1) >
|
|
1) >
|
|
- 2 || this.deptBudgetList.contractGoodsInfo.imperfectGrain > 40 || this.deptBudgetList.contractGoodsInfo
|
|
|
|
- .imperfectGrain < 0)
|
|
|
|
|
|
+ 2) ||
|
|
|
|
+ this.deptBudgetList.contractGoodsInfo.imperfectGrain > 40 ||
|
|
|
|
+ this.deptBudgetList.contractGoodsInfo.imperfectGrain < 0
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
message: '不完善粒输入错误',
|
|
message: '不完善粒输入错误',
|
|
@@ -1133,31 +1122,31 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if(this.deptBudgetList.contractProcessInfo.goodsNameKey){
|
|
|
|
|
|
+ if (this.deptBudgetList.contractProcessInfo.goodsNameKey) {
|
|
|
|
|
|
- if (
|
|
|
|
- (!this.deptBudgetList.contractProcessInfo.goodsNameKey > 1000000000) ||
|
|
|
|
- (this.deptBudgetList.contractProcessInfo.goodsNameKey < 100) ||
|
|
|
|
- (String(this.deptBudgetList.contractProcessInfo.goodsNameKey).indexOf(
|
|
|
|
- '.'
|
|
|
|
- ) != -1 &&
|
|
|
|
- String(this.deptBudgetList.contractProcessInfo.goodsNameKey).length -
|
|
|
|
- (String(
|
|
|
|
- this.deptBudgetList.contractProcessInfo.goodsNameKey
|
|
|
|
- ).indexOf('.') +
|
|
|
|
- 1) >
|
|
|
|
- 2)
|
|
|
|
- ) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '合同收入金额输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ if (
|
|
|
|
+ !this.deptBudgetList.contractProcessInfo.goodsNameKey > 1000000000 ||
|
|
|
|
+ this.deptBudgetList.contractProcessInfo.goodsNameKey < 100 ||
|
|
|
|
+ (String(this.deptBudgetList.contractProcessInfo.goodsNameKey).indexOf(
|
|
|
|
+ '.'
|
|
|
|
+ ) != -1 &&
|
|
|
|
+ String(this.deptBudgetList.contractProcessInfo.goodsNameKey).length -
|
|
|
|
+ (String(
|
|
|
|
+ this.deptBudgetList.contractProcessInfo.goodsNameKey
|
|
|
|
+ ).indexOf('.') +
|
|
|
|
+ 1) >
|
|
|
|
+ 2)
|
|
|
|
+ ) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '合同收入金额输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- (this.deptBudgetList.contractProcessInfo.waterContent > 10000000) ||
|
|
|
|
- (this.deptBudgetList.contractProcessInfo.waterContent < 0) ||
|
|
|
|
|
|
+ this.deptBudgetList.contractProcessInfo.waterContent > 10000000 ||
|
|
|
|
+ this.deptBudgetList.contractProcessInfo.waterContent < 0 ||
|
|
(String(this.deptBudgetList.contractProcessInfo.waterContent).indexOf(
|
|
(String(this.deptBudgetList.contractProcessInfo.waterContent).indexOf(
|
|
'.'
|
|
'.'
|
|
) != -1 &&
|
|
) != -1 &&
|
|
@@ -1247,7 +1236,7 @@
|
|
this.$message.success('编辑成功')
|
|
this.$message.success('编辑成功')
|
|
this.deptBudgetList = {}
|
|
this.deptBudgetList = {}
|
|
this.$router.push({
|
|
this.$router.push({
|
|
- path: 'salesContract'
|
|
|
|
|
|
+ path: 'collectionContract'
|
|
})
|
|
})
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|