Browse Source

联调采购

master
邓宏 2 years ago
parent
commit
11d97ba294
  1. 4
      common/request.js
  2. 5
      pages/purchase/specs.vue

4
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:``

5
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"/>
<d-picker :list="goodsList" ref="dPicker" :value="pickerValue" @select="setGoodsVal">
<view slot-scope="{row}" class="purcahse-picker">
@ -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){

Loading…
Cancel
Save