Browse Source

【nev-pc】不合格转合格原因需求更改

ag_report_nev
安虹睿 11 months ago
parent
commit
b0630f6577
  1. 44
      fe/PC/src/views/rawMaterialManage/quality/unqualifiedToQualified.vue

44
fe/PC/src/views/rawMaterialManage/quality/unqualifiedToQualified.vue

@ -43,6 +43,22 @@
@alterResultCountDetails="alterResultCountDetails"
@alertoldSkipCountDetails="alertoldSkipCountDetails"
></curren-Drawer>
<!-- 批量原因弹窗 -->
<el-dialog
title="不合格转合格原因"
:visible="convertReasonShow"
:append-to-body="true"
>
<el-form :model="convertReasonForm" v-if="convertReasonShow">
<el-form-item>
<el-input v-model="convertReasonForm.reason" :rows="3" type="textarea"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button @click="convertClose"> </el-button>
<el-button type="primary" @click="convertList()"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
@ -77,12 +93,15 @@ export default {
label: "批量转合格",
name: "custom",
size: "mini",
customHandle: this.convertList()
// customHandle: this.convertList()
customHandle:(()=>{this.convertShow()})
},
this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),//
this.defaultFilterBtn(),//
],
convertReasonShow:false,//
convertReasonForm:{reason:null},
};
},
mounted () {
@ -105,15 +124,23 @@ export default {
handleSelectionChange(val) {
this.selectionData = val
},
convertShow(){
if(this.selectionData && this.selectionData.length > 0){
this.convertReasonShow = true
}else{
this.$message.warning('请至少选择一条数据!')
}
},
convertClose(){
this.convertReasonShow = false;
this.convertReasonForm.reason = ''
},
//
convertList() {
if (this.selectionData != undefined ) {
if (this.selectionData.length > 0) {
this.Loading.appMainLoading = true
// 20230407
let params = {
tenantId: null,
remark: null,
remark: this.convertReasonForm.reason,
extraProperties: null,
worker: store.getters.name.userName,
activeDate: new Date(),
@ -179,16 +206,13 @@ export default {
convertOk(params).then(res => {
this.$message.success('已成功转为合格')
this.paging()
this.convertClose()
this.Loading.appMainLoading = false
}).catch(err => {
this.Loading.appMainLoading = false
console.log(err)
})
} else {
this.$message.warning('请至少选择一条数据!')
}
}
return this.convertList
// return this.convertList
}
}
};

Loading…
Cancel
Save