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" :limit.sync="queryParams.pageSize"
@pagination="getList" @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> </div>
</template> </template>
@ -54,9 +54,9 @@ export default {
components: {Defectrecord}, components: {Defectrecord},
data() { data() {
return { return {
defect_qcId: null, defect_qcid: null,
defect_qcLineId: null, defect_qclineid: null,
defect_qcType: 'IPQC', defect_qctype: 'IPQC',
// //
loading: true, loading: true,
// //
@ -173,9 +173,8 @@ export default {
}, },
// //
handleDefect(row){ handleDefect(row){
debugger;
this.defect_qcid = row.ipqcId; this.defect_qcid = row.ipqcId;
this.defect_lineid = row.lineId; this.defect_qclineid = row.lineId;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.defectDialog.showFlag = true; this.$refs.defectDialog.showFlag = true;
this.$refs.defectDialog.getList(); this.$refs.defectDialog.getList();

View File

@ -230,7 +230,6 @@ export default {
confirm() { confirm() {
if(this.iqcdefectList.length !=0){ if(this.iqcdefectList.length !=0){
updateIqcdefect(this.iqcdefectList).then(res => { updateIqcdefect(this.iqcdefectList).then(res => {
debugger;
this.$modal.msgSuccess(res.msg); this.$modal.msgSuccess(res.msg);
if (res.code === 200) { if (res.code === 200) {
this.open = false; this.open = false;
@ -242,12 +241,10 @@ export default {
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(index,row) { handleDelete(index,row) {
debugger;
const recordIds = row.recordId || this.ids; const recordIds = row.recordId || this.ids;
let that = this; let that = this;
this.$modal.confirm('是否确认删除缺陷记录?').then(function() { this.$modal.confirm('是否确认删除缺陷记录?').then(function() {
that.iqcdefectList.forEach(function(item,i,arr){ that.iqcdefectList.forEach(function(item,i,arr){
debugger;
if(i == index){ if(i == index){
if(that.iqcdefectList[index].flag=='add'){ if(that.iqcdefectList[index].flag=='add'){
// //