瀏覽代碼

搬运工对账单

jbb 2 年之前
父節點
當前提交
aaeef11816
共有 2 個文件被更改,包括 11 次插入13 次删除
  1. 10 12
      src/views/oa/modules/SyCarryDetailModal.vue
  2. 1 1
      src/views/oa/modules/SyCarryModal.vue

+ 10 - 12
src/views/oa/modules/SyCarryDetailModal.vue

@@ -8,6 +8,9 @@
     :getContainer ='()=>$refs.replyModal'
     @cancel="handleCancel"
    >
+   <template slot="footer">
+      <a-button @click="handleCancel">关闭</a-button>
+    </template>
     <div class="table-page-search-wrapper">
       <a-form-model layout="inline" ref="form" :model="formState" :rules="validatorRules">
           <a-row :gutter="24">
@@ -73,17 +76,6 @@
         :scroll="{x: 1800 }"
         :pagination="false"
       >
-      <!-- 计划员 -->
-           <span slot="jhyName" slot-scope="text, record, index">
-                 <a-select  v-model="record.jhyName" style="width:100%"  disabled > 
-                      <a-select-option
-                     v-for="(item,index) in jhyNameOption"
-                     :key="index"
-                     :value="item.value">
-                     {{item.label}}
-                     </a-select-option>
-                   </a-select>
-          </span>
         <!-- 操作 -->
          <span slot="option" slot-scope="text, record, index">
            <a-popconfirm title="确定放弃新增?" @confirm="handelAutograph(record)" okText="确定" cancelText="取消">
@@ -261,7 +253,13 @@
            this.$message.error('不可签名');
         }
         
-      }
+      },
+       //关闭
+      handleCancel(){
+        this.syCarryBTable.dataSource=[]
+        this.formState = {}
+        this.visible = false
+      },
     }
   }
 </script>

+ 1 - 1
src/views/oa/modules/SyCarryModal.vue

@@ -65,7 +65,7 @@
       <!-- 子表单区域 -->
       <a-tabs v-model="activeKey" @change="handleChangeTabs">
         <a-tab-pane tab="搬运工对账单" :key="refKeys[0]" :forceRender="true">
-          <a-button type="primary"  @click="addList">增行</a-button>
+          <a-button type="primary"  @click="addList" style="margin-bottom: 1%;">增行</a-button>
         <a-table
         bordered
         :columns="syCarryBTable.columns"