|
@@ -49,6 +49,18 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-dropdown>
|
|
</el-dropdown>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
|
+ <el-button type="primary" icon="Top" @click="handleCustomerExport">
|
|
|
|
|
+ 导出客户
|
|
|
|
|
+ <el-icon class="el-icon--right"> </el-icon>
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
|
+ <el-button type="primary" icon="Top" @click="handleSupplierExport">
|
|
|
|
|
+ 导出供应商
|
|
|
|
|
+ <el-icon class="el-icon--right"> </el-icon>
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -189,6 +201,15 @@ const handleSupplierImport = () => {
|
|
|
upload.url = import.meta.env.VITE_APP_BASE_API + '/customer/info/importData';
|
|
upload.url = import.meta.env.VITE_APP_BASE_API + '/customer/info/importData';
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+/** 客户导出按钮操作 */
|
|
|
|
|
+const handleCustomerExport = () => {
|
|
|
|
|
+ proxy?.download('customer/customerInfo/exportTemplateData', {}, `客户导出_${new Date().getTime()}.xlsx`);
|
|
|
|
|
+};
|
|
|
|
|
+/** 客户导出按钮操作 */
|
|
|
|
|
+const handleSupplierExport = () => {
|
|
|
|
|
+ proxy?.download('customer/info/exportTemplateData', {}, `供应商导出_${new Date().getTime()}.xlsx`);
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
/**文件上传中处理 */
|
|
/**文件上传中处理 */
|
|
|
const handleFileUploadProgress = () => {
|
|
const handleFileUploadProgress = () => {
|
|
|
upload.isUploading = true;
|
|
upload.isUploading = true;
|