|
@@ -184,13 +184,15 @@
|
|
dataList.outType == '汽运' ||
|
|
dataList.outType == '汽运' ||
|
|
dataList.outType == '集装箱船'
|
|
dataList.outType == '集装箱船'
|
|
">
|
|
">
|
|
- <ws-input v-if="!carstatus" v-model="dataList.carNo" placeholder="请输入车牌号" maxlength="7" size="small" />
|
|
|
|
- <el-select v-if="carstatus" filterable clearable :filter-method="dataFilter2" v-model="dataList.carNo"
|
|
|
|
- placeholder="请选择车牌号" class="typeselect" @change="carChange">
|
|
|
|
- <el-option v-for="item in options2" :key="item.constKey"
|
|
|
|
- :label="item.carNo + '(' + item.tranCarNo + ')'" :value="item.carNo" />
|
|
|
|
|
|
+ <ws-input v-if="!carstatus || carjudge" v-model="dataList.carNo" placeholder="请输入车牌号" maxlength="7" size="small" />
|
|
|
|
+ <el-select v-else filterable clearable :filter-method="dataFilter2" v-model="dataList.carNo" placeholder="请选择车牌号" class="typeselect" @change="carChange">
|
|
|
|
+ <el-option v-for="item in options2" :key="item.constKey" :label="item.carNo + '(' + item.tranCarNo + ')'" :value="item.carNo" />
|
|
</el-select>
|
|
</el-select>
|
|
- <span style='padding-left:10px;'>发货重量(吨):{{dataList.loadNetWeight}}</span>
|
|
|
|
|
|
+ <!-- <span style='padding-left:10px;'>发货重量(吨):{{dataList.loadNetWeight}}</span> -->
|
|
|
|
+ <el-button type="primary" @click="carNoTypeChange" v-if="carstatus">{{carChange1}}</el-button>
|
|
|
|
+ </ws-form-item>
|
|
|
|
+ <ws-form-item label="发货重量(吨):" span="1" prop="loadNetWeight">
|
|
|
|
+ <ws-input v-model="dataList.loadNetWeight" placeholder="暂无获取到发货重量" maxlength="10" disabled size="small" />
|
|
</ws-form-item>
|
|
</ws-form-item>
|
|
|
|
|
|
<ws-form-item label="车号" span="1" prop="carNo" v-if="dataList.outType == '火运'">
|
|
<ws-form-item label="车号" span="1" prop="carNo" v-if="dataList.outType == '火运'">
|
|
@@ -458,6 +460,7 @@
|
|
inOutDate: '',
|
|
inOutDate: '',
|
|
inOutType: '',
|
|
inOutType: '',
|
|
goodsName: '',
|
|
goodsName: '',
|
|
|
|
+ selfLoading:"0",
|
|
warehouseInOutDetail: {
|
|
warehouseInOutDetail: {
|
|
qualityInspector: '',
|
|
qualityInspector: '',
|
|
},
|
|
},
|
|
@@ -484,6 +487,8 @@
|
|
allowEdit: true,
|
|
allowEdit: true,
|
|
result1: '00',
|
|
result1: '00',
|
|
grossWeight:"",//显示的毛重
|
|
grossWeight:"",//显示的毛重
|
|
|
|
+ carChange1:"手动填写",
|
|
|
|
+ carjudge:false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {},
|
|
mounted() {},
|
|
@@ -523,6 +528,7 @@
|
|
this.dataList.inOutTypeKey = Number(this.$route.query.inOutTypeKey)
|
|
this.dataList.inOutTypeKey = Number(this.$route.query.inOutTypeKey)
|
|
this.dataList.statusFlag = this.$route.statusFlag
|
|
this.dataList.statusFlag = this.$route.statusFlag
|
|
this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
|
|
this.dataList.warehouseInOutDetail = this.$route.query.warehouseInOutDetail
|
|
|
|
+ this.dataList.selfLoading = this.$route.query.selfLoading//
|
|
console.log(this.dataList)
|
|
console.log(this.dataList)
|
|
if (this.$route.query.automaticWeightAcquisition == '1') {
|
|
if (this.$route.query.automaticWeightAcquisition == '1') {
|
|
this.isShowBalance = true
|
|
this.isShowBalance = true
|
|
@@ -530,6 +536,17 @@
|
|
this.getList()
|
|
this.getList()
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ //切换车牌号输入状态
|
|
|
|
+ carNoTypeChange(){
|
|
|
|
+ this.carjudge = !this.carjudge
|
|
|
|
+ if(!this.carjudge){
|
|
|
|
+ this.dataList.selfLoading = "0"
|
|
|
|
+ this.carChange1="手动填写"
|
|
|
|
+ }else{
|
|
|
|
+ this.dataList.selfLoading = "1"
|
|
|
|
+ this.carChange1="识别下拉"
|
|
|
|
+ }
|
|
|
|
+ },
|
|
setVal(data) {
|
|
setVal(data) {
|
|
if (this.information == '毛重检斤') {
|
|
if (this.information == '毛重检斤') {
|
|
this.dataList.grossWeight = data
|
|
this.dataList.grossWeight = data
|
|
@@ -724,7 +741,6 @@
|
|
typeChange(e) {},
|
|
typeChange(e) {},
|
|
//提交按钮
|
|
//提交按钮
|
|
submit() {
|
|
submit() {
|
|
-
|
|
|
|
if (this.reader) {
|
|
if (this.reader) {
|
|
this.reader.cancel()
|
|
this.reader.cancel()
|
|
}
|
|
}
|
|
@@ -963,7 +979,7 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- this.dataList.warehouseInOutDetail.waterContent < 1 ||
|
|
|
|
|
|
+ this.dataList.warehouseInOutDetail.waterContent < 0 ||
|
|
this.dataList.warehouseInOutDetail.waterContent > 40 ||
|
|
this.dataList.warehouseInOutDetail.waterContent > 40 ||
|
|
(String(this.dataList.warehouseInOutDetail.waterContent).indexOf(
|
|
(String(this.dataList.warehouseInOutDetail.waterContent).indexOf(
|
|
'.'
|
|
'.'
|
|
@@ -976,7 +992,7 @@
|
|
2)
|
|
2)
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '水分(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
|
|
|
+ message: '水分(%)输入错误! 取值范围0-40之间且可以保留2小数',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
@@ -993,7 +1009,7 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- this.dataList.warehouseInOutDetail.impurity < 1 ||
|
|
|
|
|
|
+ this.dataList.warehouseInOutDetail.impurity < 0 ||
|
|
this.dataList.warehouseInOutDetail.impurity > 40 ||
|
|
this.dataList.warehouseInOutDetail.impurity > 40 ||
|
|
(String(this.dataList.warehouseInOutDetail.impurity).indexOf('.') !=
|
|
(String(this.dataList.warehouseInOutDetail.impurity).indexOf('.') !=
|
|
-1 &&
|
|
-1 &&
|
|
@@ -1005,7 +1021,7 @@
|
|
2)
|
|
2)
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '杂质(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
|
|
|
+ message: '杂质(%)输入错误! 取值范围0-40之间且可以保留2小数',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
@@ -1021,7 +1037,7 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- this.dataList.warehouseInOutDetail.mildewGrain < 1 ||
|
|
|
|
|
|
+ this.dataList.warehouseInOutDetail.mildewGrain < 0 ||
|
|
this.dataList.warehouseInOutDetail.mildewGrain > 40 ||
|
|
this.dataList.warehouseInOutDetail.mildewGrain > 40 ||
|
|
(String(this.dataList.warehouseInOutDetail.mildewGrain).indexOf(
|
|
(String(this.dataList.warehouseInOutDetail.mildewGrain).indexOf(
|
|
'.'
|
|
'.'
|
|
@@ -1034,7 +1050,7 @@
|
|
2)
|
|
2)
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '霉变粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
|
|
|
+ message: '霉变粒(%)输入错误! 取值范围0-40之间且可以保留2小数',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
@@ -1051,7 +1067,7 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- this.dataList.warehouseInOutDetail.jiaorenli < 1 ||
|
|
|
|
|
|
+ this.dataList.warehouseInOutDetail.jiaorenli < 0 ||
|
|
this.dataList.warehouseInOutDetail.jiaorenli > 40 ||
|
|
this.dataList.warehouseInOutDetail.jiaorenli > 40 ||
|
|
(String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf('.') !=
|
|
(String(this.dataList.warehouseInOutDetail.jiaorenli).indexOf('.') !=
|
|
-1 &&
|
|
-1 &&
|
|
@@ -1063,7 +1079,7 @@
|
|
2)
|
|
2)
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '热损伤(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
|
|
|
+ message: '热损伤(%)输入错误! 取值范围0-40之间且可以保留2小数',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
@@ -1080,7 +1096,7 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if (
|
|
if (
|
|
- this.dataList.warehouseInOutDetail.imperfectGrain < 1 ||
|
|
|
|
|
|
+ this.dataList.warehouseInOutDetail.imperfectGrain < 0 ||
|
|
this.dataList.warehouseInOutDetail.imperfectGrain > 40 ||
|
|
this.dataList.warehouseInOutDetail.imperfectGrain > 40 ||
|
|
(String(this.dataList.warehouseInOutDetail.imperfectGrain).indexOf(
|
|
(String(this.dataList.warehouseInOutDetail.imperfectGrain).indexOf(
|
|
'.'
|
|
'.'
|
|
@@ -1093,7 +1109,7 @@
|
|
2)
|
|
2)
|
|
) {
|
|
) {
|
|
this.$message({
|
|
this.$message({
|
|
- message: '不完善粒(%)输入错误! 取值范围1-40之间且可以保留2小数',
|
|
|
|
|
|
+ message: '不完善粒(%)输入错误! 取值范围0-40之间且可以保留2小数',
|
|
type: 'warning',
|
|
type: 'warning',
|
|
})
|
|
})
|
|
return
|
|
return
|
|
@@ -1129,6 +1145,9 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if(!this.carstatus){//若自运的合同该字段置空
|
|
|
|
+ this.deptBudgetList.selfLoading = ""
|
|
|
|
+ }
|
|
this.$confirm(`确定提交毛重检斤`, {
|
|
this.$confirm(`确定提交毛重检斤`, {
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|