|
@@ -26,12 +26,12 @@
|
|
|
<div class="basicInformation">
|
|
|
<h2>
|
|
|
<img
|
|
|
- style="position: relative; top: 2px"
|
|
|
- width="19"
|
|
|
- height="19"
|
|
|
- src="../../../public/img/cangku.png"
|
|
|
- alt=""
|
|
|
- />
|
|
|
+ style="position: relative; top: 2px"
|
|
|
+ width="19"
|
|
|
+ height="19"
|
|
|
+ src="../../../public/img/cangku.png"
|
|
|
+ alt=""
|
|
|
+ />
|
|
|
{{ deptBudgetList.warehouseName }}库
|
|
|
<span class="position"> {{ deptBudgetList.binNumber }}仓位 </span>
|
|
|
</h2>
|
|
@@ -186,7 +186,7 @@
|
|
|
<ws-input
|
|
|
v-model="deptBudgetList.warehouseInOutDetail.qualityInspector"
|
|
|
placeholder="请输入质检员姓名"
|
|
|
- maxlength="120"
|
|
|
+ maxlength="10"
|
|
|
size="small"
|
|
|
/>
|
|
|
</ws-form-item>
|
|
@@ -199,7 +199,7 @@
|
|
|
<ws-input
|
|
|
v-model="deptBudgetList.warehouseInOutDetail.waterContent"
|
|
|
placeholder="请输入水分占比"
|
|
|
- maxlength="120"
|
|
|
+ maxlength="40"
|
|
|
size="small"
|
|
|
/>
|
|
|
</ws-form-item>
|
|
@@ -208,7 +208,7 @@
|
|
|
<ws-input
|
|
|
v-model="deptBudgetList.warehouseInOutDetail.impurity"
|
|
|
placeholder="请输入杂质占比"
|
|
|
- maxlength="120"
|
|
|
+ maxlength="40"
|
|
|
size="small"
|
|
|
/>
|
|
|
</ws-form-item>
|
|
@@ -217,7 +217,7 @@
|
|
|
<ws-input
|
|
|
v-model="deptBudgetList.warehouseInOutDetail.bulkDensity"
|
|
|
placeholder="请输入容重"
|
|
|
- maxlength="120"
|
|
|
+ maxlength="40"
|
|
|
size="small"
|
|
|
/>
|
|
|
</ws-form-item>
|
|
@@ -226,7 +226,7 @@
|
|
|
<ws-input
|
|
|
v-model="deptBudgetList.warehouseInOutDetail.mildewGrain"
|
|
|
placeholder="请输入霉变粒占比"
|
|
|
- maxlength="120"
|
|
|
+ maxlength="40"
|
|
|
size="small"
|
|
|
/>
|
|
|
</ws-form-item>
|
|
@@ -235,7 +235,7 @@
|
|
|
<ws-input
|
|
|
v-model="deptBudgetList.warehouseInOutDetail.jiaorenli"
|
|
|
placeholder="请输入热损伤占比"
|
|
|
- maxlength="120"
|
|
|
+ maxlength="40"
|
|
|
size="small"
|
|
|
/>
|
|
|
</ws-form-item>
|
|
@@ -244,7 +244,7 @@
|
|
|
<ws-input
|
|
|
v-model="deptBudgetList.warehouseInOutDetail.imperfectGrain"
|
|
|
placeholder="请输入不完整粒占比"
|
|
|
- maxlength="120"
|
|
|
+ maxlength="40"
|
|
|
size="small"
|
|
|
/>
|
|
|
</ws-form-item>
|
|
@@ -388,8 +388,8 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if(!this.deptBudgetList.grossWeight){
|
|
|
- this.$message({
|
|
|
+ if (!this.deptBudgetList.grossWeight) {
|
|
|
+ this.$message({
|
|
|
message: '毛重不能为空',
|
|
|
type: 'warning',
|
|
|
})
|
|
@@ -409,8 +409,8 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if(!this.deptBudgetList.tare){
|
|
|
- this.$message({
|
|
|
+ if (!this.deptBudgetList.tare) {
|
|
|
+ this.$message({
|
|
|
message: '皮重不能为空',
|
|
|
type: 'warning',
|
|
|
})
|
|
@@ -430,8 +430,8 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if(!this.deptBudgetList.agent){
|
|
|
- this.$message({
|
|
|
+ if (!this.deptBudgetList.agent) {
|
|
|
+ this.$message({
|
|
|
message: '经办人不能为空',
|
|
|
type: 'warning',
|
|
|
})
|
|
@@ -447,8 +447,8 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if(!this.deptBudgetList.carNo){
|
|
|
- this.$message({
|
|
|
+ if (!this.deptBudgetList.carNo) {
|
|
|
+ this.$message({
|
|
|
message: '车牌号不能为空',
|
|
|
type: 'warning',
|
|
|
})
|
|
@@ -461,8 +461,8 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if(!this.deptBudgetList.contractNo){
|
|
|
- this.$message({
|
|
|
+ if (!this.deptBudgetList.contractNo) {
|
|
|
+ this.$message({
|
|
|
message: '合同编号不能为空',
|
|
|
type: 'warning',
|
|
|
})
|
|
@@ -479,15 +479,206 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- if(this.deptBudgetList.netWeight > this.$route.query.capacity){
|
|
|
+ if (this.deptBudgetList.netWeight > this.$route.query.capacity) {
|
|
|
this.$message({
|
|
|
message: '入库量大于该仓库容量!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- this.$confirm(`确定提交入库信息`, {
|
|
|
+ //自检员
|
|
|
+ if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
|
|
|
+ 2 ||
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '质检员姓名长度错误!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
|
|
|
+ if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
|
|
|
+ this.$message({
|
|
|
+ message: '水分(%)非数字!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
|
|
|
+ (String(
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.waterContent
|
|
|
+ ).indexOf('.') != -1 &&
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.waterContent)
|
|
|
+ .length -
|
|
|
+ (String(
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.waterContent
|
|
|
+ ).indexOf('.') +
|
|
|
+ 1) >
|
|
|
+ 2)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //杂质
|
|
|
+ if (this.deptBudgetList.warehouseInOutDetail.impurity) {
|
|
|
+ if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
|
|
|
+ this.$message({
|
|
|
+ message: '杂质(%)非数字!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
|
|
|
+ (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
|
|
|
+ '.'
|
|
|
+ ) != -1 &&
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
|
|
|
+ (String(
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.impurity
|
|
|
+ ).indexOf('.') +
|
|
|
+ 1) >
|
|
|
+ 2)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //霉变
|
|
|
+ if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
|
|
|
+ if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
|
|
|
+ this.$message({
|
|
|
+ message: '霉变粒(%)非数字!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
|
|
|
+ (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
|
|
|
+ '.'
|
|
|
+ ) != -1 &&
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).length -
|
|
|
+ (String(
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.mildewGrain
|
|
|
+ ).indexOf('.') +
|
|
|
+ 1) >
|
|
|
+ 2)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //热损伤
|
|
|
+ if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
|
|
|
+ if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
|
|
|
+ this.$message({
|
|
|
+ message: '热损伤(%)非数字!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
|
|
|
+ (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
|
|
|
+ '.'
|
|
|
+ ) != -1 &&
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
|
|
|
+ (String(
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.jiaorenli
|
|
|
+ ).indexOf('.') +
|
|
|
+ 1) >
|
|
|
+ 2)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //不完整粒(%)
|
|
|
+ if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
|
|
|
+ if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
|
|
|
+ this.$message({
|
|
|
+ message: '不完整粒(%)非数字!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
|
|
|
+ (String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain).indexOf(
|
|
|
+ '.'
|
|
|
+ ) != -1 &&
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain).length -
|
|
|
+ (String(
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.imperfectGrain
|
|
|
+ ).indexOf('.') +
|
|
|
+ 1) >
|
|
|
+ 2)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '不完整粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //容重
|
|
|
+ if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
|
|
|
+ if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
|
|
|
+ this.$message({
|
|
|
+ message: '容重(克/升)非数字!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.bulkDensity < 1 ||
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.bulkDensity > 40 ||
|
|
|
+ (String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).indexOf(
|
|
|
+ '.'
|
|
|
+ ) != -1 &&
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).length -
|
|
|
+ (String(
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.bulkDensity
|
|
|
+ ).indexOf('.') +
|
|
|
+ 1) >
|
|
|
+ 0)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '容重(克/升)输入错误! 取值范围1-40之间且是整数',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$confirm(`确定提交入库信息`, {
|
|
|
cancelButtonText: '取消',
|
|
|
confirmButtonText: '确定',
|
|
|
type: 'warning',
|
|
@@ -515,17 +706,19 @@ export default {
|
|
|
.catch(() => {
|
|
|
return false
|
|
|
})
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
temporaryStorage() {
|
|
|
- if (!this.deptBudgetList.goodsName) {
|
|
|
+ if (!this.deptBudgetList.goodsName) {
|
|
|
this.$message({
|
|
|
message: '货名不能为空',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if(!this.deptBudgetList.grossWeight){
|
|
|
- this.$message({
|
|
|
+ if (!this.deptBudgetList.grossWeight) {
|
|
|
+ this.$message({
|
|
|
message: '毛重不能为空',
|
|
|
type: 'warning',
|
|
|
})
|
|
@@ -545,8 +738,8 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if(!this.deptBudgetList.tare){
|
|
|
- this.$message({
|
|
|
+ if (!this.deptBudgetList.tare) {
|
|
|
+ this.$message({
|
|
|
message: '皮重不能为空',
|
|
|
type: 'warning',
|
|
|
})
|
|
@@ -566,8 +759,8 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if(!this.deptBudgetList.agent){
|
|
|
- this.$message({
|
|
|
+ if (!this.deptBudgetList.agent) {
|
|
|
+ this.$message({
|
|
|
message: '经办人不能为空',
|
|
|
type: 'warning',
|
|
|
})
|
|
@@ -583,8 +776,8 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if(!this.deptBudgetList.carNo){
|
|
|
- this.$message({
|
|
|
+ if (!this.deptBudgetList.carNo) {
|
|
|
+ this.$message({
|
|
|
message: '车牌号不能为空',
|
|
|
type: 'warning',
|
|
|
})
|
|
@@ -597,8 +790,8 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if(!this.deptBudgetList.contractNo){
|
|
|
- this.$message({
|
|
|
+ if (!this.deptBudgetList.contractNo) {
|
|
|
+ this.$message({
|
|
|
message: '合同编号不能为空',
|
|
|
type: 'warning',
|
|
|
})
|
|
@@ -614,13 +807,204 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if(this.deptBudgetList.netWeight > this.$route.query.capacity){
|
|
|
+ if (this.deptBudgetList.netWeight > this.$route.query.capacity) {
|
|
|
this.$message({
|
|
|
message: '入库量大于该仓库容量!',
|
|
|
type: 'warning',
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
+ //自检员
|
|
|
+ if (this.deptBudgetList.warehouseInOutDetail.qualityInspector) {
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.qualityInspector.length <
|
|
|
+ 2 ||
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.qualityInspector.length > 10
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '质检员姓名长度错误!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.deptBudgetList.warehouseInOutDetail.waterContent) {
|
|
|
+ if (isNaN(this.deptBudgetList.warehouseInOutDetail.waterContent)) {
|
|
|
+ this.$message({
|
|
|
+ message: '水分(%)非数字!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.waterContent < 1 ||
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.waterContent > 40 ||
|
|
|
+ (String(
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.waterContent
|
|
|
+ ).indexOf('.') != -1 &&
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.waterContent)
|
|
|
+ .length -
|
|
|
+ (String(
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.waterContent
|
|
|
+ ).indexOf('.') +
|
|
|
+ 1) >
|
|
|
+ 2)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //杂质
|
|
|
+ if (this.deptBudgetList.warehouseInOutDetail.impurity) {
|
|
|
+ if (isNaN(this.deptBudgetList.warehouseInOutDetail.impurity)) {
|
|
|
+ this.$message({
|
|
|
+ message: '杂质(%)非数字!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.impurity < 1 ||
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.impurity > 40 ||
|
|
|
+ (String(this.deptBudgetList.warehouseInOutDetail.impurity).indexOf(
|
|
|
+ '.'
|
|
|
+ ) != -1 &&
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.impurity).length -
|
|
|
+ (String(
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.impurity
|
|
|
+ ).indexOf('.') +
|
|
|
+ 1) >
|
|
|
+ 2)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //霉变
|
|
|
+ if (this.deptBudgetList.warehouseInOutDetail.mildewGrain) {
|
|
|
+ if (isNaN(this.deptBudgetList.warehouseInOutDetail.mildewGrain)) {
|
|
|
+ this.$message({
|
|
|
+ message: '霉变粒(%)非数字!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.mildewGrain < 1 ||
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.mildewGrain > 40 ||
|
|
|
+ (String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).indexOf(
|
|
|
+ '.'
|
|
|
+ ) != -1 &&
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.mildewGrain).length -
|
|
|
+ (String(
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.mildewGrain
|
|
|
+ ).indexOf('.') +
|
|
|
+ 1) >
|
|
|
+ 2)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //热损伤
|
|
|
+ if (this.deptBudgetList.warehouseInOutDetail.jiaorenli) {
|
|
|
+ if (isNaN(this.deptBudgetList.warehouseInOutDetail.jiaorenli)) {
|
|
|
+ this.$message({
|
|
|
+ message: '热损伤(%)非数字!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.jiaorenli < 1 ||
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.jiaorenli > 40 ||
|
|
|
+ (String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).indexOf(
|
|
|
+ '.'
|
|
|
+ ) != -1 &&
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.jiaorenli).length -
|
|
|
+ (String(
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.jiaorenli
|
|
|
+ ).indexOf('.') +
|
|
|
+ 1) >
|
|
|
+ 2)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //不完整粒(%)
|
|
|
+ if (this.deptBudgetList.warehouseInOutDetail.imperfectGrain) {
|
|
|
+ if (isNaN(this.deptBudgetList.warehouseInOutDetail.imperfectGrain)) {
|
|
|
+ this.$message({
|
|
|
+ message: '不完整粒(%)非数字!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.imperfectGrain < 1 ||
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.imperfectGrain > 40 ||
|
|
|
+ (String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain).indexOf(
|
|
|
+ '.'
|
|
|
+ ) != -1 &&
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.imperfectGrain).length -
|
|
|
+ (String(
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.imperfectGrain
|
|
|
+ ).indexOf('.') +
|
|
|
+ 1) >
|
|
|
+ 2)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '不完整粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //容重
|
|
|
+ if (this.deptBudgetList.warehouseInOutDetail.bulkDensity) {
|
|
|
+ if (isNaN(this.deptBudgetList.warehouseInOutDetail.bulkDensity)) {
|
|
|
+ this.$message({
|
|
|
+ message: '容重(克/升)非数字!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.bulkDensity < 1 ||
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.bulkDensity > 40 ||
|
|
|
+ (String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).indexOf(
|
|
|
+ '.'
|
|
|
+ ) != -1 &&
|
|
|
+ String(this.deptBudgetList.warehouseInOutDetail.bulkDensity).length -
|
|
|
+ (String(
|
|
|
+ this.deptBudgetList.warehouseInOutDetail.bulkDensity
|
|
|
+ ).indexOf('.') +
|
|
|
+ 1) >
|
|
|
+ 0)
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '容重(克/升)输入错误! 取值范围1-40之间且是整数',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
this.$confirm(`暂存后可在待完成页面查看,确定暂存`, {
|
|
|
cancelButtonText: '取消',
|
|
|
confirmButtonText: '确定',
|
|
@@ -839,14 +1223,14 @@ export default {
|
|
|
}
|
|
|
//仓位
|
|
|
|
|
|
-.position{
|
|
|
-background: #AFB5CB;
|
|
|
-border-radius: 2px;
|
|
|
-font-size: 12px;
|
|
|
-color: #FFFFFF;
|
|
|
-line-height: 20px;
|
|
|
-display: inline-grid;
|
|
|
-padding: 2px 4px;
|
|
|
+.position {
|
|
|
+ background: #afb5cb;
|
|
|
+ border-radius: 2px;
|
|
|
+ font-size: 12px;
|
|
|
+ color: #ffffff;
|
|
|
+ line-height: 20px;
|
|
|
+ display: inline-grid;
|
|
|
+ padding: 2px 4px;
|
|
|
}
|
|
|
// .position {
|
|
|
// width: 52px;
|
|
@@ -902,7 +1286,7 @@ padding: 2px 4px;
|
|
|
background-color: #f6f7fc;
|
|
|
}
|
|
|
|
|
|
-/deep/.neifor .el-input--small .el-input__inner{
|
|
|
+/deep/.neifor .el-input--small .el-input__inner {
|
|
|
width: 100%;
|
|
|
}
|
|
|
</style>
|