Commit 842be083 authored by 张冬's avatar 张冬

中标价问题

parent 629dee14
......@@ -42,7 +42,6 @@ export default {
}
},
created() {
this.getProvinceArr();
// this.getcityArr(this.provinceId);
// this.getdistrictArr(this.cityId);
......
......@@ -186,11 +186,11 @@ export default {
console.log(e);
}
},
// 获取详情
// 获取详情及更新价格
async getnoticeWin() {
try {
let projectId = localStorage.getItem('projectId');
const { data, code } = await noticeWin(projectId);
var { data, code } = await noticeWin(projectId);
if (code == 200) {
for (let item of data.accessoryDOList) {
item.name = item.fileName;
......@@ -198,8 +198,14 @@ export default {
}
data.accessoryPOList=data.accessoryDOList
this.ruleForm = data;
}
let newPrice=data.price
console.log(newPrice)
var { data, code } = await winPersonInfo(projectId);
if(newPrice>0){
data.price=newPrice
}
this.tableData.push(data);
} catch (err) {
console.log(err);
}
......@@ -208,7 +214,6 @@ export default {
created() {
this.projectCode = localStorage.getItem('projectCode');
this.projectName = localStorage.getItem('projectName');
this.getwinPersonInfo();
let type = this.$route.query.type;
this.type = type;
if (type == 1) {
......@@ -218,6 +223,7 @@ export default {
this.title = '查看';
} else {
this.title = '发布';
this.getwinPersonInfo();
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment