Преглед изворни кода

跟单应收批量修改比例和批量删除操作加前置判断

@dongkboy пре 1 месец
родитељ
комит
338036605c

+ 1 - 1
src/views/receivable/documentary/documentaryRecord.vue

@@ -60,7 +60,7 @@
               :props="companyIdprops" style="width: 100%;" @change="handleCompanyChange" />
           </el-form-item>
         </el-col>
-        <el-col :span="8" style="display: flex; align-items: start; justify-content: flex-end">
+        <el-col :span="24" style="display: flex; align-items: start; justify-content: flex-end">
           <el-button type="primary" @click="search">查询</el-button>
           <el-button plain type="primary" @click="reset">重置</el-button>
         </el-col>

+ 2 - 2
src/views/receivable/documentary/index.vue

@@ -129,7 +129,7 @@
           </div>
           <span class="col-108 m-r-8">
             <el-button class="radius-2px width-100"
-              :disabled="selectedList.some(item => item.invoiceStatusName === '已开票')"
+              :disabled="selectedList.some(item => item.invoiceStatusName === '已开票' || item.disableFlag === '1')  "
               @click="handleBatchEdit">批量修改比例</el-button>
           </span>
           <span class="col-108 m-r-8">
@@ -141,7 +141,7 @@
               </el-button>
               <template #dropdown>
                 <el-dropdown-menu>
-                  <el-dropdown-item command="删除">删除</el-dropdown-item>
+                  <el-dropdown-item  :disabled="selectedList.some(item =>item.disableFlag === '1')" command="删除">删除</el-dropdown-item>
                 </el-dropdown-menu>
               </template>
             </el-dropdown>

+ 1 - 1
src/views/receivable/handingFee/invoiceRecord.vue

@@ -61,7 +61,7 @@
               format="YYYY-MM-DD HH:mm:ss" />
           </el-form-item>
         </el-col>
-        <el-col :span="8" style="display: flex; align-items: start; justify-content: flex-end">
+        <el-col :span="24" style="display: flex; align-items: start; justify-content: flex-end">
           <el-button type="primary" @click="search">查询</el-button>
           <el-button plain type="primary" @click="reset">重置</el-button>
         </el-col>