| | |
| | | <div> |
| | | <span class="search_title">工序:</span> |
| | | <el-input v-model="searchForm.process" |
| | | style="width: 240px" |
| | | style="width: 200px" |
| | | placeholder="请输入工序搜索" |
| | | @change="handleQuery" |
| | | clearable |
| | | :prefix-icon="Search" /> |
| | | <span style="margin-left: 10px" |
| | | class="search_title">生产订单号:</span> |
| | | <el-input v-model="searchForm.npsNo" |
| | | style="width: 200px" |
| | | placeholder="请输入生产订单号搜索" |
| | | @change="handleQuery" |
| | | clearable |
| | | :prefix-icon="Search" /> |
| | | <span style="margin-left: 10px" |
| | | class="search_title">产品编码:</span> |
| | | <el-input v-model="searchForm.materialCode" |
| | | style="width: 200px" |
| | | placeholder="请输入产品编码搜索" |
| | | @change="handleQuery" |
| | | clearable |
| | | :prefix-icon="Search" /> |
| | | <span style="margin-left: 10px" |
| | | class="search_title">产品名称:</span> |
| | | <el-input v-model="searchForm.productName" |
| | | style="width: 200px" |
| | | placeholder="请输入产品名称搜索" |
| | | @change="handleQuery" |
| | | clearable |
| | | :prefix-icon="Search" /> |
| | |
| | | value-format="YYYY-MM-DD" |
| | | format="YYYY-MM-DD" |
| | | type="daterange" |
| | | style="width: 240px" |
| | | placeholder="请选择" |
| | | clearable |
| | | @change="changeDaterange" /> |
| | |
| | | @close="handleQuery"></FormDia> |
| | | <files-dia ref="filesDia" |
| | | @close="handleQuery"></files-dia> |
| | | <DetailDialog ref="detailDialog" |
| | | @close="handleQuery"></DetailDialog> |
| | | <el-dialog v-model="dialogFormVisible" |
| | | title="编辑检验员" |
| | | width="30%" |
| | |
| | | } from "vue"; |
| | | import InspectionFormDia from "@/views/qualityManagement/processInspection/components/inspectionFormDia.vue"; |
| | | import FormDia from "@/views/qualityManagement/processInspection/components/formDia.vue"; |
| | | import DetailDialog from "@/views/qualityManagement/processInspection/components/detailDialog.vue"; |
| | | import { ElMessageBox } from "element-plus"; |
| | | import { |
| | | downloadQualityInspect, |
| | |
| | | qualityInspectUpdate, |
| | | submitQualityInspect, |
| | | qualityInspectProcessPage, |
| | | qualityInspectProcessDetails, |
| | | } from "@/api/qualityManagement/rawMaterialInspection.js"; |
| | | import FilesDia from "@/views/qualityManagement/processInspection/components/filesDia.vue"; |
| | | import dayjs from "dayjs"; |
| | |
| | | entryDate: undefined, // 录入日期 |
| | | startTime: undefined, |
| | | endTime: undefined, |
| | | materialCode: "", |
| | | productName: "", |
| | | npsNo: "", |
| | | }, |
| | | rules: { |
| | | checkName: [{ required: true, message: "请选择", trigger: "change" }], |
| | |
| | | }, |
| | | { |
| | | label: "报工单号", |
| | | prop: "productionProductRouteItemId", |
| | | prop: "productNo", |
| | | width: "130", |
| | | }, |
| | | { |
| | | label: "产出数量", |
| | |
| | | slot: "unqualifiedQuantity", |
| | | }, |
| | | |
| | | // { |
| | | // dataType: "action", |
| | | // label: "操作", |
| | | // align: "center", |
| | | // fixed: "right", |
| | | // width: 280, |
| | | // operation: [ |
| | | // { |
| | | // name: "编辑", |
| | | // type: "text", |
| | | // clickFun: row => { |
| | | // openForm("edit", row); |
| | | // }, |
| | | // disabled: row => { |
| | | // // 已提交则禁用 |
| | | // if (row.inspectState == 1) return true; |
| | | // // 如果检验员有值,只有当前登录用户能编辑 |
| | | // if (row.checkName) { |
| | | // return row.checkName !== userStore.nickName; |
| | | // } |
| | | // return false; |
| | | // }, |
| | | // }, |
| | | // { |
| | | // name: "附件", |
| | | // type: "text", |
| | | // clickFun: row => { |
| | | // openFilesFormDia(row); |
| | | // }, |
| | | // }, |
| | | // { |
| | | // name: "提交", |
| | | // type: "text", |
| | | // clickFun: row => { |
| | | // submit(row.id); |
| | | // }, |
| | | // disabled: row => { |
| | | // // 已提交则禁用 |
| | | // if (row.inspectState == 1) return true; |
| | | // // 如果检验员有值,只有当前登录用户能提交 |
| | | // if (row.checkName) { |
| | | // return row.checkName !== userStore.nickName; |
| | | // } |
| | | // return false; |
| | | // }, |
| | | // }, |
| | | // { |
| | | // name: "分配检验员", |
| | | // type: "text", |
| | | // clickFun: row => { |
| | | // if (!row.checkName) { |
| | | // open(row); |
| | | // } else { |
| | | // proxy.$modal.msgError("检验员已存在"); |
| | | // } |
| | | // }, |
| | | // disabled: row => { |
| | | // return row.inspectState == 1 || row.checkName; |
| | | // }, |
| | | // }, |
| | | // { |
| | | // name: "下载", |
| | | // type: "text", |
| | | // clickFun: row => { |
| | | // downLoadFile(row); |
| | | // }, |
| | | // }, |
| | | // ], |
| | | // }, |
| | | { |
| | | dataType: "action", |
| | | label: "操作", |
| | | align: "center", |
| | | fixed: "right", |
| | | width: 120, |
| | | operation: [ |
| | | { |
| | | name: "详情", |
| | | clickFun: row => { |
| | | openInspectionFormDia(row); |
| | | }, |
| | | }, |
| | | ], |
| | | }, |
| | | ]); |
| | | const userList = ref([]); |
| | | const currentRow = ref(null); |
| | |
| | | const formDia = ref(); |
| | | const filesDia = ref(); |
| | | const inspectionFormDia = ref(); |
| | | const detailDialog = ref(); |
| | | const { proxy } = getCurrentInstance(); |
| | | const userStore = useUserStore(); |
| | | const changeDaterange = value => { |
| | |
| | | /** 重置按钮操作 */ |
| | | const resetForm = () => { |
| | | searchForm.value = { |
| | | checkName: "", |
| | | process: "", |
| | | entryDate: undefined, |
| | | startTime: undefined, |
| | | endTime: undefined, |
| | | materialCode: "", |
| | | productName: "", |
| | | npsNo: "", |
| | | }; |
| | | getList(); |
| | | }; |
| | |
| | | inspectionFormDia.value?.openDialog(type, row); |
| | | }); |
| | | }; |
| | | |
| | | // 打开详情弹框 |
| | | const openInspectionFormDia = row => { |
| | | nextTick(() => { |
| | | detailDialog.value?.openDialog(row); |
| | | }); |
| | | }; |
| | | // 打开附件弹框 |
| | | const openFilesFormDia = (type, row) => { |
| | | nextTick(() => { |