zhangwencui
13 小时以前 ff817dab1f7b3e762896446afbcd68579381adcf
危险作业审批模块开发
已添加1个文件
已修改3个文件
74 ■■■■ 文件已修改
src/pages.json 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/cooperativeOffice/collaborativeApproval/index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/cooperativeOffice/collaborativeApproval/index8.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/index.vue 45 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages.json
@@ -710,6 +710,13 @@
        "navigationStyle": "custom"
      }
    },
    {
      "path": "pages/cooperativeOffice/collaborativeApproval/index8",
      "style": {
        "navigationBarTitleText": "危险作业审批",
        "navigationStyle": "custom"
      }
    },
  ],
  "subPackages": [
    {
src/pages/cooperativeOffice/collaborativeApproval/index.vue
@@ -100,14 +100,14 @@
                  <u-button type="primary"
                            size="small"
                            class="action-btn edit"
                            :disabled="item.approveStatus == 2 || item.approveStatus == 1 || item.approveStatus == 4"
                            :disabled="item.approveStatus == 2 || item.approveStatus == 1 || item.approveStatus == 4 || item.approveStatus == 8"
                            @click="handleItemClick(item)">
                    ç¼–辑
                  </u-button>
                  <u-button type="success"
                            size="small"
                            class="action-btn approve"
                            :disabled="item.approveUserCurrentId == null || item.approveStatus == 2 || item.approveStatus == 3 || item.approveStatus == 4 || item.approveUserCurrentId !== userStore.id"
                            :disabled="item.approveUserCurrentId == null || item.approveStatus == 2 || item.approveStatus == 3 || item.approveStatus == 4 || item.approveStatus == 8 || item.approveUserCurrentId !== userStore.id"
                            @click="approve(item)">
                    å®¡æ ¸
                  </u-button>
@@ -157,6 +157,7 @@
      5: "采购管理",
      6: "报价管理",
      7: "出库管理",
      8: "危险作业管理",
    };
    return titleMap[type] || "审批管理";
  };
src/pages/cooperativeOffice/collaborativeApproval/index8.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,17 @@
<template>
  <view class="container">
    <!-- å¼•å…¥index.vue组件并传递参数 -->
    <ApprovalProcessIndex :approveType="8" />
  </view>
</template>
<script setup>
  import ApprovalProcessIndex from "./index.vue";
</script>
<style scoped>
  .container {
    width: 100%;
    height: 100%;
  }
</style>
src/pages/index.vue
@@ -1,24 +1,24 @@
<template>
  <view class="content">
<!--    <view class="header-section">-->
<!--      <view class="currentFactory">-->
<!--        <up-text type="primary"-->
<!--                 :text="userStore.currentFactoryName"-->
<!--                 @click="show = true"-->
<!--                 size="18"-->
<!--                 class="factoryName"-->
<!--                 suffixIcon="arrow-right"-->
<!--                 :iconStyle="iconStyle"></up-text>-->
<!--      </view>-->
<!--      <up-picker :show="show"-->
<!--                 :columns="factoryList"-->
<!--                 @confirm="changeFactory"-->
<!--                 @cancel="show = false"></up-picker>-->
<!--    </view>-->
    <!--    <view class="header-section">-->
    <!--      <view class="currentFactory">-->
    <!--        <up-text type="primary"-->
    <!--                 :text="userStore.currentFactoryName"-->
    <!--                 @click="show = true"-->
    <!--                 size="18"-->
    <!--                 class="factoryName"-->
    <!--                 suffixIcon="arrow-right"-->
    <!--                 :iconStyle="iconStyle"></up-text>-->
    <!--      </view>-->
    <!--      <up-picker :show="show"-->
    <!--                 :columns="factoryList"-->
    <!--                 @confirm="changeFactory"-->
    <!--                 @cancel="show = false"></up-picker>-->
    <!--    </view>-->
    <view class="hero-section">
      <view class="bg-img">
        <view class="hero-content">
<!--          <text class="hero-title">军泰伟业</text>-->
          <!--          <text class="hero-title">军泰伟业</text>-->
        </view>
        <view class="hero-wave"></view>
      </view>
@@ -220,7 +220,7 @@
  import modal from "@/plugins/modal";
  import useUserStore from "@/store/modules/user";
  const userStore = useUserStore();;
  const userStore = useUserStore();
  const show = ref(false);
  const factoryList = ref([]);
  const factoryListTem = ref([]);
@@ -306,6 +306,10 @@
    {
      icon: "/static/images/icon/caigoutaizhang@2x.png",
      label: "危险源管理",
    },
    {
      icon: "/static/images/icon/caigoutaizhang@2x.png",
      label: "危险作业",
    },
  ]);
  // ååŒåŠžå…¬åŠŸèƒ½æ•°æ®
@@ -679,6 +683,11 @@
          url: "/pages/safeProduction/hazardSourceLedger/index",
        });
        break;
      case "危险作业":
        uni.navigateTo({
          url: "/pages/cooperativeOffice/collaborativeApproval/index8",
        });
        break;
      default:
        uni.showToast({
          title: `点击了${item.label}`,
@@ -699,7 +708,7 @@
          factoryListTem.value = res.data;
          res.data.forEach(item => {
            factoryList.value[0].push(item.deptName);
          })
          });
        } else {
          // å¦‚æžœres.data不是数组,设置为空数组
          factoryList.value = [];