diff --git a/common/request.js b/common/request.js index f8499ae..fa7c5ea 100644 --- a/common/request.js +++ b/common/request.js @@ -2,9 +2,9 @@ import store from "@/store" export function host(host='default',suffix='/plant_manage'){ var url=process.env.NODE_ENV === 'development'?{ - // default:`http://e5ruv4.natappfree.cc` //陈 + default:`http://59syiv.natappfree.cc` //陈 // default:`http://nys8cm.natappfree.cc` //马 - default:`http://4gg9xn.natappfree.cc` //何 + // default:`http://4gg9xn.natappfree.cc` //何 // default:`http://192.168.0.116:8080` //孙 }:{ default:`` diff --git a/pages/purchase/specs.vue b/pages/purchase/specs.vue index 6f73e6a..33849ca 100644 --- a/pages/purchase/specs.vue +++ b/pages/purchase/specs.vue @@ -199,7 +199,7 @@ closeOnClickOverlay @close="show=false" @cancel="show=false" - @confirm="searchStock($event.value[0].id);formData.goodsSpecification=$event.value[0].value;show=false"/> + @confirm="searchStock($event.value[0].id);formData.goodsSpecification=$event.value[0].value;formData.specificationId=$event.value[0].id;show=false"/> @@ -220,6 +220,7 @@ export default{ dressingUnit:"", show:false, formData:{ + goodsId:"", goodsName:"", goodsSpecification:"", num:"", @@ -243,7 +244,7 @@ export default{ }, async onLoad(options){ this.eventChannel=this.getOpenerEventChannel() - this.formData.specificationId=options.id + this.formData.goodsId=options.id await this.searchGoods() this.goodsList.forEach(v=>{ if(v.id==options.id){