|
@@ -26,7 +26,7 @@
|
|
|
|
|
|
|
|
<tui-list-cell class="line-cell" :arrow="true">
|
|
<tui-list-cell class="line-cell" :arrow="true">
|
|
|
<div class="tui-title">付款人</div>
|
|
<div class="tui-title">付款人</div>
|
|
|
- <picker mode="selector" :value="form.getStaffId" :range="staffList" range-key="name" @change="kdChange" class="tui-input" >
|
|
|
|
|
|
|
+ <picker mode="selector" :value="form.getStaffId" :range="staffList" range-key="name" @change="payManChange" class="tui-input" >
|
|
|
<input v-model="form.getStaffId" name="getStaffId" type="text" hidden />
|
|
<input v-model="form.getStaffId" name="getStaffId" type="text" hidden />
|
|
|
<div style="padding:6upx 0 6upx 0;">{{form.getStaffName}}</div>
|
|
<div style="padding:6upx 0 6upx 0;">{{form.getStaffName}}</div>
|
|
|
</picker>
|
|
</picker>
|
|
@@ -109,6 +109,15 @@ export default {
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ payManChange(e){
|
|
|
|
|
+ let index = e.detail.value
|
|
|
|
|
+ if(!this.$util.isEmpty(this.staffList)){
|
|
|
|
|
+ if(this.staffList[index]){
|
|
|
|
|
+ this.form.getStaffName = this.staffList[index].name
|
|
|
|
|
+ this.form.getStaffId = this.staffList[index].id
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
getType(info){
|
|
getType(info){
|
|
|
this.form.type = info.id
|
|
this.form.type = info.id
|
|
|
this.form.typeName = info.name
|
|
this.form.typeName = info.name
|
|
@@ -145,12 +154,12 @@ export default {
|
|
|
getTypeList().then(res=>{
|
|
getTypeList().then(res=>{
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
|
that.typeList = res.data.list ? res.data.list : []
|
|
that.typeList = res.data.list ? res.data.list : []
|
|
|
- if(!that.$util.isEmpty(that.typeList)){
|
|
|
|
|
- let current = that.typeList[0]
|
|
|
|
|
- that.form.type = current.id
|
|
|
|
|
- that.form.typeName = current.name
|
|
|
|
|
- that.$forceUpdate()
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // if(!that.$util.isEmpty(that.typeList)){
|
|
|
|
|
+ // let current = that.typeList[0]
|
|
|
|
|
+ // that.form.type = current.id
|
|
|
|
|
+ // that.form.typeName = current.name
|
|
|
|
|
+ // that.$forceUpdate()
|
|
|
|
|
+ // }
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
|
|
|