Commit da4b48d1 authored by 潘自豪's avatar 潘自豪

营业额明显页面修改

parent 46ede36b
......@@ -44,9 +44,6 @@ export default async (url = '', data = {}, type = 'GET', method = 'fetch') => {
try {
const response = await fetch(url, requestConfig);
const responseJson = await response.json();
if(response.status === 403){
parent.window.location = "/";
}
return responseJson
} catch (error) {
throw new Error(error)
......
......@@ -36,7 +36,7 @@ export const adapterLostAdd = function (data) {
let lostAddDataCol = new Array();
lostAddDataCol[0] = adapterLostAddCol("订单量(万吨) ", conver_amont(data.unit_weight), "red")
lostAddDataCol[1] = adapterLostAddCol("订单件数", data.qty, "#eaa749")
lostAddDataCol[2] = adapterLostAddCol("营额(万元)", conver_amont(data.sell_settle_amount), "#49eb29")
lostAddDataCol[2] = adapterLostAddCol("营额(万元)", conver_amont(data.sell_settle_amount), "#49eb29")
lostAddData['column'] = lostAddDataCol;
return lostAddData;
}
......
......@@ -3,11 +3,13 @@
<div class="content">
<display-board class="content_card" :title="lostCustomerTitle" title_size="large">
<winners-list style="height: 100%;overflow: auto;" id="ar_company_list"
:columns-style="{'title':{'width':'45%'}}"
:rows="lostCustomer"
/>
</display-board>
<display-board class="content_card" :title="addCustomerTitle" title_size="large">
<winners-list style="height: 100%;overflow: auto;" id="ar_company_list"
:columns-style="{'title':{'width':'45%'}}"
:rows="addCustomer"
/>
</display-board>
......@@ -50,9 +52,7 @@ export default {
},
async mounted() {
this.lostCustomer = await getAllDatas(this.today, 2)
console.log(this.lostCustomer)
this.addCustomer = await getAllDatas(this.today, 1)
console.log(this.addCustomer)
},
}
</script>
......
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