前端
This commit is contained in:
parent
0010de1ad4
commit
282f0470dc
@ -7,7 +7,7 @@
|
|||||||
<el-button type="primary" @click="oilTypeMethods(1)">新增油号</el-button>
|
<el-button type="primary" @click="oilTypeMethods(1)">新增油号</el-button>
|
||||||
<div class="top-box">
|
<div class="top-box">
|
||||||
<!-- 循环-->
|
<!-- 循环-->
|
||||||
<div class="oil-box" v-for="(item,index) in oilNumberList " :key="index" >
|
<div class="oil-box" :style=" 'background:'+ colorList[index] " v-for="(item,index) in oilNumberList " :key="index" >
|
||||||
<div v-if="item.state == '启用'" class="top-icon">
|
<div v-if="item.state == '启用'" class="top-icon">
|
||||||
<div>{{item.state}}</div>
|
<div>{{item.state}}</div>
|
||||||
</div>
|
</div>
|
||||||
@ -372,13 +372,9 @@
|
|||||||
<el-button type="primary" @click="insertOilPresePrices()">确 定</el-button>
|
<el-button type="primary" @click="insertOilPresePrices()">确 定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
import {
|
import {
|
||||||
getOilNumberList,
|
getOilNumberList,
|
||||||
dictSelect,
|
dictSelect,
|
||||||
@ -390,11 +386,9 @@ import {
|
|||||||
getOilNameListApi, insertOilPresePricesApi, stopJobApi
|
getOilNameListApi, insertOilPresePricesApi, stopJobApi
|
||||||
|
|
||||||
} from "@/api/oilPrice";
|
} from "@/api/oilPrice";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'index',
|
name: 'index',
|
||||||
dicts: ['jobState','oil_type','zhzt'],
|
dicts: ['jobState','oil_type','zhzt'],
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
var valiNumberPass = (rule, value, callback) => {//包含小数的数字
|
var valiNumberPass = (rule, value, callback) => {//包含小数的数字
|
||||||
let reg = /^[+-]?(0|([1-9]\d*))(\.\d{1,2})?$/;
|
let reg = /^[+-]?(0|([1-9]\d*))(\.\d{1,2})?$/;
|
||||||
@ -406,9 +400,7 @@ import {
|
|||||||
callback();
|
callback();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
|
||||||
defaultDateTime: new Date(), // 默认时间
|
defaultDateTime: new Date(), // 默认时间
|
||||||
pickerOptions: {
|
pickerOptions: {
|
||||||
disabledDate(time) {
|
disabledDate(time) {
|
||||||
@ -416,7 +408,6 @@ import {
|
|||||||
return time.getTime() < Date.now();
|
return time.getTime() < Date.now();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
oilPresetPricesRules: {
|
oilPresetPricesRules: {
|
||||||
numberId:[
|
numberId:[
|
||||||
{ required: true, message: '请选择油品类型', trigger: 'change' }
|
{ required: true, message: '请选择油品类型', trigger: 'change' }
|
||||||
@ -447,32 +438,22 @@ import {
|
|||||||
gbPrice: [
|
gbPrice: [
|
||||||
{ required: true, validator:valiNumberPass, trigger: "blur" }
|
{ required: true, validator:valiNumberPass, trigger: "blur" }
|
||||||
],
|
],
|
||||||
// receivingUnits: [
|
|
||||||
// { required: true, message: '请选择', trigger: 'change' }
|
|
||||||
// ],
|
|
||||||
state: [
|
state: [
|
||||||
{ required: true, message: '请选择状态', trigger: 'change' }
|
{ required: true, message: '请选择状态', trigger: 'change' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
oilNumberList: [],
|
oilNumberList: [],
|
||||||
oilNumberList2: [],
|
oilNumberList2: [],
|
||||||
|
|
||||||
num: 1,
|
num: 1,
|
||||||
dialogFormVisible: false, // 新增油价配置
|
dialogFormVisible: false, // 新增油价配置
|
||||||
dialogFormNumberEdit: false, // 修改油价配置
|
dialogFormNumberEdit: false, // 修改油价配置
|
||||||
|
|
||||||
dialogFormPricesAdd: false, // 新增油价趋势
|
dialogFormPricesAdd: false, // 新增油价趋势
|
||||||
|
|
||||||
oilTypeList: [], // 油品类型
|
oilTypeList: [], // 油品类型
|
||||||
oilNameList: [], // 油品名称
|
oilNameList: [], // 油品名称
|
||||||
receivingUnitList: [], // 计价单位
|
receivingUnitList: [], // 计价单位
|
||||||
|
|
||||||
receivingUnitCN: [],
|
receivingUnitCN: [],
|
||||||
receivingUnitEN: [],
|
receivingUnitEN: [],
|
||||||
|
colorList:["#EAF9F6","#FFF1E8","#EDF3FF","#FFF8E6"],
|
||||||
|
|
||||||
oilNumber:{
|
oilNumber:{
|
||||||
oilType: '汽油',
|
oilType: '汽油',
|
||||||
oilName: '',
|
oilName: '',
|
||||||
@ -491,10 +472,8 @@ import {
|
|||||||
oilNameT: '',
|
oilNameT: '',
|
||||||
unit:'', // 计价单位
|
unit:'', // 计价单位
|
||||||
},
|
},
|
||||||
|
|
||||||
oilPresetPricesList:[],
|
oilPresetPricesList:[],
|
||||||
AllOilList:[],
|
AllOilList:[],
|
||||||
|
|
||||||
selectOilTypeByPrice: [],
|
selectOilTypeByPrice: [],
|
||||||
oilPresetPrices: {
|
oilPresetPrices: {
|
||||||
oilType:'',
|
oilType:'',
|
||||||
@ -534,8 +513,6 @@ import {
|
|||||||
mounted() {
|
mounted() {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
|
|
||||||
getStatusText(data) {
|
getStatusText(data) {
|
||||||
if (data == 1) {
|
if (data == 1) {
|
||||||
return "停止"
|
return "停止"
|
||||||
|
@ -501,17 +501,21 @@ export default {
|
|||||||
width: 200px;
|
width: 200px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
background: #f9f9f9;
|
background: rgba(64,158,255,0.05);
|
||||||
height: 86px;
|
height: 86px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
|
border-radius: 6px;
|
||||||
|
border: 1px solid #409EFF;
|
||||||
}
|
}
|
||||||
.size-hui{
|
.size-hui{
|
||||||
font-size: 14px;
|
font-size: 20px;
|
||||||
margin-bottom: 10px;
|
color: #555555;
|
||||||
margin-top: 10px;
|
font-weight: bold;
|
||||||
|
|
||||||
}
|
}
|
||||||
.size-bole{
|
.size-bole{
|
||||||
font-weight: bold;
|
font-size: 14px;
|
||||||
|
color: #888888;
|
||||||
}
|
}
|
||||||
.wgang{
|
.wgang{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
Loading…
Reference in New Issue
Block a user