From bc16d211c5a2b31f0e3127a102748806151eaecb Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期四, 14 十二月 2023 16:23:19 +0800
Subject: [PATCH] 	modified:   src/const/crud/customerOrder/customerOrderForm.js 	modified:   src/views/plan/operationtask/operationtask-form.vue 	modified:   src/views/product/workbench/operation-task-pane.vue 	modified:   src/views/product/workbench/taskinfo-pane.vue 	modified:   src/views/product/workbench/workReportCard.vue 	modified:   src/views/quality/finishedProductInspection/finishedProduct-form.vue 	modified:   src/views/quality/newReport/ReportForm.vue 	modified:   src/views/quality/processInspect/processInspect-form.vue 	modified:   src/views/quality/rawMaterial/rawMaterial-form.vue 	modified:   src/views/quality/teststandard/standard-form.vue 	modified:   src/views/technology/completeproductstructure/completeproductstructure-form.vue 	modified:   src/views/technology/document/document-form.vue 	modified:   src/views/technology/operation/operation-form.vue 	modified:   src/views/technology/routing/routing-form.vue 	modified:   src/views/warehouse/changestock/index.vue

---
 src/views/quality/Packaging_ledger/pack-from.vue |   30 ++++++++++++++----------------
 1 files changed, 14 insertions(+), 16 deletions(-)

diff --git a/src/views/quality/Packaging_ledger/pack-from.vue b/src/views/quality/Packaging_ledger/pack-from.vue
index 67598f3..e780818 100644
--- a/src/views/quality/Packaging_ledger/pack-from.vue
+++ b/src/views/quality/Packaging_ledger/pack-from.vue
@@ -1,7 +1,7 @@
 <template>
     <el-dialog
       width="60%"
-      title="鍙傛暟"
+      title="鏂板"
       top="5vh"
       :visible.sync="innerVisible"
       :show="currshowlist"
@@ -11,7 +11,7 @@
     >
       <ttable
         :table="table"
-        @handleSelectionChange="handleSelectionChange"
+        @currentChange="Getdata"
         :prelang="prelang"
         :options="options"
         :ajaxFun="ajaxFun"
@@ -38,7 +38,7 @@
     },
     data() {
       return {
-        datalistid:"",
+        datalistid:{},
         ajaxFun: customerpage,
         currentRow: false,
         typeOptions: [],
@@ -128,7 +128,6 @@
     },
     watch: {
       currshowlist() {
-        console.log(22211);
         this.innerVisible = this.currshowlist
         if (this.currshowlist) {
           this.$nextTick(() => {
@@ -145,19 +144,18 @@
     },
     methods: {
          // 鑾峰彇鏁版嵁鍒楄〃
-        getData() {
-        this.$refs.paramTable.getDataList()
-        },
-        handleSelectionChange(val){
-            let data = val
-            data.forEach(el => {
-                this.datalistid = el
-            });
-            console.log(this.datalistid);
+        // getData() {
+        // this.$refs.paramTable.getDataList()
+        // },
+        Getdata(val){
+            this.datalistid = val
         },
       saveSelectRow() {
-        pagedataadd ({customerId:this.datalistid.id,contractNo:this.datalistid.contractNo}).then((res =>{
-            console.log(res);
+        let packageBox = {
+            customerId:this.datalistid.id,
+            contractNo:this.datalistid.contractNo
+        }   
+        pagedataadd (packageBox).then((res =>{
             if (res.status === 200) {
                 this.$message.success('鏂板鎴愬姛')
                 this.$emit('refreshDataList')
@@ -166,7 +164,7 @@
             }
         }))
         this.innerVisible = false
-          this.$emit('handleSelectionChange',this.innerVisible )
+          this.$emit('wayapi',this.innerVisible )
       },
     }
   }

--
Gitblit v1.9.3