Parcourir la source

移动端代办分离出来

yewc il y a 1 an
Parent
commit
4e77e8131d

+ 33 - 0
client_h5/src/pages/assetAgent/index.scss

@@ -0,0 +1,33 @@
+.van-cell-group {
+  margin: 0px;
+}
+.van-overlay {
+  background: rgba(0,0,0,0.3);
+}
+.add_btn {
+  background-color: #1989fa;
+  padding: 5px 10px;
+  border: 0px;
+  outline: none;
+  font-size: 13px;
+  color: #fff;
+  border-radius: 2px;
+}
+.detail-popup {
+  >.title {
+    font-size: 15px;
+    padding-left: 10px;
+  }
+  >.fixed-btn {
+    padding: 15px;
+  }
+}
+  :deep(.van-swipe-cell__right) {
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    justify-content: center;
+    >button {
+      height: 50%;
+    }
+  }

+ 0 - 0
client_h5/src/pages/asset/indexAgent.vue → client_h5/src/pages/assetAgent/index.vue


+ 8 - 6
client_h5/src/pages/loan/index.vue

@@ -43,7 +43,7 @@
             name="项目"
             label="项目"
             placeholder="点击选择项目"
-            @click="showPicker = true"
+            @click="showPickerClick"
             :rules="[{ required: true, message: '请选择项目' }]"
           />
           <van-field
@@ -71,7 +71,6 @@
             type="textarea"
             rows="3"
             autosize
-            :rules="[{ required: true, message: '请填写借款备注' }]"
           />
         </van-cell-group>
       </van-form>
@@ -123,7 +122,7 @@ const formData = ref<FormDataType>({
   projecId: "",
 });
 let columns = [];
-const showPicker = ref(false);
+let showPicker = ref(false);
 const customFieldName = {
   text: "xmmc",
   value: "id",
@@ -133,6 +132,11 @@ const onConfirm = (value) => {
   formData.value.projectName = value.selectedOptions[0].xmmc;
   showPicker.value = false;
 };
+const showPickerClick = (value) => {
+  if(read!='1'){
+    showPicker.value = true;
+  }
+};
 const formRead = ref(false);
 const { activityInstanceId, participant, flowInstanceId, read } =
   route.query as {
@@ -176,9 +180,7 @@ const initFormData = async () => {
   formData.value = result.data;
 };
 const getProjectList = async () => {
-  const result = await reqest.get(
-    `/business/project/getListByUser`
-  );
+  const result = await reqest.get(`/business/project/getListByUser`);
   columns = result.data;
 };
 /** 初始化 */

+ 33 - 0
client_h5/src/pages/usemoneyAgent/index.scss

@@ -0,0 +1,33 @@
+.van-cell-group {
+  margin: 0px;
+}
+.van-overlay {
+  background: rgba(0,0,0,0.3);
+}
+.add_btn {
+  background-color: #1989fa;
+  padding: 5px 10px;
+  border: 0px;
+  outline: none;
+  font-size: 13px;
+  color: #fff;
+  border-radius: 2px;
+}
+.detail-popup {
+  >.title {
+    font-size: 15px;
+    padding-left: 10px;
+  }
+  >.fixed-btn {
+    padding: 15px;
+  }
+}
+  :deep(.van-swipe-cell__right) {
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    justify-content: center;
+    >button {
+      height: 50%;
+    }
+  }

+ 0 - 0
client_h5/src/pages/usemoney/indexAgent.vue → client_h5/src/pages/usemoneyAgent/index.vue


+ 4 - 4
client_h5/src/router/routes.ts

@@ -134,12 +134,12 @@ const routes: RouteRecordRaw[] = [
         component: () => import("@/pages/usemoney/index.vue"),
       },
       {
-        path: "usemoney/indexAgent",
+        path: "usemoneyAgent",
         name: "usemoneyAgent",
         meta: {
           title: "用款申请(代办)",
         },
-        component: () => import("@/pages/usemoney/indexAgent.vue"),
+        component: () => import("@/pages/usemoneyAgent/index.vue"),
       },
       {
         path: "transfer",
@@ -254,12 +254,12 @@ const routes: RouteRecordRaw[] = [
         component: () => import("@/pages/asset/indexs.vue"),
       },
       {
-        path: "asset/indexAgent",
+        path: "assetAgent",
         name: "assetAgent",
         meta: {
           title: "固定资产(代办)",
         },
-        component: () => import("@/pages/asset/indexAgent.vue"),
+        component: () => import("@/pages/assetAgent/index.vue"),
       },
       {
         path: "outsource",