You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.7 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

define (function (require,exports,module) {
//引入Server模块Web与Server的通讯
let Service = require('apps/rht/base/rhtService');
let prefix = 'cn.qdhezheng.rht.app.etp.etp0603.';
return {
//后台通讯已上传的图片信息,为了将图片转移到数据库
uploadPicture:function (EtpCode,ZjCode,ZjNo,AffixName,FileId) {
return Service.doPlugin(prefix + 'uploadPicture',{
EtpCode:EtpCode,
ZjCode:ZjCode,
ZjNo:ZjNo,
AffixName:AffixName,
FileId:FileId
})
},
//删除已经上传到后台的图片信息
deletePicture:function (FileId) {
return Service.doPlugin(prefix + 'deleteLocalPicture',{
FileId:FileId
})
},
queryPicture:function (FileId,callback) {
return Service.doPlugin(prefix + 'queryPicture',{
FileId:FileId
},function (isOk, data) {
if (callback) {
callback(isOk, data);
}
})
},
fileQuery:function(params,callback){
let url = this.domain + method.fileQuery + this.urlPattern;
let post_data = params;
return this.bizRequest(url, post_data, function (isOk, data) {
if (callback) {
callback(isOk, data);
}
}, !params.sync)
},
//删除证件附件表信息
afterDelete:function (EtpCode,ZjCode,ZjNo) {
return Service.doPlugin(prefix + 'afterDelete',{
EtpCode:EtpCode,
ZjCode:ZjCode,
ZjNo:ZjNo
})
}
}
})