From 257fd6e92c539566f9bc3056e0713729163825ec Mon Sep 17 00:00:00 2001 From: wangshiming Date: Wed, 23 Mar 2022 15:50:56 +0800 Subject: [PATCH] fix bug --- proxy.conf.js | 4 ++-- .../vehicle/sure-arrive/sure-arrive.component.ts | 15 ++++++++++----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/proxy.conf.js b/proxy.conf.js index 4bbb04a9..67c15ee2 100644 --- a/proxy.conf.js +++ b/proxy.conf.js @@ -4,7 +4,7 @@ * @Author : Shiming * @Date : 2022-01-18 09:51:21 * @LastEditors : Shiming - * @LastEditTime : 2022-03-02 15:55:18 + * @LastEditTime : 2022-03-23 15:21:39 * @FilePath : \\tms-obc-web\\proxy.conf.js * Copyright (C) 2022 huzhenhong. All rights reserved. */ @@ -20,7 +20,7 @@ module.exports = { // } '//api': { target: { - host: 'tms-api-dev.eascs.com', + host: 'tms-api-test.eascs.com', protocol: 'https:', port: 443 }, diff --git a/src/app/routes/order-management/modal/vehicle/sure-arrive/sure-arrive.component.ts b/src/app/routes/order-management/modal/vehicle/sure-arrive/sure-arrive.component.ts index 12b67875..463061e3 100644 --- a/src/app/routes/order-management/modal/vehicle/sure-arrive/sure-arrive.component.ts +++ b/src/app/routes/order-management/modal/vehicle/sure-arrive/sure-arrive.component.ts @@ -65,7 +65,6 @@ export class VehicleSureArriveComponent implements OnInit { imgUrl3: { type: 'string', title: '装货凭证', - readOnly: true, ui: { widget: 'upload', action: apiConf.fileUpload, @@ -104,7 +103,6 @@ export class VehicleSureArriveComponent implements OnInit { imgUrl4: { type: 'string', title: '', - readOnly: true, ui: { widget: 'upload', action: apiConf.fileUpload, @@ -252,7 +250,6 @@ export class VehicleSureArriveComponent implements OnInit { imgUrl3: { type: 'string', title: '装货凭证', - readOnly: true, ui: { widget: 'upload', action: apiConf.fileUpload, @@ -291,7 +288,6 @@ export class VehicleSureArriveComponent implements OnInit { imgUrl4: { type: 'string', title: '', - readOnly: true, ui: { widget: 'upload', action: apiConf.fileUpload, @@ -427,6 +423,10 @@ export class VehicleSureArriveComponent implements OnInit { }; } save(value: any): void { + console.log(this.Status); + console.log(value?.imgUrl3?.data?.fullFilePath); + console.log(value?.imgUrl3.url); + if (this.Status === 1) { if (!value.time) { this.service.msgSrv.warning('卸货时间为空!'); @@ -436,10 +436,13 @@ export class VehicleSureArriveComponent implements OnInit { id: this.i.id, imgUrl1: value?.imgUrl1?.data?.fullFilePath, imgUrl2: value?.imgUrl2?.data?.fullFilePath, + setLading: value?.imgUrl3?.data?.fullFilePath || value?.imgUrl3.url, + setPeoCarGoods: value?.imgUrl4?.data?.fullFilePath || value?.imgUrl4.url, time: value?.time }; params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss '); - + console.log(params); + this.service.request(this.service.$api_get_insertWholeUnloadCarInfo, params).subscribe(res => { if (res) { this.service.msgSrv.success('确认到车成功!'); @@ -463,6 +466,8 @@ export class VehicleSureArriveComponent implements OnInit { id: this.i?.id, imgUrl1: value?.imgUrl1?.data?.fullFilePath, imgUrl2: value?.imgUrl2?.data?.fullFilePath, + setLading: value?.imgUrl3?.data?.fullFilePath || value?.imgUrl3.url, + setPeoCarGoods: value?.imgUrl4?.data?.fullFilePath || value?.imgUrl4.url, time: value?.time, volume: this.data?.volume, weight: this.data?.weight