装货凭证添加水印
This commit is contained in:
@ -56,7 +56,7 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit {
|
||||
listImagUrls: any[] = []; // 货源单设置回显
|
||||
dirvingMessage = [];
|
||||
modalcontent: any;
|
||||
modalTitle:string = '';
|
||||
modalTitle: string = '';
|
||||
imges: any;
|
||||
totalObj: any;
|
||||
attObj: any;
|
||||
@ -135,7 +135,7 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit {
|
||||
// readOnly: this.i.billStatus !== '4' || this.i.billStatus !== '3',
|
||||
ui: {
|
||||
widget: 'upload',
|
||||
action: apiConf.fileUpload,
|
||||
action: apiConf.waterFileUpload,
|
||||
fileType: 'image/png,image/jpeg,image/jpg,image/gif',
|
||||
limit: 1,
|
||||
limitFileCount: 1,
|
||||
@ -143,7 +143,14 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit {
|
||||
urlReName: 'data.fullFileWatermarkPath',
|
||||
descriptionI18n: '提货单',
|
||||
data: {
|
||||
appId: this.envSrv.env.appId
|
||||
appId: this.envSrv.env.appId,
|
||||
content: [
|
||||
`上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`,
|
||||
`上传位置:${this.i?.loadingAddressArr[0]}`,
|
||||
`上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`,
|
||||
],
|
||||
position: '2',
|
||||
fontSize: '100'
|
||||
},
|
||||
name: 'multipartFile',
|
||||
beforeUpload: (file: any, fileList: any) => {
|
||||
@ -174,7 +181,7 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit {
|
||||
// readOnly: this.i.billStatus !== '4' || this.i.billStatus !== '3',
|
||||
ui: {
|
||||
widget: 'upload',
|
||||
action: apiConf.fileUpload,
|
||||
action: apiConf.waterFileUpload,
|
||||
fileType: 'image/png,image/jpeg,image/jpg,image/gif',
|
||||
limit: 1,
|
||||
limitFileCount: 1,
|
||||
@ -182,7 +189,14 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit {
|
||||
urlReName: 'data.fullFileWatermarkPath',
|
||||
descriptionI18n: '人车货照片',
|
||||
data: {
|
||||
appId: this.envSrv.env.appId
|
||||
appId: this.envSrv.env.appId,
|
||||
content: [
|
||||
`上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`,
|
||||
`上传位置:${this.i?.loadingAddressArr[0]}`,
|
||||
`上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`,
|
||||
],
|
||||
position: '2',
|
||||
fontSize: '100'
|
||||
},
|
||||
name: 'multipartFile',
|
||||
beforeUpload: (file: any, fileList: any) => {
|
||||
@ -221,7 +235,7 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit {
|
||||
// readOnly: this.i.billStatus !== '4' || this.i.billStatus !== '3',
|
||||
ui: {
|
||||
widget: 'upload',
|
||||
action: apiConf.fileUpload,
|
||||
action: apiConf.waterFileUpload,
|
||||
fileType: 'image/png,image/jpeg,image/jpg,image/gif',
|
||||
limit: 1,
|
||||
limitFileCount: 1,
|
||||
@ -229,7 +243,14 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit {
|
||||
urlReName: 'data.fullFileWatermarkPath',
|
||||
descriptionI18n: '提货单',
|
||||
data: {
|
||||
appId: this.envSrv.env.appId
|
||||
appId: this.envSrv.env.appId,
|
||||
content: [
|
||||
`上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`,
|
||||
`上传位置:${this.i?.unloadingAddressArr[0]}`,
|
||||
`上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`,
|
||||
],
|
||||
position: '2',
|
||||
fontSize: '100'
|
||||
},
|
||||
name: 'multipartFile',
|
||||
beforeUpload: (file: any, fileList: any) => {
|
||||
@ -260,7 +281,7 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit {
|
||||
// readOnly: this.i.billStatus !== '4' || this.i.billStatus !== '3',
|
||||
ui: {
|
||||
widget: 'upload',
|
||||
action: apiConf.fileUpload,
|
||||
action: apiConf.waterFileUpload,
|
||||
fileType: 'image/png,image/jpeg,image/jpg,image/gif',
|
||||
limit: 1,
|
||||
limitFileCount: 1,
|
||||
@ -268,7 +289,14 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit {
|
||||
urlReName: 'data.fullFileWatermarkPath',
|
||||
descriptionI18n: '人车货照片',
|
||||
data: {
|
||||
appId: this.envSrv.env.appId
|
||||
appId: this.envSrv.env.appId,
|
||||
content: [
|
||||
`上传用户:${this.i?.driverName}(${this.i?.driverTelephone})`,
|
||||
`上传位置:${this.i?.unloadingAddressArr[0]}`,
|
||||
`上传时间:${format(new Date(), 'yyyy-MM-dd HH:mm:ss')}`,
|
||||
],
|
||||
position: '2',
|
||||
fontSize: '100'
|
||||
},
|
||||
name: 'multipartFile',
|
||||
beforeUpload: (file: any, fileList: any) => {
|
||||
@ -589,44 +617,44 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit {
|
||||
nzContent: AmapPoiPickerComponent,
|
||||
nzWidth: 900,
|
||||
nzOnOk: item => {
|
||||
if(item?.poi) {
|
||||
const poi = item.poi;
|
||||
const locList = poi.pois;
|
||||
switch (type) {
|
||||
case 'start':
|
||||
this.startInfo[index].detailedAddress = poi.formattedAddress;
|
||||
this.startInfo[index].longitude = locList[0];
|
||||
this.startInfo[index].latitude = locList[1];
|
||||
this.startInfo[index].province = poi.addressComponent.province;
|
||||
this.startInfo[index].city = poi.addressComponent.city;
|
||||
this.startInfo[index].area = poi.addressComponent.district;
|
||||
this.startInfo[index].address = poi.formattedAddress;
|
||||
break;
|
||||
case 'end':
|
||||
this.endInfo[index].detailedAddress = poi.formattedAddress;
|
||||
this.endInfo[index].longitude = locList[0];
|
||||
this.endInfo[index].latitude = locList[1];
|
||||
this.endInfo[index].province = poi.addressComponent.province;
|
||||
this.endInfo[index].city = poi.addressComponent.city;
|
||||
this.endInfo[index].area = poi.addressComponent.district;
|
||||
this.endInfo[index].address = poi.formattedAddress;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if (item?.poi) {
|
||||
const poi = item.poi;
|
||||
const locList = poi.pois;
|
||||
switch (type) {
|
||||
case 'start':
|
||||
this.startInfo[index].detailedAddress = poi.formattedAddress;
|
||||
this.startInfo[index].longitude = locList[0];
|
||||
this.startInfo[index].latitude = locList[1];
|
||||
this.startInfo[index].province = poi.addressComponent.province;
|
||||
this.startInfo[index].city = poi.addressComponent.city;
|
||||
this.startInfo[index].area = poi.addressComponent.district;
|
||||
this.startInfo[index].address = poi.formattedAddress;
|
||||
break;
|
||||
case 'end':
|
||||
this.endInfo[index].detailedAddress = poi.formattedAddress;
|
||||
this.endInfo[index].longitude = locList[0];
|
||||
this.endInfo[index].latitude = locList[1];
|
||||
this.endInfo[index].province = poi.addressComponent.province;
|
||||
this.endInfo[index].city = poi.addressComponent.city;
|
||||
this.endInfo[index].area = poi.addressComponent.district;
|
||||
this.endInfo[index].address = poi.formattedAddress;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (this.startInfo[0]?.area && this.endInfo[0]?.area) {
|
||||
this.amapService.drivingCompute([...this.startInfo], [...this.endInfo]).subscribe((res: any) => {
|
||||
this.totalDistance = res?.distance;
|
||||
this.totalTime = res?.time;
|
||||
});
|
||||
if (this.startInfo[0]?.area && this.endInfo[0]?.area) {
|
||||
this.amapService.drivingCompute([...this.startInfo], [...this.endInfo]).subscribe((res: any) => {
|
||||
this.totalDistance = res?.distance;
|
||||
this.totalTime = res?.time;
|
||||
});
|
||||
}
|
||||
return true
|
||||
} else {
|
||||
this.service.msgSrv.warning('请重新手动选择地址!')
|
||||
return false
|
||||
}
|
||||
return true
|
||||
} else {
|
||||
this.service.msgSrv.warning('请重新手动选择地址!')
|
||||
return false
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
initSF3() {
|
||||
@ -916,11 +944,11 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit {
|
||||
});
|
||||
};
|
||||
agreement(value: any) {
|
||||
if(value ==='1'){
|
||||
if (value === '1') {
|
||||
this.modalTitle = '附件信息';
|
||||
this.modalcontent = this.i?.contractContent?.contractContent;
|
||||
|
||||
}else if(value === '2'){
|
||||
|
||||
} else if (value === '2') {
|
||||
this.modalTitle = '补充协议';
|
||||
this.modalcontent = this.i?.supplementContent?.contractContent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user