|
|
@@ -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;
|
|
|
}
|
|
|
}
|
|
|
};
|