lichao преди 3 години
родител
ревизия
130fba9dc8

+ 52 - 51
src/views/financialManagement/paymentRequest/paymentRequest.vue

@@ -1,56 +1,57 @@
 <template>
-  <basic-container v-if="show">
-    <avue-crud :option="option"
-               :data="dataList"
-               ref="crud"
-               v-model="form"
-               :page.sync="page"
-               :search.sync="search"
-               :table-loading="loading"
-               @search-change="searchChange"
-               @search-reset="searchReset"
-               @selection-change="selectionChange"
-               @current-change="currentChange"
-               @size-change="sizeChange"
-               @refresh-change="refreshChange"
-               @on-load="onLoad">
-      <template slot="menuLeft">
-        <el-button type="primary"
-                   size="small"
-                   icon="el-icon-plus"
-                   @click="addReceipt">新 单
-        </el-button>
-      </template>
-      <template slot="corpIdSearch">
-        <select-component
-          v-model="search.corpId"
-          :configuration="configuration"
-        ></select-component>
-      </template>
-      <template slot-scope="scope" slot="menu">
-        <el-button
-          type="text"
-          size="small"
-          @click.stop="editOpen(scope.row, 2)"
-        >编辑
-        </el-button>
-        <el-button
-          type="text"
-          size="small"
-          @click.stop="rowDel(scope.row, scope.index)"
-        >删除
-        </el-button>
-      </template>
-    </avue-crud>
-  </basic-container>
-  <detail-page
-    ref="detail"
-    @goBack="goBack"
-    :detailData="detailData"
-    v-else
-  ></detail-page>
+  <div>
+    <basic-container v-if="show">
+      <avue-crud :option="option"
+                 :data="dataList"
+                 ref="crud"
+                 v-model="form"
+                 :page.sync="page"
+                 :search.sync="search"
+                 :table-loading="loading"
+                 @search-change="searchChange"
+                 @search-reset="searchReset"
+                 @selection-change="selectionChange"
+                 @current-change="currentChange"
+                 @size-change="sizeChange"
+                 @refresh-change="refreshChange"
+                 @on-load="onLoad">
+        <template slot="menuLeft">
+          <el-button type="primary"
+                     size="small"
+                     icon="el-icon-plus"
+                     @click="addReceipt">新 单
+          </el-button>
+        </template>
+        <template slot="corpIdSearch">
+          <select-component
+            v-model="search.corpId"
+            :configuration="configuration"
+          ></select-component>
+        </template>
+        <template slot-scope="scope" slot="menu">
+          <el-button
+            type="text"
+            size="small"
+            @click.stop="editOpen(scope.row, 2)"
+          >编辑
+          </el-button>
+          <el-button
+            type="text"
+            size="small"
+            @click.stop="rowDel(scope.row, scope.index)"
+          >删除
+          </el-button>
+        </template>
+      </avue-crud>
+    </basic-container>
+    <detail-page
+      ref="detail"
+      @goBack="goBack"
+      :detailData="detailData"
+      v-else
+    ></detail-page>
+  </div>
 </template>
-
 <script>
   import option from "./configuration/mainList.json";
   import { getList,remove} from "@/api/financialManagement/paymentRequest";

+ 2 - 3
src/views/financialManagement/receiptSettle/receiptSettleDetailsPage.vue

@@ -407,9 +407,8 @@
         done(row);
       },
       rowCell(row,index){
-
-        console.log(row)
-        this.$refs.crud.rowCell(row, index)
+        row.$cellEdit = !row.$cellEdit
+        // this.$refs.crud.rowCell(row, index)
       },
       rowDel(row,index){
         this.dataList.splice(index, 1);