diff --git a/src/api/device/item.js b/src/api/device/item.js index 9e977fc..078f576 100644 --- a/src/api/device/item.js +++ b/src/api/device/item.js @@ -58,3 +58,27 @@ export function delItem(itemId) { method: 'delete' }); } +/////////////////////////////////////////下面都是汇总报表用 +// 查询检查项汇总表 +export function getSummaryReport() { + return request({ + url: '/device/item/summaryReport', + method: 'get' + }); +} + +// 查询工作中心 +export function getWorkCenter() { + return request({ + url: '/device/item/getWorkCenter', + method: 'get' + }); +} + +// 查询工单匹配检查项 +export function selectMatchList(query) { + return request({ + url: '/device/item/matchList', + params: query + }); +} diff --git a/src/api/device/upkeepPlan.js b/src/api/device/upkeepPlan.js index 6f03617..fdd6297 100644 --- a/src/api/device/upkeepPlan.js +++ b/src/api/device/upkeepPlan.js @@ -17,6 +17,14 @@ export function formatEquItem(data) { data: data }); } +// 处理计划-设备信息 +export function formatEquItemNoCondition(data) { + return request({ + url: '/device/upkeepPlan/formatEquItemNoCondition', + method: 'post', + data: data + }); +} // 查询保养计划列表 export function listUpkeepPlan(query) { diff --git a/src/api/quality/checkTypeProject.js b/src/api/quality/checkTypeProject.js index 1346424..429d0d3 100644 --- a/src/api/quality/checkTypeProject.js +++ b/src/api/quality/checkTypeProject.js @@ -55,3 +55,21 @@ export function changeStatus(id,status) { data: data }); } + +//批量添加检测项 +export function submitProjects(data) { + return request({ + url: '/quality/checkTypeProject/submitProjects', + method: 'post', + data: data + }); +} + +//获取检测项列表 +export function getProjectInfoList(query) { + return request({ + url: '/quality/checkTypeProject/getProjectInfoList', + method: 'get', + params: query + }); +} \ No newline at end of file diff --git a/src/api/quality/income.js b/src/api/quality/income.js index d8c9e08..0527800 100644 --- a/src/api/quality/income.js +++ b/src/api/quality/income.js @@ -145,7 +145,7 @@ export function getDefectList(defectType) { }); } -// 查询人员列表 +// 查询来料单列表 export function getLLWorkOrder(query) { return request({ url: '/quality/qcIncome/getLLWorkOrder', @@ -153,3 +153,12 @@ export function getLLWorkOrder(query) { params: query }); } + +// 查询生产过程-工单列表 +export function getWorkOrder(query) { + return request({ + url: '/quality/qcIncome/getWorkOrder', + method: 'get', + params: query + }); + } diff --git a/src/api/quality/project.js b/src/api/quality/project.js index c23c159..3c56e50 100644 --- a/src/api/quality/project.js +++ b/src/api/quality/project.js @@ -9,6 +9,16 @@ export function listProject(query) { }); } +// 查询检验项目维护列表 +export function getProjectList(query) { + return request({ + url: '/quality/project/getProjectList', + method: 'get', + params: query + }); +} + + // 查询检验项目维护详细 export function getProject(id) { return request({ diff --git a/src/api/quality/qcProduce.js b/src/api/quality/qcProduce.js index 70dc437..b980cec 100644 --- a/src/api/quality/qcProduce.js +++ b/src/api/quality/qcProduce.js @@ -77,3 +77,15 @@ export function changeProduceStatus(recordId, status) { data: data }) } + +//获取批次 +export function getBatchList(workorderCode) { + const data = { + workorderCode + } + return request({ + url: '/quality/qcIncome/getBatchList', + method: 'put', + data: data + }); +} \ No newline at end of file diff --git a/src/api/wms/equipment.js b/src/api/wms/equipment.js index c7a4ccf..b746322 100644 --- a/src/api/wms/equipment.js +++ b/src/api/wms/equipment.js @@ -96,3 +96,21 @@ export function changeEquipmentStatus(equipmentId, status) { data: data }) } + +// 查询人员列表 +export function getPersonList(query) { + return request({ + url: '/wms/equipment/getPersonList', + method: 'get', + params: query + }); +} + +// 查询设备管理列表 +export function getAuxiliaryEquipmentList(query) { + return request({ + url: '/wms/equipment/getAuxiliaryEquipmentList', + method: 'get', + params: query + }); +} diff --git a/src/assets/images/quality/bg- border1.png b/src/assets/images/quality/bg- border1.png new file mode 100644 index 0000000..f44d97c Binary files /dev/null and b/src/assets/images/quality/bg- border1.png differ diff --git a/src/assets/images/quality/bg-body.png b/src/assets/images/quality/bg-body.png new file mode 100644 index 0000000..aae8b1f Binary files /dev/null and b/src/assets/images/quality/bg-body.png differ diff --git a/src/assets/images/quality/bg-border2.png b/src/assets/images/quality/bg-border2.png new file mode 100644 index 0000000..a7ef2cc Binary files /dev/null and b/src/assets/images/quality/bg-border2.png differ diff --git a/src/assets/images/quality/bg-border5(1).png b/src/assets/images/quality/bg-border5(1).png new file mode 100644 index 0000000..e9ed00e Binary files /dev/null and b/src/assets/images/quality/bg-border5(1).png differ diff --git a/src/assets/images/quality/bg-border5(2).png b/src/assets/images/quality/bg-border5(2).png new file mode 100644 index 0000000..e9ed00e Binary files /dev/null and b/src/assets/images/quality/bg-border5(2).png differ diff --git a/src/assets/images/quality/bg-border5(3).png b/src/assets/images/quality/bg-border5(3).png new file mode 100644 index 0000000..e9ed00e Binary files /dev/null and b/src/assets/images/quality/bg-border5(3).png differ diff --git a/src/assets/images/quality/bg-border5.png b/src/assets/images/quality/bg-border5.png new file mode 100644 index 0000000..e9ed00e Binary files /dev/null and b/src/assets/images/quality/bg-border5.png differ diff --git a/src/assets/images/quality/bg-border6(1).png b/src/assets/images/quality/bg-border6(1).png new file mode 100644 index 0000000..8a632e0 Binary files /dev/null and b/src/assets/images/quality/bg-border6(1).png differ diff --git a/src/assets/images/quality/bg-border6.png b/src/assets/images/quality/bg-border6.png new file mode 100644 index 0000000..8a632e0 Binary files /dev/null and b/src/assets/images/quality/bg-border6.png differ diff --git a/src/assets/images/quality/bg-head.png b/src/assets/images/quality/bg-head.png new file mode 100644 index 0000000..7bfdb83 Binary files /dev/null and b/src/assets/images/quality/bg-head.png differ diff --git a/src/assets/images/quality/bg-jianyan1.png b/src/assets/images/quality/bg-jianyan1.png new file mode 100644 index 0000000..949145b Binary files /dev/null and b/src/assets/images/quality/bg-jianyan1.png differ diff --git a/src/assets/images/quality/bg-jianyan2.png b/src/assets/images/quality/bg-jianyan2.png new file mode 100644 index 0000000..dda142d Binary files /dev/null and b/src/assets/images/quality/bg-jianyan2.png differ diff --git a/src/assets/images/quality/bg-title(1).png b/src/assets/images/quality/bg-title(1).png new file mode 100644 index 0000000..4c0208f Binary files /dev/null and b/src/assets/images/quality/bg-title(1).png differ diff --git a/src/assets/images/quality/bg-title(2).png b/src/assets/images/quality/bg-title(2).png new file mode 100644 index 0000000..4c0208f Binary files /dev/null and b/src/assets/images/quality/bg-title(2).png differ diff --git a/src/assets/images/quality/bg-title(3).png b/src/assets/images/quality/bg-title(3).png new file mode 100644 index 0000000..4c0208f Binary files /dev/null and b/src/assets/images/quality/bg-title(3).png differ diff --git a/src/assets/images/quality/bg-title.png b/src/assets/images/quality/bg-title.png new file mode 100644 index 0000000..4c0208f Binary files /dev/null and b/src/assets/images/quality/bg-title.png differ diff --git a/src/assets/images/quality/bg-title备份 2.png b/src/assets/images/quality/bg-title备份 2.png new file mode 100644 index 0000000..0080095 Binary files /dev/null and b/src/assets/images/quality/bg-title备份 2.png differ diff --git a/src/assets/images/quality/bg-title备份.png b/src/assets/images/quality/bg-title备份.png new file mode 100644 index 0000000..0080095 Binary files /dev/null and b/src/assets/images/quality/bg-title备份.png differ diff --git a/src/assets/images/quality/logo.png b/src/assets/images/quality/logo.png new file mode 100644 index 0000000..dcdccaa Binary files /dev/null and b/src/assets/images/quality/logo.png differ diff --git a/src/assets/images/quality/编组 12.png b/src/assets/images/quality/编组 12.png new file mode 100644 index 0000000..3d70560 Binary files /dev/null and b/src/assets/images/quality/编组 12.png differ diff --git a/src/assets/images/quality/编组 12备份 14.png b/src/assets/images/quality/编组 12备份 14.png new file mode 100644 index 0000000..3d70560 Binary files /dev/null and b/src/assets/images/quality/编组 12备份 14.png differ diff --git a/src/assets/images/quality/编组 12备份 15.png b/src/assets/images/quality/编组 12备份 15.png new file mode 100644 index 0000000..3d70560 Binary files /dev/null and b/src/assets/images/quality/编组 12备份 15.png differ diff --git a/src/assets/images/quality/编组 12备份 16.png b/src/assets/images/quality/编组 12备份 16.png new file mode 100644 index 0000000..3d70560 Binary files /dev/null and b/src/assets/images/quality/编组 12备份 16.png differ diff --git a/src/assets/images/quality/编组 12备份 17.png b/src/assets/images/quality/编组 12备份 17.png new file mode 100644 index 0000000..3d70560 Binary files /dev/null and b/src/assets/images/quality/编组 12备份 17.png differ diff --git a/src/assets/images/quality/编组 12备份 18.png b/src/assets/images/quality/编组 12备份 18.png new file mode 100644 index 0000000..3d70560 Binary files /dev/null and b/src/assets/images/quality/编组 12备份 18.png differ diff --git a/src/assets/images/quality/编组 12备份 19(1).png b/src/assets/images/quality/编组 12备份 19(1).png new file mode 100644 index 0000000..8ad27b9 Binary files /dev/null and b/src/assets/images/quality/编组 12备份 19(1).png differ diff --git a/src/assets/images/quality/编组 12备份 19(2).png b/src/assets/images/quality/编组 12备份 19(2).png new file mode 100644 index 0000000..5dc38cd Binary files /dev/null and b/src/assets/images/quality/编组 12备份 19(2).png differ diff --git a/src/assets/images/quality/编组 12备份 19(3).png b/src/assets/images/quality/编组 12备份 19(3).png new file mode 100644 index 0000000..8437d52 Binary files /dev/null and b/src/assets/images/quality/编组 12备份 19(3).png differ diff --git a/src/assets/images/quality/编组 12备份 19(4).png b/src/assets/images/quality/编组 12备份 19(4).png new file mode 100644 index 0000000..c21ee30 Binary files /dev/null and b/src/assets/images/quality/编组 12备份 19(4).png differ diff --git a/src/assets/images/quality/编组 12备份 19(5).png b/src/assets/images/quality/编组 12备份 19(5).png new file mode 100644 index 0000000..1c48746 Binary files /dev/null and b/src/assets/images/quality/编组 12备份 19(5).png differ diff --git a/src/assets/images/quality/编组 12备份 19(6).png b/src/assets/images/quality/编组 12备份 19(6).png new file mode 100644 index 0000000..6584f29 Binary files /dev/null and b/src/assets/images/quality/编组 12备份 19(6).png differ diff --git a/src/assets/images/quality/编组 12备份 19(7).png b/src/assets/images/quality/编组 12备份 19(7).png new file mode 100644 index 0000000..6190526 Binary files /dev/null and b/src/assets/images/quality/编组 12备份 19(7).png differ diff --git a/src/assets/images/quality/编组 12备份 19.png b/src/assets/images/quality/编组 12备份 19.png new file mode 100644 index 0000000..3d70560 Binary files /dev/null and b/src/assets/images/quality/编组 12备份 19.png differ diff --git a/src/assets/images/quality/编组 12备份 20.png b/src/assets/images/quality/编组 12备份 20.png new file mode 100644 index 0000000..3d70560 Binary files /dev/null and b/src/assets/images/quality/编组 12备份 20.png differ diff --git a/src/assets/images/quality/编组 12备份 21.png b/src/assets/images/quality/编组 12备份 21.png new file mode 100644 index 0000000..3d70560 Binary files /dev/null and b/src/assets/images/quality/编组 12备份 21.png differ diff --git a/src/assets/images/quality/编组 12备份 22.png b/src/assets/images/quality/编组 12备份 22.png new file mode 100644 index 0000000..3d70560 Binary files /dev/null and b/src/assets/images/quality/编组 12备份 22.png differ diff --git a/src/assets/images/quality/编组 12备份 23.png b/src/assets/images/quality/编组 12备份 23.png new file mode 100644 index 0000000..3d70560 Binary files /dev/null and b/src/assets/images/quality/编组 12备份 23.png differ diff --git a/src/assets/images/quality/编组 12备份 24.png b/src/assets/images/quality/编组 12备份 24.png new file mode 100644 index 0000000..3d70560 Binary files /dev/null and b/src/assets/images/quality/编组 12备份 24.png differ diff --git a/src/assets/images/quality/路径.png b/src/assets/images/quality/路径.png new file mode 100644 index 0000000..598cf10 Binary files /dev/null and b/src/assets/images/quality/路径.png differ diff --git a/src/router/index.js b/src/router/index.js index 6398d8a..1524fe6 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -100,12 +100,34 @@ export const constantRoutes = [ component: () => import("@/views/kanban/exception/index"), hidden: true, }, - // 看板路由 + // 看板路由 { path: "/kanban/equipment", component: () => import("@/views/kanban/equipment/index"), hidden: true, }, + // 质量看板1 + { + path: "/kanban/qualitykanban1", + component: () => import("@/views/kanban/quality/kanban1"), + hidden: true, + }, // 质量看板2 + { + path: "/kanban/qualitykanban2", + component: () => import("@/views/kanban/quality/kanban2"), + hidden: true, + }, // 质量看板3 + { + path: "/kanban/qualitykanban3", + component: () => import("@/views/kanban/quality/kanban3"), + hidden: true, + }, + { + path: "/kanban/circle", + component: () => import("@/views/kanban/quality/circle"), + hidden: true, + }, + ] // 动态路由,基于用户权限动态去加载 diff --git a/src/views/device/deviceOrder/index.vue b/src/views/device/deviceOrder/index.vue index 48846ae..8cdbc73 100644 --- a/src/views/device/deviceOrder/index.vue +++ b/src/views/device/deviceOrder/index.vue @@ -637,8 +637,7 @@ - 取 消 - 确 定 + 关 闭 diff --git a/src/views/device/inspectionPlan/index.vue b/src/views/device/inspectionPlan/index.vue index 5b4b81a..14e7567 100644 --- a/src/views/device/inspectionPlan/index.vue +++ b/src/views/device/inspectionPlan/index.vue @@ -892,7 +892,7 @@ export default { for (let i = 0; i < response.data.length; i++) { this.personList.push({ label: response.data[i].nickName + '(' + response.data[i].userName + ')', - key: response.data[i].userId, + key: response.data[i].userName, }) } }); @@ -1231,7 +1231,11 @@ export default { } this.planLoading = true; if (this.form.planId != null) { - this.form.personList = this.selectPersonList; + this.form.personList = this.selectPersonList.map(item => { + return{ + userName: item.toString() + } + }); updatePlan(this.form).then(response => { this.planLoading = false; this.$modal.msgSuccess("修改成功"); @@ -1239,7 +1243,11 @@ export default { this.getList(); }); } else { - this.form.personList = this.selectPersonList; + this.form.personList = this.selectPersonList.map(item => { + return{ + userName: item.toString() + } + }); addPlan(this.form).then(response => { this.planLoading = false; this.$modal.msgSuccess("新增成功"); diff --git a/src/views/device/inspectionWork/index.vue b/src/views/device/inspectionWork/index.vue index 03bff7e..cebbbd5 100644 --- a/src/views/device/inspectionWork/index.vue +++ b/src/views/device/inspectionWork/index.vue @@ -512,8 +512,7 @@ - 取 消 - 确 定 + 关 闭 diff --git a/src/views/device/item/index.vue b/src/views/device/item/index.vue index ea3eb90..990f93b 100644 --- a/src/views/device/item/index.vue +++ b/src/views/device/item/index.vue @@ -20,7 +20,7 @@ @@ -310,14 +310,14 @@ - - - + + + @@ -616,6 +616,7 @@ export default { // 重置日期范围 this.queryParams.createTimeArray = []; this.queryParams.updateTimeArray = []; + this.queryParams.itemTools = null; this.handleQuery(); }, // 多选框选中数据 diff --git a/src/views/device/maintenanceWork/index.vue b/src/views/device/maintenanceWork/index.vue index be4ac95..a29fc2e 100644 --- a/src/views/device/maintenanceWork/index.vue +++ b/src/views/device/maintenanceWork/index.vue @@ -591,8 +591,7 @@ - 取 消 - 确 定 + 关 闭 diff --git a/src/views/device/repairOrder/index.vue b/src/views/device/repairOrder/index.vue index 62e2b46..8623238 100644 --- a/src/views/device/repairOrder/index.vue +++ b/src/views/device/repairOrder/index.vue @@ -799,7 +799,7 @@ @@ -807,10 +807,10 @@ {{ form.workCode @@ -876,8 +876,8 @@ + - + - - - - - - - - + @@ -1069,7 +1055,7 @@ - + @@ -1083,7 +1069,7 @@ - + @@ -1115,6 +1101,16 @@ + + + + + @@ -1279,6 +1275,7 @@ @@ -1401,7 +1398,7 @@ - + @@ -1433,6 +1430,7 @@ :optType="optType" :workCode="form.workCode" :equipmentCode="form.equipmentCode" + :workStatus="form.workStatus" v-if="form.workCode != null" > @@ -1480,15 +1478,28 @@ export default { CS: { "text-align": "center", }, + CS1: { + "text-align": "center", + width: "250px", + }, LS: { "text-align": "center", width: "225px", }, + LS1: { + "text-align": "center", + width: "250px", + }, //图片表格样式 LSP: { "text-align": "center", width: "225px", }, + //图片表格样式 + LSP1: { + "text-align": "center", + width: "250px", + }, //检查项表格数据 detailList: [], //维修前照片 @@ -1808,6 +1819,7 @@ export default { this.openAdd = true; this.title = "快速工单"; }, + /** 填写按钮操作 */ handleWrite(row) { this.reset(); @@ -1884,7 +1896,18 @@ export default { standard.repairValue = item.repairValue; standard.repairReach = item.repairReach; standard.standardType = item.standardType; - //检查项图片 + + if (item.picturePaths != null) { + var newFiles = []; + item.picturePaths.forEach((item) => { + var newFile = {}; + newFile.name = item.fileName; + newFile.url = item.fileAddress; + newFiles.push(newFile); + }); + standard.picturePath = newFiles; + } + //检查项图片显示 var standardUrlLists = []; if (item.picturePaths != null) { item.picturePaths.forEach((item2) => { @@ -1970,24 +1993,51 @@ export default { }, /** 提交填写维修记录按钮 */ submitWriteForm() { - if (Array.isArray(this.form.afterRepairFile)) { - this.form.afterRepairFile = this.listToString( - this.form.afterRepairFile - ); - } - this.form.faultType = this.form.faultType.join(","); - console.log(this.form.faultType); this.$refs["form"].validate((valid) => { if (valid) { if (this.form.workId != null) { - this.form.standardList = this.detailList; - console.log(this.form.standardList); - writeRepairOrder(this.form).then((response) => { - this.openWrite = false; - this.$modal.msgSuccess("填写维修记录成功!"); - this.queryParams.workStatus = null; - this.getList(); - }); + if (this.form.workStatus == null || this.form.workStatus == "") { + Message.warning("维修状态不能为空"); + } else if ( + this.form.workPerson == null || + this.form.workPerson == "" + ) { + Message.warning("维修人员不能为空"); + } else if ( + this.form.workStartTime == null || + this.form.workStartTime == "" + ) { + Message.warning("维修开始时间不能为空"); + } else if ( + this.form.workEndTime == null || + this.form.workEndTime == "" + ) { + Message.warning("维修结束时间不能为空"); + } else { + if (Array.isArray(this.form.afterRepairFile)) { + this.form.afterRepairFile = this.listToString( + this.form.afterRepairFile + ); + } + + if (this.form.faultType != null) { + this.form.faultType = this.form.faultType.join(","); + } + + this.form.standardList = this.detailList; + //每个检查项 + this.form.standardList.forEach((item) => { + if (Array.isArray(item.picturePath)) { + item.picturePath = this.listToString(item.picturePath); + } + }); + writeRepairOrder(this.form).then((response) => { + this.openWrite = false; + this.$modal.msgSuccess("填写维修记录成功!"); + this.queryParams.workStatus = null; + this.getList(); + }); + } } } }); @@ -2108,10 +2158,6 @@ export default { margin-left: 452px; } -.step-body { - margin-top: 30px; -} - .standardUrl_body { height: 400px; overflow-y: auto; diff --git a/src/views/device/repairOrder/selectSpareParts.vue b/src/views/device/repairOrder/selectSpareParts.vue index 74d2a4b..0fd786a 100644 --- a/src/views/device/repairOrder/selectSpareParts.vue +++ b/src/views/device/repairOrder/selectSpareParts.vue @@ -8,6 +8,7 @@ icon="el-icon-plus" size="mini" @click="handleSelectSparePartsLedger" + v-if = "this.queryParams.workStatus != '1' " v-hasPermi="['device:sparePartsApplicationRecord:add']" >新增 @@ -24,11 +25,13 @@ size="mini" :disabled="multiple" @click="handleDelete" + v-if = "this.queryParams.workStatus != '1' " v-hasPermi="['device:sparePartsApplicationRecord:remove']" >删除 @@ -169,6 +172,7 @@ export default { pageSize: 10, workCode: this.workCode, equipmentCode: this.equipmentCode, + workStatus:this.workStatus, applyType: null, applyCode: null, spareCode: null, @@ -196,6 +200,7 @@ export default { equipmentCode: undefined, workCode: undefined, optType: undefined, + workStatus: undefined, }, created() { this.getList(); diff --git a/src/views/device/sparePartsLedger/index.vue b/src/views/device/sparePartsLedger/index.vue index 1844df3..96615e7 100644 --- a/src/views/device/sparePartsLedger/index.vue +++ b/src/views/device/sparePartsLedger/index.vue @@ -26,7 +26,25 @@ style="width: 150px" /> - + + + + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - + {{ parseTime(scope.row.gmtCreate, "{y}-{m}-{d}") }} - - + + {{ parseTime(scope.row.gmtModified, "{y}-{m}-{d}") }} @@ -476,6 +471,7 @@ export default { spareConversionRatio: null, spareInventoryFloor: null, spareInventoryUpper: null, + ownEquipmentName : null, }, options: [ { @@ -648,6 +644,7 @@ export default { `sparePartsLedger_${new Date().getTime()}.xlsx` ); }, + }, }; diff --git a/src/views/device/spotCheckPlan/index.vue b/src/views/device/spotCheckPlan/index.vue index 7de6a8c..c14520f 100644 --- a/src/views/device/spotCheckPlan/index.vue +++ b/src/views/device/spotCheckPlan/index.vue @@ -937,7 +937,7 @@ export default { for (let i = 0; i < response.data.length; i++) { this.personList.push({ label: response.data[i].nickName + '(' + response.data[i].userName + ')', - key: response.data[i].userId, + key: response.data[i].userName, }) } }); @@ -1265,7 +1265,11 @@ export default { } this.planLoading = true; if (this.form.planId != null) { - this.form.personList = this.selectPersonList; + this.form.personList = this.selectPersonList.map(item => { + return{ + userName: item.toString() + } + }); updatePlan(this.form).then(response => { this.planLoading = false; this.$modal.msgSuccess("修改成功"); @@ -1273,7 +1277,11 @@ export default { this.getList(); }); } else { - this.form.personList = this.selectPersonList; + this.form.personList = this.selectPersonList.map(item => { + return{ + userName: item.toString() + } + }); addPlan(this.form).then(response => { this.planLoading = false; this.$modal.msgSuccess("新增成功"); diff --git a/src/views/device/spotInspectionOrder/index.vue b/src/views/device/spotInspectionOrder/index.vue index 7ae6832..4cdf526 100644 --- a/src/views/device/spotInspectionOrder/index.vue +++ b/src/views/device/spotInspectionOrder/index.vue @@ -628,8 +628,7 @@ - 取 消 - 确 定 + 关 闭 diff --git a/src/views/device/spotInspectionWork/index.vue b/src/views/device/spotInspectionWork/index.vue index d57f23d..74ce124 100644 --- a/src/views/device/spotInspectionWork/index.vue +++ b/src/views/device/spotInspectionWork/index.vue @@ -501,8 +501,7 @@ - 取 消 - 确 定 + 关 闭 diff --git a/src/views/device/summaryReport/index.vue b/src/views/device/summaryReport/index.vue new file mode 100644 index 0000000..a37dff7 --- /dev/null +++ b/src/views/device/summaryReport/index.vue @@ -0,0 +1,665 @@ + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + + + + + {{ scope.row.one == "1" ? "√" : scope.row.one == "0" ? "X" : ""}} + + + + + {{ scope.row.two == "1" ? "√" : scope.row.two == "0" ? "X" : ""}} + + + + + {{ scope.row.three == "1" ? "√" : scope.row.three == "0" ? "X" : ""}} + + + + + {{ scope.row.four == "1" ? "√" : scope.row.four == "0" ? "X" : ""}} + + + + + {{ scope.row.five == "1" ? "√" : scope.row.five == "0" ? "X" : ""}} + + + + + {{ scope.row.six == "1" ? "√" : scope.row.six == "0" ? "X" : ""}} + + + + + {{ scope.row.seven == "1" ? "√" : scope.row.seven == "0" ? "X" : ""}} + + + + + {{ scope.row.eight == "1" ? "√" : scope.row.eight == "0" ? "X" : ""}} + + + + + {{ scope.row.nine == "1" ? "√" : scope.row.nine == "0" ? "X" : ""}} + + + + + {{ scope.row.ten == "1" ? "√" : scope.row.ten == "0" ? "X" : ""}} + + + + + {{ scope.row.eleven == "1" ? "√" : scope.row.eleven == "0" ? "X" : ""}} + + + + + {{ scope.row.twelve == "1" ? "√" : scope.row.twelve == "0" ? "X" : ""}} + + + + + {{ scope.row.thirteen == "1" ? "√" : scope.row.thirteen == "0" ? "X" : ""}} + + + + + {{ scope.row.fourteen == "1" ? "√" : scope.row.fourteen == "0" ? "X" : ""}} + + + + + {{ scope.row.fifteen == "1" ? "√" : scope.row.fifteen == "0" ? "X" : ""}} + + + + + {{ scope.row.sixteen == "1" ? "√" : scope.row.sixteen == "0" ? "X" : ""}} + + + + + {{ scope.row.seventeen == "1" ? "√" : scope.row.seventeen == "0" ? "X" : ""}} + + + + + {{ scope.row.eighteen == "1" ? "√" : scope.row.eighteen == "0" ? "X" : ""}} + + + + + {{ scope.row.nineteen == "1" ? "√" : scope.row.nineteen == "0" ? "X" : ""}} + + + + + {{ scope.row.twenty == "1" ? "√" : scope.row.twenty == "0" ? "X" : ""}} + + + + + {{ scope.row.twentyOne == "1" ? "√" : scope.row.twentyOne == "0" ? "X" : ""}} + + + + + {{ scope.row.twentyTwo == "1" ? "√" : scope.row.twentyTwo == "0" ? "X" : ""}} + + + + + {{ scope.row.twentyThree == "1" ? "√" : scope.row.twentyThree == "0" ? "X" : ""}} + + + + + {{ scope.row.twentyFour == "1" ? "√" : scope.row.twentyFour == "0" ? "X" : ""}} + + + + + {{ scope.row.twentyFive == "1" ? "√" : scope.row.twentyFive == "0" ? "X" : ""}} + + + + + {{ scope.row.twentySix == "1" ? "√" : scope.row.twentySix == "0" ? "X" : ""}} + + + + + {{ scope.row.twentySeven == "1" ? "√" : scope.row.twentySeven == "0" ? "X" : ""}} + + + + + {{ scope.row.twentyEight == "1" ? "√" : scope.row.twentyEight == "0" ? "X" : ""}} + + + + + {{ scope.row.twentyNine == "1" ? "√" : scope.row.twentyNine == "0" ? "X" : ""}} + + + + + {{ scope.row.thirty == "1" ? "√" : scope.row.thirty == "0" ? "X" : ""}} + + + + + {{ scope.row.thirtyOne == "1" ? "√" : scope.row.thirtyOne == "0" ? "X" : ""}} + + + + + + + + + diff --git a/src/views/device/summaryReport/selectSingleEquipment.vue b/src/views/device/summaryReport/selectSingleEquipment.vue new file mode 100644 index 0000000..d35b063 --- /dev/null +++ b/src/views/device/summaryReport/selectSingleEquipment.vue @@ -0,0 +1,296 @@ + + + + + + + 请选择设备类型: + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/device/upkeepOrder/index.vue b/src/views/device/upkeepOrder/index.vue index 3e7b818..c254d5e 100644 --- a/src/views/device/upkeepOrder/index.vue +++ b/src/views/device/upkeepOrder/index.vue @@ -43,7 +43,7 @@ @keyup.enter.native="handleQuery" /> - + - + - + - + - - - - - - - - - - - - - - 搜索 - 重置 - - - - - - - - - - - - - - - - 添加 - - - + + + + + 选择备件 + + + + + + + + + + + + + + + 删除 + + + - + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + + + + + + + - - 取 消 + + 取 消 确 定 - - - - - - 领用数量 - - - - - - - - - - - - - - - - - - - - - 删除 - - - - - - - - - - - 取 消 - 确 定 - - - - 完成 - + @@ -1175,8 +1155,7 @@ - 取 消 - 确 定 + 关 闭 @@ -1190,7 +1169,7 @@ import { addUpkeepOrder, updateUpkeepOrder, subInspect } from "@/api/device/upkeepOrder"; -import {formatEquItem, querySpareList} from "@/api/device/upkeepPlan"; +import {formatEquItem, formatEquItemNoCondition, querySpareList} from "@/api/device/upkeepPlan"; import {getEquList, getPersonList, getWorkCenter} from "@/api/device/plan"; import {delDeviceOrder, getDeviceOrder, listDeviceOrder, updateDeviceOrder} from "@/api/device/deviceOrder"; import {getInspectionWork, updateInspectionWork} from "@/api/device/inspectionWork"; @@ -1200,6 +1179,10 @@ export default { dicts: ['device_order_status', 'device_loop_type','device_reach_standard','device_upkeep_type','device_inspect_status'], data() { return { + // 备件选择list + spareOnList:[], + // 备件选择 + selectSpareDialog:false, standardListVo:[], workDetail:false, // 初始化VO @@ -1337,6 +1320,7 @@ export default { open: false, // 查询参数 queryParams: { + orderInspect:null, pageNum: 1, pageSize: 10, planId: null, @@ -1398,6 +1382,32 @@ export default { this.getList(); }, methods: { + // 获取备件信息 + setSpareList() { + querySpareList(this.spareQuery).then(response => { + this.spareTotal = response.total; + this.spareList = response.rows; + this.spareLoading = false; + }) + }, + // 备件选择btn + choseSpareBtn(){ + // 清理缓存 + this.spareOnList = []; + // 打开选择备件弹窗 + this.selectSpareDialog = true; + }, + // 备件数量 + handleEdit(index, row) { + // 库存数量-冻结数量 + if ((Number(row.amount)-Number(row.storageAmount)) < Number(row.applyNum)) { + this.$message({ + message: '领用最大数量为:'+(Number(row.amount)-Number(row.storageAmount)), + type: 'warning' + }) + row.applyNum = (Number(row.amount)-Number(row.storageAmount)); + } + }, // 重置设备搜索 resetEqu() { this.equipmentQuery = { @@ -1409,14 +1419,16 @@ export default { }; this.getEquList(); }, - // 备件数量 - handleEdit(index, row) { - if (row.amount < Number(row.applyNum)) { - this.$message({ - message: '超过库存数量!', - type: 'warning' - }) - row.applyNum = row.amount; + // 删除备件-备件数量 + delSpareList(e) { + for (let i = 0; i < this.chooseSpareList.length; i++){ + if (this.chooseSpareList[i].materialCode == e.materialCode) { + this.chooseSpareList.splice(i,1); + this.$message({ + message: '删除成功!', + type: 'success' + }) + } } }, // 展示 @@ -1625,7 +1637,7 @@ export default { this.form.equipmentItem = []; // 处理信息 - formatEquItem(this.selectEquList).then(response => { + formatEquItemNoCondition(this.selectEquList).then(response => { for (let i = 0; i < response.data.length; i++) { this.form.equipmentItem.push(response.data[i]); @@ -1664,17 +1676,48 @@ export default { this.selOnSpare[i].applyNum = e; } }, - // 删除备件-备件数量 - delSpareList(e) { + // 选择备件确定按钮 + confirmSelectSpareBtn() { + if (this.spareOnList.length == 0) { + this.$message({ + message: "请勾选要申领的备件!", + type: "warning" + }) + return + } + for (let i = 0; i < this.chooseSpareList.length; i++){ - if (this.chooseSpareList[i].materialCode == e.materialCode) { - this.chooseSpareList.splice(i,1); - this.$message({ - message: '删除成功!', - type: 'success' - }) + for (let j = 0; j < this.spareOnList.length; j++) { + if (this.chooseSpareList[i].materialCode == this.spareOnList[j].materialCode) { + this.$message({ + message: '不可重复添加!', + type: 'warning' + }) + return; + } + } + } + for (let j = 0; j < this.spareOnList.length; j++) { + if (this.spareOnList[j].applyNum == null) { + this.spareOnList[j].applyNum=1; } + this.chooseSpareList.push(this.spareOnList[j]); } + + this.$message({ + message: '添加成功!', + type: 'success' + }) + + // 关闭备件选择弹窗 + this.selectSpareDialog = false; + }, + // 多选备件按钮 + selectChangeSpare(e) { + // 清理缓存 + this.spareOnList = []; + // 置入值 + this.spareOnList = e; }, // 选择备件-添加备件 addSpareList(e) { @@ -1696,13 +1739,6 @@ export default { // 改变巡检周期事件 changeArray(e) { }, - // 选择备件确定按钮 - confirmSelectSpareBtn() { - }, - // 多选备件按钮 - selectChangeSpare(e) { - this.selOnSpare = e; - }, // 备件搜索重置按钮 resetSpare() { this.spareQuery = { @@ -1713,18 +1749,6 @@ export default { }; this.setSpareList(); }, - // 获取备件信息 - setSpareList() { - querySpareList(this.spareQuery).then(response => { - this.spareTotal = response.total; - this.spareList = response.rows; - // 设置库存:总量-冻结数量 - for (let i = 0; i < this.spareList.length; i++) { - this.spareList[i].amount = Number(this.spareList[i].amount) - Number(this.spareList[i].storageAmount) - } - this.spareLoading = false; - }) - }, // 搜索备件按钮 getSpareList() { this.setSpareList() @@ -1755,6 +1779,7 @@ export default { // 表单重置 reset() { this.form = { + queryParams:null, orderId: null, planId: null, planCode: null, diff --git a/src/views/device/upkeepPlan/index.vue b/src/views/device/upkeepPlan/index.vue index 8693446..e79f265 100644 --- a/src/views/device/upkeepPlan/index.vue +++ b/src/views/device/upkeepPlan/index.vue @@ -675,155 +675,135 @@ width="50%" append-to-body > - - - - - - - - - - - - - - 搜索 - 重置 - - - - - - - - - - - - - - - - 添加 - - - + + + + + 选择备件 + + + + + + + + + + + + + + + 删除 + + + - + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + + + + + - - 取 消 + + + + 取 消 确 定 - - - - - - 领用数量 - - - - - - - - - - - - - - - - - - - - - 删除 - - - - - - - - - - - 取 消 - 确 定 - - - - 完成 - + @@ -893,15 +873,27 @@ import { delUpkeepPlan, addUpkeepPlan, updateUpkeepPlan, - formatEquItem, setSpareList, querySpareList + formatEquItem, setSpareList, querySpareList, formatEquItemNoCondition } from "@/api/device/upkeepPlan"; -import {delPlan, getEquList, getPersonList, getWorkCenter, initUpdatePlanInfo, listPlan} from "@/api/device/plan"; +import { + addPlan, + delPlan, + getEquList, + getPersonList, + getWorkCenter, + initUpdatePlanInfo, + listPlan, updatePlan +} from "@/api/device/plan"; export default { name: "UpkeepPlan", dicts: ['device_loop_type', 'sys_normal_disable','device_upkeep_type'], data() { return { + // 备件选择list + spareOnList:[], + // 备件选择 + selectSpareDialog:false, // 日期范围选择快捷 pickerOptions: { shortcuts: [{ @@ -1061,14 +1053,22 @@ export default { this.setWorkCenter(); }, methods: { + // 备件选择btn + choseSpareBtn(){ + // 清理缓存 + this.spareOnList = []; + // 打开选择备件弹窗 + this.selectSpareDialog = true; + }, // 备件数量 handleEdit(index, row) { - if (row.amount < Number(row.applyNum)) { + // 库存数量-冻结数量 + if ((Number(row.amount)-Number(row.storageAmount)) < Number(row.applyNum)) { this.$message({ - message: '超过库存数量!', + message: '领用最大数量为:'+(Number(row.amount)-Number(row.storageAmount)), type: 'warning' }) - row.applyNum = row.amount; + row.applyNum = (Number(row.amount)-Number(row.storageAmount)); } }, // 备件选择完成按钮 @@ -1212,10 +1212,46 @@ export default { }, // 选择备件确定按钮 confirmSelectSpareBtn() { + if (this.spareOnList.length == 0) { + this.$message({ + message: "请勾选要申领的备件!", + type: "warning" + }) + return + } + + for (let i = 0; i < this.chooseSpareList.length; i++){ + for (let j = 0; j < this.spareOnList.length; j++) { + if (this.chooseSpareList[i].materialCode == this.spareOnList[j].materialCode) { + this.$message({ + message: '不可重复添加!', + type: 'warning' + }) + return; + } + } + } + for (let j = 0; j < this.spareOnList.length; j++) { + if (this.spareOnList[j].applyNum == null) { + this.spareOnList[j].applyNum=1; + } + this.chooseSpareList.push(this.spareOnList[j]); + } + + this.$message({ + message: '添加成功!', + type: 'success' + }) + + // 关闭备件选择弹窗 + this.selectSpareDialog = false; }, // 多选备件按钮 selectChangeSpare(e) { - this.selOnSpare = e; + // 清理缓存 + this.spareOnList = []; + // 置入值 + this.spareOnList = e; }, // 备件搜索重置按钮 resetSpare() { @@ -1232,10 +1268,6 @@ export default { querySpareList(this.spareQuery).then(response => { this.spareTotal = response.total; this.spareList = response.rows; - // 设置库存:总量-冻结数量 - for (let i = 0; i < this.spareList.length; i++) { - this.spareList[i].amount = Number(this.spareList[i].amount) - Number(this.spareList[i].storageAmount) - } this.spareLoading = false; }) }, @@ -1258,7 +1290,7 @@ export default { for (let i = 0; i < response.data.length; i++) { this.personList.push({ label: response.data[i].nickName + '(' + response.data[i].userName + ')', - key: response.data[i].userId, + key: response.data[i].userName, }) } }); @@ -1369,14 +1401,25 @@ export default { } // 处理信息 - formatEquItem(this.selectEquList).then(response => { + if (this.form.calculationRule == "2"){ + formatEquItem(this.selectEquList).then(response => { - for (let i = 0; i < response.data.length; i++) { - this.form.equipmentItem.push(response.data[i]); - } + for (let i = 0; i < response.data.length; i++) { + this.form.equipmentItem.push(response.data[i]); + } - this.selectEqu = false; - }) + this.selectEqu = false; + }) + }else { + formatEquItemNoCondition(this.selectEquList).then(response => { + + for (let i = 0; i < response.data.length; i++) { + this.form.equipmentItem.push(response.data[i]); + } + + this.selectEqu = false; + }) + } }, // 选择设备多选操作 @@ -1628,16 +1671,24 @@ export default { } this.planLoading = true; if (this.form.planId != null) { - this.form.personList = this.selectPersonList; - updateUpkeepPlan(this.form).then(response => { + this.form.personList = this.selectPersonList.map(item => { + return{ + userName: item.toString() + } + }); + updatePlan(this.form).then(response => { this.planLoading = false; this.$modal.msgSuccess("修改成功"); this.open = false; this.getList(); }); } else { - this.form.personList = this.selectPersonList; - addUpkeepPlan(this.form).then(response => { + this.form.personList = this.selectPersonList.map(item => { + return{ + userName: item.toString() + } + }); + addPlan(this.form).then(response => { this.planLoading = false; this.$modal.msgSuccess("新增成功"); this.open = false; diff --git a/src/views/kanban/quality/circle.vue b/src/views/kanban/quality/circle.vue new file mode 100644 index 0000000..5d22678 --- /dev/null +++ b/src/views/kanban/quality/circle.vue @@ -0,0 +1,188 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/kanban/quality/kanban1.vue b/src/views/kanban/quality/kanban1.vue new file mode 100644 index 0000000..5e2e34e --- /dev/null +++ b/src/views/kanban/quality/kanban1.vue @@ -0,0 +1,2324 @@ + + + + + + 榄菊设备管理云平台 + + + + + + + + + + + + + + {{ x.deptName }} + + + + + + + + + {{ gettimedata }} + + + + + + + + 检验统计 + + + + + + 15000 + + + + 今日生产数量 + + + + + + 12000 + + + + 今日已检数量 + + + + + + 3000 + + + + 今日异常数量 + + + + + + + + 15000 + + + + 本月生产数量 + + + + + + 3000 + + + + 本月异常数量 + + + + + + + + + + + 今日合格率 + + + 本月合格率 + + + + + + + 质量异常信息 + + + + + + + + 产品1直径过大 + + + 张三 2023.10.30 + + + + + + + 不良类型占比 + + + + + + 产品不合格数量对比 + + + + + + + + 产品异常趋势 + + + + + + 产品不同工序异常对比 + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/kanban/quality/kanban2.vue b/src/views/kanban/quality/kanban2.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/views/kanban/quality/kanban3.vue b/src/views/kanban/quality/kanban3.vue new file mode 100644 index 0000000..e69de29 diff --git a/src/views/mes/reportWork/index.vue b/src/views/mes/reportWork/index.vue index 140df50..52d6272 100644 --- a/src/views/mes/reportWork/index.vue +++ b/src/views/mes/reportWork/index.vue @@ -34,7 +34,7 @@ @keyup.enter.native="handleQuery" /> - + {{scope.row.workorderCode}} + @@ -161,7 +162,7 @@ - + @@ -724,7 +725,7 @@ export default { var y = dd.getFullYear(); var m = dd.getMonth() + 1;//获取当前月份的日期 var d = dd.getDate(); - return y + "-" + m + "-" + d+" 00:00:00"; + return y + "-" + m + "-" + d; }, /** 查询报工报表列表 */ @@ -736,8 +737,8 @@ export default { }**/ if(this.queryParams.feedbackTimeArray !=null && this.queryParams.feedbackTimeArray.length>0){ - this.queryParams.feedbackTimeStart = moment(this.queryParams.feedbackTimeArray[0]).format('YYYY-MM-DD 00:00:00'); - this.queryParams.feedbackTimeEnd = moment(this.queryParams.feedbackTimeArray[1]).format('YYYY-MM-DD 23:59:59'); + this.queryParams.feedbackTimeStart = moment(this.queryParams.feedbackTimeArray[0]).format('YYYY-MM-DD'); + this.queryParams.feedbackTimeEnd = moment(this.queryParams.feedbackTimeArray[1]).format('YYYY-MM-DD'); } this.loading = true; listReportWork(this.queryParams).then(response => { @@ -773,7 +774,7 @@ export default { return; } const values = data.map(item => Number(item[column.property])); - if (!values.every(value => isNaN(value))) { + if (!values.every(value => isNaN(value))&& column.label!='用人数') { sums[index] = values.reduce((prev, curr) => { const value = Number(curr); if (!isNaN(value)) { diff --git a/src/views/quality/checkTypeProject/index.vue b/src/views/quality/checkTypeProject/index.vue index c4f68fc..3db50c2 100644 --- a/src/views/quality/checkTypeProject/index.vue +++ b/src/views/quality/checkTypeProject/index.vue @@ -105,8 +105,8 @@ @selection-change="handleSelectionChange" > - - + + @@ -166,7 +166,7 @@ - + 取 消 + + @@ -231,16 +236,17 @@ import { delCheckTypeProject, addCheckTypeProject, updateCheckTypeProject, - changeStatus + changeStatus, + submitProjects } from "@/api/quality/checkTypeProject"; import MaterialGroupAdd from "./MaterialGroupAdd.vue"; import {listCheckType} from "@/api/quality/checkType"; -import {listProject} from "@/api/quality/project"; - +import {getProjectList} from "@/api/quality/project"; +import SelectProject from "./selectProject.vue"; export default { name: "CheckTypeProject", dicts: ["qc_rule_prop",'unit'], - components: {MaterialGroupAdd,}, + components: {MaterialGroupAdd,SelectProject}, data() { return { // 遮罩层 @@ -310,8 +316,8 @@ export default { methods: { /**获取检测项目列表**/ getProjectList(){ - listProject().then((response) => { - this.checkRuleList = response.rows; + getProjectList().then((response) => { + this.checkRuleList = response; }); }, /** 查询物料检验项目维护列表 */ @@ -355,6 +361,7 @@ export default { groupId: null, materialCode: null, projectNo: null, + projectInfos:[] }; this.resetForm("form"); }, @@ -414,12 +421,17 @@ export default { }, /** 新增按钮操作 */ handleAdd() { - this.reset(); - this.open = true; - this.title = "添加物料检验项目维护"; - this.form.groupId = this.groupId; - this.form.materialCode = this.materialCode; - this.form.typeId = this.editableTabsValue; + + if(this.groupId==null||this.materialCode){ + this.$modal.msgError("请点击左侧节点"); + return + }; + if(this.queryParams.typeId==null){ + this.$modal.msgError("请选择头部节点"); + retrun + }; + this.$refs.child.showFlag = true; + this.$refs.child.init(this.groupId,this.materialCode,this.queryParams.typeId); }, /** 修改按钮操作 */ handleUpdate(row) { @@ -525,6 +537,25 @@ export default { row.status = row.status === "0" ? "1" : "0"; }); }, + //检验项目添加确认 + onSelectProjects(objs) { + let _this = this; + objs.forEach(function(item,index,arr){ + item.projectId = item.id; + item.projectNo = item.orderNum; + item.unit = item.unitCode; + item.standardValue = item.checkStandard; + item.typeId = _this.queryParams.typeId; + item.groupId = _this.groupId; + item.materialCode = _this.materialCode; + + }); + submitProjects(objs).then(response => { + this.$modal.msgSuccess("提交成功"); + this.open = false; + this.getList(); + }); + }, }, }; diff --git a/src/views/quality/checkTypeProject/selectProject.vue b/src/views/quality/checkTypeProject/selectProject.vue new file mode 100644 index 0000000..7a30708 --- /dev/null +++ b/src/views/quality/checkTypeProject/selectProject.vue @@ -0,0 +1,170 @@ + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/quality/project/index.vue b/src/views/quality/project/index.vue index aa8c39b..3540349 100644 --- a/src/views/quality/project/index.vue +++ b/src/views/quality/project/index.vue @@ -92,8 +92,8 @@ - - + + - @@ -207,6 +206,13 @@ + + + + + + + diff --git a/src/views/quality/qcIncome/selectMaterial.vue b/src/views/quality/qcIncome/selectMaterial.vue index bf9f8db..07aab87 100644 --- a/src/views/quality/qcIncome/selectMaterial.vue +++ b/src/views/quality/qcIncome/selectMaterial.vue @@ -150,7 +150,6 @@ export default { this.selectedRows.name = this.idsName; this.$emit('onSelected', this.selectedRows); this.showFlag = false; - this.queryParams.itemCodeGet = ""; } } }; diff --git a/src/views/quality/qcProduce/index.vue b/src/views/quality/qcProduce/index.vue index 9c96725..500a5f1 100644 --- a/src/views/quality/qcProduce/index.vue +++ b/src/views/quality/qcProduce/index.vue @@ -62,7 +62,7 @@ - + - + - + @@ -242,7 +242,6 @@ - @@ -256,8 +255,10 @@ - - + + + + @@ -280,13 +281,7 @@ - - - - - + + + + + + + + + + @@ -372,6 +379,11 @@ 取 消 + + diff --git a/src/views/quality/qcWarehousing/index.vue b/src/views/quality/qcWarehousing/index.vue index f512092..16415f0 100644 --- a/src/views/quality/qcWarehousing/index.vue +++ b/src/views/quality/qcWarehousing/index.vue @@ -9,6 +9,7 @@ @keyup.enter.native="handleQuery" /> + + + + - + - - + + @@ -235,19 +239,28 @@ - - - + + + + + - + - + + + - + @@ -255,30 +268,28 @@ - + - - - - - - - - - + + + + + + + + @@ -291,6 +302,17 @@ + + + + + + + + @@ -305,16 +327,7 @@ - - - - - - + @@ -341,6 +354,11 @@ 取 消 + + import { listWarehousing, getWarehousing, delWarehousing, addWarehousing, updateWarehousing } from "@/api/quality/warehousing"; +import { getBatchList} from "@/api/quality/qcProduce"; import { getCheckTypes } from "@/api/quality/qcProduce"; +import ItemSelectWorkOrder from "./selectWorkOrder.vue"; import ItemSelectMaterial from "../qcIncome/selectMaterial.vue"; import ItemSelectLoc from "./selectLoc.vue"; import ItemSelectUser from "../qcIncome/selectUser.vue"; @@ -374,7 +394,7 @@ import ItemSelectProject from "../qcIncome/checkProjectType.vue"; import moment from 'moment'; export default { name: "Warehousing", - components: { ItemSelectMaterial,ItemSelectLoc,ItemSelectUser,ItemSelectProject}, + components: { ItemSelectMaterial,ItemSelectLoc,ItemSelectUser,ItemSelectProject,ItemSelectWorkOrder}, dicts: ["unit","check_status","check_result"], data() { return { @@ -627,6 +647,22 @@ export default { }); }, + /**工单选择弹出框**/ + handleSelectWorkOrder() { + this.$refs.itemSelectWorkOrder.showFlag = true; + }, + //工单选择确认 + onSelectWorkOrder(obj) { + this.form.orderNo = obj.orderNo; + this.form.materialName = obj.materialName; + this.form.materialCode = obj.materialCode; + this.form.quality = obj.quality; + this.form.unit = obj.unit; + this.form.incomeTime = obj.incomeTime; + getBatchList(obj.workorderCode).then(response => { + this.batchList = response; + }); + }, /**物料选择弹出框**/ handleSelectMaterial() { this.$refs.itemSelectMaterial.showFlag = true; diff --git a/src/views/quality/qcWarehousing/selectWorkOrder.vue b/src/views/quality/qcWarehousing/selectWorkOrder.vue new file mode 100644 index 0000000..a2270c6 --- /dev/null +++ b/src/views/quality/qcWarehousing/selectWorkOrder.vue @@ -0,0 +1,139 @@ + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + {{ parseTime(scope.row.incomeTime, '{y}-{m}-{d}') }} + + + + + + + + + + + diff --git a/src/views/technology/proroute/index.vue b/src/views/technology/proroute/index.vue index 548e061..035e866 100644 --- a/src/views/technology/proroute/index.vue +++ b/src/views/technology/proroute/index.vue @@ -116,7 +116,7 @@ >{{scope.row.routeCode}} - + diff --git a/src/views/wms/equipment/index.vue b/src/views/wms/equipment/index.vue index 4e7774e..028480f 100644 --- a/src/views/wms/equipment/index.vue +++ b/src/views/wms/equipment/index.vue @@ -12,7 +12,7 @@ @@ -22,7 +22,7 @@ v-model="queryParams.equipmentName" placeholder="请输入设备名称" clearable - style="width: 180px" + style="width: 200px" @keyup.enter.native="handleQuery" /> @@ -33,7 +33,7 @@ @change="$forceUpdate()" clearable filterable - style="width: 180px" + style="width: 200px" @keyup.enter.native="handleQuery" > + + + + + + - + + + + + + + @@ -459,6 +489,24 @@ + + + + + + + + + @@ -512,23 +560,22 @@ - - + - - + + + + @@ -617,8 +664,8 @@ - - + + + + + + + + + +