Merge branch 'develop' of gitlab.eascs.com:tms-ui/tms-obc-web into develop
This commit is contained in:
@ -4,7 +4,7 @@
|
|||||||
* @Author : Shiming
|
* @Author : Shiming
|
||||||
* @Date : 2022-01-18 09:51:21
|
* @Date : 2022-01-18 09:51:21
|
||||||
* @LastEditors : Shiming
|
* @LastEditors : Shiming
|
||||||
* @LastEditTime : 2022-03-02 15:55:18
|
* @LastEditTime : 2022-03-23 15:21:39
|
||||||
* @FilePath : \\tms-obc-web\\proxy.conf.js
|
* @FilePath : \\tms-obc-web\\proxy.conf.js
|
||||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||||
*/
|
*/
|
||||||
@ -20,7 +20,7 @@ module.exports = {
|
|||||||
// }
|
// }
|
||||||
'//api': {
|
'//api': {
|
||||||
target: {
|
target: {
|
||||||
host: 'tms-api-dev.eascs.com',
|
host: 'tms-api-test.eascs.com',
|
||||||
protocol: 'https:',
|
protocol: 'https:',
|
||||||
port: 443
|
port: 443
|
||||||
},
|
},
|
||||||
|
|||||||
@ -65,7 +65,6 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
imgUrl3: {
|
imgUrl3: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '装货凭证',
|
title: '装货凭证',
|
||||||
readOnly: true,
|
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'upload',
|
widget: 'upload',
|
||||||
action: apiConf.fileUpload,
|
action: apiConf.fileUpload,
|
||||||
@ -104,7 +103,6 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
imgUrl4: {
|
imgUrl4: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '',
|
title: '',
|
||||||
readOnly: true,
|
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'upload',
|
widget: 'upload',
|
||||||
action: apiConf.fileUpload,
|
action: apiConf.fileUpload,
|
||||||
@ -252,7 +250,6 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
imgUrl3: {
|
imgUrl3: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '装货凭证',
|
title: '装货凭证',
|
||||||
readOnly: true,
|
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'upload',
|
widget: 'upload',
|
||||||
action: apiConf.fileUpload,
|
action: apiConf.fileUpload,
|
||||||
@ -291,7 +288,6 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
imgUrl4: {
|
imgUrl4: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '',
|
title: '',
|
||||||
readOnly: true,
|
|
||||||
ui: {
|
ui: {
|
||||||
widget: 'upload',
|
widget: 'upload',
|
||||||
action: apiConf.fileUpload,
|
action: apiConf.fileUpload,
|
||||||
@ -427,6 +423,10 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
save(value: any): void {
|
save(value: any): void {
|
||||||
|
console.log(this.Status);
|
||||||
|
console.log(value?.imgUrl3?.data?.fullFilePath);
|
||||||
|
console.log(value?.imgUrl3.url);
|
||||||
|
|
||||||
if (this.Status === 1) {
|
if (this.Status === 1) {
|
||||||
if (!value.time) {
|
if (!value.time) {
|
||||||
this.service.msgSrv.warning('卸货时间为空!');
|
this.service.msgSrv.warning('卸货时间为空!');
|
||||||
@ -436,10 +436,13 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
id: this.i.id,
|
id: this.i.id,
|
||||||
imgUrl1: value?.imgUrl1?.data?.fullFilePath,
|
imgUrl1: value?.imgUrl1?.data?.fullFilePath,
|
||||||
imgUrl2: value?.imgUrl2?.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
|
time: value?.time
|
||||||
};
|
};
|
||||||
params.time = this.datePipe.transform(value.time, 'yyyy-MM-dd HH:mm:ss ');
|
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 => {
|
this.service.request(this.service.$api_get_insertWholeUnloadCarInfo, params).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
this.service.msgSrv.success('确认到车成功!');
|
this.service.msgSrv.success('确认到车成功!');
|
||||||
@ -463,6 +466,8 @@ export class VehicleSureArriveComponent implements OnInit {
|
|||||||
id: this.i?.id,
|
id: this.i?.id,
|
||||||
imgUrl1: value?.imgUrl1?.data?.fullFilePath,
|
imgUrl1: value?.imgUrl1?.data?.fullFilePath,
|
||||||
imgUrl2: value?.imgUrl2?.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,
|
time: value?.time,
|
||||||
volume: this.data?.volume,
|
volume: this.data?.volume,
|
||||||
weight: this.data?.weight
|
weight: this.data?.weight
|
||||||
|
|||||||
@ -57,7 +57,7 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
|
|||||||
{ title: '货主', index: 'shipperAppUserName', width: '180px', className: 'text-left' },
|
{ title: '货主', index: 'shipperAppUserName', width: '180px', className: 'text-left' },
|
||||||
{ title: '装货地', index: 'loadingAddressArr', width: '180px', className: 'text-left' },
|
{ title: '装货地', index: 'loadingAddressArr', width: '180px', className: 'text-left' },
|
||||||
{ title: '卸货地', index: 'unloadingAddressArr', width: '180px', className: 'text-left' },
|
{ title: '卸货地', index: 'unloadingAddressArr', width: '180px', className: 'text-left' },
|
||||||
{ title: '承运司机', index: 'driver', width: '90px', className: 'text-left' },
|
{ title: '承运司机', index: 'driver', width: '200px', className: 'text-left' },
|
||||||
{ title: '异常信息', index: 'exceptionContent', width: '250px', className: 'text-left' },
|
{ title: '异常信息', index: 'exceptionContent', width: '250px', className: 'text-left' },
|
||||||
{ title: '异常图片', render: 'exceptionCertificateFirstFilePath', width: '220px', className: 'text-left' },
|
{ title: '异常图片', render: 'exceptionCertificateFirstFilePath', width: '220px', className: 'text-left' },
|
||||||
{ title: '上报时间', index: 'createTime', width: '180px', className: 'text-left' },
|
{ title: '上报时间', index: 'createTime', width: '180px', className: 'text-left' },
|
||||||
|
|||||||
@ -51,10 +51,17 @@ export class DynamicSettingH5Component implements OnInit {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 配置校验
|
// 配置校验
|
||||||
if (this.configList.find((config: any) => !config.itemValue && config.requiredField)) {
|
for (let index = 0; index < this.configList.length; index++) {
|
||||||
this.service.msgSrv.warning('请填写必填项');
|
const config = this.configList[index];
|
||||||
return;
|
if (!config.itemValue && config.requiredField) {
|
||||||
|
this.service.msgSrv.warning(`${config.name}不能为${config.itemValue}!`);
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
// if (this.configList.find((config: any) => !config.itemValue && config.requiredField)) {
|
||||||
|
// this.service.msgSrv.warning('请填写必填项');
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
let params = [...this.configList];
|
let params = [...this.configList];
|
||||||
params = params.map((item: any) => {
|
params = params.map((item: any) => {
|
||||||
if (item.itemType == 9) {
|
if (item.itemType == 9) {
|
||||||
|
|||||||
Reference in New Issue
Block a user