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

中标价问题

parent 629dee14
...@@ -42,7 +42,6 @@ export default { ...@@ -42,7 +42,6 @@ export default {
} }
}, },
created() { created() {
this.getProvinceArr(); this.getProvinceArr();
// this.getcityArr(this.provinceId); // this.getcityArr(this.provinceId);
// this.getdistrictArr(this.cityId); // this.getdistrictArr(this.cityId);
......
...@@ -186,11 +186,11 @@ export default { ...@@ -186,11 +186,11 @@ export default {
console.log(e); console.log(e);
} }
}, },
// 获取详情 // 获取详情及更新价格
async getnoticeWin() { async getnoticeWin() {
try { try {
let projectId = localStorage.getItem('projectId'); let projectId = localStorage.getItem('projectId');
const { data, code } = await noticeWin(projectId); var { data, code } = await noticeWin(projectId);
if (code == 200) { if (code == 200) {
for (let item of data.accessoryDOList) { for (let item of data.accessoryDOList) {
item.name = item.fileName; item.name = item.fileName;
...@@ -198,8 +198,14 @@ export default { ...@@ -198,8 +198,14 @@ export default {
} }
data.accessoryPOList=data.accessoryDOList data.accessoryPOList=data.accessoryDOList
this.ruleForm = data; 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) { } catch (err) {
console.log(err); console.log(err);
} }
...@@ -208,7 +214,6 @@ export default { ...@@ -208,7 +214,6 @@ export default {
created() { created() {
this.projectCode = localStorage.getItem('projectCode'); this.projectCode = localStorage.getItem('projectCode');
this.projectName = localStorage.getItem('projectName'); this.projectName = localStorage.getItem('projectName');
this.getwinPersonInfo();
let type = this.$route.query.type; let type = this.$route.query.type;
this.type = type; this.type = type;
if (type == 1) { if (type == 1) {
...@@ -218,6 +223,7 @@ export default { ...@@ -218,6 +223,7 @@ export default {
this.title = '查看'; this.title = '查看';
} else { } else {
this.title = '发布'; 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