This commit is contained in:
Taric Xin
2022-01-10 13:20:56 +08:00
parent 5fa122dd25
commit 865534d2ab
15 changed files with 436 additions and 57 deletions

View File

@ -9,7 +9,7 @@ import { AddCollectionInvoiceModalComponent } from './add-collection-invoice-mod
@Component({
selector: 'app-input-invoice',
templateUrl: './input-invoice.component.html',
styleUrls: ['../../../commom/less/box.less']
styleUrls: ['../../../commom/less/box.less', '../../../commom/less/expend-but.less']
})
export class InputInvoiceComponent implements OnInit {
@ViewChild('st', { static: true })
@ -31,7 +31,15 @@ export class InputInvoiceComponent implements OnInit {
beforeReq = (requestOptions: STRequestOptions) => {
if (this.sf) {
Object.assign(requestOptions.body, {
...this.sf.value
...this.sf.value,
createtime: {
start: this.sf.value.createtime?.[0] || null,
end: this.sf.value.createtime?.[1] || null
},
invdate: {
start: this.sf.value.invdate?.[0] || null,
end: this.sf.value.invdate?.[1] || null
}
});
}
return requestOptions;
@ -83,7 +91,7 @@ export class InputInvoiceComponent implements OnInit {
hidden: true
}
},
orderSn: {
inpinvcode: {
type: 'string',
title: '收票单号',
ui: {
@ -91,7 +99,7 @@ export class InputInvoiceComponent implements OnInit {
placeholder: '请输入'
}
},
ltdId: {
ltdid: {
type: 'string',
title: '网络货运人',
ui: {
@ -102,7 +110,7 @@ export class InputInvoiceComponent implements OnInit {
},
default: ''
},
orderS2n: {
invoiceno: {
type: 'string',
title: '发票号码',
ui: {
@ -110,7 +118,7 @@ export class InputInvoiceComponent implements OnInit {
placeholder: '请输入'
}
},
order2S2n: {
invtype: {
type: 'string',
title: '发票类型',
ui: {
@ -122,7 +130,7 @@ export class InputInvoiceComponent implements OnInit {
}
}
},
orderSn1: {
hrto: {
type: 'string',
title: '销售方',
ui: {
@ -132,7 +140,7 @@ export class InputInvoiceComponent implements OnInit {
}
}
},
createTime: {
createtime: {
title: '创建时间',
type: 'string',
ui: {
@ -143,7 +151,7 @@ export class InputInvoiceComponent implements OnInit {
}
} as SFDateWidgetSchema
},
ord0erSn1: {
sts: {
type: 'string',
title: '收票状态',
ui: {
@ -155,7 +163,7 @@ export class InputInvoiceComponent implements OnInit {
}
}
},
orderSn2: {
invdate: {
type: 'string',
title: '发票日期',
ui: {
@ -166,7 +174,7 @@ export class InputInvoiceComponent implements OnInit {
}
}
},
orderS1n2: {
remarks: {
type: 'string',
title: '收票备注',
ui: {
@ -176,23 +184,21 @@ export class InputInvoiceComponent implements OnInit {
}
}
},
orderS3: {
billCode: {
type: 'string',
title: '订单号',
ui: {
autocomplete: 'off',
placeholder: '请选择',
placeholder: '请输入',
visibleIf: {
expand: (value: boolean) => value
}
}
},
orderSn4: {
feecode: {
type: 'string',
title: '费用号',
ui: {
autocomplete: 'off',
placeholder: '请选择',
placeholder: '请输入',
visibleIf: {
expand: (value: boolean) => value
}
@ -205,23 +211,23 @@ export class InputInvoiceComponent implements OnInit {
private initST(): STColumn[] {
return [
{ title: '', index: 'key', type: 'checkbox' },
{ title: '收票单号', index: 'no', type: 'link' },
{ title: '网络货运人', index: 'no' },
{ title: '发票日期', index: 'no', type: 'date' },
{ title: '发票号', index: 'callNo' },
{ title: '发票金额', index: 'callNo' },
{ title: '税额', render: 'call1No' },
{ title: '发票类型', render: 'call1N2o' },
{ title: '销售方', index: 'callNo' },
{ title: '创建时间', index: 'updatedAt', type: 'date' },
{ title: '创建人', index: 'updatedAt' },
{ title: '收票状态', index: 'updatedAt' },
{ title: '收票单号', index: 'inpinvcode', type: 'link' },
{ title: '网络货运人', index: 'ltdid' },
{ title: '发票日期', index: 'invdate', type: 'date' },
{ title: '发票号', index: 'invoiceno' },
{ title: '发票金额', index: 'invmoney' },
{ title: '税额', index: 'invtax' },
{ title: '发票类型', index: 'invtype' },
{ title: '销售方', index: 'hrto' },
{ title: '创建时间', index: 'createtime', type: 'date' },
{ title: '创建人', index: 'createbyname' },
{ title: '收票状态', index: 'sts' },
{
title: '操作',
buttons: [
{
text: '浏览',
click: item => this.router.navigate(['/ticket/input-invoice/detail/1'])
click: item => this.router.navigate(['/ticket/input-invoice/detail/' + item.id])
},
{
text: '修改',