IPQC过程检验缺陷记录更改保存修改
This commit is contained in:
parent
21a7f51c08
commit
f53ee15ba7
@ -37,7 +37,7 @@
|
||||
:limit.sync="queryParams.pageSize"
|
||||
@pagination="getList"
|
||||
/>
|
||||
<Defectrecord ref="defectDialog" :qcId="defect_qcId" :lineId="defect_qcLineId" :qcType="defect_qcType" :optType="optType"></Defectrecord>
|
||||
<Defectrecord ref="defectDialog" :qcId="defect_qcid" :lineId="defect_qclineid" :qcType="defect_qctype" :optType="optType"></Defectrecord>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -54,9 +54,9 @@ export default {
|
||||
components: {Defectrecord},
|
||||
data() {
|
||||
return {
|
||||
defect_qcId: null,
|
||||
defect_qcLineId: null,
|
||||
defect_qcType: 'IPQC',
|
||||
defect_qcid: null,
|
||||
defect_qclineid: null,
|
||||
defect_qctype: 'IPQC',
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
@ -173,9 +173,8 @@ export default {
|
||||
},
|
||||
//缺陷记录
|
||||
handleDefect(row){
|
||||
debugger;
|
||||
this.defect_qcid = row.ipqcId;
|
||||
this.defect_lineid = row.lineId;
|
||||
this.defect_qclineid = row.lineId;
|
||||
this.$nextTick(() => {
|
||||
this.$refs.defectDialog.showFlag = true;
|
||||
this.$refs.defectDialog.getList();
|
||||
|
@ -230,7 +230,6 @@ export default {
|
||||
confirm() {
|
||||
if(this.iqcdefectList.length !=0){
|
||||
updateIqcdefect(this.iqcdefectList).then(res => {
|
||||
debugger;
|
||||
this.$modal.msgSuccess(res.msg);
|
||||
if (res.code === 200) {
|
||||
this.open = false;
|
||||
@ -242,12 +241,10 @@ export default {
|
||||
},
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(index,row) {
|
||||
debugger;
|
||||
const recordIds = row.recordId || this.ids;
|
||||
let that = this;
|
||||
this.$modal.confirm('是否确认删除缺陷记录?').then(function() {
|
||||
that.iqcdefectList.forEach(function(item,i,arr){
|
||||
debugger;
|
||||
if(i == index){
|
||||
if(that.iqcdefectList[index].flag=='add'){
|
||||
//如果是刚新增的则直接删除
|
||||
|
Loading…
Reference in New Issue
Block a user