zhangwencui
10 天以前 ce0244580ec21e8be3b17367580eda6031878a9c
质检编辑页面跳转
已修改6个文件
52 ■■■■■ 文件已修改
src/pages/qualityManagement/finalInspection/add.vue 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/qualityManagement/finalInspection/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/qualityManagement/materialInspection/add.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/qualityManagement/materialInspection/index.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/qualityManagement/processInspection/add.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/qualityManagement/processInspection/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/qualityManagement/finalInspection/add.vue
@@ -302,7 +302,7 @@
<script setup>
  import { ref, computed, onMounted, nextTick } from "vue";
  import { onShow } from "@dcloudio/uni-app";
  import { onShow, onLoad } from "@dcloudio/uni-app";
  import PageHeader from "@/components/PageHeader.vue";
  import dayjs from "dayjs";
  import { getOptions } from "@/api/procurementManagement/procurementLedger.js";
@@ -454,7 +454,7 @@
  // 是否为编辑模式
  const isEdit = computed(() => {
    const id = getPageId();
    const id = optionsId.value;
    return !!id;
  });
@@ -737,7 +737,7 @@
  // 初始化表单
  const initForm = async () => {
    const id = getPageId();
    const id = optionsId.value;
    if (id) {
      // 编辑模式,加载数据
      // 先重置表单数据
@@ -890,6 +890,13 @@
  onShow(() => {
    initForm();
  });
  const optionsId = ref("");
  onLoad(options => {
    optionsId.value = options.id || "";
    console.log(optionsId.value, "========");
    initForm();
  });
</script>
<style scoped lang="scss">
src/pages/qualityManagement/finalInspection/index.vue
@@ -60,8 +60,7 @@
          v-if="inspectionList.length > 0">
      <view v-for="(item, index) in inspectionList"
            :key="index">
        <view class="inspection-item"
              @click="viewDetail(item)">
        <view class="inspection-item">
          <view class="item-header">
            <view class="item-left">
              <!-- <view class="material-icon"
@@ -77,6 +76,7 @@
            </view>
            <view class="status-tags">
              <u-tag :type="getTagType(item.checkResult)"
                     v-if="item.checkResult!=null"
                     size="mini"
                     class="status-tag">
                {{ item.checkResult }}
src/pages/qualityManagement/materialInspection/add.vue
@@ -309,7 +309,7 @@
<script setup>
  import { ref, computed, onMounted, nextTick } from "vue";
  import { onShow } from "@dcloudio/uni-app";
  import { onShow, onLoad } from "@dcloudio/uni-app";
  import PageHeader from "@/components/PageHeader.vue";
  import dayjs from "dayjs";
  import { getOptions } from "@/api/procurementManagement/procurementLedger.js";
@@ -460,7 +460,7 @@
  // 是否为编辑模式
  const isEdit = computed(() => {
    const id = getPageId();
    const id = optionsId.value;
    return !!id;
  });
@@ -474,7 +474,7 @@
  const getPageId = () => {
    const pages = getCurrentPages();
    const currentPage = pages[pages.length - 1];
    return currentPage.options.id;
    // return currentPage.options.id;
  };
  // 返回上一页
@@ -743,7 +743,7 @@
  // 初始化表单
  const initForm = async () => {
    const id = getPageId();
    const id = optionsId.value;
    if (id) {
      // 编辑模式,加载数据
      // 先重置表单数据
@@ -896,6 +896,12 @@
  onShow(() => {
    initForm();
  });
  const optionsId = ref("");
  onLoad(options => {
    optionsId.value = options.id || "";
    console.log(optionsId.value, "========");
    initForm();
  });
</script>
<style scoped lang="scss">
src/pages/qualityManagement/materialInspection/index.vue
@@ -60,8 +60,7 @@
          v-if="inspectionList.length > 0">
      <view v-for="(item, index) in inspectionList"
            :key="index">
        <view class="inspection-item"
              @click="viewDetail(item)">
        <view class="inspection-item">
          <view class="item-header">
            <view class="item-left">
              <!-- <view class="material-icon"
@@ -77,6 +76,7 @@
            </view>
            <view class="status-tags">
              <u-tag :type="getTagType(item.checkResult)"
                     v-if="item.checkResult!=null"
                     size="mini"
                     class="status-tag">
                {{ item.checkResult }}
@@ -422,6 +422,7 @@
  // 新增检验
  const addInspection = () => {
    console.log("新增检验");
    uni.navigateTo({
      url: "/pages/qualityManagement/materialInspection/add",
    });
src/pages/qualityManagement/processInspection/add.vue
@@ -302,7 +302,7 @@
<script setup>
  import { ref, computed, onMounted, nextTick } from "vue";
  import { onShow } from "@dcloudio/uni-app";
  import { onShow, onLoad } from "@dcloudio/uni-app";
  import PageHeader from "@/components/PageHeader.vue";
  import dayjs from "dayjs";
  import { getOptions } from "@/api/procurementManagement/procurementLedger.js";
@@ -454,7 +454,7 @@
  // 是否为编辑模式
  const isEdit = computed(() => {
    const id = getPageId();
    const id = optionsId.value;
    return !!id;
  });
@@ -737,7 +737,7 @@
  // 初始化表单
  const initForm = async () => {
    const id = getPageId();
    const id = optionsId.value;
    if (id) {
      // 编辑模式,加载数据
      // 先重置表单数据
@@ -890,6 +890,12 @@
  onShow(() => {
    initForm();
  });
  const optionsId = ref("");
  onLoad(options => {
    optionsId.value = options.id || "";
    console.log(optionsId.value, "========");
    initForm();
  });
</script>
<style scoped lang="scss">
src/pages/qualityManagement/processInspection/index.vue
@@ -60,8 +60,7 @@
          v-if="inspectionList.length > 0">
      <view v-for="(item, index) in inspectionList"
            :key="index">
        <view class="inspection-item"
              @click="viewDetail(item)">
        <view class="inspection-item">
          <view class="item-header">
            <view class="item-left">
              <!-- <view class="material-icon"
@@ -77,6 +76,7 @@
            </view>
            <view class="status-tags">
              <u-tag :type="getTagType(item.checkResult)"
                     v-if="item.checkResult!=null"
                     size="mini"
                     class="status-tag">
                {{ item.checkResult }}