|
|
|
@ -38,7 +38,7 @@ |
|
|
|
</radio-group> |
|
|
|
</uni-forms-item> |
|
|
|
<uni-forms-item label="用户编号:" required name="name" :label-width="90"> |
|
|
|
<uni-combox v-model="list1.pucode" :border="false" :candidates="candidates" placeholder="请选择或输入用户编号"></uni-combox> |
|
|
|
<uni-combox v-model="list1.pucode" :border="false" :candidates="candidates" placeholder="请选择或输入用户编号" @input="pucodeinput"></uni-combox> |
|
|
|
</uni-forms-item> |
|
|
|
<uni-forms-item label="账期:" required name="name" :label-width="90"> |
|
|
|
<view @click="showPopup" style="height: 72rpx;line-height: 72rpx;margin-left: 20rpx;margin-right: 18rpx;"> |
|
|
|
@ -259,7 +259,7 @@ |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
this.dropdown() |
|
|
|
this.Obtain() |
|
|
|
// this.Obtain() |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
// 监听selectedYear和selectedMonth的变化,以更新pickerValue |
|
|
|
@ -273,11 +273,16 @@ |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
pucodeinput(val){ |
|
|
|
if(val.length==8){ |
|
|
|
this.Obtain() |
|
|
|
} |
|
|
|
}, |
|
|
|
// 获取开票信息的下拉数据 |
|
|
|
dropdown(){ |
|
|
|
API.getApplyData({}, res => { |
|
|
|
this.range = res.data.project_arr; |
|
|
|
this.candidates.push(res.data.pucode) |
|
|
|
this.candidates.push(...res.data.pucode) |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 把开票项目的 value 换成 名称显示 |
|
|
|
@ -360,9 +365,9 @@ |
|
|
|
// this.stepsIndex = 0; |
|
|
|
// return |
|
|
|
// } |
|
|
|
// this.Obtain() |
|
|
|
this.pay() |
|
|
|
this.form1 = this.$refs.form.modelValue; |
|
|
|
// this.Obtain() |
|
|
|
} |
|
|
|
|
|
|
|
if(this.stepsIndex == 2){ |
|
|
|
@ -478,18 +483,18 @@ |
|
|
|
// _this.list2.tax_number = info.taxNumber; |
|
|
|
// }) |
|
|
|
// }) |
|
|
|
API.getFeeInvoiceHead({}, res => { |
|
|
|
API.getFeeInvoiceHead({pucode:+_this.list1.pucode}, res => { |
|
|
|
_this.list2.type = String(res.data.type); |
|
|
|
_this.list2.title = res.data.title; |
|
|
|
_this.list2.tax_number = res.data.tax_number; |
|
|
|
_this.list1.email = res.data.email; |
|
|
|
console.log(res.data); |
|
|
|
// console.log(res.data); |
|
|
|
}) |
|
|
|
// #endif |
|
|
|
}, |
|
|
|
pay(){ |
|
|
|
let data = { |
|
|
|
pucode: this.list1.pucode, |
|
|
|
pucode: +this.list1.pucode, |
|
|
|
expire_time: this.list1.expire_time, |
|
|
|
project_id: this.list1.project_id, |
|
|
|
merge: this.list1.merge, |
|
|
|
|