|
@@ -531,6 +531,10 @@
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
this.weighingList=response
|
|
|
+ this.weighingList.grossWeight=this.weighingList.grossWeight*1000
|
|
|
+ this.weighingList.tare=this.weighingList.tare*1000
|
|
|
+ this.weighingList.netWeight=this.weighingList.netWeight*1000
|
|
|
+ this.weighingList.buckleMiscellaneous=this.weighingList.buckleMiscellaneous*1000
|
|
|
this.weighingList.carNo=response.qualityInspectionManagement.carNumber
|
|
|
this.weighingList.boxNo=response.boxNo
|
|
|
this.weighingList.boxNoOther=response.boxNoOther
|
|
@@ -591,6 +595,7 @@
|
|
|
message: '删除成功!',
|
|
|
type: 'success',
|
|
|
})
|
|
|
+ this.id=''
|
|
|
this.weighingList= {
|
|
|
grossWeight: 0,
|
|
|
tare: 0,
|
|
@@ -679,30 +684,33 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- // if (!this.weighingList.tare) {
|
|
|
- // this.$message({
|
|
|
- // message: '皮重不能为空',
|
|
|
- // type: 'warning',
|
|
|
- // })
|
|
|
- // return
|
|
|
- // }
|
|
|
- // if (
|
|
|
- // isNaN(this.weighingList.tare) ||
|
|
|
- // (String(this.weighingList.tare).indexOf('.') != -1 &&
|
|
|
- // String(this.weighingList.tare).length -
|
|
|
- // (String(this.weighingList.tare).indexOf('.') + 1) >
|
|
|
- // 1) ||
|
|
|
- // this.weighingList.tare < 1 ||
|
|
|
- // this.weighingList.tare > 100000
|
|
|
- // ) {
|
|
|
- // this.$message({
|
|
|
- // message: '皮重输入错误!',
|
|
|
- // type: 'warning',
|
|
|
- // })
|
|
|
- // return
|
|
|
- // }
|
|
|
+
|
|
|
+ }
|
|
|
+ if(this.tpyeNo==1){
|
|
|
+ if (!this.weighingList.tare) {
|
|
|
+ this.$message({
|
|
|
+ message: '皮重不能为空',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (
|
|
|
+ isNaN(this.weighingList.tare) ||
|
|
|
+ (String(this.weighingList.tare).indexOf('.') != -1 &&
|
|
|
+ String(this.weighingList.tare).length -
|
|
|
+ (String(this.weighingList.tare).indexOf('.') + 1) >
|
|
|
+ 1) ||
|
|
|
+ this.weighingList.tare < 1 ||
|
|
|
+ this.weighingList.tare > 100000
|
|
|
+ ) {
|
|
|
+ this.$message({
|
|
|
+ message: '皮重输入错误!',
|
|
|
+ type: 'warning',
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
- if (this.types == 1) {
|
|
|
+ if (this.types == 2) {
|
|
|
if (!this.weighingList.grossWeight) {
|
|
|
this.$message({
|
|
|
message: '毛重不能为空',
|
|
@@ -770,12 +778,13 @@
|
|
|
message: '提交成功',
|
|
|
})
|
|
|
this.getList()
|
|
|
+ this.weighingList=response
|
|
|
this.warehouseCount+=1
|
|
|
this.weighingList.grossWeight=this.weighingList.grossWeight*1000
|
|
|
this.weighingList.tare=this.weighingList.tare*1000
|
|
|
this.weighingList.netWeight=this.weighingList.netWeight*1000
|
|
|
this.weighingList.buckleMiscellaneous=this.weighingList.buckleMiscellaneous*1000
|
|
|
- this.inspect=JSON.parse(JSON.stringify(response))
|
|
|
+ this.inspect=JSON.parse(JSON.stringify(this.weighingLis))
|
|
|
this.isShowPrint=true
|
|
|
this.weighingList= {
|
|
|
grossWeight: 0,
|
|
@@ -822,12 +831,13 @@
|
|
|
getweighing({id:response})
|
|
|
.toPromise()
|
|
|
.then((response) => {
|
|
|
+ this.weighingList=response
|
|
|
this.warehouseCount+=1
|
|
|
this.weighingList.grossWeight=this.weighingList.grossWeight*1000
|
|
|
this.weighingList.tare=this.weighingList.tare*1000
|
|
|
this.weighingList.netWeight=this.weighingList.netWeight*1000
|
|
|
this.weighingList.buckleMiscellaneous=this.weighingList.buckleMiscellaneous*1000
|
|
|
- this.inspect=JSON.parse(JSON.stringify(response))
|
|
|
+ this.inspect=JSON.parse(JSON.stringify(this.weighingList))
|
|
|
this.isShowPrint=true
|
|
|
|
|
|
})
|
|
@@ -1015,6 +1025,31 @@
|
|
|
}
|
|
|
}
|
|
|
this.getList()
|
|
|
+ this.weighingList= {
|
|
|
+ grossWeight: 0,
|
|
|
+ selfLoading:0,
|
|
|
+ tare: 0,
|
|
|
+ tips:'',
|
|
|
+ // contractNo:'',
|
|
|
+ // inOutTaskNo:'',
|
|
|
+ buckleMiscellaneous: 0,
|
|
|
+ netWeight: 0,
|
|
|
+ receivableWeighingFee: '',
|
|
|
+ warehouseInOutDetail: {
|
|
|
+ grade:'',
|
|
|
+ imperfectGrain:'',
|
|
|
+ impurity:'',
|
|
|
+ jiaorenli:'',
|
|
|
+ bulkDensity:'',
|
|
|
+ mildewGrain:'',
|
|
|
+ },
|
|
|
+ qualityInspectionManagement: {
|
|
|
+ boxNo: "暂无",
|
|
|
+ boxNoOther: "暂无",
|
|
|
+ titleNo: "暂无",
|
|
|
+ titleNoOther: "暂无",
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
async openPort(){
|
|
|
console.log('openPort', navigator)
|