From 10a26b9b670efef0a2adba675c794c539846aa3c Mon Sep 17 00:00:00 2001
From: 廖井涛 <2265517004@qq.com>
Date: 星期五, 06 九月 2024 10:18:10 +0800
Subject: [PATCH] Merge branch 'master' of http://bore.pub:10439/r/ERP_override

---
 north-glass-erp/northglass-erp/src/views/pp/Replenish/SelectReplenish.vue |  107 +++++++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 86 insertions(+), 21 deletions(-)

diff --git a/north-glass-erp/northglass-erp/src/views/pp/Replenish/SelectReplenish.vue b/north-glass-erp/northglass-erp/src/views/pp/Replenish/SelectReplenish.vue
index 307b7a2..a6e59a3 100644
--- a/north-glass-erp/northglass-erp/src/views/pp/Replenish/SelectReplenish.vue
+++ b/north-glass-erp/northglass-erp/src/views/pp/Replenish/SelectReplenish.vue
@@ -69,7 +69,6 @@
     gridOptions.loading=false
   }else{
     ElMessage.warning(res.msg)
-    router.push("/login")
   }
 })
 
@@ -111,39 +110,51 @@
     {type: 'expand', fixed: "left", slots: {content: 'content'}, width: 50},
     {type:'checkbox',title: t('basicData.check'), width: 80,fixed:"left"},
     {type: 'seq', fixed: "left", title: t('basicData.Number'), width: 50},
-    {field: 'review_status',title: t('basicData.review'), width: 40, slots: { default: 'state' }},
+    {field: 'review_status',title: t('basicData.review'), width: 50, slots: { default: 'state' }},
     {field: 'patch_id', width: 120, title: t('replenish.patchNumber'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
     {field: 'order_id', width: 120, title: t('order.orderId'), showOverflow: "ellipsis", filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
-    {field: 'process_id', width: 120, title: t('processCard.processId'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
+    {field: 'process_id', width: 140, title: t('processCard.processId'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
     {field: 'project', width: 120, title: t('order.project'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
-    {field: 'reporting_work_id', width: 100,title: t('reportingWorks.reportingWorkId'),filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
     {field: 'batch', width: 80, title: t('order.batch'), showOverflow: "ellipsis", filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
-    {field: 'order_sort', width: 80, title:t('order.OrderNum'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
-    {field: 'product_name', width: 120, title: t('order.product'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
-    //{field: 'building_number',width: 120, title: '妤煎眰缂栧彿', filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
+    {field: 'glassNumber', width: 100, title: t('reportingWorks.glassNumber'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
+    {field: 'order_sort', width: 100, title:t('order.OrderNum'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
     {field: 'technology_number', width: 80, title: t('replenish.mark'), showOverflow: "ellipsis", filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
-    {field: 'glass_address', width: 90, title: t('replenish.sliceMarking'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
-    {field: 'patch_num', width: 80, title: t('order.quantity'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
-    {field: 'width', width: 80, title: t('order.width'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
-    {field: 'height', width: 80, title: t('order.height'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
-    {field: 'shape', width: 80, title: t('order.shape'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
     {field: 'patch_type', width: 100, title: t('reportingWorks.breakageType'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
     {field: 'patch_reason', width: 120, title: t('reportingWorks.breakageReason'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
     {field: 'responsible_equipment', width: 120, title: t('reportingWorks.responsibleEquipment'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
     {field: 'responsible_team', width: 120, title: t('reportingWorks.responsibleTeam'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
-    {field: 'patch_area', width: 120, title: t('order.area'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
     {field: 'patch_processes', width: 120, title:  t('reportingWorks.reportingProcess'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
+    //{field: 'building_number',width: 120, title: '妤煎眰缂栧彿', filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
+    {field: 'glass_address', width: 90, title: t('replenish.sliceMarking'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
+    {field: 'patch_num', width: 80, title: t('order.quantity'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
+    {field: 'patch_area', width: 120, title: t('order.area'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
+    {field: 'width', width: 80, title: t('order.width'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
+    {field: 'height', width: 80, title: t('order.height'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
+    {field: 'shape', width: 80, title: t('order.shape'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
     {field: 'quality_inspector', width: 100, title: t('reportingWorks.qualityInspector'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
     {field: 'reviewer', width: 100, title: t('productStock.reviewed'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
     {field: 'create_time', width: 100, title: t('productStock.productionDate')},
-    {field: 'update_time', width: 120, title: t('productStock.approvedDate')}
+    {field: 'update_time', width: 120, title: t('productStock.approvedDate')},
+    {field: 'product_name', width: 120, title: t('order.product'), filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
+    {field: 'reporting_work_id', width: 100,title: t('reportingWorks.reportingWorkId'),filters: [{data: ''}], slots: {filter: 'num1_filter'},filterMethod:filterChanged},
+
   ],//琛ㄥご鎸夐挳
 
   toolbarConfig: {
-    buttons: [{
+    buttons: [
+        {
       'name': t('basicData.review'),status: 'primary',
       'code':'add'
-    }],
+        },
+      {
+        'name': t('basicData.delete'),status: 'primary',
+        'code':'delete'
+      },
+      {
+        'name': t('basicData.cancelReview'),status: 'primary',
+        'code':'cancelReview'
+      }
+    ],
     /*import: false,
     export: true,
     print: true,*/
@@ -195,7 +206,61 @@
 
               }else{
                 ElMessage.warning(t('basicData.msg.reviewFail'))
-                router.push("/login")
+              }
+            })
+          }
+          return
+
+        }
+        case 'delete': {
+          const $table = xGrid.value
+          if ($table) {
+            const selectRecords = $table.getCheckboxRecords()
+            if (selectRecords.length === 0) {
+              ElMessage.warning(t('productStock.unselectedData'))
+              return
+            }
+            let flowData = ref({
+              userId:userid,
+              userName:username,
+              patchLog:selectRecords
+
+            })
+            request.post("/Replenish/deleteReplenish",flowData.value).then((res) => {
+              if(res.code==200 && res.data===true){
+                ElMessage.success(t('basicData.msg.deleteSuccess'))
+                router.push({path:'/main/Replenish/SelectReplenish',query:{random:Math.random()}})
+
+              }else{
+                ElMessage.warning(t('basicData.msg.deleteFail'))
+              }
+            })
+          }
+          return
+
+        }
+        case 'cancelReview': {
+          const $table = xGrid.value
+          if ($table) {
+            const selectRecords = $table.getCheckboxRecords()
+            if (selectRecords.length === 0) {
+              ElMessage.warning(t('productStock.unselectedData'))
+              return
+            }
+            let flowData = ref({
+
+              userId:userid,
+              userName:username,
+              patchLog:selectRecords
+
+            })
+            request.post("/Replenish/updateCancelReview",flowData.value).then((res) => {
+              if(res.code==200 && res.data===true){
+                ElMessage.success(t('basicData.msg.cancelReviewSuccess'))
+                router.push({path:'/main/Replenish/SelectReplenish',query:{random:Math.random()}})
+
+              }else{
+                ElMessage.warning(t('basicData.msg.cancelReviewFailWork'))
               }
             })
           }
@@ -274,15 +339,15 @@
     </el-header>
 
     <vxe-grid
-        max-height="100%"
+        height="100%"
         class="mytable-scrollbar"
         ref="xGrid"
         v-bind="gridOptions"
         v-on="gridEvents"
-        :checkbox-config="checkBoxConfig"
+
 
     >
-      <!--      @toolbar-button-click="toolbarButtonClickEvent"-->
+      <!--  :checkbox-config="checkBoxConfig"     @toolbar-button-click="toolbarButtonClickEvent"-->
       <!--      涓嬫媺鏄剧ず鎵�鏈変俊鎭彃妲�-->
       <template #content="{ row }">
         <ul class="expand-wrapper">
@@ -331,7 +396,7 @@
 <style scoped>
 .main-div-customer{
   width: 99%;
-  height: 100%;
+  height: 94%;
 }
 #head{
   width:40%;

--
Gitblit v1.8.0