1,增加LIA联合查询修复档案接口

2,修复档案增加遗漏的发布字段及组织名称
3,删除ArtSystem的orgId,增加unionStatus,并在查询修复档案列表增加联合查询
4,@airkoon/cellsys的地址更改
This commit is contained in:
yangrd 2025-03-31 10:20:37 +08:00
parent 185e53f256
commit 042db644d9
4 changed files with 19 additions and 6 deletions

View File

@ -31,6 +31,7 @@ const artApi = {
conditionCheckUpdate: '/rpc/conditionCheckUpdate', //修改状况检查 conditionCheckUpdate: '/rpc/conditionCheckUpdate', //修改状况检查
conditionCheckDelete: '/rpc/conditionCheckDelete', //删除状况检查 conditionCheckDelete: '/rpc/conditionCheckDelete', //删除状况检查
viewConditionCheck: '/rpc/viewConditionCheck', //查询状况检查 viewConditionCheck: '/rpc/viewConditionCheck', //查询状况检查
viewOrgUnionRepairRecord:'/rpc/viewOrgUnionRepairRecord',//查询联合档案列表
viewRepairRecord: '/rpc/viewRepairRecord', //查询修复档案列表 viewRepairRecord: '/rpc/viewRepairRecord', //查询修复档案列表
repairRecordInsert: '/rpc/repairRecordInsert', //创建修复档案 repairRecordInsert: '/rpc/repairRecordInsert', //创建修复档案
repairRecordUpdate: '/rpc/repairRecordUpdate', //编辑修复档案 repairRecordUpdate: '/rpc/repairRecordUpdate', //编辑修复档案

View File

@ -39,20 +39,22 @@ class ArtRepairFile {
return { name: name }; return { name: name };
}); });
} }
this.orgName = params.org_name;
//发布状态有关逻辑 //发布状态有关逻辑
this.isPublish = params.is_publish; this.isPublish = params.is_publish;
this.isUnlock = params.is_unlock; this.isUnlock = params.is_unlock;
this.publishRange = params.publish_range; this.publishRange=params.publish_range
this.publishGroup = params.publish_group ? params.publish_group : []; //发布的群组 this.publishGroup = params.publish_group ? params.publish_group : []; //发布的群组
} }
//艺术品封面图 //艺术品封面图
get coverImageUrl() { get coverImageUrl() {
if (this.artworkRecord['artworkImages'] && this.artworkRecord['artworkImages'].length > 0) { if (this.artworkRecord && this.artworkRecord['artworkImages'].length > 0) {
return this.artworkRecord['artworkImages'][0].compressionUrl; return this.artworkRecord['artworkImages'][0].compressionUrl;
} }
} }
//艺术品封面图
get oldNameFormat() { get oldNameFormat() {
return `${this.artworkRecord['oldName']}`; return `${this.artworkRecord['oldName']}`;
} }

View File

@ -20,7 +20,10 @@ import ArtworkEquipmentType from './equipmentType';
import EquipmentData from './equipmentData'; import EquipmentData from './equipmentData';
class ArtSystem { class ArtSystem {
constructor(orgId) {} constructor(orgId) {
}
static unionStatus=null
static token = null; static token = null;
//查询艺术品材质字典 //查询艺术品材质字典
@ -351,13 +354,20 @@ class ArtSystem {
//查询系统修复档案列表 //查询系统修复档案列表
static queryRepairFiles(params) { static queryRepairFiles(params) {
let query = new Query(); let query = new Query();
let { filter, pageInfo } = params; let { filter, pageInfo,getUnion } = params;
if (filter) { if (filter) {
filter.forEach((item) => { filter.forEach((item) => {
query.addFilter(item['name'], item['operator'], item['value']); query.addFilter(item['name'], item['operator'], item['value']);
}); });
} }
let queryTask = new QueryTask(artApi.viewRepairRecord, !!pageInfo); let queryType=artApi.viewRepairRecord
if ( ArtSystem.unionStatus&&getUnion === true) {
//联合状态为父级组织,并且需要获取联合信息
queryType = artApi.viewOrgUnionRepairRecord;
} else {
query.setOrder({ org_id: 'asc', id: 'desc' });
}
let queryTask = new QueryTask(queryType, !!pageInfo);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
queryTask queryTask
.execute(query) .execute(query)

View File

@ -8,7 +8,7 @@
"license": "ISC", "license": "ISC",
"description": "美院相关", "description": "美院相关",
"dependencies": { "dependencies": {
"@airkoon/cellsys": "git+http://zhangqg:12345678@airkoon.cn:8418/airkoon/cellsysBase.git#V1.16.4", "@airkoon/cellsys": "git+http://airkoon.cn:8418/airkoon/cellsysBase.git#V1.16.4",
"axios": "^1.4.0", "axios": "^1.4.0",
"dayjs": "~1.10.6", "dayjs": "~1.10.6",
"element-plus": "^2.3.7", "element-plus": "^2.3.7",