Commit 681b1d24 authored by gary's avatar gary

Merge remote-tracking branch 'origin/dev_mysql' into dev_mysql

parents 6cc0db68 79701cd5
package pwc.taxtech.atms.constant.enums;
import java.util.HashMap;
import java.util.Map;
public class FileUploadEnum {
/**
* 业务来源
*/
public enum BizSource {
REPORT_UPLOAD("REPORT_UPLOAD", "历史报表归档上传"),
RECORD_UPLOAD("RECORD_UPLOAD", "档案管理上传");
private String code;
private String name;
public static final Map<String, String> MAPPING = new HashMap<>();
BizSource(String code, String name) {
this.code = code;
this.name = name;
}
public String getCode() {
return code;
}
public String getName() {
return name;
}
static {
for (FileUploadEnum.BizSource bizSource : FileUploadEnum.BizSource.values()) {
MAPPING.put(bizSource.getCode(), bizSource.getName());
}
}
}
}
...@@ -46,14 +46,8 @@ public class FileTypesController { ...@@ -46,14 +46,8 @@ public class FileTypesController {
@PostMapping("/query4SelectionBox") @PostMapping("/query4SelectionBox")
@ResponseBody @ResponseBody
public Map<String,String> query4SelectionBox(){ public Map<String,String> query4SelectionBox(){
// public Map<String,Map<Long,String>> query4SelectionBox(){
List<FileTypes> fileTypes = fileTypesService.query4SelectionBox(); List<FileTypes> fileTypes = fileTypesService.query4SelectionBox();
// Map<Long,String> fileAttrList = fileTypes.stream().collect(Collectors.toMap(FileTypes::getId,FileTypes::getFileAttr));
// Map<Long,String> fileTypeList = fileTypes.stream().collect(Collectors.toMap(FileTypes::getId,FileTypes::getFileType));
Map<String,String> result = fileTypes.stream().collect(Collectors.toMap(FileTypes::getFileType,FileTypes::getFileAttr)); Map<String,String> result = fileTypes.stream().collect(Collectors.toMap(FileTypes::getFileType,FileTypes::getFileAttr));
// Map<String,Map<Long,String>> result = new HashMap<>();
// result.put("fileAttrList",fileAttrList);
// result.put("fileTypeList",fileTypeList);
return result; return result;
} }
......
...@@ -48,8 +48,10 @@ public class TaxDocumentController { ...@@ -48,8 +48,10 @@ public class TaxDocumentController {
@PostMapping("add") @PostMapping("add")
@ResponseBody @ResponseBody
public boolean addTaxDocument(@RequestBody TaxDocument taxDocument) { public boolean addTaxDocument(@RequestBody TaxDocument taxDocument,
return taxDocumentService.addTaxDocumentList(taxDocument); @RequestPart("file") MultipartFile file,
@RequestParam(required = false) String modual) {
return taxDocumentService.addTaxDocumentList(file,taxDocument);
} }
@PostMapping("delete") @PostMapping("delete")
...@@ -70,9 +72,10 @@ public class TaxDocumentController { ...@@ -70,9 +72,10 @@ public class TaxDocumentController {
return taxDocumentService.editFilesType(taxDocument); return taxDocumentService.editFilesType(taxDocument);
} }
@RequestMapping("exportExcel") @RequestMapping("exportExcel")
@ResponseBody @ResponseBody
public void exportExcelFile(HttpServletResponse response,@RequestBody TaxDocumentDto taxDocumentDto) { public void exportExcelFile(HttpServletResponse response, @RequestBody TaxDocumentDto taxDocumentDto) {
try { try {
Map<String, String> headers = new HashMap<String, String>(); Map<String, String> headers = new HashMap<String, String>();
headers.put("id", "id"); headers.put("id", "id");
...@@ -111,6 +114,17 @@ public class TaxDocumentController { ...@@ -111,6 +114,17 @@ public class TaxDocumentController {
@RequestMapping("upload") @RequestMapping("upload")
@ResponseBody @ResponseBody
public String upload(@RequestPart("file") MultipartFile picture, @RequestParam(required = false) String modual) { public String upload(@RequestPart("file") MultipartFile picture, @RequestParam(required = false) String modual) {
return getUploadUrl(picture, modual);
}
/**
* 生成上传url
*
* @param picture
* @param modual
* @return
*/
private String getUploadUrl(MultipartFile picture, String modual) {
String fileName = picture.getOriginalFilename(); String fileName = picture.getOriginalFilename();
String pictureName = UUID.randomUUID().toString() + fileName.substring(fileName.lastIndexOf(".")); String pictureName = UUID.randomUUID().toString() + fileName.substring(fileName.lastIndexOf("."));
String dir = DateUtils.getStringDateShort(); String dir = DateUtils.getStringDateShort();
...@@ -133,4 +147,6 @@ public class TaxDocumentController { ...@@ -133,4 +147,6 @@ public class TaxDocumentController {
} }
return "images" + File.separator + typePath + File.separator + pictureName; return "images" + File.separator + typePath + File.separator + pictureName;
} }
} }
...@@ -74,7 +74,7 @@ public class DidiFileUploadService extends BaseService { ...@@ -74,7 +74,7 @@ public class DidiFileUploadService extends BaseService {
private static final String PROXY_PORT = "11007"; private static final String PROXY_PORT = "11007";
public FileUpload uploadFile(MultipartFile file, String fileName,String bizSource) throws ServiceException { public FileUpload uploadFile(MultipartFile file, String fileName, String bizSource) throws ServiceException {
CloseableHttpClient httpClient = null; CloseableHttpClient httpClient = null;
String requestKey = CommonUtils.getUUID(); String requestKey = CommonUtils.getUUID();
String requestUrl = upload_post_url + "/" + requestKey; String requestUrl = upload_post_url + "/" + requestKey;
...@@ -86,7 +86,7 @@ public class DidiFileUploadService extends BaseService { ...@@ -86,7 +86,7 @@ public class DidiFileUploadService extends BaseService {
httpClient = HttpClients.createDefault(); httpClient = HttpClients.createDefault();
HttpPost httpPost = new HttpPost(requestUrl); HttpPost httpPost = new HttpPost(requestUrl);
String md5Str = getFileMD5String(file); String md5Str = getFileMD5String(file);
ByteArrayBody byteBody = new ByteArrayBody(file.getBytes(), ContentType.MULTIPART_FORM_DATA, StringUtils.isBlank(fileName)?file.getOriginalFilename():fileName); ByteArrayBody byteBody = new ByteArrayBody(file.getBytes(), ContentType.MULTIPART_FORM_DATA, StringUtils.isBlank(fileName) ? file.getOriginalFilename() : fileName);
StringBody md5 = new StringBody(md5Str, ContentType.create("text/plain")); StringBody md5 = new StringBody(md5Str, ContentType.create("text/plain"));
HttpEntity httpEntity = MultipartEntityBuilder.create().addPart("filecontent", byteBody).addPart("md5", md5).build(); HttpEntity httpEntity = MultipartEntityBuilder.create().addPart("filecontent", byteBody).addPart("md5", md5).build();
httpPost.setEntity(httpEntity); httpPost.setEntity(httpEntity);
...@@ -98,7 +98,7 @@ public class DidiFileUploadService extends BaseService { ...@@ -98,7 +98,7 @@ public class DidiFileUploadService extends BaseService {
fileUpload = new FileUpload(); fileUpload = new FileUpload();
fileUpload.setBizSource(bizSource); fileUpload.setBizSource(bizSource);
fileUpload.setUid(CommonUtils.getUUID()); fileUpload.setUid(CommonUtils.getUUID());
fileUpload.setFileName(StringUtils.isBlank(fileName)?file.getOriginalFilename():fileName); fileUpload.setFileName(StringUtils.isBlank(fileName) ? file.getOriginalFilename() : fileName);
fileUpload.setResourceKey(requestKey); fileUpload.setResourceKey(requestKey);
assemblyModel(resultDto, fileUpload); assemblyModel(resultDto, fileUpload);
uploadLog.setFileUploadId(fileUpload.getUid()); uploadLog.setFileUploadId(fileUpload.getUid());
...@@ -153,22 +153,22 @@ public class DidiFileUploadService extends BaseService { ...@@ -153,22 +153,22 @@ public class DidiFileUploadService extends BaseService {
} }
FileUploadExample example = new FileUploadExample(); FileUploadExample example = new FileUploadExample();
FileUploadExample.Criteria criteria = example.createCriteria(); FileUploadExample.Criteria criteria = example.createCriteria();
if(CollectionUtils.isNotEmpty(param.getUuids())){ if (CollectionUtils.isNotEmpty(param.getUuids())) {
criteria.andUidIn(param.getUuids()); criteria.andUidIn(param.getUuids());
} }
if(CollectionUtils.isNotEmpty(param.getBizSources())){ if (CollectionUtils.isNotEmpty(param.getBizSources())) {
criteria.andBizSourceIn(param.getBizSources()); criteria.andBizSourceIn(param.getBizSources());
} }
if(CollectionUtils.isNotEmpty(param.getUploadMonths())){ if (CollectionUtils.isNotEmpty(param.getUploadMonths())) {
criteria.andUploadMonthIn(param.getUploadMonths()); criteria.andUploadMonthIn(param.getUploadMonths());
} }
if(CollectionUtils.isNotEmpty(param.getUploadDates())){ if (CollectionUtils.isNotEmpty(param.getUploadDates())) {
criteria.andUploadDateIn(param.getUploadDates()); criteria.andUploadDateIn(param.getUploadDates());
} }
if(CollectionUtils.isNotEmpty(param.getUploadWeeks())){ if (CollectionUtils.isNotEmpty(param.getUploadWeeks())) {
criteria.andUploadWeekIn(param.getUploadWeeks()); criteria.andUploadWeekIn(param.getUploadWeeks());
} }
if(CollectionUtils.isNotEmpty(param.getUploadYears())){ if (CollectionUtils.isNotEmpty(param.getUploadYears())) {
criteria.andUploadYearIn(param.getUploadYears()); criteria.andUploadYearIn(param.getUploadYears());
} }
refreshViewUrl(param); refreshViewUrl(param);
...@@ -214,22 +214,22 @@ public class DidiFileUploadService extends BaseService { ...@@ -214,22 +214,22 @@ public class DidiFileUploadService extends BaseService {
public void refreshViewUrl(DidiFileIUploadParam param) throws ServiceException { public void refreshViewUrl(DidiFileIUploadParam param) throws ServiceException {
FileUploadExample example = new FileUploadExample(); FileUploadExample example = new FileUploadExample();
FileUploadExample.Criteria criteria = example.createCriteria(); FileUploadExample.Criteria criteria = example.createCriteria();
if(CollectionUtils.isNotEmpty(param.getUuids())){ if (CollectionUtils.isNotEmpty(param.getUuids())) {
criteria.andUidIn(param.getUuids()); criteria.andUidIn(param.getUuids());
} }
if(CollectionUtils.isNotEmpty(param.getBizSources())){ if (CollectionUtils.isNotEmpty(param.getBizSources())) {
criteria.andBizSourceIn(param.getBizSources()); criteria.andBizSourceIn(param.getBizSources());
} }
if(CollectionUtils.isNotEmpty(param.getUploadMonths())){ if (CollectionUtils.isNotEmpty(param.getUploadMonths())) {
criteria.andUploadMonthIn(param.getUploadMonths()); criteria.andUploadMonthIn(param.getUploadMonths());
} }
if(CollectionUtils.isNotEmpty(param.getUploadDates())){ if (CollectionUtils.isNotEmpty(param.getUploadDates())) {
criteria.andUploadDateIn(param.getUploadDates()); criteria.andUploadDateIn(param.getUploadDates());
} }
if(CollectionUtils.isNotEmpty(param.getUploadWeeks())){ if (CollectionUtils.isNotEmpty(param.getUploadWeeks())) {
criteria.andUploadWeekIn(param.getUploadWeeks()); criteria.andUploadWeekIn(param.getUploadWeeks());
} }
if(CollectionUtils.isNotEmpty(param.getUploadYears())){ if (CollectionUtils.isNotEmpty(param.getUploadYears())) {
criteria.andUploadYearIn(param.getUploadYears()); criteria.andUploadYearIn(param.getUploadYears());
} }
criteria.andUsefulEndTimeLessThan(new Date()); criteria.andUsefulEndTimeLessThan(new Date());
...@@ -261,12 +261,12 @@ public class DidiFileUploadService extends BaseService { ...@@ -261,12 +261,12 @@ public class DidiFileUploadService extends BaseService {
} }
} }
public Boolean delData(String uid){ public Boolean delData(String uid) {
boolean delFlag = false; boolean delFlag = false;
FileUploadExample example = new FileUploadExample(); FileUploadExample example = new FileUploadExample();
example.createCriteria().andUidEqualTo(uid); example.createCriteria().andUidEqualTo(uid);
List<FileUpload> dataList = fileUploadMapper.selectByExample(example); List<FileUpload> dataList = fileUploadMapper.selectByExample(example);
if(CollectionUtils.isNotEmpty(dataList)){ if (CollectionUtils.isNotEmpty(dataList)) {
CloseableHttpClient httpClient = null; CloseableHttpClient httpClient = null;
FileUploadLog uploadLog = new FileUploadLog(); FileUploadLog uploadLog = new FileUploadLog();
uploadLog.setRequestId(dataList.get(0).getResourceKey()); uploadLog.setRequestId(dataList.get(0).getResourceKey());
......
...@@ -8,6 +8,7 @@ import org.springframework.web.multipart.MultipartFile; ...@@ -8,6 +8,7 @@ import org.springframework.web.multipart.MultipartFile;
import pwc.taxtech.atms.common.AuthUserHelper; import pwc.taxtech.atms.common.AuthUserHelper;
import pwc.taxtech.atms.common.CommonUtils; import pwc.taxtech.atms.common.CommonUtils;
import pwc.taxtech.atms.common.message.ErrorMessage; import pwc.taxtech.atms.common.message.ErrorMessage;
import pwc.taxtech.atms.constant.enums.FileUploadEnum;
import pwc.taxtech.atms.constant.enums.ReportFileUploadEnum; import pwc.taxtech.atms.constant.enums.ReportFileUploadEnum;
import pwc.taxtech.atms.dao.ProjectMapper; import pwc.taxtech.atms.dao.ProjectMapper;
import pwc.taxtech.atms.dao.UserMapper; import pwc.taxtech.atms.dao.UserMapper;
...@@ -106,7 +107,7 @@ public class ReportFileUploadService extends BaseService { ...@@ -106,7 +107,7 @@ public class ReportFileUploadService extends BaseService {
data.setOrgId(project.getOrganizationId()); data.setOrgId(project.getOrganizationId());
ReportFileUploadExample example = new ReportFileUploadExample(); ReportFileUploadExample example = new ReportFileUploadExample();
example.createCriteria().andProjectIdEqualTo(data.getProjectId()).andPeriodEqualTo(data.getPeriod()).andReportTypeEqualTo(data.getReportType()); example.createCriteria().andProjectIdEqualTo(data.getProjectId()).andPeriodEqualTo(data.getPeriod()).andReportTypeEqualTo(data.getReportType());
FileUpload fileUpload = didiFileUploadService.uploadFile(file, file.getOriginalFilename(), "ReportUpload"); FileUpload fileUpload = didiFileUploadService.uploadFile(file, file.getOriginalFilename(), FileUploadEnum.BizSource.REPORT_UPLOAD.name());
data.setFileUploadId(fileUpload.getUid()); data.setFileUploadId(fileUpload.getUid());
data.setUid(CommonUtils.getUUID()); data.setUid(CommonUtils.getUUID());
data.setCreateTime(new Date()); data.setCreateTime(new Date());
......
...@@ -9,6 +9,7 @@ import org.springframework.stereotype.Service; ...@@ -9,6 +9,7 @@ import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import pwc.taxtech.atms.common.AuthUserHelper; import pwc.taxtech.atms.common.AuthUserHelper;
import pwc.taxtech.atms.common.CommonUtils; import pwc.taxtech.atms.common.CommonUtils;
import pwc.taxtech.atms.constant.enums.FileUploadEnum;
import pwc.taxtech.atms.dao.ProjectMapper; import pwc.taxtech.atms.dao.ProjectMapper;
import pwc.taxtech.atms.dao.UserMapper; import pwc.taxtech.atms.dao.UserMapper;
import pwc.taxtech.atms.dto.didiFileUpload.DidiFileIUploadParam; import pwc.taxtech.atms.dto.didiFileUpload.DidiFileIUploadParam;
...@@ -96,7 +97,7 @@ public class ReportUploadService extends BaseService { ...@@ -96,7 +97,7 @@ public class ReportUploadService extends BaseService {
} }
fileName += ".xlsx"; fileName += ".xlsx";
data.setReportName(fileName); data.setReportName(fileName);
FileUpload fileUpload = didiFileUploadService.uploadFile(file, fileName, "ReportUpload"); FileUpload fileUpload = didiFileUploadService.uploadFile(file, fileName, FileUploadEnum.BizSource.REPORT_UPLOAD.name());
data.setFileUploadId(fileUpload.getUid()); data.setFileUploadId(fileUpload.getUid());
data.setUid(CommonUtils.getUUID()); data.setUid(CommonUtils.getUUID());
data.setCreateTime(new Date()); data.setCreateTime(new Date());
......
...@@ -5,12 +5,15 @@ import org.apache.commons.lang3.StringUtils; ...@@ -5,12 +5,15 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;
import pwc.taxtech.atms.common.AuthUserHelper; import pwc.taxtech.atms.common.AuthUserHelper;
import pwc.taxtech.atms.constant.enums.FileUploadEnum;
import pwc.taxtech.atms.dao.TaxDocumentMapper; import pwc.taxtech.atms.dao.TaxDocumentMapper;
import pwc.taxtech.atms.dto.TaxDocumentDto; import pwc.taxtech.atms.dto.TaxDocumentDto;
import pwc.taxtech.atms.entity.OperationLogTaxDocument; import pwc.taxtech.atms.entity.OperationLogTaxDocument;
import pwc.taxtech.atms.entity.TaxDocument; import pwc.taxtech.atms.entity.TaxDocument;
import pwc.taxtech.atms.entity.TaxDocumentExample; import pwc.taxtech.atms.entity.TaxDocumentExample;
import pwc.taxtech.atms.vat.entity.FileUpload;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Calendar; import java.util.Calendar;
...@@ -34,6 +37,10 @@ public class TaxDocumentServiceImpl { ...@@ -34,6 +37,10 @@ public class TaxDocumentServiceImpl {
@Autowired @Autowired
private OperationLogTaxDocServiceImpl operationLogTaxDocService; private OperationLogTaxDocServiceImpl operationLogTaxDocService;
@Autowired
DidiFileUploadService didiFileUploadService;
public List<TaxDocument> selectTaxDocumentList(TaxDocumentDto taxDocumentDto) { public List<TaxDocument> selectTaxDocumentList(TaxDocumentDto taxDocumentDto) {
return taxDocumentMapper.selectByExample(getExample(taxDocumentDto)); return taxDocumentMapper.selectByExample(getExample(taxDocumentDto));
} }
...@@ -111,8 +118,12 @@ public class TaxDocumentServiceImpl { ...@@ -111,8 +118,12 @@ public class TaxDocumentServiceImpl {
} }
@Transactional @Transactional
public synchronized boolean addTaxDocumentList(TaxDocument taxDocument) { public synchronized boolean addTaxDocumentList(MultipartFile file, TaxDocument taxDocument) {
try { try {
//上传文件
FileUpload fileUpload = didiFileUploadService.uploadFile(file,file.getOriginalFilename(), FileUploadEnum.BizSource.RECORD_UPLOAD.name());
taxDocument.setFileUploadId(fileUpload.getUid());
taxDocument.setFilePositionUrl(fileUpload.getViewHttpUrl());
//设置创建人 创建时间信息 设置年份区分 //设置创建人 创建时间信息 设置年份区分
taxDocument.setCreateTime(new Date()); taxDocument.setCreateTime(new Date());
taxDocument.setCreator(authUserHelper.getCurrentAuditor().get()); taxDocument.setCreator(authUserHelper.getCurrentAuditor().get());
......
...@@ -267,6 +267,17 @@ public class TaxDocument implements Serializable { ...@@ -267,6 +267,17 @@ public class TaxDocument implements Serializable {
*/ */
private String filePositionUrl; private String filePositionUrl;
/**
* Database Column Remarks:
* 上传文件id
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column tax_document.file_upload_id
*
* @mbg.generated
*/
private String fileUploadId;
/** /**
* Database Column Remarks: * Database Column Remarks:
* 按年份分区的冗余字段 * 按年份分区的冗余字段
...@@ -313,6 +324,14 @@ public class TaxDocument implements Serializable { ...@@ -313,6 +324,14 @@ public class TaxDocument implements Serializable {
return enable; return enable;
} }
public String getFileUploadId() {
return fileUploadId;
}
public void setFileUploadId(String fileUploadId) {
this.fileUploadId = fileUploadId;
}
public void setEnable(String enable) { public void setEnable(String enable) {
this.enable = enable; this.enable = enable;
} }
......
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
<result column="remark" jdbcType="VARCHAR" property="remark"/> <result column="remark" jdbcType="VARCHAR" property="remark"/>
<result column="file_original_name" jdbcType="VARCHAR" property="fileOriginalName"/> <result column="file_original_name" jdbcType="VARCHAR" property="fileOriginalName"/>
<result column="file_position_url" jdbcType="VARCHAR" property="filePositionUrl"/> <result column="file_position_url" jdbcType="VARCHAR" property="filePositionUrl"/>
<result column="file_upload_id" jdbcType="VARCHAR" property="fileUploadId"/>
<result column="year_redundancy" jdbcType="INTEGER" property="yearRedundancy"/> <result column="year_redundancy" jdbcType="INTEGER" property="yearRedundancy"/>
<result column="audit_status" jdbcType="INTEGER" property="auditStatus"/> <result column="audit_status" jdbcType="INTEGER" property="auditStatus"/>
<result column="physical_index_number" jdbcType="VARCHAR" property="physicalIndexNumber"/> <result column="physical_index_number" jdbcType="VARCHAR" property="physicalIndexNumber"/>
...@@ -110,7 +111,7 @@ ...@@ -110,7 +111,7 @@
--> -->
id, file_attr, file_type_id, file_type, file_name, business_line, company_id, company_name, id, file_attr, file_type_id, file_type, file_name, business_line, company_id, company_name,
tax_type, file_time, effective_time, creator_id, creator, create_time, update_time, tax_type, file_time, effective_time, creator_id, creator, create_time, update_time,
upload_time, storage_area, keeper_id, keeper, remark, file_original_name, file_position_url, upload_time, storage_area, keeper_id, keeper, remark, file_original_name, file_upload_id, file_position_url,
year_redundancy,audit_status,physical_index_number,own_time,enable year_redundancy,audit_status,physical_index_number,own_time,enable
</sql> </sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.entity.TaxDocumentExample" resultMap="BaseResultMap"> <select id="selectByExample" parameterType="pwc.taxtech.atms.entity.TaxDocumentExample" resultMap="BaseResultMap">
...@@ -170,7 +171,7 @@ ...@@ -170,7 +171,7 @@
file_time, effective_time, creator_id, file_time, effective_time, creator_id,
creator, create_time, update_time, creator, create_time, update_time,
upload_time, storage_area, keeper_id, upload_time, storage_area, keeper_id,
keeper, remark, file_original_name, file_position_url, keeper, remark, file_original_name, file_upload_id, file_position_url,
year_redundancy,audit_status,physical_index_number,own_time) year_redundancy,audit_status,physical_index_number,own_time)
values (#{id,jdbcType=BIGINT}, #{fileAttr,jdbcType=VARCHAR}, #{fileTypeId,jdbcType=INTEGER}, values (#{id,jdbcType=BIGINT}, #{fileAttr,jdbcType=VARCHAR}, #{fileTypeId,jdbcType=INTEGER},
#{fileType,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR}, #{businessLine,jdbcType=VARCHAR}, #{fileType,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR}, #{businessLine,jdbcType=VARCHAR},
...@@ -178,7 +179,8 @@ ...@@ -178,7 +179,8 @@
#{fileTime,jdbcType=TIMESTAMP}, #{effectiveTime,jdbcType=TIMESTAMP}, #{creatorId,jdbcType=INTEGER}, #{fileTime,jdbcType=TIMESTAMP}, #{effectiveTime,jdbcType=TIMESTAMP}, #{creatorId,jdbcType=INTEGER},
#{creator,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{creator,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
#{uploadTime,jdbcType=TIMESTAMP}, #{storageArea,jdbcType=VARCHAR}, #{keeperId,jdbcType=INTEGER}, #{uploadTime,jdbcType=TIMESTAMP}, #{storageArea,jdbcType=VARCHAR}, #{keeperId,jdbcType=INTEGER},
#{keeper,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{fileOriginalName,jdbcType=VARCHAR}, #{filePositionUrl,jdbcType=VARCHAR}, #{keeper,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{fileOriginalName,jdbcType=VARCHAR},
#{fileUploadId,jdbcType=VARCHAR}, #{filePositionUrl,jdbcType=VARCHAR},
#{yearRedundancy,jdbcType=INTEGER},#{auditStatus,jdbcType=INTEGER},#{physicalIndexNumber,jdbcType=VARCHAR}, #{yearRedundancy,jdbcType=INTEGER},#{auditStatus,jdbcType=INTEGER},#{physicalIndexNumber,jdbcType=VARCHAR},
#{ownTime,jdbcType=TIMESTAMP}) #{ownTime,jdbcType=TIMESTAMP})
</insert> </insert>
...@@ -576,6 +578,9 @@ ...@@ -576,6 +578,9 @@
<if test="null != remark and '' != remark"> <if test="null != remark and '' != remark">
remark = #{remark,jdbcType=VARCHAR}, remark = #{remark,jdbcType=VARCHAR},
</if> </if>
<if test="null != fileUploadId">
file_upload_id = #{fileUploadId,jdbcType=VARCHAR},
</if>
<if test="null != filePositionUrl"> <if test="null != filePositionUrl">
file_position_url = #{filePositionUrl,jdbcType=VARCHAR}, file_position_url = #{filePositionUrl,jdbcType=VARCHAR},
</if> </if>
......
...@@ -234,16 +234,19 @@ grunt.initConfig({ ...@@ -234,16 +234,19 @@ grunt.initConfig({
"Scripts/viewer/viewer.js", "Scripts/viewer/viewer.js",
"Scripts/xlsx/shim.min.js", "Scripts/xlsx/shim.min.js",
"Scripts/xlsx/xlsx.full.min.js", "Scripts/xlsx/xlsx.full.min.js",
"Scripts/position-calculator/position-calculator.min.js"], "Scripts/position-calculator/position-calculator.min.js"
],
dest: '<%= pkg.bundleTemp %>/util.js' dest: '<%= pkg.bundleTemp %>/util.js'
}, },
angularFileUpload:{ angularFileUpload:{
src: ["Scripts/angular-file-upload.js"], src: ["Scripts/angular-file-upload.js"],
dest: '<%= pkg.bundleTemp %>/angular-file-upload.js' dest: '<%= pkg.bundleTemp %>/angular-file-upload.js'
}, },
PDFObject:{ pdfWorker:{
src: ["Scripts/PDFObject.js"], src: [
dest: '<%= pkg.bundleTemp %>/PDFObject.js' "Scripts/pdf/pdf.js",
"Scripts/pdf/pdf.worker.js"],
dest: '<%= pkg.bundleTemp %>/pdf.worker.js'
}, },
jqueryval: { jqueryval: {
src: ["Scripts/jquery.validate*"], src: ["Scripts/jquery.validate*"],
...@@ -559,7 +562,7 @@ grunt.registerTask('build', '生产构建任务', function () { ...@@ -559,7 +562,7 @@ grunt.registerTask('build', '生产构建任务', function () {
}); });
grunt.registerTask('dev', '开发环境', function () { grunt.registerTask('dev', '开发环境', function () {
grunt.task.run(['concat:adminHomePageJs', 'concat:adminHomePageLess','concat:basicDataJs','concat:angularFileUpload','concat:PDFObject', grunt.task.run(['concat:adminHomePageJs', 'concat:adminHomePageLess','concat:basicDataJs','concat:angularFileUpload','concat:pdfWorker',
'concat:basicDataLess', 'concat:systemConfigurationJs','concat:systemConfigurationLess', 'concat:basicDataLess', 'concat:systemConfigurationJs','concat:systemConfigurationLess',
'concat:basicDataCss', 'concat:infrastructureJs','concat:infrastructureLess', 'concat:basicDataCss', 'concat:infrastructureJs','concat:infrastructureLess',
'concat:commonCss', 'concat:commonLess','concat:adminApp','concat:noPermissionPageJs','concat:noPermissionPageLess', 'concat:commonCss', 'concat:commonLess','concat:adminApp','concat:noPermissionPageJs','concat:noPermissionPageLess',
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
<script type="text/javascript" src="bundles/echarts.js"></script> <script type="text/javascript" src="bundles/echarts.js"></script>
<script type="text/javascript" src="bundles/jsword.js"></script> <script type="text/javascript" src="bundles/jsword.js"></script>
<script type="text/javascript" src="bundles/angular-file-upload.js"></script> <script type="text/javascript" src="bundles/angular-file-upload.js"></script>
<script type="text/javascript" src="bundles/PDFObject.js"></script> <script type="text/javascript" src="bundles/pdf.worker.js"></script>
<script type="text/javascript" src="bundles/app.js"></script> <script type="text/javascript" src="bundles/app.js"></script>
<script type="text/javascript" src="bundles/common.js"></script> <script type="text/javascript" src="bundles/common.js"></script>
......
...@@ -3,9 +3,9 @@ a { ...@@ -3,9 +3,9 @@ a {
color: #404041; color: #404041;
} }
a:hover, a:visited, a:active, a:checked { a:hover, a:visited, a:active, a:checked {
color: #602320; color: #602320;
} }
.badge { .badge {
background-color: #968c6d; background-color: #968c6d;
...@@ -176,8 +176,6 @@ span.form-control-customer { ...@@ -176,8 +176,6 @@ span.form-control-customer {
/* LOGIN */ /* LOGIN */
body.login-body { body.login-body {
background: #999999 url('/app-resources/images/login_pic.jpg') no-repeat; background: #999999 url('/app-resources/images/login_pic.jpg') no-repeat;
height: calc(100% - 16px);
background-size: cover;
color: #333; color: #333;
overflow-y: auto; overflow-y: auto;
} }
...@@ -203,9 +201,9 @@ body.login-body { ...@@ -203,9 +201,9 @@ body.login-body {
color: #A32020; color: #A32020;
} }
.tilte .text { .tilte .text {
position: absolute; position: absolute;
} }
.background-frame { .background-frame {
background-repeat: no-repeat; background-repeat: no-repeat;
...@@ -249,9 +247,9 @@ body.login-body { ...@@ -249,9 +247,9 @@ body.login-body {
margin-top: -45px; margin-top: -45px;
} }
.form-wrapper input, .form-wrapper button { .form-wrapper input, .form-wrapper button {
opacity: 1; opacity: 1;
} }
.loginfull { .loginfull {
...@@ -277,17 +275,17 @@ body.login-body { ...@@ -277,17 +275,17 @@ body.login-body {
height: 100px; height: 100px;
} }
.login-button:hover { .login-button:hover {
color: #fff; color: #fff;
background-color: #dc6900; background-color: #dc6900;
} }
.login-button:disabled { .login-button:disabled {
background-color: #968c6d; background-color: #968c6d;
color: #fff; color: #fff;
width: 100px; width: 100px;
height: 100px; height: 100px;
} }
.loginfull input::-webkit-input-placeholder { .loginfull input::-webkit-input-placeholder {
font-weight: 400; font-weight: 400;
...@@ -331,11 +329,11 @@ body.login-body { ...@@ -331,11 +329,11 @@ body.login-body {
border-radius: 10px; border-radius: 10px;
} }
.loginfull .form-control-customer.has-error { .loginfull .form-control-customer.has-error {
border-color: #a94442; border-color: #a94442;
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075); -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
box-shadow: inset 0 1px 1px rgba(0,0,0,.075); box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
} }
.loginfull .successMsg { .loginfull .successMsg {
float: left; float: left;
...@@ -493,17 +491,17 @@ form.userchoose .form-group { ...@@ -493,17 +491,17 @@ form.userchoose .form-group {
text-align: center; text-align: center;
} }
.progress-table > tbody > tr > td:first-child { .progress-table > tbody > tr > td:first-child {
text-align: left; text-align: left;
} }
.progress-table > tbody > tr > td { .progress-table > tbody > tr > td {
border-top: 0px; border-top: 0px;
} }
.progress-table > tbody > tr > td:after { .progress-table > tbody > tr > td:after {
border-top: 0px; border-top: 0px;
} }
.progress-title { .progress-title {
text-shadow: none; text-shadow: none;
...@@ -583,9 +581,9 @@ form.userchoose .form-group { ...@@ -583,9 +581,9 @@ form.userchoose .form-group {
background: #a32020; background: #a32020;
} }
.bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:hover, .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:hover { .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-primary:hover, .bootstrap-switch .bootstrap-switch-handle-off.bootstrap-switch-primary:hover {
background: #602320; background: #602320;
} }
.bootstrap-switch.bootstrap-switch-focused { .bootstrap-switch.bootstrap-switch-focused {
border-color: #dc6900; border-color: #dc6900;
...@@ -765,28 +763,26 @@ form.userchoose .form-group { ...@@ -765,28 +763,26 @@ form.userchoose .form-group {
} }
} }
width: 100%; @-webkit-keyframes uil-flickr-anim2 { @-webkit-keyframes uil-flickr-anim2 {
0%;
{ 0%{
left: 100px; left: 100px;
z-index: 1; z-index: 1;
} }
49% { 49% {
z-index: 1; z-index: 1;
} }
50% { 50% {
left: 0; left: 0;
z-index: 10; z-index: 10;
} }
100% { 100% {
left: 100px; left: 100px;
z-index: 10; z-index: 10;
} }
} }
@-webkit-keyframes uil-flickr-anim2 { @-webkit-keyframes uil-flickr-anim2 {
...@@ -943,15 +939,15 @@ width: 100%; @-webkit-keyframes uil-flickr-anim2 { ...@@ -943,15 +939,15 @@ width: 100%; @-webkit-keyframes uil-flickr-anim2 {
height: 200px; height: 200px;
} }
.uil-flickr-css > div { .uil-flickr-css > div {
width: 100px; width: 100px;
height: 100px; height: 100px;
border-radius: 50px; border-radius: 50px;
position: absolute; position: absolute;
top: 50px; top: 50px;
} }
.uil-flickr-css > div:nth-of-type(1) { .uil-flickr-css > div:nth-of-type(1) {
left: 0; left: 0;
background: #e35839; background: #e35839;
z-index: 5; z-index: 5;
...@@ -960,9 +956,9 @@ width: 100%; @-webkit-keyframes uil-flickr-anim2 { ...@@ -960,9 +956,9 @@ width: 100%; @-webkit-keyframes uil-flickr-anim2 {
-webkit-animation: uil-flickr-anim1 1s linear infinite; -webkit-animation: uil-flickr-anim1 1s linear infinite;
-o-animation: uil-flickr-anim1 1s linear infinite; -o-animation: uil-flickr-anim1 1s linear infinite;
animation: uil-flickr-anim1 1s linear infinite; animation: uil-flickr-anim1 1s linear infinite;
} }
.uil-flickr-css > div:nth-of-type(2) { .uil-flickr-css > div:nth-of-type(2) {
left: 100px; left: 100px;
background: #d28d4f; background: #d28d4f;
-ms-animation: uil-flickr-anim2 1s linear infinite; -ms-animation: uil-flickr-anim2 1s linear infinite;
...@@ -970,7 +966,7 @@ width: 100%; @-webkit-keyframes uil-flickr-anim2 { ...@@ -970,7 +966,7 @@ width: 100%; @-webkit-keyframes uil-flickr-anim2 {
-webkit-animation: uil-flickr-anim2 1s linear infinite; -webkit-animation: uil-flickr-anim2 1s linear infinite;
-o-animation: uil-flickr-anim2 1s linear infinite; -o-animation: uil-flickr-anim2 1s linear infinite;
animation: uil-flickr-anim2 1s linear infinite; animation: uil-flickr-anim2 1s linear infinite;
} }
/* datepicker */ /* datepicker */
...@@ -984,10 +980,10 @@ width: 100%; @-webkit-keyframes uil-flickr-anim2 { ...@@ -984,10 +980,10 @@ width: 100%; @-webkit-keyframes uil-flickr-anim2 {
background-color: #eb8c00; background-color: #eb8c00;
} }
.datepicker table tr td span.active.active.focus, .datepicker table tr td span.active.active:focus, .datepicker table tr td span.active.active:hover, .datepicker table tr td span.active.disabled.active.focus, .datepicker table tr td span.active.disabled.active:focus, .datepicker table tr td span.active.disabled.active:hover, .datepicker table tr td span.active.disabled:active.focus, .datepicker table tr td span.active.disabled:active:focus, .datepicker table tr td span.active.disabled:active:hover, .datepicker table tr td span.active.disabled:hover.active.focus, .datepicker table tr td span.active.disabled:hover.active:focus, .datepicker table tr td span.active.disabled:hover.active:hover, .datepicker table tr td span.active.disabled:hover:active.focus, .datepicker table tr td span.active.disabled:hover:active:focus, .datepicker table tr td span.active.disabled:hover:active:hover, .datepicker table tr td span.active:active.focus, .datepicker table tr td span.active:active:focus, .datepicker table tr td span.active:active:hover, .datepicker table tr td span.active:hover.active.focus, .datepicker table tr td span.active:hover.active:focus, .datepicker table tr td span.active:hover.active:hover, .datepicker table tr td span.active:hover:active.focus, .datepicker table tr td span.active:hover:active:focus, .datepicker table tr td span.active:hover:active:hover { .datepicker table tr td span.active.active.focus, .datepicker table tr td span.active.active:focus, .datepicker table tr td span.active.active:hover, .datepicker table tr td span.active.disabled.active.focus, .datepicker table tr td span.active.disabled.active:focus, .datepicker table tr td span.active.disabled.active:hover, .datepicker table tr td span.active.disabled:active.focus, .datepicker table tr td span.active.disabled:active:focus, .datepicker table tr td span.active.disabled:active:hover, .datepicker table tr td span.active.disabled:hover.active.focus, .datepicker table tr td span.active.disabled:hover.active:focus, .datepicker table tr td span.active.disabled:hover.active:hover, .datepicker table tr td span.active.disabled:hover:active.focus, .datepicker table tr td span.active.disabled:hover:active:focus, .datepicker table tr td span.active.disabled:hover:active:hover, .datepicker table tr td span.active:active.focus, .datepicker table tr td span.active:active:focus, .datepicker table tr td span.active:active:hover, .datepicker table tr td span.active:hover.active.focus, .datepicker table tr td span.active:hover.active:focus, .datepicker table tr td span.active:hover.active:hover, .datepicker table tr td span.active:hover:active.focus, .datepicker table tr td span.active:hover:active:focus, .datepicker table tr td span.active:hover:active:hover {
color: #fff; color: #fff;
background-color: #dc6900; background-color: #dc6900;
} }
.datepicker table tr td, .datepicker table tr th { .datepicker table tr td, .datepicker table tr th {
text-align: center; text-align: center;
...@@ -1044,9 +1040,9 @@ width: 100%; @-webkit-keyframes uil-flickr-anim2 { ...@@ -1044,9 +1040,9 @@ width: 100%; @-webkit-keyframes uil-flickr-anim2 {
background-image: none; background-image: none;
} }
.ui-select-no-border .select2-container .select2-choice .select2-arrow b { .ui-select-no-border .select2-container .select2-choice .select2-arrow b {
background: url(/app-resources/images/vat/down.png) no-repeat scroll right center transparent; background: url(/app-resources/images/vat/down.png) no-repeat scroll right center transparent;
} }
.ui-select-no-border .select2-container .select2-choice { .ui-select-no-border .select2-container .select2-choice {
border: none; border: none;
...@@ -1085,18 +1081,18 @@ width: 100%; @-webkit-keyframes uil-flickr-anim2 { ...@@ -1085,18 +1081,18 @@ width: 100%; @-webkit-keyframes uil-flickr-anim2 {
outline: none; outline: none;
} }
.ui-select-has-border .select2-container .select2-choice .select2-arrow { .ui-select-has-border .select2-container .select2-choice .select2-arrow {
border-left: none; border-left: none;
background: none; background: none;
background-image: none; background-image: none;
} }
.ui-select-has-border .select2-container .select2-choice .select2-arrow b { .ui-select-has-border .select2-container .select2-choice .select2-arrow b {
margin-top: 2px; margin-top: 2px;
} }
.ui-select-has-border .select2-container .select2-choice, .ui-select-has-border .select2-container .select2-choice,
.ui-select-has-border .select2-container-active .select2-choice { .ui-select-has-border .select2-container-active .select2-choice {
background-image: none; background-image: none;
background: none; background: none;
outline: none; outline: none;
...@@ -1114,7 +1110,7 @@ width: 100%; @-webkit-keyframes uil-flickr-anim2 { ...@@ -1114,7 +1110,7 @@ width: 100%; @-webkit-keyframes uil-flickr-anim2 {
-webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s; -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
-o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s; transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
} }
.dx-checkbox-checked .dx-checkbox-icon { .dx-checkbox-checked .dx-checkbox-icon {
color: #e0301e; color: #e0301e;
...@@ -1142,17 +1138,17 @@ width: 100%; @-webkit-keyframes uil-flickr-anim2 { ...@@ -1142,17 +1138,17 @@ width: 100%; @-webkit-keyframes uil-flickr-anim2 {
background-color: #dc6900; background-color: #dc6900;
} }
.dx-list:not(.dx-list-select-decorator-enabled) .dx-list-item.dx-state-focused.dx-list-item-selected { .dx-list:not(.dx-list-select-decorator-enabled) .dx-list-item.dx-state-focused.dx-list-item-selected {
background-color: #dc6900; background-color: #dc6900;
} }
.dx-list:not(.dx-list-select-decorator-enabled) .dx-list-item.dx-state-active { .dx-list:not(.dx-list-select-decorator-enabled) .dx-list-item.dx-state-active {
background-color: #dc6900; background-color: #dc6900;
} }
.dx-list:not(.dx-list-select-decorator-enabled) .dx-list-item.dx-state-active .dx-list-slide-item-content { .dx-list:not(.dx-list-select-decorator-enabled) .dx-list-item.dx-state-active .dx-list-slide-item-content {
background-color: #dc6900; background-color: #dc6900;
} }
.dx-list-item.dx-list-item-ghost-reordering.dx-state-focused.dx-state-hover { .dx-list-item.dx-list-item-ghost-reordering.dx-state-focused.dx-state-hover {
......
...@@ -201,6 +201,7 @@ ...@@ -201,6 +201,7 @@
line-height: 100%; line-height: 100%;
padding: 1.4rem; padding: 1.4rem;
/*color: #fff;*/ /*color: #fff;*/
cursor: pointer;
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
} }
.TDL-multi-upload-content{ .TDL-multi-upload-content{
...@@ -216,33 +217,61 @@ ...@@ -216,33 +217,61 @@
color:#4395ff; color:#4395ff;
} }
.TDL-pdf-preview-pop{ .TDL-pdf-preview-pop{
position: fixed;top: 0;left: 0;z-index: 1051; position: fixed;
top: 0;left: 0;z-index: 1051;
background: #333;
text-align: center;
overflow: auto;
} }
.TDL-pdf-preview-pop-btn{ .TDL-pdf-preview-pop-close-btn{
position: fixed; position: fixed;
top: 6rem; top: 6rem;
right: 6rem; right: 6rem;
width: 4rem; width: 4rem;
height: 4rem; height: 4rem;
background: rgb(254,66,66); background: rgba(254,66,66,0.5);
color: #333;
border-radius: 100%; border-radius: 100%;
font-size: 2.4rem;
color: #666;
text-align: center; text-align: center;
line-height: 100%; line-height: 100%;
cursor: pointer; cursor: pointer;
padding: 0; padding: 0;
z-index: 1502; z-index: 1502;
border: 0; border: 0;
opacity: 0.6;
} }
.TDL-pdf-preview-pop-btn:hover{ .TDL-pdf-preview-pop-close-btn:hover{
opacity: 0.8; background: rgba(254,66,66,0.8);
color:#fff; color:#fff;
} }
.TDL-pdf-layout-dialog{ .TDL-pdf-layout-dialog{
display:none; display:none;
} }
.test{
position: absolute;
top:0;
left:0;
z-index: 1111;
}
.TDL-pdf-paging-btn{
position: fixed;
top: 49%;
z-index: 1052;
border: 0;
padding: 2rem;
font-size: 2rem;
background: rgba(33,33,33,0.5);
outline: none;
}
.TDL-pdf-paging-btn:hover{
background: rgba(255, 255, 198, 0.7);
color:#fff;
}
.TDL-pdf-paging-btn-prev{
left: 6rem;
}
.TDL-pdf-paging-btn-next{
right: 6rem;
}
</style> </style>
<div class="menu-header TDL-header" multi-date-picker> <div class="menu-header TDL-header" multi-date-picker>
<div class="TDL-query-bar" ng-init="MoreFields = false"> <div class="TDL-query-bar" ng-init="MoreFields = false">
...@@ -326,7 +355,6 @@ ...@@ -326,7 +355,6 @@
<div class="TDL-query-val"> <div class="TDL-query-val">
<select ng-model="queryFieldModel.companyName" class="form-control radius3" <select ng-model="queryFieldModel.companyName" class="form-control radius3"
title="{{queryFieldModel.companyName}}" required placeholder="{{'PleaseSelected' | translate}}"> title="{{queryFieldModel.companyName}}" required placeholder="{{'PleaseSelected' | translate}}">
<option selected></option>
<option ng-repeat="(key,companyName) in companyNameOptionsMap" <option ng-repeat="(key,companyName) in companyNameOptionsMap"
ng-click="queryFieldModel.companyId = key" ng-click="queryFieldModel.companyId = key"
value="{{companyName}}">{{companyName}}</option> value="{{companyName}}">{{companyName}}</option>
...@@ -488,11 +516,13 @@ ...@@ -488,11 +516,13 @@
<a href="javascript:void(0)" ng-click="uploadFile()"><i class="fa fa-upload"></i></a> <a href="javascript:void(0)" ng-click="uploadFile()"><i class="fa fa-upload"></i></a>
</div> </div>
</div> </div>
<div ng-if="isCreatePop && uploader.queue.length" class="col-sm-6 form-group">
<!--取消上传时的预览功能-->
<!--<div ng-if="isCreatePop && uploader.queue.length" class="col-sm-6 form-group">
<label class="col-sm-3 control-label" style="text-align: left;"> <label class="col-sm-3 control-label" style="text-align: left;">
<a href="javascript:void(0)" class="DTL-special-external-preview" ng-click="viewNativeFile(uploader.queue[0])">{{'PreviewFile'|translate}}</a> <a href="javascript:void(0)" class="DTL-special-external-preview" ng-click="viewNativeFile(uploader.queue[0])">{{'PreviewFile'|translate}}</a>
</label> </label>
</div> </div>-->
<div style="clear:both"></div> <div style="clear:both"></div>
<!--档案名称--> <!--档案名称-->
<div class="col-sm-6 form-group"> <div class="col-sm-6 form-group">
...@@ -692,11 +722,13 @@ ...@@ -692,11 +722,13 @@
<!--<input id="{{multiUploadFilePlugin}}" type="file" style="display:none" nv-file-select uploader="uploader" filters="fileTypeFilter">--> <!--<input id="{{multiUploadFilePlugin}}" type="file" style="display:none" nv-file-select uploader="uploader" filters="fileTypeFilter">-->
</div> </div>
</div> </div>
<div class="col-sm-6 form-group">
<!--取消上传时的预览功能-->
<!-- <div class="col-sm-6 form-group">
<label class="col-sm-3 control-label" style="text-align: left;margin-left: -34px;"> <label class="col-sm-3 control-label" style="text-align: left;margin-left: -34px;">
<a href="javascript:void(0)" class="DTL-special-external-preview" ng-click="viewNativeFile(multiUploader.queue[$index])">预览文件</a> <a href="javascript:void(0)" class="DTL-special-external-preview" ng-click="viewNativeFile(multiUploader.queue[$index])">预览文件</a>
</label> </label>
</div> </div>-->
<div style="clear:both"></div> <div style="clear:both"></div>
<!--档案名称--> <!--档案名称-->
<div class="col-sm-6 form-group"> <div class="col-sm-6 form-group">
...@@ -884,8 +916,11 @@ ...@@ -884,8 +916,11 @@
<div class="TDL-pdf-layout-dialog" id="pdfLayoutDialog" pdf-preview> <div class="TDL-pdf-layout-dialog" id="pdfLayoutDialog" pdf-preview>
<div class="wrapper TDL-pdf-preview-pop" id="pdfContainer"> <div class="wrapper TDL-pdf-preview-pop" id="pdfContainer">
<canvas id="the-canvas"></canvas>
</div> </div>
<button class="TDL-pdf-preview-pop-btn" ng-click="closePdfPop()">x</button> <button class="TDL-pdf-preview-pop-close-btn" ng-click="closePdfPop()">x</button>
</div>
<button class="TDL-pdf-paging-btn TDL-pdf-paging-btn-prev" ng-click="prevPaging()" title="上一页">&lt;</button>
<button class="TDL-pdf-paging-btn TDL-pdf-paging-btn-next" ng-click="nextPaging()" title="下一页">&gt;</button>
</div>
</div> </div>
\ No newline at end of file
...@@ -22,25 +22,23 @@ taxDocumentManageModule.factory('taxDocumentListService', ...@@ -22,25 +22,23 @@ taxDocumentManageModule.factory('taxDocumentListService',
return jqFetch.post(apiInterceptor.webApiHostUrl + '/fileTypes/query4SelectionBox', params); return jqFetch.post(apiInterceptor.webApiHostUrl + '/fileTypes/query4SelectionBox', params);
}, },
getCompanyNameOptions:function(params){ getCompanyNameOptions:function(params){
return jqFetch.post(apiInterceptor.webApiHostUrl + '/org/query4SelectionBox', params); return jqFetch.get(apiInterceptor.webApiHostUrl + '/org/getMyOrgList', params);
}, },
delFileRecordItems:function(params){ delFileRecordItems:function(params){
return jqFetch.post(apiInterceptor.webApiHostUrl + '/taxDoc/batchDelete', params); return jqFetch.post(apiInterceptor.webApiHostUrl + '/taxDoc/batchDelete', params);
}, },
getBinaryData:function(url){ getBinaryData:function(url){
// var defer = $q.defer(); var defer = $q.defer();
// var oReq = new XMLHttpRequest(); var oReq = new XMLHttpRequest();
// oReq.onload = function(e) { oReq.onload = function(e) {
// var arraybuffer = oReq.response; var arraybuffer = oReq.response;
// console.info("arraybuffer:",arraybuffer); console.info("arraybuffer:",arraybuffer);
// defer.resolve(arraybuffer); defer.resolve(arraybuffer);
// }; };
// oReq.open("GET", 'http://47.94.233.173:11007/static/erp_tax_system/3221D133-85B8-4E22-AE9B-DBEBD942D217?expire=1552361736&signiture=_Wz1_8Z6T8h5qnZAGpoRa8kNZeqmE7KoztKeehzYK4U=', true); oReq.open("GET", url, true);
// oReq.responseType = "arraybuffer"; oReq.responseType = "arraybuffer";
// oReq.send(); oReq.send();
return defer.promise;
return jqFetch.get(apiInterceptor.webApiHostUrl + url,{},'arraybuffer');
// return defer.promise;
} }
......
...@@ -1011,16 +1011,6 @@ ...@@ -1011,16 +1011,6 @@
"dev": true, "dev": true,
"optional": true "optional": true
}, },
"jquery": {
"version": "3.3.1",
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.3.1.tgz",
"integrity": "sha512-Ubldcmxp5np52/ENotGxlLe6aGMvmF4R8S6tZjsP6Knsaxd/xp3Zrh50cG93lR6nPXyUFwzN3ZSOQI0wRJNdGg=="
},
"jquery-viewer": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/jquery-viewer/-/jquery-viewer-1.0.0.tgz",
"integrity": "sha512-j1f7AKNU+wjywS8CwtHzDymyoroUznoXnrRp87WIRVuzZzMoFtJCrj54F/0BAi2DIEkDHx/1EZl9N725M6LiIA=="
},
"js-yaml": { "js-yaml": {
"version": "3.5.5", "version": "3.5.5",
"resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.5.5.tgz", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.5.5.tgz",
...@@ -1720,6 +1710,11 @@ ...@@ -1720,6 +1710,11 @@
} }
} }
}, },
"viewerjs": {
"version": "1.3.2",
"resolved": "https://registry.npmjs.org/viewerjs/-/viewerjs-1.3.2.tgz",
"integrity": "sha512-P9Ac9H+GJ1jE9B5x8foRYm/xZvpWFR6L4GC9mr6181P9amOzQPDkplQrFj8l7mdnv8EyH2dO8XJJfoylir316A=="
},
"websocket-driver": { "websocket-driver": {
"version": "0.7.0", "version": "0.7.0",
"resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.0.tgz", "resolved": "https://registry.npmjs.org/websocket-driver/-/websocket-driver-0.7.0.tgz",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment