IPQC过程检验缺陷记录更改保存修改
This commit is contained in:
parent
21a7f51c08
commit
f53ee15ba7
@ -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();
|
||||||
|
@ -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'){
|
||||||
//如果是刚新增的则直接删除
|
//如果是刚新增的则直接删除
|
||||||
|
Loading…
Reference in New Issue
Block a user