licp
2024-04-01 d5c18517bf33ae8eafcf2e34ac11fe11a0bfd761
修改检验任务
已修改4个文件
27 ■■■■ 文件已修改
src/assets/api/controller.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/do/b1-inspect-order-plan/Inspection.vue 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/b1-inspect-order-plan.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/b1-report-preparation.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/api/controller.js
@@ -139,6 +139,7 @@
    saveInsContext: "/insOrderPlan/saveInsContext",//保存检验内容
  upPlanUser: "/insOrderPlan/upPlanUser",//任务交接
  verifyPlan: "/insOrderPlan/verifyPlan",//复核检验任务
  submitPlan: "/insOrderPlan/submitPlan",//检验任务提交
}
const systemLog = {
src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -124,6 +124,7 @@
            <el-col :span="12" style="text-align: right;">
                <el-button size="small" type="primary" @click="sampleVisible=true">样品切换</el-button>
                <el-button size="small" type="primary" @click="taskVisible=true">任务切换</el-button>
        <el-button size="small" type="primary" @click="submit" v-show="state==1" :loading="submitLoading">提交</el-button>
        <!-- 复核 -->
        <el-button size="medium" type="primary" @click="upInsReview(1)" :loading="reviewLoading"
                        v-show="state>1">通过</el-button>
@@ -266,6 +267,7 @@
            return {
                sampleVisible: false,
                taskVisible: false,
        submitLoading:false,
                searchForm: {
                    sampleName: null,
                    state: null
@@ -822,7 +824,7 @@
            laboratory:this.sonLaboratory,
            tell:null
          }).then(res => {
            if (res.code === 200 && res.data) {
            if (res.code === 200) {
              this.$message.success("操作成功")
              this.$emit('goback')
            }
@@ -845,7 +847,7 @@
            laboratory:this.sonLaboratory,
            tell:this.noReason
          }).then(res => {
            if (res.code === 200 && res.data) {
            if (res.code === 200) {
              this.$message.success("操作成功")
              this.$emit('goback')
            }
@@ -858,6 +860,22 @@
          this.$message.error('未输入不通过原因')
        }
      },
      submit(){
        this.submitLoading = true;
        this.$axios.post(this.$api.insOrderPlan.submitPlan, {
            orderId:this.orderId,
            laboratory:this.sonLaboratory,
        }).then(res => {
          if (res.code === 200) {
            this.$message.success("操作成功")
            this.$emit('goback')
          }
          this.submitLoading = false;
        }).catch(error => {
          console.error(error)
          this.submitLoading = false;
        })
      }
      }
}
</script>
src/components/view/b1-inspect-order-plan.vue
@@ -507,7 +507,7 @@
            orderId:this.orderId,
            userId:this.connectPerson
          }).then(res => {
                    if (res.code === 200 && res.data) {
                    if (res.code === 200) {
            this.loading = false;
                        this.$message.success("操作成功")
                        this.refreshTable()
src/components/view/b1-report-preparation.vue
@@ -77,7 +77,7 @@
                    :key="upIndex" @handleWeave="handleWeave"/>
            </div>
        </div>
    <el-dialog title="在线编制" :visible.sync="claimVisible" width="70%" :modal-append-to-body="false">
    <el-dialog title="在线编制" :visible.sync="claimVisible" width="80%" :modal-append-to-body="false">
      <Word style="height:70vh" v-if="claimVisible" ref="Word"/>
            <span slot="footer" class="dialog-footer">
                <el-button @click="claimVisible = false">取 消</el-button>