Browse Source

fix : 指定经销商才有导入

zh 2 years ago
parent
commit
768122ab7d

+ 4 - 2
src/views/sales_policy/components/Examine.vue

@@ -353,14 +353,16 @@
             <el-row type="flex">
               <el-col :span="12">
                 <h4 style="display: inline-block; margin-right: 20px">经销商使用范围</h4>
-
-                <ExportButton
+                <template v-if="detail.flag == 0">
+                  <ExportButton
                   v-if="$parent.isShow === 4"
                   style="display: inline-block"
                   :ex-url="'policy/customer/export'"
                   ex-text="导出经销商"
                   :ex-params="{ policyId: detail.code }"
                 />
+                </template>
+               
               </el-col>
             </el-row>
             <el-divider />

+ 3 - 2
src/views/sales_policy/components/TabelTransfer.vue

@@ -16,7 +16,8 @@
           >
         </el-radio-group>
         <el-upload
-          class="import-btn"
+        v-if="region == 0"
+           class="import-btn"
           :action="baseURL + 'student/import'"
           :http-request="handleImport"
           :file-list="importFileList"
@@ -24,7 +25,7 @@
         >
           <el-button type="primary" size="mini">导入经销商</el-button>
         </el-upload>
-        <el-button type="primary" size="mini" @click="hanleDownloadFiles">下载模板</el-button>
+        <el-button class="import-btn"  type="primary" size="mini" @click="hanleDownloadFiles">下载模板</el-button>
       </el-row>
       <el-row type="flex" v-if="region == 0">
         <el-col :xs="24" :sm="12" :lg="14">

+ 2 - 0
src/views/sales_policy/components/details.vue

@@ -366,6 +366,7 @@
               <el-col :span="12">
                 <h4 style="display: inline-block; margin-right: 20px">经销商使用范围</h4>
 
+               <template v-if="detail.flag == 0">
                 <ExportButton
                   v-if="$parent.isShow === 4"
                   style="display: inline-block"
@@ -373,6 +374,7 @@
                   ex-text="导出经销商"
                   :ex-params="{ policyId: detail.code }"
                 />
+               </template>
               </el-col>
             </el-row>
             <el-divider />