|
|
|
@ -110,6 +110,7 @@ |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import serve from "api/product.js"; |
|
|
|
|
import refineryInfoServe from "api/refineryInfo.js"; |
|
|
|
|
|
|
|
|
|
import autocomplete from "components/autocomplete/index.vue"; |
|
|
|
|
export default { |
|
|
|
@ -156,7 +157,7 @@ export default { |
|
|
|
|
refineryList: [], |
|
|
|
|
productRowData: {}, |
|
|
|
|
configAutocomplete: { |
|
|
|
|
serveTarget: serve.findByEntity, |
|
|
|
|
serveTarget: refineryInfoServe.findByEntity, |
|
|
|
|
autocompleteKey: "refineryName", |
|
|
|
|
labelKey: "refineryName", |
|
|
|
|
valueKey: "id", |
|
|
|
@ -188,7 +189,6 @@ export default { |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
productDataList(e) { |
|
|
|
|
console.log(e, "ppppppppppppppp"); |
|
|
|
|
this.productRowData = this.productNameList.filter((item) => item.id == e); |
|
|
|
|
this.form.salePrice = this.productRowData[0].salePrice2company; |
|
|
|
|
this.form.floorPrice = this.productRowData[0].floorPrice; |
|
|
|
@ -196,15 +196,6 @@ export default { |
|
|
|
|
productChange() { |
|
|
|
|
this.productData(); |
|
|
|
|
}, |
|
|
|
|
//搜索炼厂 |
|
|
|
|
refineryData(value) { |
|
|
|
|
if (value) { |
|
|
|
|
serve.findByEntity({ refineryName: value }).then((res) => { |
|
|
|
|
this.refineryList = res.data; |
|
|
|
|
}); |
|
|
|
|
this.productData(); |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
//搜索产品 |
|
|
|
|
async productData() { |
|
|
|
|
let data = { |
|
|
|
@ -221,7 +212,6 @@ export default { |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
// this.form.productId = this.productNameList[0].productId |
|
|
|
|
console.log(this.productRowData, this.productNameList, "aaaaaaaaaa"); |
|
|
|
|
}, |
|
|
|
|
//搜索客户 |
|
|
|
|
customData(value) { |
|
|
|
@ -244,8 +234,6 @@ export default { |
|
|
|
|
delete this.form.id; |
|
|
|
|
this.rowCreate = true; |
|
|
|
|
this.productChange(); |
|
|
|
|
|
|
|
|
|
console.log("this.form", this.form); |
|
|
|
|
} else { |
|
|
|
|
this.rowCreate = false; |
|
|
|
|
} |
|
|
|
|