|
@@ -1274,6 +1274,7 @@ export default {
|
|
|
},
|
|
|
// 提交
|
|
|
submit() {
|
|
|
+ this.baseInfoForm.bulkDensityStandard = ""//
|
|
|
let isValidate = false
|
|
|
isValidate = this.validate()
|
|
|
if (isValidate) {
|
|
@@ -1298,8 +1299,7 @@ export default {
|
|
|
// this.tableData = response.records
|
|
|
this.isCountShow = false
|
|
|
})
|
|
|
- }
|
|
|
-
|
|
|
+ }
|
|
|
}else{
|
|
|
purchasePriceAdd(this.baseInfoForm)
|
|
|
.toPromise()
|
|
@@ -1308,7 +1308,6 @@ export default {
|
|
|
this.isCountShow = false
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
break
|
|
|
case '编辑':
|
|
@@ -1361,21 +1360,21 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- // check(){
|
|
|
- // let that = this
|
|
|
- // for(let i = 0;i < this.baseInfoForm.detailPrints.length;i++){
|
|
|
- // if(!this.baseInfoForm.detailPrints[i].bulkDensityMin || !this.baseInfoForm.detailPrints[i].bulkDensityMax||!this.baseInfoForm.detailPrints[i].bulkDensityPrice){
|
|
|
- // that.$message.error('请输入容重和对应区间价格!')
|
|
|
- // return false
|
|
|
- // }
|
|
|
+ check(){
|
|
|
+ // let that = this
|
|
|
+ // for(let i = 0;i < this.baseInfoForm.detailPrints.length;i++){
|
|
|
+ // if(!this.baseInfoForm.detailPrints[i].bulkDensityMin || !this.baseInfoForm.detailPrints[i].bulkDensityMax||!this.baseInfoForm.detailPrints[i].bulkDensityPrice){
|
|
|
+ // that.$message.error('请输入容重和对应区间价格!')
|
|
|
+ // return false
|
|
|
+ // }
|
|
|
|
|
|
- // if(Number(this.baseInfoForm.detailPrints[i].bulkDensityMin) > Number(this.baseInfoForm.detailPrints[i].bulkDensityMax)){
|
|
|
- // that.$message.error('请从左到右按大到小填写容重!')
|
|
|
- // return false
|
|
|
- // }
|
|
|
- // }
|
|
|
- // return true
|
|
|
- // },
|
|
|
+ // if(Number(this.baseInfoForm.detailPrints[i].bulkDensityMin) > Number(this.baseInfoForm.detailPrints[i].bulkDensityMax)){
|
|
|
+ // that.$message.error('请从左到右按大到小填写容重!')
|
|
|
+ // return false
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ return true
|
|
|
+ },
|
|
|
//审核
|
|
|
audit(item, status, status2) {
|
|
|
posthandle({
|
|
@@ -1900,7 +1899,6 @@ export default {
|
|
|
calculatePriceRight(_waterMax) {
|
|
|
//获取每个分界值
|
|
|
let _listResult = []
|
|
|
- debugger
|
|
|
for (let i = 0; i < this.right.length; i++) {
|
|
|
let _list = this.right[i].priceList
|
|
|
let tmp = {}
|