更新
This commit is contained in:
@@ -34,14 +34,14 @@ const modifyPrice = (params) => {
|
|||||||
};
|
};
|
||||||
// 搜索客户
|
// 搜索客户
|
||||||
const getRefineryCompanyList = (params) => {
|
const getRefineryCompanyList = (params) => {
|
||||||
return request.postJson("/oil-user/oilCompanyInfo/getLikeByCompanyType", params);
|
return request.postJson(
|
||||||
|
"/oil-user/oilCompanyInfo/getLikeByCompanyType",
|
||||||
|
params
|
||||||
|
);
|
||||||
};
|
};
|
||||||
// 下单
|
// 下单
|
||||||
const orderSave = (params) => {
|
const orderSave = (params) => {
|
||||||
return request.postJson(
|
return request.postJson("/oil-refinery/xoilRefineryOrder/save", params);
|
||||||
"/oil-refinery/xoilRefineryOrder/save",
|
|
||||||
params
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
//查看企业产品
|
//查看企业产品
|
||||||
const getRefineryProductList = (params) => {
|
const getRefineryProductList = (params) => {
|
||||||
@@ -50,13 +50,13 @@ const getRefineryProductList = (params) => {
|
|||||||
params
|
params
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
//查看炼厂信息
|
// //查看炼厂信息
|
||||||
const findByEntity = (params) => {
|
// const findByEntity = (params) => {
|
||||||
return request.postJson(
|
// return request.postJson(
|
||||||
"/oil-refinery/xoilRefineryInfo/findByEntity",
|
// "/oil-refinery/xoilRefineryInfo/findByEntity",
|
||||||
params
|
// params
|
||||||
);
|
// );
|
||||||
};
|
// };
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
getByPage,
|
getByPage,
|
||||||
@@ -68,5 +68,5 @@ export default {
|
|||||||
getRefineryCompanyList,
|
getRefineryCompanyList,
|
||||||
orderSave,
|
orderSave,
|
||||||
getRefineryProductList,
|
getRefineryProductList,
|
||||||
findByEntity
|
// findByEntity
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -110,6 +110,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import serve from "api/product.js";
|
import serve from "api/product.js";
|
||||||
|
import refineryInfoServe from "api/refineryInfo.js";
|
||||||
|
|
||||||
import autocomplete from "components/autocomplete/index.vue";
|
import autocomplete from "components/autocomplete/index.vue";
|
||||||
export default {
|
export default {
|
||||||
@@ -156,7 +157,7 @@ export default {
|
|||||||
refineryList: [],
|
refineryList: [],
|
||||||
productRowData: {},
|
productRowData: {},
|
||||||
configAutocomplete: {
|
configAutocomplete: {
|
||||||
serveTarget: serve.findByEntity,
|
serveTarget: refineryInfoServe.findByEntity,
|
||||||
autocompleteKey: "refineryName",
|
autocompleteKey: "refineryName",
|
||||||
labelKey: "refineryName",
|
labelKey: "refineryName",
|
||||||
valueKey: "id",
|
valueKey: "id",
|
||||||
@@ -188,7 +189,6 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
productDataList(e) {
|
productDataList(e) {
|
||||||
console.log(e, "ppppppppppppppp");
|
|
||||||
this.productRowData = this.productNameList.filter((item) => item.id == e);
|
this.productRowData = this.productNameList.filter((item) => item.id == e);
|
||||||
this.form.salePrice = this.productRowData[0].salePrice2company;
|
this.form.salePrice = this.productRowData[0].salePrice2company;
|
||||||
this.form.floorPrice = this.productRowData[0].floorPrice;
|
this.form.floorPrice = this.productRowData[0].floorPrice;
|
||||||
@@ -196,15 +196,6 @@ export default {
|
|||||||
productChange() {
|
productChange() {
|
||||||
this.productData();
|
this.productData();
|
||||||
},
|
},
|
||||||
//搜索炼厂
|
|
||||||
refineryData(value) {
|
|
||||||
if (value) {
|
|
||||||
serve.findByEntity({ refineryName: value }).then((res) => {
|
|
||||||
this.refineryList = res.data;
|
|
||||||
});
|
|
||||||
this.productData();
|
|
||||||
}
|
|
||||||
},
|
|
||||||
//搜索产品
|
//搜索产品
|
||||||
async productData() {
|
async productData() {
|
||||||
let data = {
|
let data = {
|
||||||
@@ -221,7 +212,6 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
// this.form.productId = this.productNameList[0].productId
|
// this.form.productId = this.productNameList[0].productId
|
||||||
console.log(this.productRowData, this.productNameList, "aaaaaaaaaa");
|
|
||||||
},
|
},
|
||||||
//搜索客户
|
//搜索客户
|
||||||
customData(value) {
|
customData(value) {
|
||||||
@@ -244,8 +234,6 @@ export default {
|
|||||||
delete this.form.id;
|
delete this.form.id;
|
||||||
this.rowCreate = true;
|
this.rowCreate = true;
|
||||||
this.productChange();
|
this.productChange();
|
||||||
|
|
||||||
console.log("this.form", this.form);
|
|
||||||
} else {
|
} else {
|
||||||
this.rowCreate = false;
|
this.rowCreate = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ export default {
|
|||||||
},
|
},
|
||||||
productTypeList: ["0#柴", "-10#柴", "92#汽", "95#汽"],
|
productTypeList: ["0#柴", "-10#柴", "92#汽", "95#汽"],
|
||||||
configAutocomplete: {
|
configAutocomplete: {
|
||||||
serveTarget: serve.findByEntity,
|
serveTarget: refineryInfoServe.findByEntity,
|
||||||
autocompleteKey: "refineryName",
|
autocompleteKey: "refineryName",
|
||||||
labelKey: "refineryName",
|
labelKey: "refineryName",
|
||||||
valueKey: "id",
|
valueKey: "id",
|
||||||
|
|||||||
Reference in New Issue
Block a user