fix bug
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-04-24 17:51:09
|
* @LastEditTime : 2022-04-25 10:32:29
|
||||||
* @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.
|
||||||
*/
|
*/
|
||||||
@ -30,7 +30,7 @@ module.exports = {
|
|||||||
// },
|
// },
|
||||||
'//api': {
|
'//api': {
|
||||||
target: {
|
target: {
|
||||||
host: 'tms-api-test.eascs.com',
|
host: 'tms-api-dev.eascs.com',
|
||||||
protocol: 'https:',
|
protocol: 'https:',
|
||||||
port: 443
|
port: 443
|
||||||
},
|
},
|
||||||
|
|||||||
@ -72,8 +72,8 @@ export class EditPartnerComponentsAddComponent implements OnInit {
|
|||||||
// { label: '合伙人可见', value: 2 },
|
// { label: '合伙人可见', value: 2 },
|
||||||
// { label: '销售渠道可见', value: 3 },
|
// { label: '销售渠道可见', value: 3 },
|
||||||
// ],
|
// ],
|
||||||
// },
|
// },channelId
|
||||||
enterpriceIds: {
|
channelId: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
title: '合伙人修改为',
|
title: '合伙人修改为',
|
||||||
ui: {
|
ui: {
|
||||||
@ -86,14 +86,19 @@ export class EditPartnerComponentsAddComponent implements OnInit {
|
|||||||
asyncData: () => this.shipperservice.getNetworkenterpriceIds()
|
asyncData: () => this.shipperservice.getNetworkenterpriceIds()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// settStartTime: {
|
||||||
|
// title: '结算起算日期',
|
||||||
|
// type: 'string',
|
||||||
|
// ui: {
|
||||||
|
// widget: 'sl-from-to', type: 'date', format: 'yyyy-MM-dd', visibleIf: {
|
||||||
|
// _$expand: (value: boolean) => value,
|
||||||
|
// },
|
||||||
|
// } as SFDateWidgetSchema,
|
||||||
|
// },
|
||||||
settStartTime: {
|
settStartTime: {
|
||||||
title: '结算起算日期',
|
title: '结算起算日期',
|
||||||
type: 'string',
|
type: 'string',
|
||||||
ui: {
|
format: 'date',
|
||||||
widget: 'sl-from-to', type: 'date', format: 'yyyy-MM-dd', visibleIf: {
|
|
||||||
_$expand: (value: boolean) => value,
|
|
||||||
},
|
|
||||||
} as SFDateWidgetSchema,
|
|
||||||
},
|
},
|
||||||
remark: {
|
remark: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -136,9 +141,18 @@ export class EditPartnerComponentsAddComponent implements OnInit {
|
|||||||
this.modal.close(true)
|
this.modal.close(true)
|
||||||
}
|
}
|
||||||
save() {
|
save() {
|
||||||
const params = {
|
console.log(this?.rows);
|
||||||
...this.sf.value
|
let enterId : any;
|
||||||
|
if(this.sts == '1') {
|
||||||
|
enterId = this.rows
|
||||||
|
} else {
|
||||||
|
enterId = [this.i.id]
|
||||||
}
|
}
|
||||||
|
const params = {
|
||||||
|
...this.sf.value,
|
||||||
|
enterpriceIds: enterId,
|
||||||
|
}
|
||||||
|
|
||||||
this.service.request(this.service.$api_batchUpdateEnterpricePartner, params).subscribe(res => {
|
this.service.request(this.service.$api_batchUpdateEnterpricePartner, params).subscribe(res => {
|
||||||
if(res) {
|
if(res) {
|
||||||
this.service.msgSrv.success('修改成功')
|
this.service.msgSrv.success('修改成功')
|
||||||
|
|||||||
@ -141,6 +141,8 @@ export class FreightComponentsListComponent implements OnInit {
|
|||||||
this.selectedRows.forEach(item => {
|
this.selectedRows.forEach(item => {
|
||||||
params.push(item.id);
|
params.push(item.id);
|
||||||
});
|
});
|
||||||
|
console.log(params);
|
||||||
|
|
||||||
const modalRef = this.modal.create({
|
const modalRef = this.modal.create({
|
||||||
nzTitle: '修改合伙人',
|
nzTitle: '修改合伙人',
|
||||||
nzContent: EditPartnerComponentsAddComponent,
|
nzContent: EditPartnerComponentsAddComponent,
|
||||||
|
|||||||
@ -26,6 +26,9 @@ export class ShipperBaseService extends BaseService {
|
|||||||
|
|
||||||
// 获取货主企业列表
|
// 获取货主企业列表
|
||||||
public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
|
public $api_enterpriceList = '/api/mdc/cuc/enterpriseInfo/operate/enterpriceList';
|
||||||
|
|
||||||
|
// 合伙人下拉列表
|
||||||
|
public $api_partner_lists = '/api/mdc/partner/list';
|
||||||
// 批量获取项目信息
|
// 批量获取项目信息
|
||||||
public $api_get_project_list = '/api/mdc/cuc/enterpriseProject/getProjectList';
|
public $api_get_project_list = '/api/mdc/cuc/enterpriseProject/getProjectList';
|
||||||
constructor(public injector: Injector) {
|
constructor(public injector: Injector) {
|
||||||
@ -146,19 +149,19 @@ export class ShipperBaseService extends BaseService {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* 获取网络货运人
|
* 合伙人下拉列表
|
||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
getNetworkEnterpriseName(params = {}, containerAll = false) {
|
getNetworkEnterpriseName(params = {}, containerAll = false) {
|
||||||
return this.request(this.$api_get_network_freight_forwarder_list, params).pipe(
|
return this.request(this.$api_partner_lists, params).pipe(
|
||||||
map((res: any) => {
|
map((res: any) => {
|
||||||
if (!res) {
|
if (!res) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
const list = res.map((item: any) => {
|
const list = res.map((item: any) => {
|
||||||
return {
|
return {
|
||||||
label: item.enterpriseName,
|
label: item.keyword,
|
||||||
value: item.enterpriseName
|
value: item.id
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
const obj = [];
|
const obj = [];
|
||||||
@ -174,15 +177,15 @@ export class ShipperBaseService extends BaseService {
|
|||||||
* @returns
|
* @returns
|
||||||
*/
|
*/
|
||||||
getNetworkenterpriceIds(params = {}, containerAll = false) {
|
getNetworkenterpriceIds(params = {}, containerAll = false) {
|
||||||
return this.request(this.$api_get_network_freight_forwarder_list, params).pipe(
|
return this.request(this.$api_partner_lists, params).pipe(
|
||||||
map((res: any) => {
|
map((res: any) => {
|
||||||
if (!res) {
|
if (!res) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
const list = res.map((item: any) => {
|
const list = res.map((item: any) => {
|
||||||
return {
|
return {
|
||||||
label: item.enterpriseName,
|
label: item.contactName + '/' + item.contactMobile,
|
||||||
value: item.enterpriseName
|
value: item.id
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
const obj = [];
|
const obj = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user