瀏覽代碼

系统中期支付项

duy 1 年之前
父節點
當前提交
633b5f8904
共有 1 個文件被更改,包括 19 次插入3 次删除
  1. 19 3
      src/views/measure/interimPay.vue

+ 19 - 3
src/views/measure/interimPay.vue

@@ -4,10 +4,19 @@
     <div class="boxswai" style="width: 50%; padding-left: 0px">
       <div class="boxnei" style="display: flex; flex-direction: column">
         <avue-crud :data="data"
+        ref="crud"
              :option="option"
              :page.sync="page"
              v-model="form"
+        
               @on-load="onLoad">
+              <template slot="menuLeft">
+                <span style="font-weight: bold;"> 系统中期支付项列表</span>
+               
+              </template>
+              <template slot="menuRight">
+                <el-button type="primary" size="small"    icon="el-icon-plus" @click="handleAdd">添加中期支付项</el-button>
+              </template>
 
          <!-- 合同公式 -->
         <template
@@ -136,13 +145,14 @@
           </tbody></table>
 
       </form>
-      <h4>汇总项</h4>
+    
       <div class="totalbox">
         <avue-crud :data="totaldata" :option="totaloption" >
           <template slot="menuLeft">
-              <el-button type="primary" size="small"
+            <span style="font-weight: bold;margin-right: 5px;">汇总项</span>
+              <el-link type="primary" size="small"
                         icon="el-icon-plus"
-                        @click="addTotal">新增汇总项</el-button>
+                        @click="addTotal">添加汇总项</el-link>
             </template>
         </avue-crud>
       </div>
@@ -182,6 +192,7 @@
         height: 'auto',
         refreshBtn:false,
         columnBtn:false,
+        addBtn:false,
         tip: false,
         border: true,
         index: true,
@@ -633,6 +644,11 @@
         ]
       }
     },
+    //添加中期支付项
+
+    handleAdd() {
+      this.$refs.crud.rowAdd();
+  },
     handleaddFormula(){
       this.addFormuladialog=true
     },