From 98f5bde59477a474d8dca5e61a0902d37e80cdb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E8=99=B9=E7=9D=BF?= <297504645@qq.com> Date: Wed, 3 Apr 2024 17:31:03 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90NEV-PC=E3=80=91=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fe/PC/src/api/wms-api.js | 16 +- fe/PC/src/components/currenTable/index.vue | 20 +- fe/PC/src/mixins/TableMixins.js | 1 - fe/PC/src/router/index.js | 56 +- fe/PC/src/utils/detailsTableColumns/index.js | 129 +++-- fe/PC/src/utils/tableColumns/index.js | 63 +- fe/PC/src/utils/tabsDesTions/index.js | 63 +- .../completDump/completDumpJob.vue | 309 ---------- ...tDumpRequest.vue => completDumpNotePT.vue} | 66 ++- ...pletDumpNote.vue => completDumpNoteZP.vue} | 73 +-- .../completDump/completDumpNoteZS.vue | 112 ++++ .../deliver/FISDeliverNote-Query.vue | 7 - .../deliver/FISDeliverRequest.vue | 69 ++- .../dismantle/StepsFormTree/index.vue | 547 +++++++++++++++++ .../StepsFormTree/okk_currenTable.vue | 542 +++++++++++++++++ .../dismantle/StepsFormTree/okk_el.vue | 548 ++++++++++++++++++ .../dismantle/StepsFormTree/style/index.scss | 142 +++++ .../dismantle/customerDismantleJob-old.vue | 4 +- .../dismantle/customerDismantleJob.vue | 112 ++-- 19 files changed, 2339 insertions(+), 540 deletions(-) delete mode 100644 fe/PC/src/views/finishedProductManage/completDump/completDumpJob.vue rename fe/PC/src/views/finishedProductManage/completDump/{completDumpRequest.vue => completDumpNotePT.vue} (66%) rename fe/PC/src/views/finishedProductManage/completDump/{completDumpNote.vue => completDumpNoteZP.vue} (62%) create mode 100644 fe/PC/src/views/finishedProductManage/completDump/completDumpNoteZS.vue create mode 100644 fe/PC/src/views/finishedProductManage/dismantle/StepsFormTree/index.vue create mode 100644 fe/PC/src/views/finishedProductManage/dismantle/StepsFormTree/okk_currenTable.vue create mode 100644 fe/PC/src/views/finishedProductManage/dismantle/StepsFormTree/okk_el.vue create mode 100644 fe/PC/src/views/finishedProductManage/dismantle/StepsFormTree/style/index.scss diff --git a/fe/PC/src/api/wms-api.js b/fe/PC/src/api/wms-api.js index f81e8de52..647a198e3 100644 --- a/fe/PC/src/api/wms-api.js +++ b/fe/PC/src/api/wms-api.js @@ -513,9 +513,9 @@ export function sumPrint(number, url ) { } // 线边仓调拨列表 | 上架前退货记录 | 采购上架记录 | 半成品上架记录 | 原料直发 -export function getPageListWip(data, url) { +export function getPageListWip(data, url, hasDetail) { return request({ - url: baseURL + url, + url: baseURL + url + '?includeDetails=' + Boolean(hasDetail), method: 'post', data }) @@ -639,14 +639,22 @@ export async function itemTransformNewCreate(data) { }) } -// 获取bom -export function getBomByComponentTree(code) { +// 客户退拆-获取bom(全部展开) +export function getBomByComponentList(code) { return request({ url: baseURL + 'basedata/bom/get-list-by-component-with-tree/?component=' + code, method: 'get' }) } +// 客户退拆-获取bom(树状) +export function getBomByComponentTree(code) { + return request({ + url: baseURL + 'basedata/bom/get-bom-tree-by-code/?component=' + code, + method: 'get' + }) +} + // 客户退拆任务-执行提交 export async function productionRecycleJobHandle(id,data) { return request({ diff --git a/fe/PC/src/components/currenTable/index.vue b/fe/PC/src/components/currenTable/index.vue index b8faf9faf..022727200 100644 --- a/fe/PC/src/components/currenTable/index.vue +++ b/fe/PC/src/components/currenTable/index.vue @@ -16,6 +16,9 @@ :tree-props="treeProps" :cell-style="cellStyle" :key="isUpdate" + @select="tableHandleSelect" + @select-all="tableHandleSelectAll" + :default-expand-all="isDefaultExpandAll" > @@ -28,7 +31,7 @@ :fixed="item.fixed" :show-overflow-tooltip="true" :width="item.width" - align="center" + :align="item.align || 'center'" > \ No newline at end of file diff --git a/fe/PC/src/views/finishedProductManage/deliver/FISDeliverNote-Query.vue b/fe/PC/src/views/finishedProductManage/deliver/FISDeliverNote-Query.vue index cb9ce6cef..3894d2d41 100644 --- a/fe/PC/src/views/finishedProductManage/deliver/FISDeliverNote-Query.vue +++ b/fe/PC/src/views/finishedProductManage/deliver/FISDeliverNote-Query.vue @@ -119,13 +119,6 @@ export default { drawerbutton (val) { // 打印 if(val == 'print'){ - let _option = { - details:{ - packingCode:"toPackingCode", - } - } - let data = initPrintAllData(this.tableDataDetails,'chdmxb.rdlx',false,_option); - this.Print(data) this.beforePrintHandle(()=>{ let _option = { details:{ diff --git a/fe/PC/src/views/finishedProductManage/deliver/FISDeliverRequest.vue b/fe/PC/src/views/finishedProductManage/deliver/FISDeliverRequest.vue index 984184f1f..914733c2d 100644 --- a/fe/PC/src/views/finishedProductManage/deliver/FISDeliverRequest.vue +++ b/fe/PC/src/views/finishedProductManage/deliver/FISDeliverRequest.vue @@ -33,7 +33,7 @@ :tabsDesTions="tabsDesTions" :Butttondata="DrawerButtonData" @drawerShut="(val) => (displayDialog.detailsDialog = val)" - @drawerbutton="drawerbutton" + @drawerbutton="drawerbuttonHandle" @handleCommand="drawerHandle" @close-value="closeValue" :tableColumns="detailsTableColumns" @@ -57,12 +57,18 @@ \ No newline at end of file diff --git a/fe/PC/src/views/finishedProductManage/dismantle/StepsFormTree/okk_currenTable.vue b/fe/PC/src/views/finishedProductManage/dismantle/StepsFormTree/okk_currenTable.vue new file mode 100644 index 000000000..eb3d9b0c8 --- /dev/null +++ b/fe/PC/src/views/finishedProductManage/dismantle/StepsFormTree/okk_currenTable.vue @@ -0,0 +1,542 @@ + + + \ No newline at end of file diff --git a/fe/PC/src/views/finishedProductManage/dismantle/StepsFormTree/okk_el.vue b/fe/PC/src/views/finishedProductManage/dismantle/StepsFormTree/okk_el.vue new file mode 100644 index 000000000..9ead6920b --- /dev/null +++ b/fe/PC/src/views/finishedProductManage/dismantle/StepsFormTree/okk_el.vue @@ -0,0 +1,548 @@ + + + \ No newline at end of file diff --git a/fe/PC/src/views/finishedProductManage/dismantle/StepsFormTree/style/index.scss b/fe/PC/src/views/finishedProductManage/dismantle/StepsFormTree/style/index.scss new file mode 100644 index 000000000..88b964f31 --- /dev/null +++ b/fe/PC/src/views/finishedProductManage/dismantle/StepsFormTree/style/index.scss @@ -0,0 +1,142 @@ +#StepsFormTree { + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + padding-bottom: 15px; + + ::v-deep .el-steps { + padding-bottom: 15px; + + .el-step__main { + .el-step__title { + line-height: 24px; + font-size: 14px; + } + } + } + + .page1 { + flex: 1; + display: flex; + flex-direction: column; + justify-content: space-between; + overflow: hidden; + overflow-y: auto; + } + + .page2 { + // flex: 1; + // display: flex; + // flex-direction: column; + // justify-content: space-between; + // // padding-bottom: 54px; + // overflow: hidden; + // overflow-y: auto; + height: calc(100% - 95px); + + ::v-deep .el-form { + flex: 1; + display: flex; + height: 100%; + .el-row { + display: none; + } + + .formTable-box { + flex: 1; + overflow: hidden; + overflow-y: auto; + + .el-form-item__content { + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + margin: 0 !important; + + .heder { + padding: 5px 0; + text-align: center; + font-size: 18px; + + button{ + margin: 0 10px; + } + } + + .el-table { + flex: 1; + + .cell { + display:flex !important + } + + .childTable { + display: flex; + justify-content: space-around; + + span { + cursor: pointer; + + &:nth-child(1) { + color: red; + } + + &:nth-child(2) { + color: green; + } + } + } + } + } + } + } + + ::v-deep .formButton { + // position: absolute; + // bottom: 0; + // right: 0; + z-index: 3; + } + } + + .page3 { + flex: 1; + display: flex; + flex-direction: column; + // padding-bottom: 54px; + overflow: hidden; + overflow-y: auto; + + ::v-deep .el-form { + flex: 1; + display: flex; + flex-direction: column; + + .el-row { + flex: 1; + flex-wrap: wrap; + } + + .formTable-box { + margin-bottom: 0; + // flex: 1; + + .el-form-item__content { + width: 100%; + height: 100%; + display: flex; + flex-direction: column; + margin: 0 !important; + } + } + } + ::v-deep .formButton { + // position: absolute; + // bottom: 0; + // right: 0; + z-index: 3; + } + } +} diff --git a/fe/PC/src/views/finishedProductManage/dismantle/customerDismantleJob-old.vue b/fe/PC/src/views/finishedProductManage/dismantle/customerDismantleJob-old.vue index 1d45443b7..ed5f12ec9 100644 --- a/fe/PC/src/views/finishedProductManage/dismantle/customerDismantleJob-old.vue +++ b/fe/PC/src/views/finishedProductManage/dismantle/customerDismantleJob-old.vue @@ -66,7 +66,7 @@ import { getDetailed, getPageList, - getBomByComponentTree, + getBomByComponentList, productRecycleNoteExport, productionRecycleJobHandle, // productionRecycleJobComplete @@ -337,7 +337,7 @@ export default { this.Loading.appMainLoading = true // 获取接口生成bom列表 let _itemInfo = this.propsData.details[0] - getBomByComponentTree(_itemInfo.itemCode) + getBomByComponentList(_itemInfo.itemCode) .then(res=>{ this.bomList = res this.Loading.appMainLoading = false diff --git a/fe/PC/src/views/finishedProductManage/dismantle/customerDismantleJob.vue b/fe/PC/src/views/finishedProductManage/dismantle/customerDismantleJob.vue index 1d45443b7..3276554dc 100644 --- a/fe/PC/src/views/finishedProductManage/dismantle/customerDismantleJob.vue +++ b/fe/PC/src/views/finishedProductManage/dismantle/customerDismantleJob.vue @@ -44,7 +44,9 @@ :firstTabs="firstTabs" > - + >