|
@@ -863,6 +863,9 @@
|
|
|
if(this.dialogData&&!this.dialogData.customer&&this.dialogData.contractManagement){
|
|
|
this.dialogData.customer = this.dialogData.contractManagement.buyer
|
|
|
}
|
|
|
+ if(this.dialogData.contractManagement.agreementType=='代储合同'){
|
|
|
+ this.dialogData.customer = this.dialogData.contractManagement.seller
|
|
|
+ }
|
|
|
console.log(111,this.dialogData)
|
|
|
this.dialogDataList.push(this.dialogData)
|
|
|
this.printBig('', this.radio)
|
|
@@ -1842,26 +1845,45 @@
|
|
|
)
|
|
|
if(this.weighingList.contractManagement){
|
|
|
let cang = {}
|
|
|
- cang.value = this.weighingList.contractManagement.seller
|
|
|
+ if(this.weighingList.contractManagement.agreementType=='代储合同'){
|
|
|
+ cang.value = this.weighingList.contractManagement.buyer
|
|
|
+ cang.label = this.weighingList.contractManagement.buyer
|
|
|
+ if(this.warehouseName=='佳屹农仓储库'){
|
|
|
+ if (this.check(this.weighingList.contractManagement.buyer, 3)) {
|
|
|
+ this.companyNameOptions.push(cang)
|
|
|
+
|
|
|
+ }this.companyName=this.weighingList.contractManagement.buyer
|
|
|
+ }else{
|
|
|
+ if (this.check(this.weighingList.contractManagement.buyer, 1)) {
|
|
|
+ this.ewCustomerOptions.push(cang)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ cang.value = this.weighingList.contractManagement.seller
|
|
|
cang.label = this.weighingList.contractManagement.seller
|
|
|
if(this.warehouseName=='佳屹农仓储库'){
|
|
|
if (this.check(this.weighingList.contractManagement.seller, 3)) {
|
|
|
this.companyNameOptions.push(cang)
|
|
|
- this.companyName=this.weighingList.contractManagement.seller
|
|
|
- }
|
|
|
+
|
|
|
+ }this.companyName=this.weighingList.contractManagement.seller
|
|
|
}else{
|
|
|
if (this.check(this.weighingList.contractManagement.seller, 1)) {
|
|
|
this.ewCustomerOptions.push(cang)
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ }
|
|
|
let cang1 = {}
|
|
|
cang1.value = this.weighingList.contractManagement.buyer
|
|
|
cang1.label = this.weighingList.contractManagement.buyer
|
|
|
if (this.check(this.weighingList.contractManagement.buyer, 2)) {
|
|
|
this.companyNameEWOptions.push(cang1)
|
|
|
}
|
|
|
- this.myCompanyCustomer = this.weighingList.contractManagement.buyer
|
|
|
+ if(this.weighingList.contractManagement.agreementType=='代储合同'){
|
|
|
+ this.myCompanyCustomer = this.weighingList.contractManagement.seller
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.myCompanyCustomer = this.weighingList.contractManagement.buyer
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
this.isShowPrintType = true
|