|
@@ -27,7 +27,7 @@
|
|
|
</div>
|
|
|
<div class="confirmInfo">
|
|
|
<div class="car-type">车牌号</div>
|
|
|
- <div class="car-no">{{ weighingList.carNumber }}</div>
|
|
|
+ <div class="car-no">{{ weighingList.carNo }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="bg-left titleup">
|
|
@@ -181,12 +181,16 @@ export default {
|
|
|
taskNolist: [],
|
|
|
deliveryList: [],
|
|
|
warehouseType: 1,
|
|
|
- weighingList: {},
|
|
|
+ weighingList: {
|
|
|
+ grossWeight: '',
|
|
|
+ tare: '',
|
|
|
+ netWeight: 0
|
|
|
+ },
|
|
|
deptBudgetList: {},
|
|
|
warehouseList: [],
|
|
|
goodsNameList: [],
|
|
|
carList: [],
|
|
|
- index: '',
|
|
|
+ index: 1,
|
|
|
monitorUrl1: '',
|
|
|
monitorUrl2: '',
|
|
|
deptBudgetTotal: 0,
|
|
@@ -241,10 +245,10 @@ export default {
|
|
|
for (let i = 0; i < this.carList.length; i++) {
|
|
|
if (e == this.carList[i].id) {
|
|
|
this.weighingList.carNo = this.carList[i].carNo
|
|
|
- this.weighingList.tare = this.carList[i].tare
|
|
|
- if (this.weighingList.grossWeight) {
|
|
|
- this.weighingList.netWeight = this.weighingList.grossWeight - this.weighingList.tare
|
|
|
- }
|
|
|
+ // this.weighingList.tare = this.carList[i].tare
|
|
|
+ // if (this.weighingList.grossWeight) {
|
|
|
+ // this.weighingList.netWeight = this.weighingList.grossWeight - this.weighingList.tare
|
|
|
+ // }
|
|
|
break
|
|
|
}
|
|
|
}
|
|
@@ -276,12 +280,16 @@ export default {
|
|
|
this.getList()
|
|
|
},
|
|
|
setVal(data) {
|
|
|
+ debugger
|
|
|
+ data = 1000
|
|
|
if (this.information == '毛重') {
|
|
|
this.weighingList.grossWeight = data
|
|
|
this.weighingList.netWeight =
|
|
|
Number(this.weighingList.grossWeight) - Number(this.weighingList.tare)
|
|
|
} else {
|
|
|
this.weighingList.tare = data
|
|
|
+ this.weighingList.netWeight =
|
|
|
+ Number(this.weighingList.grossWeight) - Number(this.weighingList.tare)
|
|
|
}
|
|
|
},
|
|
|
openPort() {
|
|
@@ -310,14 +318,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
submit() {
|
|
|
- var allow = hasPermission('warehouseManagement.warehouse.warehouseInfo.hong')
|
|
|
- if (!allow) {// 提交为外勤权限,错误提示“暂未获得权限”
|
|
|
- this.$message({
|
|
|
- message: '暂未获得权限,不可保存检斤信息!',
|
|
|
- type: 'warning',
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
+ // var allow = hasPermission('warehouseManagement.warehouse.warehouseInfo.hong')
|
|
|
+ // if (!allow) {// 提交为外勤权限,错误提示“暂未获得权限”
|
|
|
+ // this.$message({
|
|
|
+ // message: '暂未获得权限,不可保存检斤信息!',
|
|
|
+ // type: 'warning',
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
this.weighingList.compId = localStorage.getItem('ws-pf_compId')
|
|
|
this.weighingList.weigher = localStorage.getItem('ws-pf_staffName')
|
|
|
this.weighingList.warehouseName = this.warehouseName
|