Browse Source

财务2.7 禁用已到款预登记的销售选择

hbchen 1 year ago
parent
commit
0928e46518
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/views/financialManagement/registrationPre.vue

+ 5 - 3
src/views/financialManagement/registrationPre.vue

@@ -794,17 +794,19 @@ placementPreList()
                 v-for="seller in sellerInvoiceListF" :key="seller.seller_id">
                 </el-option>
               </el-select> -->
-              <el-cascader :options="sellerInvoiceListFandQ" v-model="item.seller_id" v-if="item.service_product_id==1"
+              <el-cascader :options="sellerInvoiceListFandQ" :disabled="dialog.registrationType=='到款' && item.contract_invoice_id" 
+              v-model="item.seller_id" v-if="item.service_product_id==1"
                placeholder="请选择销售" :props="{label:'seller_name',value:'seller_id',children:'child',emitPath:false}" 
               :show-all-levels="false" filterable style="max-width: 176px;"></el-cascader>
-              <el-select v-model="item.seller_id" style="width: 176px;"
+              <el-select v-model="item.seller_id" style="width: 176px;" 
+              :disabled="dialog.registrationType=='到款' && item.contract_invoice_id"
               placeholder="请选择权益销售" filterable v-else-if="item.service_product_id==2">
                 <el-option :label="seller.seller_name" :value="seller.seller_id" 
                 v-for="seller in sellerInvoiceListQ" :key="seller.seller_id">
                 </el-option>
               </el-select>
               <el-select v-model="item.seller_id" style="width: 176px;" 
-              placeholder="请选择销售" v-else
+              placeholder="请选择销售" :disabled="dialog.registrationType=='到款' && item.contract_invoice_id" v-else
                 @visible-change="selectVisible">
               </el-select>
             </el-form-item>