From 229c1b1359c09e703c4f64e004db1d7cc4c5bfa6 Mon Sep 17 00:00:00 2001 From: yangrd <1020519285@qq.com> Date: Wed, 26 Mar 2025 16:31:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=85=A5=E5=BA=93=E7=9A=84=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- godownEntry.js | 14 ++++++++++---- outbound.js | 9 ++++++++- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/godownEntry.js b/godownEntry.js index 6972b47..ef8e948 100644 --- a/godownEntry.js +++ b/godownEntry.js @@ -3,6 +3,7 @@ import { artApi } from './artApi'; import { formatterMillisecond } from './utils/date'; import { godownEntryStatus } from './artEnum'; import CellsysArt from './cellsysArt'; +import ArtImage from "./artImage"; //入库记录 class GodownEntry { @@ -16,9 +17,14 @@ class GodownEntry { this.contractor = params.contractor; //接收方 this.stand = params.stand; //支架 this.packingType = params.packing_type; //装箱类型 - this.support = params.support; //支撑物 + this.padding = params._padding; //支撑物 this.remark = params.remark; //备注 - this.images = params.images || []; //现场照片 + if(params.images){ + this.images = params.images.map(url=>{ + return new ArtImage(url) + }); + } + // this.images = params.images || []; //现场照片 this.conditionIssues = params.condition_issues || null; //病害信息 this.conditionIssuesImages = params.condition_issues_images ? params.condition_issues_images.map((item) => { @@ -70,7 +76,7 @@ class GodownEntry { editTask.addParam('_contractor', params.contractor); editTask.addParam('_stand', params.stand); editTask.addParam('_packing_type', params.packingType); - editTask.addParam('_support', params.support); + editTask.addParam('_padding', params.padding); editTask.addParam('_remark', params.remark); editTask.addParam('_images', params.images); editTask.addParam('_condition_issues', params.conditionIssues); @@ -132,7 +138,7 @@ class GodownEntry { editTask.addParam('_contractor', params.contractor); editTask.addParam('_stand', params.stand); editTask.addParam('_packing_type', params.packingType); - editTask.addParam('_support', params.support); + editTask.addParam('_padding', params.padding); editTask.addParam('_remark', params.remark); editTask.addParam('_images', params.images); editTask.addParam('_condition_issues', params.conditionIssues); diff --git a/outbound.js b/outbound.js index a7487e3..6c4799f 100644 --- a/outbound.js +++ b/outbound.js @@ -4,6 +4,7 @@ import ArtworkEquipmentType from './equipmentType'; import ArtRepairLog from './artRepairLog'; import outBoundReview from './outBoundReview'; import OutBoundReview from './outBoundReview'; +import ArtImage from "./artImage"; class Outbound { constructor(params = {}) { @@ -15,7 +16,13 @@ class Outbound { this.recipient = params.recipient; //签收人 this.recipientSignatureimage = params.recipient_signature_image; //签收人签名图片 this.reason = params.reason; //出库原因 - this.images = params.images; //附件图片 + if(params.images){ + this.images = params.images.map(url=>{ + return new ArtImage(url) + }); + } + // this.images = params.images; //附件图片 + this.applicationTime = params.application_time; //申请时间 this.remark = params.remark; //备注 this.destination = params.destination; //目的地