From 0a162b61518f98dce270e390bc75778ccc6eb67d Mon Sep 17 00:00:00 2001
From: 王震 <10952869+daywangzhen@user.noreply.gitee.com>
Date: 星期五, 19 一月 2024 14:32:47 +0800
Subject: [PATCH] 	new file:   src/api/equipment/mould.js 	modified:   src/views/equipment/mould/index.vue 	new file:   src/views/equipment/mould/mould-from.vue 	modified:   src/views/quality/Packaging_ledger/index.vue 	modified:   vue.config.js

---
 src/views/equipment/mould/index.vue |   47 +++++++++++++++++++++--------------------------
 1 files changed, 21 insertions(+), 26 deletions(-)

diff --git a/src/views/equipment/mould/index.vue b/src/views/equipment/mould/index.vue
index de379cd..358a714 100644
--- a/src/views/equipment/mould/index.vue
+++ b/src/views/equipment/mould/index.vue
@@ -9,37 +9,25 @@
       :options="options" 
       ref="processconfiguration"
       >
-      <template #toolbar>
-        <el-button  type="primary"
-                @click="">鏂板</el-button>
-                <!-- <el-dropdown style="margin-left: 20px;" @command="handleCommand">
-                    <el-button >
-                      鐘舵�佸彉鏇�<i class="el-icon-arrow-down el-icon--right"></i>
-                    </el-button>
-                    <el-dropdown-menu slot="dropdown">
-                      <el-dropdown-item :key="index" 
-                        :command="item.label"
-                        v-for="(item,index) in taskTypeArr" 
-                        >{{ item.label }}</el-dropdown-item
-                      >
-                    </el-dropdown-menu>
-                </el-dropdown> -->
-      </template>
+      <template #toolbar></template>
       </ttable>
       </basic-container>
+      <table-form
+        v-if="true"
+      ></table-form>
   </div>
 </template>
 
 <script>
 import ttable from '@/views/common/ztt-table.vue'
-import { fetchList, } from '@/api/quality/finishedDelivery'
-
+import { page, } from '@/api/equipment/mould'
+import TableForm from './mould-from.vue'
 export default {
   data(){
       return {
-          ajaxFun: fetchList,
+          ajaxFun: page,
           prelang: 'operation',
-          dataListLoading: false,
+          addOrUpdateVisible: false,
           options: {
               height: 300, // 榛樿楂樺害-涓轰簡琛ㄥご鍥哄畾
               stripe: true, // 鏄惁涓烘枒椹汗 table
@@ -75,6 +63,7 @@
                   isTrue: true,
                   isSearch: true,
                   searchInfoType: 'text',
+                 
                 },
                 {
                   minWidth: '140',
@@ -109,7 +98,11 @@
                   searchInfoType: 'text',
                 },
               ],
-              toolbar: [],
+              toolbar: [{
+                text: '鏂板',
+                type: 'primary',
+                fun: this.addOrUpdateHandle
+                }],
               operator: [{
                 text: '鍒犻櫎',
                 type: 'text',
@@ -129,12 +122,14 @@
   //   ...mapGetters(['permissions'])
   // },
   components: {
-    ttable
+    ttable,
+    TableForm
   },
-  medthods: {
-    formatDateTime(row, column, cellValue) {
-        return cellValue ? fecha.format(new Date(cellValue), 'yyyy-MM-dd') : ''
-    },
+  methods: {
+        addOrUpdateHandle() {
+          this.addOrUpdateVisible = true
+          console.log(this.addOrUpdateVisible,"--=--");
+        },
   },
 }
 </script>
\ No newline at end of file

--
Gitblit v1.9.3