|
@@ -630,7 +630,7 @@
|
|
|
if (this.dataList.taskTypeKey != 3) {
|
|
|
for (let i = 0; i < this.contractNoList.length; i++) {
|
|
|
if (this.contractNoList[i].contractNo == e) {
|
|
|
- if(this.contractNoList[i].priceType == "随行就市"){
|
|
|
+ if(this.contractNoList[i].priceType == '随行就市'){
|
|
|
this.Pricetype = false
|
|
|
}else{
|
|
|
this.Pricetype = true
|
|
@@ -711,7 +711,7 @@
|
|
|
if (this.dataList1.taskTypeKey != 3) {
|
|
|
for (let i = 0; i < this.contractNoList.length; i++) {
|
|
|
if (this.contractNoList[i].contractNo == e) {
|
|
|
- if(this.contractNoList[i].priceType == "随行就市"){
|
|
|
+ if(this.contractNoList[i].priceType == '随行就市'){
|
|
|
this.Pricetype = false
|
|
|
}else{
|
|
|
this.Pricetype = true
|
|
@@ -813,61 +813,61 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.dataList.bulkDensity) {
|
|
|
- this.$message({
|
|
|
- message: '容重不能为空!',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- this.dataList.bulkDensity < 0 ||
|
|
|
- this.dataList.bulkDensity > 1000
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '容重输入错误',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- String(this.dataList.bulkDensity).indexOf('.') != -1 &&
|
|
|
- String(this.dataList.bulkDensity).length -
|
|
|
- (String(this.dataList.bulkDensity).indexOf('.') + 1) >
|
|
|
- 0
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '容重需输入整数',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.dataList.waterContent) {
|
|
|
- this.$message({
|
|
|
- message: '水分不能为空!',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.dataList.waterContent < 0 || this.dataList.waterContent > 40) {
|
|
|
- this.$message({
|
|
|
- message: '水分输入错误',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- String(this.dataList.waterContent).indexOf('.') != -1 &&
|
|
|
- String(this.dataList.waterContent).length -
|
|
|
- (String(this.dataList.waterContent).indexOf('.') + 1) >
|
|
|
- 1
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '水分输入错误',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (!this.dataList.bulkDensity) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '容重不能为空!',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // this.dataList.bulkDensity < 0 ||
|
|
|
+ // this.dataList.bulkDensity > 1000
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '容重输入错误',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // String(this.dataList.bulkDensity).indexOf('.') != -1 &&
|
|
|
+ // String(this.dataList.bulkDensity).length -
|
|
|
+ // (String(this.dataList.bulkDensity).indexOf('.') + 1) >
|
|
|
+ // 0
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '容重需输入整数',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (!this.dataList.waterContent) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '水分不能为空!',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (this.dataList.waterContent < 0 || this.dataList.waterContent > 40) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '水分输入错误',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // String(this.dataList.waterContent).indexOf('.') != -1 &&
|
|
|
+ // String(this.dataList.waterContent).length -
|
|
|
+ // (String(this.dataList.waterContent).indexOf('.') + 1) >
|
|
|
+ // 1
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '水分输入错误',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if(this.Pricetype){
|
|
|
if (!this.dataList.unitPrice) {
|
|
|
this.$message({
|
|
@@ -961,64 +961,64 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.dataList1.bulkDensity) {
|
|
|
- this.$message({
|
|
|
- message: '容重不能为空!',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- this.dataList1.bulkDensity < 500 ||
|
|
|
- this.dataList1.bulkDensity > 1000
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '容重输入错误',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- String(this.dataList1.bulkDensity).indexOf('.') != -1 &&
|
|
|
- String(this.dataList1.bulkDensity).length -
|
|
|
- (String(this.dataList1.bulkDensity).indexOf('.') + 1) >
|
|
|
- 0
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '容重需输入整数',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.dataList1.waterContent) {
|
|
|
- this.$message({
|
|
|
- message: '水分不能为空!',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- this.dataList1.waterContent < 0 ||
|
|
|
- this.dataList1.waterContent > 40
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '水分输入错误',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- String(this.dataList1.waterContent).indexOf('.') != -1 &&
|
|
|
- String(this.dataList1.waterContent).length -
|
|
|
- (String(this.dataList1.waterContent).indexOf('.') + 1) >
|
|
|
- 1
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '水分输入错误',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (!this.dataList1.bulkDensity) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '容重不能为空!',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // this.dataList1.bulkDensity < 500 ||
|
|
|
+ // this.dataList1.bulkDensity > 1000
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '容重输入错误',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // String(this.dataList1.bulkDensity).indexOf('.') != -1 &&
|
|
|
+ // String(this.dataList1.bulkDensity).length -
|
|
|
+ // (String(this.dataList1.bulkDensity).indexOf('.') + 1) >
|
|
|
+ // 0
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '容重需输入整数',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (!this.dataList1.waterContent) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '水分不能为空!',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // this.dataList1.waterContent < 0 ||
|
|
|
+ // this.dataList1.waterContent > 40
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '水分输入错误',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // String(this.dataList1.waterContent).indexOf('.') != -1 &&
|
|
|
+ // String(this.dataList1.waterContent).length -
|
|
|
+ // (String(this.dataList1.waterContent).indexOf('.') + 1) >
|
|
|
+ // 1
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '水分输入错误',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if(this.Pricetype){
|
|
|
if (!this.dataList1.unitPrice) {
|
|
|
this.$message({
|
|
@@ -1212,64 +1212,64 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (!this.dataList1.bulkDensity) {
|
|
|
- this.$message({
|
|
|
- message: '容重不能为空!',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- this.dataList1.bulkDensity < 500 ||
|
|
|
- this.dataList1.bulkDensity > 1000
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '容重输入错误',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- String(this.dataList1.bulkDensity).indexOf('.') != -1 &&
|
|
|
- String(this.dataList1.bulkDensity).length -
|
|
|
- (String(this.dataList1.bulkDensity).indexOf('.') + 1) >
|
|
|
- 0
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '容重需输入整数',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (!this.dataList1.waterContent) {
|
|
|
- this.$message({
|
|
|
- message: '水分不能为空!',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- this.dataList1.waterContent < 0 ||
|
|
|
- this.dataList1.waterContent > 40
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '水分输入错误',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (
|
|
|
- String(this.dataList1.waterContent).indexOf('.') != -1 &&
|
|
|
- String(this.dataList1.waterContent).length -
|
|
|
- (String(this.dataList1.waterContent).indexOf('.') + 1) >
|
|
|
- 1
|
|
|
- ) {
|
|
|
- this.$message({
|
|
|
- message: '水分输入错误',
|
|
|
- type: 'warning'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
+ // if (!this.dataList1.bulkDensity) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '容重不能为空!',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // this.dataList1.bulkDensity < 500 ||
|
|
|
+ // this.dataList1.bulkDensity > 1000
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '容重输入错误',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // String(this.dataList1.bulkDensity).indexOf('.') != -1 &&
|
|
|
+ // String(this.dataList1.bulkDensity).length -
|
|
|
+ // (String(this.dataList1.bulkDensity).indexOf('.') + 1) >
|
|
|
+ // 0
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '容重需输入整数',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (!this.dataList1.waterContent) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '水分不能为空!',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // this.dataList1.waterContent < 0 ||
|
|
|
+ // this.dataList1.waterContent > 40
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '水分输入错误',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ // if (
|
|
|
+ // String(this.dataList1.waterContent).indexOf('.') != -1 &&
|
|
|
+ // String(this.dataList1.waterContent).length -
|
|
|
+ // (String(this.dataList1.waterContent).indexOf('.') + 1) >
|
|
|
+ // 1
|
|
|
+ // ) {
|
|
|
+ // this.$message({
|
|
|
+ // message: '水分输入错误',
|
|
|
+ // type: 'warning'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
if(this.Pricetype){
|
|
|
if (!this.dataList1.unitPrice) {
|
|
|
this.$message({
|
|
@@ -1602,7 +1602,7 @@
|
|
|
})
|
|
|
.toPromise()
|
|
|
.then(response => {
|
|
|
- console.log("查仓库sss",response)
|
|
|
+ console.log('查仓库sss',response)
|
|
|
for (var i = 0; i < response.length; i++) {
|
|
|
this.warehouseNameList.push(response[i])
|
|
|
}
|