This commit is contained in:
lixuan
2023-02-27 16:53:38 +08:00
parent cba8576e30
commit d3a85324d1
4 changed files with 17 additions and 9 deletions

View File

@@ -98,7 +98,6 @@
<script>
import serve from "api/product.js";
import refineryInfoServe from "api/refineryInfo.js";
import autocomplete from "components/autocomplete/index.vue";
export default {
@@ -139,7 +138,7 @@ export default {
refineryList: [],
productRowData:{},
configAutocomplete: {
serveTarget: refineryInfoServe.findByEntity,
serveTarget: serve.findByEntity,
autocompleteKey: "refineryName",
labelKey: "refineryName",
valueKey: "id",
@@ -216,7 +215,13 @@ export default {
enableMark:'ENABLE'
}
await serve.getRefineryProductList(data).then((res) => {
this.productNameList = res.data;
if(res.data.length>0){
this.productNameList = res.data;
}else{
this.productNameList = []
this.form.productId = ''
}
})
// this.form.productId = this.productNameList[0].productId
console.log(this.productRowData,this.productNameList,'aaaaaaaaaa')