zjh
2025-08-19 0293d4f776f88ebc307a750f38a16454f4553701
pages/QC/XJ/Add.vue
@@ -137,6 +137,10 @@
    <!-- 操作按钮区 -->
    <view class="action-buttons">
      <button v-if="isUpdate && !isShowTable" class="secondary-btn" @click="getItem">创建检验单并生成部分默认值</button>
       <!-- <button class="secondary-btn" @click="toYzxSubmitFrom(formData.releaseNo)">一致性核对</button> -->
      <button v-if="!isUpdate && !isShowTable" class="secondary-btn" @click="toYzxSubmitFrom(formData.releaseNo)">一致性核对</button>
      <button v-if="!isUpdate && !isShowTable" class="secondary-btn" @click="toImage">上传/查看图片</button>
      <button v-if="!isUpdate && !formData.fsubmit && !isShowTable" class="secondary-btn" @click="removeXJ">
        删除单据
@@ -216,9 +220,14 @@
  },
  onLoad(options) {
    //options中包含了url附带的参数
    let params = options;
if(params["current"]==='A')
      {
         this.current=true;
      }else if(params["current"]==='B'){
         this.current=false;
      }
    if (params["id"]) {
      this.isUpdate = false;
      this.formData.id = params["id"];
@@ -427,7 +436,11 @@
          }
        });
      });
    },
    },   toYzxSubmitFrom(releaseNo){
      uni.navigateTo({
         url: 'yzxFrom?id=' +this.formData.id+'&current='+this.current
      });
   },
    init() {
      this.$post({
        url: "/XJ/getPage",