|
@@ -115,6 +115,7 @@
|
|
</ws-info-table>
|
|
</ws-info-table>
|
|
<div class="but">
|
|
<div class="but">
|
|
<el-button @click="submit" type="primary">提交</el-button>
|
|
<el-button @click="submit" type="primary">提交</el-button>
|
|
|
|
+ <el-button @click="canel" type="primary">清空</el-button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -241,6 +242,9 @@ export default {
|
|
if (e == this.carList[i].id) {
|
|
if (e == this.carList[i].id) {
|
|
this.weighingList.carNo = this.carList[i].carNo
|
|
this.weighingList.carNo = this.carList[i].carNo
|
|
this.weighingList.tare = this.carList[i].tare
|
|
this.weighingList.tare = this.carList[i].tare
|
|
|
|
+ if (this.weighingList.grossWeight) {
|
|
|
|
+ this.weighingList.netWeight = this.weighingList.grossWeight - this.weighingList.tare
|
|
|
|
+ }
|
|
break
|
|
break
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -295,7 +299,16 @@ export default {
|
|
path: 'addCar',
|
|
path: 'addCar',
|
|
})
|
|
})
|
|
},
|
|
},
|
|
-
|
|
|
|
|
|
+ canel() {
|
|
|
|
+ if (this.tpyeNo == '1') {
|
|
|
|
+ this.weighingList.tare = ''
|
|
|
|
+ } else {
|
|
|
|
+ this.weighingList.carNo = ''
|
|
|
|
+ this.weighingList.grossWeight = ''
|
|
|
|
+ this.weighingList.tare = ''
|
|
|
|
+ this.weighingList.netWeight = ''
|
|
|
|
+ }
|
|
|
|
+ },
|
|
submit() {
|
|
submit() {
|
|
var allow = hasPermission('warehouseManagement.warehouse.warehouseInfo.hong')
|
|
var allow = hasPermission('warehouseManagement.warehouse.warehouseInfo.hong')
|
|
if (!allow) {// 提交为外勤权限,错误提示“暂未获得权限”
|
|
if (!allow) {// 提交为外勤权限,错误提示“暂未获得权限”
|
|
@@ -308,6 +321,8 @@ export default {
|
|
this.weighingList.compId = localStorage.getItem('ws-pf_compId')
|
|
this.weighingList.compId = localStorage.getItem('ws-pf_compId')
|
|
this.weighingList.weigher = localStorage.getItem('ws-pf_staffName')
|
|
this.weighingList.weigher = localStorage.getItem('ws-pf_staffName')
|
|
this.weighingList.warehouseName = this.warehouseName
|
|
this.weighingList.warehouseName = this.warehouseName
|
|
|
|
+ this.weighingList.baseId = this.warehouseId
|
|
|
|
+ this.weighingList.warehouseNo = this.weighingList.warehouseNo
|
|
if (this.tpyeNo == 2) {
|
|
if (this.tpyeNo == 2) {
|
|
this.weighingList.statusFlag = 1
|
|
this.weighingList.statusFlag = 1
|
|
if (!this.weighingList.goodsName) {
|
|
if (!this.weighingList.goodsName) {
|
|
@@ -426,10 +441,10 @@ export default {
|
|
message: '操作成功!',
|
|
message: '操作成功!',
|
|
type: 'success'
|
|
type: 'success'
|
|
});
|
|
});
|
|
- this.weighingList.carNo = ""
|
|
|
|
- this.weighingList.grossWeight = ""
|
|
|
|
- this.weighingList.tare = ""
|
|
|
|
- this.weighingList.netWeight = ""
|
|
|
|
|
|
+ this.weighingList.carNo = ''
|
|
|
|
+ this.weighingList.grossWeight = ''
|
|
|
|
+ this.weighingList.tare = ''
|
|
|
|
+ this.weighingList.netWeight = ''
|
|
this.getList()
|
|
this.getList()
|
|
})
|
|
})
|
|
} else if (this.tpyeNo == 1) {//称皮重
|
|
} else if (this.tpyeNo == 1) {//称皮重
|
|
@@ -440,10 +455,10 @@ export default {
|
|
message: '操作成功!',
|
|
message: '操作成功!',
|
|
type: 'success'
|
|
type: 'success'
|
|
});
|
|
});
|
|
- this.weighingList.carNo = ""
|
|
|
|
- this.weighingList.grossWeight = ""
|
|
|
|
- this.weighingList.tare = ""
|
|
|
|
- this.weighingList.netWeight = ""
|
|
|
|
|
|
+ this.weighingList.carNo = ''
|
|
|
|
+ this.weighingList.grossWeight = ''
|
|
|
|
+ this.weighingList.tare = ''
|
|
|
|
+ this.weighingList.netWeight = ''
|
|
this.getList()
|
|
this.getList()
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -537,9 +552,9 @@ export default {
|
|
currentPage: this.currentPage,
|
|
currentPage: this.currentPage,
|
|
pageSize: this.pageSize,
|
|
pageSize: this.pageSize,
|
|
searchType: 1,
|
|
searchType: 1,
|
|
- startDate: "",
|
|
|
|
- endDate: "",
|
|
|
|
- searchKeyWord: "",
|
|
|
|
|
|
+ startDate: '',
|
|
|
|
+ endDate: '',
|
|
|
|
+ searchKeyWord: '',
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|