yijing пре 1 година
родитељ
комит
ffe57657bc
2 измењених фајлова са 37 додато и 4 уклоњено
  1. 2 2
      src/views/inspectionWork/edit.vue
  2. 35 2
      src/views/inspectionWork/index.vue

+ 2 - 2
src/views/inspectionWork/edit.vue

@@ -463,7 +463,7 @@ export default {
           ...this.form,
           sampleList: this.sampleList,
           planTemplateList: this.schemeList,
-          qualityInventoryList: this.packingList
+          qualityInventoryList: this.$refs.tabsRef.$refs.sourceTable.getData()
         }
         URL(params)
           .then((msg) => {
@@ -572,7 +572,7 @@ export default {
           ...this.form,
           sampleList: this.sampleList,
           planTemplateList: this.schemeList,
-          qualityInventoryList: this.packingList
+          qualityInventoryList: this.$refs.tabsRef.$refs.sourceTable.getData()
         }
         console.log(params, 'params')
         exeReportWork(params)

+ 35 - 2
src/views/inspectionWork/index.vue

@@ -46,6 +46,12 @@
           <el-link type="primary" :underline="false" v-if="row.status == 0" @click="openEdit('edit', row)">
             报工
           </el-link>
+          <!-- <el-link type="primary" :underline="false" @click="openNumber(row)">
+            合格证
+          </el-link>
+          <el-link type="primary" :underline="false">
+            质检报告
+          </el-link> -->
           <!-- <el-popconfirm class="ele-action" title="确定要删除吗?" @confirm="remove(row)" v-if="row.status == 0">
             <template v-slot:reference>
               <el-link type="danger" :underline="false" icon="el-icon-delete">
@@ -55,6 +61,19 @@
 </el-popconfirm> -->
         </template>
       </ele-pro-table>
+      <!--  -->
+      <el-dialog title="修改" :visible.sync="certificateVisible" width="25%" :before-close="handleClose">
+        <el-form :inline="true" :model="formData" class="demo-form-inline">
+          <el-form-item label="合格证号">
+            <el-input v-model="formData.certificateNumber" placeholder="请输入"></el-input>
+          </el-form-item>
+        </el-form>
+        <span slot="footer" class="dialog-footer">
+          <el-button @click="handleClose">取 消</el-button>
+          <el-button type="primary" @click="handleSubmit">确 定</el-button>
+        </span>
+      </el-dialog>
+      <!--  -->
     </el-card>
   </div>
 </template>
@@ -239,12 +258,16 @@ export default {
           columnKey: 'action',
           label: '操作',
           align: 'center',
-          width: 120,
+          width: 200,
           resizable: false,
           slot: 'action',
           fixed: 'right'
         }
-      ]
+      ],
+      formData: {
+        certificateNumber: ''
+      },
+      certificateVisible: false
     };
   },
   created() {
@@ -311,6 +334,16 @@ export default {
     },
     done() {
       this.$refs.search.search();
+    },
+    openNumber(row) {
+      this.formData.certificateNumber = row.certificateNumber;
+      this.certificateVisible = true
+    },
+    handleClose() {
+      this.certificateVisible = false;
+    },
+    handleSubmit() {
+      this.certificateVisible = false;
     }
   }
 };