|
@@ -113,7 +113,7 @@
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
</ws-info-table>
|
|
</ws-info-table>
|
|
|
|
|
|
- <div class="title">质检数据</div>
|
|
|
|
|
|
+ <div class="title">质检数据 <el-checkbox v-if='types==1||types==3' v-model="checked">补录</el-checkbox></div>
|
|
<ws-info-table>
|
|
<ws-info-table>
|
|
<ws-form-item label="等级" span="1" prop="grade">
|
|
<ws-form-item label="等级" span="1" prop="grade">
|
|
<ws-select v-model="inspect.grade" placeholder="请输入等级" class="typeselect" :disabled="disabled"
|
|
<ws-select v-model="inspect.grade" placeholder="请输入等级" class="typeselect" :disabled="disabled"
|
|
@@ -219,6 +219,7 @@
|
|
carNumberList: [],
|
|
carNumberList: [],
|
|
disabled: false,
|
|
disabled: false,
|
|
disabled1: false,
|
|
disabled1: false,
|
|
|
|
+ checked:false,
|
|
disabled2: false,
|
|
disabled2: false,
|
|
disabled3:false,
|
|
disabled3:false,
|
|
disabledName: false,
|
|
disabledName: false,
|
|
@@ -743,149 +744,152 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (!this.inspect.grade) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '等级不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.inspect.impurity) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '杂质不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (String(this.inspect.impurity).indexOf('.') != -1 && String(this.inspect.impurity).length - (String(this
|
|
|
|
- .inspect.impurity).indexOf('.') + 1) > 1) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '杂质输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ if(!this.checked){
|
|
|
|
+ if (!this.inspect.grade) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '等级不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.inspect.impurity) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '杂质不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (String(this.inspect.impurity).indexOf('.') != -1 && String(this.inspect.impurity).length - (String(this
|
|
|
|
+ .inspect.impurity).indexOf('.') + 1) > 1) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '杂质输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
|
|
- if (this.inspect.impurity < 0 || this.inspect.impurity > 40) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '杂质输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if( this.information != '编辑复检'){
|
|
|
|
- if (!this.inspect.waterContent) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '水分不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.inspect.waterContent < 0 || this.inspect.waterContent > 50) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '水分输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (String(this.inspect.waterContent).indexOf('.') != -1 && String(this.inspect.waterContent).length - (String(
|
|
|
|
- this.inspect.waterContent).indexOf('.') + 1) > 1) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '水分输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ if (this.inspect.impurity < 0 || this.inspect.impurity > 40) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '杂质输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if( this.information != '编辑复检'){
|
|
|
|
+ if (!this.inspect.waterContent) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '水分不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (this.inspect.waterContent < 0 || this.inspect.waterContent > 50) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '水分输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (String(this.inspect.waterContent).indexOf('.') != -1 && String(this.inspect.waterContent).length - (String(
|
|
|
|
+ this.inspect.waterContent).indexOf('.') + 1) > 1) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '水分输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (!this.inspect.mildewGrain) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '霉变粒不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (this.inspect.mildewGrain < 0 || this.inspect.mildewGrain > 40) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '霉变粒输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (String(this.inspect.mildewGrain).indexOf('.') != -1 && String(this.inspect.mildewGrain).length - (String(
|
|
|
|
+ this.inspect.mildewGrain).indexOf('.') + 1) > 1) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '霉变粒输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.inspect.bulkDensity) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '容重不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (this.inspect.bulkDensity < 500 || this.inspect.bulkDensity > 1000) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '容重输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (String(this.inspect.bulkDensity).indexOf('.') != -1 && String(this.inspect.bulkDensity).length - (String(
|
|
|
|
+ this.inspect.bulkDensity).indexOf('.') + 1) > 0) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '容重需输入整数',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.inspect.jiaorenli) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '热损伤不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (this.inspect.jiaorenli < 0 || this.inspect.jiaorenli > 40) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '热损伤输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (String(this.inspect.jiaorenli).indexOf('.') != -1 && String(this.inspect.jiaorenli).length - (String(this
|
|
|
|
+ .inspect.jiaorenli).indexOf('.') + 1) > 1) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '热损伤输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (!this.inspect.imperfectGrain) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '不完善粒不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (this.inspect.imperfectGrain < 0 || this.inspect.imperfectGrain > 40) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '不完善粒输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ if (String(this.inspect.imperfectGrain).indexOf('.') != -1 && String(this.inspect.imperfectGrain).length - (
|
|
|
|
+ String(this.inspect.imperfectGrain).indexOf('.') + 1) > 1) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '不完善粒输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
- if (!this.inspect.mildewGrain) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '霉变粒不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.inspect.mildewGrain < 0 || this.inspect.mildewGrain > 40) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '霉变粒输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (String(this.inspect.mildewGrain).indexOf('.') != -1 && String(this.inspect.mildewGrain).length - (String(
|
|
|
|
- this.inspect.mildewGrain).indexOf('.') + 1) > 1) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '霉变粒输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.inspect.bulkDensity) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '容重不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.inspect.bulkDensity < 500 || this.inspect.bulkDensity > 1000) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '容重输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (String(this.inspect.bulkDensity).indexOf('.') != -1 && String(this.inspect.bulkDensity).length - (String(
|
|
|
|
- this.inspect.bulkDensity).indexOf('.') + 1) > 0) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '容重需输入整数',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.inspect.jiaorenli) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '热损伤不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.inspect.jiaorenli < 0 || this.inspect.jiaorenli > 40) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '热损伤输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (String(this.inspect.jiaorenli).indexOf('.') != -1 && String(this.inspect.jiaorenli).length - (String(this
|
|
|
|
- .inspect.jiaorenli).indexOf('.') + 1) > 1) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '热损伤输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (!this.inspect.imperfectGrain) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '不完善粒不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (this.inspect.imperfectGrain < 0 || this.inspect.imperfectGrain > 40) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '不完善粒输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- if (String(this.inspect.imperfectGrain).indexOf('.') != -1 && String(this.inspect.imperfectGrain).length - (
|
|
|
|
- String(this.inspect.imperfectGrain).indexOf('.') + 1) > 1) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '不完善粒输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
getamount({
|
|
getamount({
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
compId: localStorage.getItem('ws-pf_compId'),
|
|
customerNumberCard: this.inspect.customerNumberCard,
|
|
customerNumberCard: this.inspect.customerNumberCard,
|
|
@@ -1307,4 +1311,4 @@
|
|
text-align: center;
|
|
text-align: center;
|
|
// margin: 20px auto;
|
|
// margin: 20px auto;
|
|
}
|
|
}
|
|
-</style>
|
|
|
|
|
|
+</style>
|