|
@@ -1534,27 +1534,23 @@
|
|
// })
|
|
// })
|
|
// return
|
|
// return
|
|
// }
|
|
// }
|
|
- console.log(this.outContractNo)
|
|
|
|
|
|
+
|
|
if(this.weighingList.agreementType!='代储合同'&&this.tpyeNo == 1){
|
|
if(this.weighingList.agreementType!='代储合同'&&this.tpyeNo == 1){
|
|
- if(this.weighingList.agreementType=='销售合同'&&this.outContractNo.settlementWeightMethod==1||this.weighingList.agreementType!='销售合同'){
|
|
|
|
- if (!this.weighingList.contractPrice && this.weighingList.inOutType != '移库出库'
|
|
|
|
- ||this.weighingList.inOutType == '移库出库'&&this.weighingList.priceType=='随行就市'&&this.weighingList.warehouseType==2) {
|
|
|
|
- this.$message({
|
|
|
|
- message: '价格不能为空',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
- console.log(this.isNumber(this.weighingList.contractPrice))
|
|
|
|
- if(!this.isNumber(this.weighingList.contractPrice)&&!this.priceedit){
|
|
|
|
- this.$message({
|
|
|
|
- message: '价格不能为非数字',
|
|
|
|
- type: 'warning',
|
|
|
|
- })
|
|
|
|
- return
|
|
|
|
- }
|
|
|
|
|
|
+ if (!this.weighingList.contractPrice && this.weighingList.inOutType == '销售出库'&&this.weighingList.priceType=='随行就市'&&this.weighingList.settlementWeightMethod==1) {
|
|
|
|
+ this.$message({
|
|
|
|
+ message: '价格不能为空',
|
|
|
|
+ type: 'warning',
|
|
|
|
+ })
|
|
|
|
+ return
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ // console.log(this.isNumber(this.weighingList.contractPrice))
|
|
|
|
+ // if(!this.isNumber(this.weighingList.contractPrice)&&!this.priceedit){
|
|
|
|
+ // this.$message({
|
|
|
|
+ // message: '价格不能为非数字',
|
|
|
|
+ // type: 'warning',
|
|
|
|
+ // })
|
|
|
|
+ // return
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
|
|
|
|
if (
|
|
if (
|
|
@@ -2477,13 +2473,12 @@
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ this.weighingList.priceType=this.outContractNo.priceType
|
|
|
|
+ this.weighingList.settlementWeightMethod=this.outContractNo.settlementWeightMethod
|
|
if(this.outContractNo.priceType=='随行就市'){
|
|
if(this.outContractNo.priceType=='随行就市'){
|
|
this.priceedit=false
|
|
this.priceedit=false
|
|
}else if(this.outContractNo.priceType=='定价销售'){
|
|
}else if(this.outContractNo.priceType=='定价销售'){
|
|
this.priceedit=false
|
|
this.priceedit=false
|
|
- }{
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
this.warehouseCount = '000' + (Number(this.warehouseCount) + 1)
|
|
this.warehouseCount = '000' + (Number(this.warehouseCount) + 1)
|
|
this.weighingList.numberLetter = 'XSCK'
|
|
this.weighingList.numberLetter = 'XSCK'
|
|
@@ -2516,7 +2511,6 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- this.weighingList.priceType=this.outContractNo.priceType
|
|
|
|
this.warehouseCount = '000' + (Number(this.warehouseCount) + 1)
|
|
this.warehouseCount = '000' + (Number(this.warehouseCount) + 1)
|
|
this.weighingList.numberLetter = 'YKCK'
|
|
this.weighingList.numberLetter = 'YKCK'
|
|
|
|
|