|
@@ -237,8 +237,8 @@
|
|
<div>
|
|
<div>
|
|
<el-button v-if='tpyeNo == 1' @click='add' type="primary">新增</el-button>
|
|
<el-button v-if='tpyeNo == 1' @click='add' type="primary">新增</el-button>
|
|
<el-button v-if='tpyeNo == 1' @click='deletelist' type="danger">删除</el-button>
|
|
<el-button v-if='tpyeNo == 1' @click='deletelist' type="danger">删除</el-button>
|
|
- <el-button v-if='tpyeNo == 2' @click='statustypechangelist(1)' :type="statusType==1?'primary':''">未称毛重</el-button>
|
|
|
|
- <el-button v-if='tpyeNo == 2' @click='statustypechangelist(2)' :type="statusType==2?'primary':''">已称毛重</el-button>
|
|
|
|
|
|
+ <el-button v-if='tpyeNo == 2' @click='statustypechangelist(5)' :type="statusType==5?'primary':''">未称毛重</el-button>
|
|
|
|
+ <el-button v-if='tpyeNo == 2' @click='statustypechangelist(3)' :type="statusType==3?'primary':''">已称毛重</el-button>
|
|
</div>
|
|
</div>
|
|
<div><el-button @click='record' type="primary">记录</el-button></div>
|
|
<div><el-button @click='record' type="primary">记录</el-button></div>
|
|
</div>
|
|
</div>
|
|
@@ -743,6 +743,10 @@
|
|
.then(() => {
|
|
.then(() => {
|
|
this.weighingList.inOutFlag = 1
|
|
this.weighingList.inOutFlag = 1
|
|
this.weighingList.statusFlag = 3
|
|
this.weighingList.statusFlag = 3
|
|
|
|
+ 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
|
|
if (this.tpyeNo == 1) {
|
|
if (this.tpyeNo == 1) {
|
|
this.weighingList.relationId = this.relationId
|
|
this.weighingList.relationId = this.relationId
|
|
this.weighingList.warehouseId = this.warehouseId
|
|
this.weighingList.warehouseId = this.warehouseId
|
|
@@ -763,6 +767,10 @@
|
|
message: '提交成功',
|
|
message: '提交成功',
|
|
})
|
|
})
|
|
this.getList()
|
|
this.getList()
|
|
|
|
+ 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(this.weighingList))
|
|
this.inspect=JSON.parse(JSON.stringify(this.weighingList))
|
|
this.isShowPrint=true
|
|
this.isShowPrint=true
|
|
this.weighingList= {
|
|
this.weighingList= {
|
|
@@ -794,20 +802,29 @@
|
|
})
|
|
})
|
|
.catch((response) => {})
|
|
.catch((response) => {})
|
|
}else{
|
|
}else{
|
|
|
|
+ this.weighingList.relationId = this.relationId
|
|
|
|
+ this.weighingList.warehouseId = this.warehouseId
|
|
|
|
+ this.weighingList.baseId=this.warehouseId
|
|
|
|
+ console.log(this.weighingList)
|
|
tareAdd(this.weighingList)
|
|
tareAdd(this.weighingList)
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
- this.$notify.success({
|
|
|
|
- title: '成功',
|
|
|
|
- message: '提交成功',
|
|
|
|
- })
|
|
|
|
|
|
+
|
|
addstorageputList(this.weighingList)
|
|
addstorageputList(this.weighingList)
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
if (this.reader) {
|
|
if (this.reader) {
|
|
this.reader.cancel()
|
|
this.reader.cancel()
|
|
}
|
|
}
|
|
|
|
+ this.$notify.success({
|
|
|
|
+ title: '成功',
|
|
|
|
+ message: '提交成功',
|
|
|
|
+ })
|
|
this.isShowPrint=true
|
|
this.isShowPrint=true
|
|
|
|
+ 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(this.weighingList))
|
|
this.inspect=JSON.parse(JSON.stringify(this.weighingList))
|
|
this.weighingList= {
|
|
this.weighingList= {
|
|
grossWeight: 0,
|
|
grossWeight: 0,
|
|
@@ -845,20 +862,26 @@
|
|
grossWeight(this.weighingList)
|
|
grossWeight(this.weighingList)
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
- this.$notify.success({
|
|
|
|
- title: '成功',
|
|
|
|
- message: '提交成功',
|
|
|
|
- })
|
|
|
|
|
|
+
|
|
addstorageputList(this.weighingList)
|
|
addstorageputList(this.weighingList)
|
|
.toPromise()
|
|
.toPromise()
|
|
.then((response) => {
|
|
.then((response) => {
|
|
if (this.reader) {
|
|
if (this.reader) {
|
|
this.reader.cancel()
|
|
this.reader.cancel()
|
|
}
|
|
}
|
|
|
|
+ this.$notify.success({
|
|
|
|
+ title: '成功',
|
|
|
|
+ message: '提交成功',
|
|
|
|
+ })
|
|
|
|
+ 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(this.weighingList))
|
|
this.inspect=JSON.parse(JSON.stringify(this.weighingList))
|
|
this.isShowPrint=true
|
|
this.isShowPrint=true
|
|
this.weighingList= {
|
|
this.weighingList= {
|
|
grossWeight: 0,
|
|
grossWeight: 0,
|
|
|
|
+ selfLoading:0,
|
|
tare: 0,
|
|
tare: 0,
|
|
tips:'',
|
|
tips:'',
|
|
// contractNo:'',
|
|
// contractNo:'',
|
|
@@ -891,12 +914,12 @@
|
|
},
|
|
},
|
|
carNoTypeChange() {
|
|
carNoTypeChange() {
|
|
this.carjudge = !this.carjudge
|
|
this.carjudge = !this.carjudge
|
|
- if (!this.carjudge) {
|
|
|
|
- this.deptBudgetList.selfLoading = '0'
|
|
|
|
- this.carChange1 = '手动填写'
|
|
|
|
- } else {
|
|
|
|
- this.deptBudgetList.selfLoading = '1'
|
|
|
|
|
|
+ if (this.carjudge) {
|
|
|
|
+ this.weighingList.selfLoading = '1'
|
|
this.carChange1 = '识别下拉'
|
|
this.carChange1 = '识别下拉'
|
|
|
|
+ } else {
|
|
|
|
+ this.weighingList.selfLoading = '0'
|
|
|
|
+ this.carChange1 = '手动填写'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
tabClick(val){
|
|
tabClick(val){
|
|
@@ -1192,7 +1215,7 @@
|
|
for (let i = 0; i < response.length; i++) {
|
|
for (let i = 0; i < response.length; i++) {
|
|
if (_wareHouse && response[i].warehouseName == _wareHouse.value) {
|
|
if (_wareHouse && response[i].warehouseName == _wareHouse.value) {
|
|
this.warehouseName = response[i].warehouseName
|
|
this.warehouseName = response[i].warehouseName
|
|
- this.warehouseId = response[i].warehouseId
|
|
|
|
|
|
+ this.warehouseId = response[i].id
|
|
this.positionInfos=response[i].positionInfos
|
|
this.positionInfos=response[i].positionInfos
|
|
this.warehouseCount = response[i].count
|
|
this.warehouseCount = response[i].count
|
|
this.warehouseNo = response[i].commonWarehouseNo
|
|
this.warehouseNo = response[i].commonWarehouseNo
|