|
@@ -365,12 +365,12 @@
|
|
maxlength="40" size="small" />
|
|
maxlength="40" size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--容重(克/升)-->
|
|
<!--容重(克/升)-->
|
|
- <ws-form-item label="容重(克/升)" span="1" prop="bulkDensity">
|
|
|
|
|
|
+ <ws-form-item :label="deptBudgetList.goodsName!='大豆'?'容重(克/升)':'蛋白'" span="1" prop="bulkDensity">
|
|
<ws-input v-if='statusTypetext != "复检"'
|
|
<ws-input v-if='statusTypetext != "复检"'
|
|
- v-model="deptBudgetList.bulkDensity" type="number" @mousewheel.native.prevent placeholder="请输入容重"
|
|
|
|
|
|
+ v-model="deptBudgetList.bulkDensity" type="number" @mousewheel.native.prevent :placeholder="deptBudgetList.goodsName!='大豆'?'请输入容重':'请输入蛋白'"
|
|
maxlength="40" size="small" />
|
|
maxlength="40" size="small" />
|
|
<ws-input :disabled='disablednotarize' v-if='statusTypetext != "初检"'
|
|
<ws-input :disabled='disablednotarize' v-if='statusTypetext != "初检"'
|
|
- v-model="deptBudgetList.reBulkDensity" type="number" @mousewheel.native.prevent placeholder="请输入容重"
|
|
|
|
|
|
+ v-model="deptBudgetList.reBulkDensity" type="number" @mousewheel.native.prevent :placeholder="deptBudgetList.goodsName!='大豆'?'请输入容重':'请输入蛋白'"
|
|
maxlength="40" size="small" />
|
|
maxlength="40" size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
<!--霉变粒(%)<=-->
|
|
<!--霉变粒(%)<=-->
|
|
@@ -1801,11 +1801,20 @@ export default {
|
|
this.deptBudgetList.warehouseInOutDetail.reBulkDensity = this.deptBudgetList.reBulkDensity
|
|
this.deptBudgetList.warehouseInOutDetail.reBulkDensity = this.deptBudgetList.reBulkDensity
|
|
if (this.deptBudgetList.reBulkDensity) {
|
|
if (this.deptBudgetList.reBulkDensity) {
|
|
if (isNaN(this.deptBudgetList.reBulkDensity)) {
|
|
if (isNaN(this.deptBudgetList.reBulkDensity)) {
|
|
- this.$message({
|
|
|
|
- message: '复检容重(克/升)非数字!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
|
|
+
|
|
|
|
+ if(this.deptBudgetList.goodsName!='大豆'){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '复检容重(克/升)非数字!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }else{
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '复检蛋白非数字!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
(this.deptBudgetList.reBulkDensity &&
|
|
(this.deptBudgetList.reBulkDensity &&
|
|
@@ -1822,11 +1831,20 @@ export default {
|
|
this.deptBudgetList.reBulkDensity > 1000 ||
|
|
this.deptBudgetList.reBulkDensity > 1000 ||
|
|
this.deptBudgetList.reBulkDensity < 0
|
|
this.deptBudgetList.reBulkDensity < 0
|
|
) {
|
|
) {
|
|
- this.$message({
|
|
|
|
- message: '复检容重输入错误',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
|
|
+ if(this.deptBudgetList.goodsName!='大豆'){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '复检容重输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }else{
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '复检蛋白输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.$confirm('确定初检信息后,初检员不需要再次确认质检信息,是否确认提交', '提示', {
|
|
this.$confirm('确定初检信息后,初检员不需要再次确认质检信息,是否确认提交', '提示', {
|
|
@@ -2237,18 +2255,36 @@ export default {
|
|
this.deptBudgetList.warehouseInOutDetail.bulkDensity =
|
|
this.deptBudgetList.warehouseInOutDetail.bulkDensity =
|
|
this.deptBudgetList.bulkDensity
|
|
this.deptBudgetList.bulkDensity
|
|
if (!this.deptBudgetList.bulkDensity) {
|
|
if (!this.deptBudgetList.bulkDensity) {
|
|
- this.$message({
|
|
|
|
- message: '请输入容重!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
|
|
+ if(this.deptBudgetList.goodsName!='大豆'){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '请输入容重!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }else{
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '请输入蛋白!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
if (isNaN(this.deptBudgetList.bulkDensity)) {
|
|
if (isNaN(this.deptBudgetList.bulkDensity)) {
|
|
- this.$message({
|
|
|
|
|
|
+ if(this.deptBudgetList.goodsName!='大豆'){
|
|
|
|
+ this.$message({
|
|
message: '容重(克/升)非数字!',
|
|
message: '容重(克/升)非数字!',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
|
|
+ }else{
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '蛋白非数字!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
(this.deptBudgetList.bulkDensity &&
|
|
(this.deptBudgetList.bulkDensity &&
|
|
@@ -2259,11 +2295,20 @@ export default {
|
|
this.deptBudgetList.bulkDensity > 1000 ||
|
|
this.deptBudgetList.bulkDensity > 1000 ||
|
|
this.deptBudgetList.bulkDensity < 0
|
|
this.deptBudgetList.bulkDensity < 0
|
|
) {
|
|
) {
|
|
- this.$message({
|
|
|
|
|
|
+
|
|
|
|
+ if(this.deptBudgetList.goodsName!='大豆'){
|
|
|
|
+ this.$message({
|
|
message: '容重输入错误',
|
|
message: '容重输入错误',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
|
|
+ }else{
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '蛋白输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -2413,11 +2458,20 @@ export default {
|
|
this.deptBudgetList.warehouseInOutDetail.reBulkDensity = this.deptBudgetList.reBulkDensity
|
|
this.deptBudgetList.warehouseInOutDetail.reBulkDensity = this.deptBudgetList.reBulkDensity
|
|
if (this.deptBudgetList.reBulkDensity) {
|
|
if (this.deptBudgetList.reBulkDensity) {
|
|
if (isNaN(this.deptBudgetList.reBulkDensity)) {
|
|
if (isNaN(this.deptBudgetList.reBulkDensity)) {
|
|
- this.$message({
|
|
|
|
- message: '复检容重(克/升)非数字!',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
|
|
+
|
|
|
|
+ if(this.deptBudgetList.goodsName!='大豆'){
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '复检容重(克/升)非数字!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }else{
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '复检蛋白非数字!',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
(this.deptBudgetList.reBulkDensity &&
|
|
(this.deptBudgetList.reBulkDensity &&
|
|
@@ -2434,11 +2488,19 @@ export default {
|
|
this.deptBudgetList.reBulkDensity > 1000 ||
|
|
this.deptBudgetList.reBulkDensity > 1000 ||
|
|
this.deptBudgetList.reBulkDensity < 0
|
|
this.deptBudgetList.reBulkDensity < 0
|
|
) {
|
|
) {
|
|
|
|
+ if(this.deptBudgetList.goodsName!='大豆'){
|
|
this.$message({
|
|
this.$message({
|
|
message: '复检容重输入错误',
|
|
message: '复检容重输入错误',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
|
|
+ }else{
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '复检蛋白输入错误',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|