From 59dc853cdfa2f90e0e67c18754e59d1ad764cf9a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=94=90=E6=98=8E=E6=98=8E?= <970899069@qq.com>
Date: Tue, 28 Mar 2023 15:56:36 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E6=9E=84=E7=AD=9B=E9=80=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages.json | 5 -
pages/index/index.vue | 22 ----
pages/work/generate.vue | 33 ++++-
.../oct-mechanism-picker.vue | 117 +++++++++++++++++-
4 files changed, 141 insertions(+), 36 deletions(-)
diff --git a/pages.json b/pages.json
index 0c59f36..4df438c 100644
--- a/pages.json
+++ b/pages.json
@@ -599,11 +599,6 @@
"selectedIconPath": "static/icons/tabs_show_02.png",
"pagePath": "pages/work/index",
"text": "工作台"
- },{
- "iconPath": "static/icons/tabs_icon_04.png",
- "selectedIconPath": "static/icons/tabs_icon_04.png",
- "pagePath": "pages/im/msg",
- "text": "消息"
}, {
"iconPath": "static/icons/tabs_icon_03.png",
"selectedIconPath": "static/icons/tabs_show_03.png",
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 763a428..ee95bd2 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -110,13 +110,6 @@
-
-
-
@@ -126,18 +119,6 @@
export default {
data() {
return {
- jgArr : [
- { name: '中信' },
- { name: '哈尔滨' },
- { name: '广州' },
- { name: '发展银行' },
- { name: '其他机构' },
- { name: '中信' },
- { name: '哈尔滨' },
- { name: '广州' },
- { name: '发展银行' },
- { name: '其他机构' }
- ],
theTabs : [
{ category_id: '', title: '全部' }
],
@@ -165,9 +146,6 @@
this.getZf()
},
methods: {
- onOpen(){
- this.$refs.MecanisPicker.open()
- },
// 获取金法列表
getJf(){
let params = {
diff --git a/pages/work/generate.vue b/pages/work/generate.vue
index 17b5e06..f8a0864 100644
--- a/pages/work/generate.vue
+++ b/pages/work/generate.vue
@@ -11,12 +11,16 @@
-
+
+
+ {{item.institution[item.institutionIndex].title}}
+
+
@@ -103,6 +107,13 @@
+
+
@@ -113,9 +124,12 @@
components: { octpicker },
data() {
return {
+ columns : [],
businessArr: [],
serviceUser: '',
serviceArr : [],
+ old : {},
+ cIndex : 0
};
},
created() {
@@ -125,6 +139,13 @@
this.serviceUser = serviceUser
},
methods: {
+ // 显示选择机构
+ onShowInstitution(e, item, index){
+ this.columns = e
+ this.old = item
+ this.cIndex = index
+ this.$refs.institutionPicker.open()
+ },
// 移出选项
onRemove(index){
this.serviceArr.splice(index, 1)
@@ -202,10 +223,12 @@
})
},
// 机构变更更新业务
- institutionChange(e, old, index){
- let { value } = e.detail;
+ institutionChange(e){
+ let index = this.cIndex
+ let old = this.old
+ let value = old.institution.findIndex(val => val.institution_id === e.val.institution_id);
let businessId = old.subVal.business_id
-
+
// 获取机构的子业务类型
let forms = this.getForms(old.institution[value].institution_id)
forms.then(institutionVal => {
diff --git a/uni_modules/oct-mechanism-picker/components/oct-mechanism-picker/oct-mechanism-picker.vue b/uni_modules/oct-mechanism-picker/components/oct-mechanism-picker/oct-mechanism-picker.vue
index 2785aea..7c78794 100644
--- a/uni_modules/oct-mechanism-picker/components/oct-mechanism-picker/oct-mechanism-picker.vue
+++ b/uni_modules/oct-mechanism-picker/components/oct-mechanism-picker/oct-mechanism-picker.vue
@@ -3,16 +3,42 @@
{{title}}
+
+
+
+
+
+
- {{item.name}}
+
+
+ {{item.title}}
+
+
+
+ 暂无与[{{searchValue}}]相关的搜索结果
+
+
+
+
+ {{item.title}}
+
+
+
-
+