测试问题修改
This commit is contained in:
parent
525d80c384
commit
ae8c8f584e
|
|
@ -36,7 +36,7 @@
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item>
|
<el-descriptions-item>
|
||||||
<template slot="label">总金额</template>
|
<template slot="label">总金额</template>
|
||||||
{{ baseInfo.bidTotalPrice }}
|
{{ (baseInfo.quoteAmount/100).toFixed(2) }}
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item>
|
<el-descriptions-item>
|
||||||
<template slot="label">备注</template>
|
<template slot="label">备注</template>
|
||||||
|
|
@ -95,7 +95,7 @@ export default {
|
||||||
dicts: [],
|
dicts: [],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
goodsInquiryData:{},//页面传参
|
supplierQuotationData:{},//页面传参
|
||||||
loading:false,
|
loading:false,
|
||||||
loadingBtn:false,
|
loadingBtn:false,
|
||||||
baseInfo: {
|
baseInfo: {
|
||||||
|
|
@ -153,15 +153,16 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
if(this.$route.query.goodsInquiryData){
|
if(this.$route.query.supplierQuotationData){
|
||||||
this.goodsInquiryData = JSON.parse(this.$route.query.goodsInquiryData)
|
this.supplierQuotationData = JSON.parse(this.$route.query.supplierQuotationData)
|
||||||
|
console.log(this.supplierQuotationData)
|
||||||
this.getContractInfo()
|
this.getContractInfo()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
'$route.query.goodsInquiryData':function(newId, oldId) {
|
'$route.query.supplierQuotationData':function(newId, oldId) {
|
||||||
if(newId){
|
if(newId){
|
||||||
this.goodsInquiryData = JSON.parse(newId)
|
this.supplierQuotationData = JSON.parse(newId)
|
||||||
this.getContractInfo()
|
this.getContractInfo()
|
||||||
}else{
|
}else{
|
||||||
this.baseInfo={}
|
this.baseInfo={}
|
||||||
|
|
@ -177,16 +178,16 @@ export default {
|
||||||
this.$router.replace({ path: "/foodManage/supplierFunction/supplierQuotation" }); // 要打开的页面
|
this.$router.replace({ path: "/foodManage/supplierFunction/supplierQuotation" }); // 要打开的页面
|
||||||
},
|
},
|
||||||
getContractInfo(){
|
getContractInfo(){
|
||||||
console.log(this.goodsInquiryData)
|
console.log(this.supplierQuotationData)
|
||||||
let param = {
|
let param = {
|
||||||
inquiryId:this.goodsInquiryData.inquiryId,
|
inquiryId:this.supplierQuotationData.inquiryId,
|
||||||
// supplierId:row.supplierId
|
supplierId:this.supplierQuotationData.supplierId
|
||||||
}
|
}
|
||||||
//查询
|
//查询
|
||||||
getGoodsInquiryDetailInfoApi(param).then((response) => {
|
getGoodsInquiryDetailInfoApi(param).then((response) => {
|
||||||
this.baseInfo = response.data;
|
this.baseInfo = this.supplierQuotationData;
|
||||||
// this.$set(this.baseInfo,'dateRange',[this.baseInfo.startTime,this.baseInfo.endTime])
|
// this.$set(this.baseInfo,'dateRange',[this.baseInfo.startTime,this.baseInfo.endTime])
|
||||||
this.materialList = this.baseInfo.detailList;
|
this.materialList = response.data;
|
||||||
// supplierPageApi({ isPaging:1,areaIdList:[] }).then((response) => {
|
// supplierPageApi({ isPaging:1,areaIdList:[] }).then((response) => {
|
||||||
// this.supplierOptions = response.rows||[];
|
// this.supplierOptions = response.rows||[];
|
||||||
// });
|
// });
|
||||||
|
|
|
||||||
|
|
@ -255,6 +255,7 @@ export default {
|
||||||
this.getMaterialTree()
|
this.getMaterialTree()
|
||||||
if(this.$route.query.supplierQuotationData){
|
if(this.$route.query.supplierQuotationData){
|
||||||
this.supplierQuotationData = JSON.parse(this.$route.query.supplierQuotationData)
|
this.supplierQuotationData = JSON.parse(this.$route.query.supplierQuotationData)
|
||||||
|
console.log(this.supplierQuotationData)
|
||||||
this.getContractInfo()
|
this.getContractInfo()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
@ -277,7 +278,7 @@ export default {
|
||||||
this.$router.replace({ path: "/foodManage/supplierFunction/supplierQuotation" }); // 要打开的页面
|
this.$router.replace({ path: "/foodManage/supplierFunction/supplierQuotation" }); // 要打开的页面
|
||||||
},
|
},
|
||||||
getContractInfo(){
|
getContractInfo(){
|
||||||
console.log(this.supplierQuotationData)
|
|
||||||
let param = {
|
let param = {
|
||||||
inquiryId:this.supplierQuotationData.inquiryId
|
inquiryId:this.supplierQuotationData.inquiryId
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue