IPQC过程检验缺陷记录更改保存修改

This commit is contained in:
JinLu.Yin 2022-08-30 23:18:31 +08:00
parent 21a7f51c08
commit f53ee15ba7
2 changed files with 5 additions and 9 deletions

View File

@ -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();

View File

@ -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'){
//