出入库的图片逻辑
This commit is contained in:
parent
b2c1b4a283
commit
229c1b1359
@ -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);
|
||||
|
@ -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; //目的地
|
||||
|
Loading…
x
Reference in New Issue
Block a user