pull/1/head
xiaozhiyong 2 years ago
parent 3a59e48b19
commit 9041b71875
  1. 3
      src/components/autocomplete/index.vue
  2. 2
      src/components/generalDetails/index.vue
  3. 31
      src/views/product/index.vue
  4. 2
      src/views/refineryAccount/index.vue

@ -59,6 +59,9 @@ export default {
if (query !== "") {
this.loading = true;
let params = {};
// if() {
// }
this.config.autocompleteKey
? (params[this.config.autocompleteKey] = query)
: (params["queryTypeGet"] = query);

@ -117,7 +117,7 @@ export default {
init() {
this.dataPage = this.mappingData.map(
(mappingDataItem, mappingDataIndex) => {
let shineData = this.sourceData[mappingDataIndex];
let shineData = this.sourceData[mappingDataIndex] || {};
return {
title: mappingDataItem.carTitle,
iconClass: mappingDataItem.iconClass || "iconjichuziliao",

@ -7,6 +7,19 @@
placeholder="产品名称"
clearable
></el-input>
<el-select
v-model="parameter.params.productType"
placeholder="产品类型"
clearable
>
<el-option
v-for="(item, index) in productTypeList"
:key="index"
:label="item.label"
:value="item.value"
>
</el-option>
</el-select>
<!-- 炼厂名称 -->
<autocomplete :params="parameter.params" :config="configAutocomplete" />
<el-input
@ -227,6 +240,24 @@ export default {
batch: false,
adjust: false,
},
productTypeList: [
{
label: "0#柴",
value: "0#",
},
{
label: "-10#柴",
value: "-10#",
},
{
label: "92#汽",
value: "92#",
},
{
label: "95#汽",
value: "95#",
},
],
configAutocomplete: {
serveTarget: refineryInfoServe.findByEntity,
autocompleteKey: "refineryName",

@ -35,7 +35,7 @@
</div>
<div class="table">
<div class="operation">
<el-button @click="addition">新增炼厂账户</el-button>
<!-- <el-button @click="addition">新增炼厂账户</el-button> -->
<el-button @click="addition">充值</el-button>
</div>
<el-table

Loading…
Cancel
Save