From 5a6c673327456086247d9565040a8b9d55dbe6dd Mon Sep 17 00:00:00 2001
From: "3075067877@qq.com" <3075067877@qq.com>
Date: Fri, 12 Apr 2024 18:31:18 +0800
Subject: [PATCH] fix
---
src/subpackage/party/pages/miniapp/certify.vue | 10 +++++
src/subpackage/party/pages/miniapp/record.vue | 51 ++++++++++++++++++++++----
2 files changed, 53 insertions(+), 8 deletions(-)
diff --git a/src/subpackage/party/pages/miniapp/certify.vue b/src/subpackage/party/pages/miniapp/certify.vue
index 9b0d648..6130a73 100644
--- a/src/subpackage/party/pages/miniapp/certify.vue
+++ b/src/subpackage/party/pages/miniapp/certify.vue
@@ -97,12 +97,22 @@
placeholder-class="input-hold-class">
+ 发票抬头*
+
+
+
发票备注*
+
+ 发票抬头*
+
+
企业电话*
- 负责人证件照片*
+ 主体证件照片*
证件类型*
-
+
+
证件号码*
@@ -235,7 +239,7 @@
-
+
@@ -733,14 +737,14 @@ export default {
}
},
- onLoad(opts) {
+ async onLoad(opts) {
console.log("onload-", opts)
// if(!opts.appid){
// opts.appid = "wxc141a743225e7885"
// }
this.appid = opts.appid;
- this.getData();
- // this.getTempDraft();
+ await this.getData();
+ await this.getTempDraft();
},
onShow() {
@@ -805,6 +809,35 @@ export default {
this.form.icp_applets.principal_info.certificate_validity_date_end = ""
}
},
+ setPickerValueShow(){//根据回显数据初始化picker值的显示, 待优化
+ console.log("setPickerValue")
+ let {form} = this
+ //主体类型
+ this.queryIcpSubjectTypes_index = this.queryIcpSubjectTypes.findIndex(item=>item.type==form.icp_subject.base_info.type)
+ this.bindPickerChange_queryIcpSubjectTypes({
+ detail:{
+ value:this.queryIcpSubjectTypes_index
+ }
+ })
+ //证件类型
+ // setTimeout(()=>{
+ // this.bindPickerChange_queryIcpCertificateTypes({
+ // detail:{
+ // value:form.icp_subject.organize_info.certificate_type
+ // }
+ // })
+ // },500)
+ // this.queryIcpCertificateTypes_index = this.form.icp_subject.organize_info.certificate_type
+ // this.queryIcpCertificateTypes_show = this.queryIcpCertificateTypesArr[this.form.icp_subject.organize_info.certificate_type]
+ //省市区
+ // this.areaDetail = {
+ // code:[form.icp_subject.base_info.province,form.icp_subject.base_info.city,form.icp_subject.base_info.district],
+ // value:[form.icp_subject.base_info.province,form.icp_subject.base_info.city,form.icp_subject.base_info.district]
+ // }
+ //服务内容类型
+
+ },
+
bindPickerChange_queryIcpSubjectTypes(e) {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.queryIcpSubjectTypes_index = e.detail.value
@@ -952,7 +985,7 @@ export default {
_data.localImg = this.localImg //保存本地图片
console.log("editTempDraft:", _data)
- servers.get({
+ servers.post({
url: party_api.editTempDraft,
data: _data,
isDefaultGet: false,
@@ -973,7 +1006,7 @@ export default {
},
getTempDraft(){
let _data = this.getGateWayJson('apply_icp_filing')
- servers.get({
+ servers.post({
url: party_api.getTempDraft,
data: _data,
isDefaultGet: false,
@@ -987,6 +1020,8 @@ export default {
console.log("获取缓存数据:", _res)
this.form = _res.form//保存表单数据
if(_res.localImg)this.localImg = _res.localImg//保存本地图片
+
+ this.setPickerValueShow()
}
})
.catch(err=>{