|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
})
|