Browse Source

修改申请开票逻辑

master
liaoxinyu 3 weeks ago
parent
commit
b71ef4ca57
  1. 1
      manifest.json
  2. 19
      pages/Invoicing/Invoicing.vue

1
manifest.json

@ -5,6 +5,7 @@
"versionName" : "1.0.0",
"versionCode" : "100",
"transformPx" : false,
"sassImplementationName": "node-sass",
/* 5+App */
"app-plus" : {
"usingComponents" : true,

19
pages/Invoicing/Invoicing.vue

@ -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: {
// selectedYearselectedMonthpickerValue
@ -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,

Loading…
Cancel
Save