Browse Source

选择搜索的买方名称后带入买方类型

master
邓宏 2 years ago
parent
commit
d68a19a988
  1. 2
      pages/massif/search.vue
  2. 2
      pages/stock/list.vue
  3. 4
      uni_modules/d-form/components/d-form/d-form.vue

2
pages/massif/search.vue

@ -30,7 +30,7 @@
:columns="columns"
@close="show=false"
@cancel="show=false"
@confirm="eventChannel.emit('update',{buyerName:selectVal.buyerName,address:$event.value[0]});$u.route({type:'back'})"/>
@confirm="eventChannel.emit('update',{...selectVal,address:$event.value[0]});$u.route({type:'back'})"/>
</view>
</template>
<script>

2
pages/stock/list.vue

@ -361,6 +361,8 @@ export default{
events:{update:e=>{
this.formData.buyerName=e.buyerName
this.formData.buyerAddress=e.address
this.formData.buyerType=e.buyerType[1]
this.buyerType.value=e.buyerType
}}
})
},

4
uni_modules/d-form/components/d-form/d-form.vue

@ -335,6 +335,9 @@ import {computeArea} from '@/common/utils'
setPickerCol(columns[i].children, value, ++n)
}
}
}else if(dataType(columns[0].children,"array")){
this.setColumnValues(n,columns[0].children)
setPickerCol(columns[0].children, value, ++n)
}
}
function setPickerVal(columns, value){
@ -440,7 +443,6 @@ import {computeArea} from '@/common/utils'
watch:{
columns(n){
if(this.type=='select'){
console.log(n[0],this.value)
this.$nextTick(()=>{
setPickerCol.bind(this.$refs.picker)(n[0]||[],this.value,1)
})

Loading…
Cancel
Save