|
@@ -21,6 +21,11 @@
|
|
|
placeholder="选择日期">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
+ <el-form-item label="联动公式" prop="oilPriceFormula">
|
|
|
+ <el-input v-model="obj.oilPriceFormula" placeholder="请选择油价联动公式" readonly disabled></el-input>
|
|
|
+ <el-button type="primary" class="btn" @click="oilPriceFormulaClick"
|
|
|
+ >浏览</el-button>
|
|
|
+ </el-form-item>
|
|
|
<el-form-item label="运力类型" prop="capacityTypeName">
|
|
|
<el-input v-model="obj.capacityTypeName" readonly></el-input>
|
|
|
</el-form-item>
|
|
@@ -73,6 +78,41 @@
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
+ <!-- 油价联动公式模态框 -->
|
|
|
+ <el-drawer
|
|
|
+ title="请选择油价联动公式"
|
|
|
+ :visible.sync="oilPriceFormulaDrawer"
|
|
|
+ :direction="direction"
|
|
|
+ :before-close="handleClose"
|
|
|
+ close-on-press-escape
|
|
|
+ modal
|
|
|
+ wrapperClosable
|
|
|
+ size="40%"
|
|
|
+ >
|
|
|
+ <div class="selectText">
|
|
|
+ <!-- <span></span> -->
|
|
|
+ <el-input v-model="LineText" placeholder="请输入内容"></el-input>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="selectLineClick"
|
|
|
+ :loading="selectLineLoading"
|
|
|
+ ><i class="el-icon-search"></i>查询</el-button
|
|
|
+ >
|
|
|
+ <el-button type="primary" @click="addoilPriceFormula">确定</el-button>
|
|
|
+ </div>
|
|
|
+ <div class="LineTable">
|
|
|
+ <vue-scroll :ops="ops" style="width:100%;height:100%">
|
|
|
+ <dilTable
|
|
|
+ v-bind.sync="oilPriceFormula"
|
|
|
+ @radio-change="currentRadioChange"
|
|
|
+ :isKuang="isKuang"
|
|
|
+ :loading="tableLoading"
|
|
|
+ :drawer="oilPriceFormulaDrawer"
|
|
|
+ @func="func"
|
|
|
+ ></dilTable>
|
|
|
+ </vue-scroll>
|
|
|
+ </div>
|
|
|
+ </el-drawer>
|
|
|
<!-- 物资模态框 -->
|
|
|
<el-drawer
|
|
|
title="请选择物资"
|
|
@@ -157,7 +197,6 @@ export default {
|
|
|
batchFormRules: {
|
|
|
priceValue: [{ required: true, message: '运价不能为空', trigger: 'blur' }],
|
|
|
priceDate: [{ required: true, message: '执行日期不能为空', trigger: 'blur' }],
|
|
|
- oilPriceFormula: [{ required: true, message: '联动公式不能为空', trigger: 'blur' }],
|
|
|
oilpriceBase: [{ required: true, message: '油价基准不能为空', trigger: 'blur' }]
|
|
|
},
|
|
|
tableTop: [
|
|
@@ -191,7 +230,15 @@ export default {
|
|
|
this.options = res.data.data;
|
|
|
});
|
|
|
this.obj=this.$route.query.row;
|
|
|
- // console.log("obj "+JSON.stringify(this.obj))
|
|
|
+ this.axios.post("/api/v1/ams/getwz",{"priceId":this.obj.priceId}).then(res => {
|
|
|
+ this.selectionList = res.data.data;
|
|
|
+ });
|
|
|
+ //根据price_id查询联动公式和列表传过去
|
|
|
+ this.axios.post("/api/v1/ams/getcargonameId",{"priceId":this.obj.priceId}).then(res => {
|
|
|
+ this.obj.oilPriceFormula = res.data.data.formulaString,
|
|
|
+ this.obj.cargonameId = res.data.data.formulaId;
|
|
|
+ this.oilPriceFormulaId=this.obj.cargonameId;
|
|
|
+ });
|
|
|
this.rangeId=this.obj.rangeId
|
|
|
},
|
|
|
methods: {
|