<template>
  <!-- 添加油价信息 -->
  <div class="addWagonLoad">
    <PageTitle>返回</PageTitle>
    <el-divider content-position="left">油价信息</el-divider>
    <div class="form-box" style="margin-right: 10rem">
      <dil-form :formId="357" v-model="form1" ref="from1"></dil-form>
    </div>
    <div class="button-box">
      <el-button @click="cancel">取消</el-button>
      <el-button type="primary" @click="makeSure">确定</el-button>
    </div>
  </div>
</template>

<script>
import PageTitle from "@/components/Page/Title";
//import { sjTime } from "@/js/sharedJsFile";
export default {
  components: { PageTitle },
  data() {
    return {
      form1: {},
      value: undefined,
    };
  },
  mounted() {},
  methods: {
    makeSure() {
      console.log(this.form1);
      let RmsOilPrice = {
        priceOilName:this.form1.priceOilName,
        priceId:this.form1.priceId,
        priceDate:this.form1.priceDate,
        priceValue:this.form1.priceValue,
      }
      this.axios
        .post(
          "/api/v1/rms/insertOilPrice" , RmsOilPrice
        )
        .then((res) => {
          this.$router.go(-1);
        });
    },
    // 取消
    cancel() {
      this.$router.go(-1);
    },
  },
};
</script>
<style lang='scss' scoped>

</style>
