|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|