diff --git a/proxy.conf.js b/proxy.conf.js
index 0b7a386b..3ec9b0fd 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-04-14 14:40:51
+ * @LastEditTime : 2022-04-18 16:40:52
* @FilePath : \\tms-obc-web\\proxy.conf.js
* Copyright (C) 2022 huzhenhong. All rights reserved.
*/
@@ -30,7 +30,7 @@ module.exports = {
// },
'//api': {
target: {
- host: 'tms-api-test.eascs.com',
+ host: 'tms-api-dev.eascs.com',
protocol: 'https:',
port: 443
},
diff --git a/src/app/routes/datatable/components/busitable/busiindex/busiindex.component.ts b/src/app/routes/datatable/components/busitable/busiindex/busiindex.component.ts
index 6a27ee0b..a5cc2092 100644
--- a/src/app/routes/datatable/components/busitable/busiindex/busiindex.component.ts
+++ b/src/app/routes/datatable/components/busitable/busiindex/busiindex.component.ts
@@ -75,6 +75,11 @@ export class DatatableBusiindexComponent implements OnInit {
} else if(this.mode === 'month') {
type = 2
}
+ if(this.modeNext === 'year') {
+ type = 1
+ } else if(this.modeNext === 'month') {
+ type = 2
+ }
const params: any = {
time: this.timeNext,
type
@@ -83,8 +88,8 @@ export class DatatableBusiindexComponent implements OnInit {
if (res) {
this.chartData = res
if(flag) {
- this.pillar.reRender()
- this.curve.reRender()
+ // this.pillar.reRender()
+ // this.curve.reRender()
}
}
})
@@ -106,15 +111,15 @@ export class DatatableBusiindexComponent implements OnInit {
} else if(this.mode === 'date') {
this.time = [this.datePipe.transform(this.date, 'yyyy-MM-dd') + ' 00:00:00']
} else{
- this.time = [this.datePipe.transform(this.defineDate[0], 'yyyy-MM-dd') + '00:00:00', this.datePipe.transform(this.defineDate[1], 'yyyy-MM-dd') + ' 00:00:00']
+ this.time = [this.datePipe.transform(this.defineDate[0], 'yyyy-MM-dd') + ' 00:00:00', this.datePipe.transform(this.defineDate[1], 'yyyy-MM-dd') + ' 00:00:00']
}
this.st.reload({ ...this.reqParams });
}
changeDataNext() {
- if(this.mode === 'year') {
+ if(this.modeNext === 'year') {
this.dateFormat = 'yyyy'
- } else if(this.mode === 'month') {
+ } else if(this.modeNext === 'month') {
this.dateFormat = 'yyyy-MM'
}
}
@@ -122,10 +127,15 @@ export class DatatableBusiindexComponent implements OnInit {
if(result === null) {
return
}
- if(this.mode === 'year') {
+ console.log(this.mode);
+ if(this.modeNext === 'year') {
this.timeNext = [this.datePipe.transform(this.dateNext, 'yyyy') + '-01-01 00:00:00']
- } else if(this.mode === 'month') {
+ } else if(this.modeNext === 'month') {
this.timeNext = [this.datePipe.transform(this.dateNext, 'yyyy-MM') + '-01 00:00:00']
+
+ console.log(this.dateNext);
+ console.log(this.timeNext);
+
}
this.initData(true)
}
diff --git a/src/app/routes/datatable/components/busitable/busiindex/curve/curve.component.ts b/src/app/routes/datatable/components/busitable/busiindex/curve/curve.component.ts
index 00d9e8b5..764a1747 100644
--- a/src/app/routes/datatable/components/busitable/busiindex/curve/curve.component.ts
+++ b/src/app/routes/datatable/components/busitable/busiindex/curve/curve.component.ts
@@ -15,9 +15,9 @@ export class BusitableCurveComponent implements OnInit, OnChanges {
}
ngOnChanges(changes: SimpleChanges): void {
if (this.chartData) {
- // setTimeout(()=>{
- // this.chart.render(true)
- // }, 1000)
+ setTimeout(()=>{
+ this.chart.render(true)
+ }, 1000)
}
}
@@ -48,19 +48,23 @@ export class BusitableCurveComponent implements OnInit, OnChanges {
year: {
range: [0, 1],
},
- value: {
- min: 0,
+ number: {
+ min: -9999,
nice: true,
},
});
-
+ const itemTpl = `
+
value
}
- }
+ },
+ default: ''
},
hrto: {
type: 'string',
title: '销售方',
ui: {
- placeholder: '请输入',
+ widget: 'select',
+ placeholder: '请选择',
+ allowClear: true,
+ asyncData: () => this.service.getCRMCustomerId(),
visibleIf: {
expand: (value: boolean) => value
}
@@ -156,8 +163,8 @@ export class InputInvoiceComponent implements OnInit {
title: '收票状态',
enum: [
{ value: '', label: '全部' },
- { value: 1, label: '是' },
- { value: 0, label: '否' }
+ { value: '1', label: '新建' },
+ { value: '2', label: '关闭' }
],
ui: {
widget: 'select',
@@ -216,8 +223,8 @@ export class InputInvoiceComponent implements OnInit {
private initST(): STColumn[] {
return [
{ title: '', index: 'key', type: 'checkbox', width: 60, className: 'text-center', fixed: 'left' },
- { title: '收票单号', index: 'inpinvcode', type: 'link', width: 170 },
- { title: '网络货运人', index: 'ltdName', width: 150 },
+ { title: '收票单号', index: 'inpinvcode', type: 'link', width: 190 },
+ { title: '网络货运人', index: 'ltdName', width: 220 },
{ title: '发票日期', index: 'invdate', type: 'date', width: 150, className: 'text-center' },
{ title: '发票号', index: 'invoiceno', width: 130 },
{
@@ -237,7 +244,7 @@ export class InputInvoiceComponent implements OnInit {
widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.invtax }) }
},
{ title: '发票类型', index: 'invtype', width: 150, className: 'text-center' },
- { title: '销售方', index: 'hrtoName', width: 150 },
+ { title: '销售方', index: 'hrtoName', width: 200 },
{ title: '创建时间', index: 'createtime', type: 'date', width: 150, className: 'text-center' },
{ title: '创建人', index: 'createbyname', width: 120 },
{ title: '收票状态', index: 'stsLabel', width: 120, className: 'text-center' },
diff --git a/src/app/routes/ticket-management/components/invoice-requested/invoice-requested-detail/invoice-requested-detail.component.html b/src/app/routes/ticket-management/components/invoice-requested/invoice-requested-detail/invoice-requested-detail.component.html
index 0d2ad116..b22492f3 100644
--- a/src/app/routes/ticket-management/components/invoice-requested/invoice-requested-detail/invoice-requested-detail.component.html
+++ b/src/app/routes/ticket-management/components/invoice-requested/invoice-requested-detail/invoice-requested-detail.component.html
@@ -15,7 +15,7 @@
- {{headerInfo?.vatinvHNum}} / {{headerInfo?.vatinvBillNum}}
+ {{headerInfo?.vatinvHNum}} / {{headerInfo?.ordlines}}
{{headerInfo?.vatinvHAmount |currency}} / {{headerInfo?.vatinvHNumAmount |currency}}
diff --git a/src/app/routes/waybill-management/components/abnormal-appear/abnormal-appear.component.ts b/src/app/routes/waybill-management/components/abnormal-appear/abnormal-appear.component.ts
index 5f02d97d..36fe755a 100644
--- a/src/app/routes/waybill-management/components/abnormal-appear/abnormal-appear.component.ts
+++ b/src/app/routes/waybill-management/components/abnormal-appear/abnormal-appear.component.ts
@@ -78,13 +78,21 @@ export class WaybillManagementAbnormalAppearComponent implements OnInit {
get reqParams() {
return {
...this.sf?.value,
- replyStatus: this.resourceStatus || 0
+ replyStatus: this.resourceStatus || 0,
+ reportingTime: {
+ start: this.sf?.value?.reportingTime?.[0] || '',
+ end: this.sf?.value?.reportingTime?.[1] || ''
+ },
};
}
get reqParams2() {
return {
...this.sf?.value,
- replyStatus: this.resourceStatus || 1
+ replyStatus: this.resourceStatus || 1,
+ reportingTime: {
+ start: this.sf?.value?.reportingTime?.[0] || '',
+ end: this.sf?.value?.reportingTime?.[1] || ''
+ },
};
}
diff --git a/src/app/shared/services/business/shipper-base.service.ts b/src/app/shared/services/business/shipper-base.service.ts
index 6390cbd0..8713292a 100644
--- a/src/app/shared/services/business/shipper-base.service.ts
+++ b/src/app/shared/services/business/shipper-base.service.ts
@@ -124,6 +124,30 @@ export class ShipperBaseService extends BaseService {
* @returns
*/
getNetworkFreightForwarder(params = {}, containerAll = false) {
+ return this.request(this.$api_get_network_freight_forwarder_list, params).pipe(
+ map((res: any) => {
+ if (!res) {
+ return [];
+ }
+ const list = res.map((item: any) => {
+ return {
+ label: item.enterpriseName,
+ value: item.id
+ };
+ });
+ const obj = [];
+ if (containerAll) {
+ obj.push({ label: '全部', value: '' });
+ }
+ return [...obj, ...list];
+ })
+ );
+ }
+ /**
+ * 获取网络货运人
+ * @returns
+ */
+ getNetworkEnterpriseName(params = {}, containerAll = false) {
return this.request(this.$api_get_network_freight_forwarder_list, params).pipe(
map((res: any) => {
if (!res) {
@@ -169,6 +193,31 @@ export class ShipperBaseService extends BaseService {
);
}
+ /**
+ * 获取CRM客户 crmCustomerId
+ * @returns
+ */
+ getCRMCustomerId(params = {}, containerAll = false) {
+ return this.request(this.$api_get_crm_customer_list, params).pipe(
+ map((res: any) => {
+ if (!res) {
+ return [];
+ }
+ const list = res.map((item: any) => {
+ return {
+ label: item.enterpriseName,
+ value: item.crmCustomerId
+ };
+ });
+ const obj = [];
+ if (containerAll) {
+ obj.push({ label: '全部', value: '' });
+ }
+ return [...obj, ...list];
+ })
+ );
+ }
+
/**
* 获取货主企业列表
* @returns