lxf 1 year ago
parent
commit
536446d9c1
1 changed files with 18 additions and 4 deletions
  1. 18 4
      src/views/salesMange/shipmentMange/packing/index.vue

+ 18 - 4
src/views/salesMange/shipmentMange/packing/index.vue

@@ -34,7 +34,7 @@
         <template #productName="{ item }">
         <template #productName="{ item }">
           <div>
           <div>
             <div v-for="(row, index) in getData(item.codeAPName, 'productName')" :key="index">
             <div v-for="(row, index) in getData(item.codeAPName, 'productName')" :key="index">
-              <el-tooltip class="box-item" effect="dark" :content="item" placement="top-start">
+              <el-tooltip class="box-item" effect="dark" :content="row" placement="top-start">
                 <div class="hidden-text">
                 <div class="hidden-text">
                   {{ row }}
                   {{ row }}
                 </div>
                 </div>
@@ -264,7 +264,7 @@
         <el-button type="primary" @click="submitForm()" size="large" :loading="submitLoading"> 确 定 </el-button>
         <el-button type="primary" @click="submitForm()" size="large" :loading="submitLoading"> 确 定 </el-button>
       </template>
       </template>
     </el-dialog>
     </el-dialog>
-    
+
     <el-dialog title="合并出货" v-model="dialogVisibleOne" width="400" v-loading="loadingOne">
     <el-dialog title="合并出货" v-model="dialogVisibleOne" width="400" v-loading="loadingOne">
       <byForm :formConfig="formConfig" :formOption="formOption" v-model="formData.dataOne" :rules="rules" ref="byform"> </byForm>
       <byForm :formConfig="formConfig" :formOption="formOption" v-model="formData.dataOne" :rules="rules" ref="byform"> </byForm>
       <template #footer>
       <template #footer>
@@ -469,15 +469,26 @@ const config = computed(() => {
     {
     {
       attrs: {
       attrs: {
         label: "操作",
         label: "操作",
-        width: "90",
+        width: "140",
         align: "center",
         align: "center",
         fixed: "right",
         fixed: "right",
       },
       },
-      // 渲染 el-button,一般用在最后一列。
       renderHTML(row) {
       renderHTML(row) {
         return [
         return [
           {
           {
             attrs: {
             attrs: {
+              label: "出货通知",
+              type: "primary",
+              text: true,
+              disabled: false,
+            },
+            el: "button",
+            click() {
+              clickShippingNotice(row);
+            },
+          },
+          {
+            attrs: {
               label: "删除",
               label: "删除",
               type: "primary",
               type: "primary",
               text: true,
               text: true,
@@ -830,6 +841,9 @@ const handleClose = () => {
 };
 };
 getSelectData();
 getSelectData();
 getList();
 getList();
+const clickShippingNotice = (row) => {
+  console.log(row);
+};
 </script>
 </script>
 
 
 <style lang="scss" scoped>
 <style lang="scss" scoped>