diff --git a/fuintAdmin/src/api/oilPrice.js b/fuintAdmin/src/api/oilPrice.js index 0577796a8..4e8433b4d 100644 --- a/fuintAdmin/src/api/oilPrice.js +++ b/fuintAdmin/src/api/oilPrice.js @@ -37,7 +37,7 @@ export function dictSelect(data) { }) } -// 字典查询 +// export function getOilPresetList(data) { return request({ url: 'business/petrolStationManagement/oilPresetPrices/getList', @@ -45,3 +45,40 @@ export function getOilPresetList(data) { data: data }) } + + +// 查询油品 +export function getOilNameListApi(data) { + return request({ + url: '/business/petrolStationManagement/oilNumber/getOilName', + method: 'get', + params: data + }) +} +// 查询油品名称 +export function getOilNameApi(data) { + return request({ + url: '/business/petrolStationManagement/oilName/getList', + method: 'get', + params: data + }) +} +// 查询油品名称 +export function getAllOilListApi(data) { + return request({ + url: '/business/petrolStationManagement/oilName/getOilName', + method: 'get', + params: data + }) +} + +// 新增预设 +export function insertOilPresePricesApi(data) { + return request({ + url: 'business/petrolStationManagement/oilPresetPrices', + method: 'post', + data: data + }) +} + + diff --git a/fuintAdmin/src/views/oilPrice/index.vue b/fuintAdmin/src/views/oilPrice/index.vue index 4ed2aeba6..bd657d956 100644 --- a/fuintAdmin/src/views/oilPrice/index.vue +++ b/fuintAdmin/src/views/oilPrice/index.vue @@ -8,18 +8,21 @@
-
-
启用
+
+
{{item.state}}
-
-
{{item.oilType}}
+
+
{{item.state}}
+
+
+
{{item.allOil}}
油站价:
-
{{ item.oilPrice }} /L
+
{{ item.oilPrice }}元/{{item.unit}}
国标价:
-
{{ item.gbPrice }} /L
+
{{ item.gbPrice }}元/{{item.unit}}
最后更新时间:
@@ -27,8 +30,6 @@
- -
@@ -44,8 +45,10 @@ label="任务id" width="100"> + + @@ -78,11 +81,16 @@ label="预设时间" > - - + + + + + + + + @@ -116,32 +124,32 @@ + + + - - - - + - - - + @@ -151,37 +159,39 @@ - + - + + + + + - +
点击油品输入的计算单位、可默认元或计价单位(L/m³/kg),页面也可自行切换
- - + + - + - - -