licp
2024-11-01 69ed1555e7be98d643e5cf9c55b591c44d52d1b9
src/components/view/b1-inspection-order.vue
@@ -402,18 +402,19 @@
                <div>
                  <div style="width: 100%;line-height: 30px;">
                    <el-row style="font-size: 16px;">
                      <el-col :span="16"><span>&nbsp;&nbsp;&nbsp;&nbsp;样品编号:&nbsp; </span>{{ item.sampleCode }}</el-col>
                      <el-col :span="8"><span>&nbsp;&nbsp;&nbsp;&nbsp;规格型号:&nbsp; </span>{{ item.model }}</el-col>
                      <el-col :span="16" style="text-align: left;"><span>&nbsp;&nbsp;&nbsp;&nbsp;样品编号:&nbsp; </span>{{ item.sampleCode }}</el-col>
                      <el-col :span="8" style="text-align: left;"><span>&nbsp;&nbsp;&nbsp;&nbsp;规格型号:&nbsp; </span>{{ item.model }}</el-col>
                    </el-row>
                    <el-row style="margin-top: 1px;font-size: 16px;">
                      <el-col :span="16"><span>&nbsp;&nbsp;&nbsp;&nbsp;委托单号:&nbsp; </span>{{ item.code }}</el-col>
                      <el-col :span="8"><span>&nbsp;&nbsp;&nbsp;&nbsp;电机编号:&nbsp; </span>{{ item.motorNumber }}</el-col>
                      <el-col :span="16" style="text-align: left;"><span>&nbsp;&nbsp;&nbsp;&nbsp;委托单号:&nbsp; </span>{{ item.code }}</el-col>
                      <el-col :span="8" style="text-align: left;"><span>&nbsp;&nbsp;&nbsp;&nbsp;电机编号:&nbsp; </span>{{ item.motorNumber }}</el-col>
                    </el-row>
                    <el-row style="margin-top: 1px;font-size: 16px;">
                      <el-col><span>&nbsp;&nbsp;&nbsp;&nbsp;样机完成时间:&nbsp; </span>{{ item.issueTime }}</el-col>
                      <el-col :span="16" style="text-align: left;"><span>&nbsp;&nbsp;&nbsp;&nbsp;样机完成时间:&nbsp; </span>{{ item.issueTime }}</el-col>
                      <el-col :span="8" style="text-align: left;"><span>&nbsp;&nbsp;&nbsp;&nbsp;样机员:&nbsp; </span>{{ item.issueName }}</el-col>
                    </el-row>
                    <el-row style="margin-top: 1px;font-size: 16px;" class="ellipsis-multiline">
                      <el-col><span>&nbsp;&nbsp;&nbsp;&nbsp;检测项目:&nbsp; </span>{{ item.item }}</el-col>
                      <el-col style="text-align: left;"><span>&nbsp;&nbsp;&nbsp;&nbsp;检测项目:&nbsp; </span>{{ item.item }}</el-col>
                    </el-row>
                  </div>
                </div>
@@ -429,7 +430,7 @@
        </el-row>
      </span>
    </el-dialog>
    <div class="el-dialog__body" style="overflow-y: auto;position: fixed;top:60px;right: 20px;z-index: 9999;">
    <div class="el-dialog__body" style="overflow-y: auto;position: fixed;top:60px;right: 20px;z-index: 9999;display: none;">
        <div id="printMOrder" class="printMOrder" ref="printMOrder">
          <el-card class="box-card" v-for="(item, i) in checkDataList" :key="i+'uuuuu'" style="font-size: 16px !important;page-break-after: always;color: #000;box-shadow: none;margin: 0 !important;padding: 0 !important;">
            <div>
@@ -438,18 +439,19 @@
              <div>
                <div style="width: 100%;line-height: 30px;">
                  <el-row style="font-size: 16px;">
                    <el-col :span="16"><span>样品编号:&nbsp; </span>{{ item.sampleCode }}</el-col>
                    <el-col :span="7"><span>规格型号:&nbsp; </span>{{ item.model }}</el-col>
                    <el-col :span="16" style="text-align: left;"><span>样品编号:&nbsp; </span>{{ item.sampleCode }}</el-col>
                    <el-col :span="7" style="text-align: left;"><span>规格型号:&nbsp; </span>{{ item.model }}</el-col>
                  </el-row>
                  <el-row style="margin-top: 1px;font-size: 16px;">
                    <el-col :span="16"><span>委托单号:&nbsp; </span>{{ item.code }}</el-col>
                    <el-col :span="7"><span>电机编号:&nbsp; </span>{{ item.motorNumber }}</el-col>
                    <el-col :span="16" style="text-align: left;"><span>委托单号:&nbsp; </span>{{ item.code }}</el-col>
                    <el-col :span="7" style="text-align: left;"><span>电机编号:&nbsp; </span>{{ item.motorNumber }}</el-col>
                  </el-row>
                  <el-row style="margin-top: 1px;font-size: 16px;">
                    <el-col><span>样机完成时间:&nbsp; </span>{{ item.issueTime }}</el-col>
                    <el-col :span="16" style="text-align: left;"><span>样机完成时间:&nbsp; </span>{{ item.issueTime }}</el-col>
                    <el-col :span="7" style="text-align: left;"><span>样机员:&nbsp; </span>{{ item.issueName }}</el-col>
                  </el-row>
                  <el-row style="margin-top: 1px;font-size: 16px;" class="ellipsis-multiline">
                    <el-col><span>检测项目:&nbsp; </span>{{ item.item }}</el-col>
                    <el-col style="text-align: left;"><span>检测项目:&nbsp; </span>{{ item.item }}</el-col>
                  </el-row>
                </div>
              </div>
@@ -942,7 +944,7 @@
          targetStyles: ["*"], // 使用dom的所有样式,很重要
          printable: 'printMOrder',//页面
          type: "html",//文档类型
          maxWidth:360,
          maxWidth:720,
          header: '',
          style:
            `@page {
@@ -951,18 +953,18 @@
              margin-top: 0.4cm;
              margin-bottom: 0.4cm;
              padding-bottom: 0px;
              size: 400px 75px collapse;
              size: 800px 600px collapse;
            }
            html{
              zoom:100%;
            }
            @media print{
              width: 400px;
              height: 75px;
              width: 800px;
              height: 600px;
              margin:0;
            }`,
          font_size: '0.29cm',
          font_size: '16px',
        });
      },
      async print(){
@@ -998,7 +1000,10 @@
            this.$refs['ValueTable'].selectList(e)
         },
         refresh() {
        let state = this.componentData.entity.state
            this.componentData.entity = this.HaveJson(this.entityCopy)
        this.componentData.entity.state = state
        this.refreshTable()
            this.upIndex++
         },
         // 权限分配