From ede4e6aef5421f3a28fb4bc083ee60025b1b5f03 Mon Sep 17 00:00:00 2001 From: chenlu <1320612696@qq.com> Date: 星期五, 01 三月 2024 08:56:39 +0800 Subject: [PATCH] 报工新增界面部分代码 --- north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue | 17 +++++++++++------ 1 files changed, 11 insertions(+), 6 deletions(-) diff --git a/north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue b/north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue index 656780b..0317b1d 100644 --- a/north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue +++ b/north-glass-erp/northglass-erp/src/views/pp/processCard/AddProcessCard.vue @@ -96,7 +96,6 @@ request.post(`/processCard/selectNoCard/${orderId}/${productionId}`, filterData.value).then((res) => { if (res.code == 200) { - //console.log(res.data) pageTotal.value = res.data.total produceList = produceList.value.concat(deepClone(res.data.data)) xGrid.value.reloadData(produceList) @@ -260,9 +259,9 @@ buttons: [ {code: 'saveFlowCard', name: '淇濆瓨', status: 'primary', icon: 'vxe-icon-save'}, ], - import: false, - export: true, - print: true, + // import: false, + // export: true, + // print: true, zoom: true, custom: true }, @@ -304,7 +303,12 @@ checkedList.forEach((item) => { item.processId = processId item.landingSequence = index + item.quantity=item.baiscQuantity }) + checkedList.forEach((item)=>{ + delete item._X_ROW_KEY + }) + $gridLeft.insertAt(checkedList) $grid.remove(checkedList) } @@ -364,6 +368,7 @@ if (filterIndex > -1) { rightData[filterIndex].baiscQuantity = rightData[filterIndex].baiscQuantity * 1 + item.quantity * 1 } else { + delete item._X_ROW_KEY $grid.insert(item) } @@ -421,6 +426,7 @@ item.quantity = checkedNum.value item.processId = checkedListLeft[0].processId item.landingSequence = checkedListLeft[0].landingSequence + delete item._X_ROW_KEY $gridLeft.insert(item) } @@ -429,6 +435,7 @@ checkedList.forEach((item) => { item.processId = checkedListLeft[0].processId item.landingSequence = checkedListLeft[0].landingSequence + delete item._X_ROW_KEY }) $gridLeft.insertAt(checkedList) $grid.remove(checkedList) @@ -458,14 +465,12 @@ ElMessage.warning("璇峰厛灏嗗彸渚ф暟鎹叏閮ㄥ缓绔嬫祦绋嬪崱鍚庝繚瀛�") return; } - //console.log(selectRecords[0].quantity) let flowCardData = ref({ flowCard: selectRecords, userName:username, productionId:productionId }) - //console.log(flowCardData.value) request.post("/processCard/addFlowCard", flowCardData.value).then((res) => { if (res.code == 200) { ElMessage.success("淇濆瓨鎴愬姛") -- Gitblit v1.8.0