批量审核
This commit is contained in:
@ -135,19 +135,7 @@ export class AccountComponentsCenterComponent implements OnInit {
|
||||
}
|
||||
getInfo() {
|
||||
this.service.http.post(this.service.$api_get_current_user_info).subscribe((res) => {
|
||||
console.log(res)
|
||||
this.infoData = res.data;
|
||||
// this.infoData.avatar = [
|
||||
// {
|
||||
// uid: -1,
|
||||
// name: 'LOGO',
|
||||
// status: 'done',
|
||||
// url: res.data.avatar,
|
||||
// response: {
|
||||
// url: res.data.avatar,
|
||||
// },
|
||||
// },
|
||||
// ];
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -39,7 +39,6 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
console.log(this.i)
|
||||
this.codeTips = '为了账户安全,需您的手机验证(' + this.i?.phone + ')';
|
||||
this.formData.oldName = this.i?.phone;
|
||||
this.initSF();
|
||||
@ -140,7 +139,6 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
|
||||
// phoneNumber: phone
|
||||
};
|
||||
this.service.request(this.service.$api_get_current_user_smVerification, params, 'POST', true, 'FORM').subscribe((res) => {
|
||||
console.log(res);
|
||||
// code==503046 弹出网易盾
|
||||
if (res && res.code === '1') {
|
||||
this.service.msgSrv.success('发送成功');
|
||||
@ -158,7 +156,6 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
|
||||
phoneNumber: this.sfView.value.phone
|
||||
};
|
||||
this.service.request(this.service.$api_get_getSMVerificationCode, params, 'POST', true, 'FORM').subscribe((res) => {
|
||||
console.log(res);
|
||||
// code==503046 弹出网易盾
|
||||
if (res && res.code === '1') {
|
||||
this.service.msgSrv.success('发送成功');
|
||||
@ -210,27 +207,22 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
|
||||
this.modal.destroy();
|
||||
}
|
||||
submitForm() {
|
||||
console.log(this.sf.value, 'this.sf.value');
|
||||
const params = {
|
||||
smsVerifyCode: this.sf.value.smsVerifyCode,
|
||||
};
|
||||
|
||||
this.service.http.post(this.service.$api_get_verifyPhone, params).subscribe((res) => {
|
||||
console.log(res, 'submitForm');
|
||||
if (res.success) {
|
||||
this.service.msgSrv.success(res.msg);
|
||||
// this.modal.close(true);
|
||||
this.voucher = res.data.voucher
|
||||
this.isVisibleView = true
|
||||
|
||||
} else {
|
||||
this.service.msgSrv.warning(res.msg);
|
||||
}
|
||||
});
|
||||
}
|
||||
handleCancel(type: string) {
|
||||
if(type === '1') {
|
||||
console.log(type)
|
||||
this.isVisibleView = false
|
||||
} else if(type === '2') {
|
||||
console.log(type)
|
||||
@ -242,18 +234,14 @@ export class AccountComponentsEditNameComponent implements OnInit, AfterViewInit
|
||||
|
||||
}
|
||||
handleNew() {
|
||||
console.log(this.voucher)
|
||||
const params = {
|
||||
voucher: this.voucher,
|
||||
...this.sfView.value,
|
||||
}
|
||||
this.service.http.post(this.service.$api_set_voucherUpdatePhone, params).subscribe((res) => {
|
||||
console.log(res);
|
||||
if (res.success) {
|
||||
this.service.msgSrv.success(res.msg);
|
||||
this.isVisibleOk = true;
|
||||
} else {
|
||||
this.service.msgSrv.warning(res.msg);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2021-11-29 13:50:46
|
||||
* @LastEditTime: 2022-01-18 16:34:46
|
||||
* @LastEditTime: 2022-01-18 16:37:42
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: \tms-obc-web\src\app\routes\account\components\edit\edit.component.ts
|
||||
@ -57,7 +57,6 @@ export class AccountComponentsCenterEditComponent implements OnInit {
|
||||
|
||||
ngOnInit() {
|
||||
this.initForm();
|
||||
console.log(this.record.phone)
|
||||
}
|
||||
initForm () {
|
||||
this.validateForm = this.fb.group({
|
||||
@ -77,7 +76,6 @@ export class AccountComponentsCenterEditComponent implements OnInit {
|
||||
}
|
||||
getCaptcha(e: MouseEvent): void {
|
||||
this.service.request(this.service.$api_get_current_user_smVerification).subscribe(res => {
|
||||
console.log(res);
|
||||
// code==503046 弹出网易盾
|
||||
if (res && res.code === '1') {
|
||||
this.service.msgSrv.success('发送成功');
|
||||
@ -93,13 +91,9 @@ export class AccountComponentsCenterEditComponent implements OnInit {
|
||||
this.service.msgSrv.warning('必填项为空或格式错误,请检查!')
|
||||
return;
|
||||
}
|
||||
console.log(this.validateForm)
|
||||
console.log(this.validateForm.value)
|
||||
const params = {
|
||||
...this.validateForm.value
|
||||
};
|
||||
console.log(params)
|
||||
|
||||
this.service.request(this.service.$api_set_phoneUpdatePassword, params).subscribe((res) => {
|
||||
if (res) {
|
||||
this.service.msgSrv.success('修改密码成功!');
|
||||
|
||||
@ -2,7 +2,7 @@ import { Router } from '@angular/router';
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2022-01-05 11:01:55
|
||||
* @LastEditTime: 2022-01-10 15:56:26
|
||||
* @LastEditTime: 2022-01-18 16:37:53
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: \tms-obc-web\src\app\routes\contract-management\components\contract-template-detail\contract-template-detail.component.ts
|
||||
@ -52,13 +52,10 @@ export class ContractManagementDetailComponent implements OnInit {
|
||||
|
||||
initData(url: string) {
|
||||
this.service.request(url, {id: this.route.snapshot.params.id}).subscribe((res) => {
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.detailList = res;
|
||||
this.detailList = res;
|
||||
let value :any= JSON.parse(res.contractParameter)
|
||||
console.log(value['${code}'])
|
||||
console.log(value['${name}'])
|
||||
this.code = value['${code}']
|
||||
this.name =value['${name}']
|
||||
}
|
||||
|
||||
@ -2,7 +2,7 @@ import { Router } from '@angular/router';
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2022-01-05 11:01:55
|
||||
* @LastEditTime: 2022-01-10 14:48:32
|
||||
* @LastEditTime: 2022-01-18 16:38:01
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: \tms-obc-web\src\app\routes\contract-management\components\contract-template-detail\contract-template-detail.component.ts
|
||||
@ -67,9 +67,6 @@ export class ContractManagementTemplateDetailComponent implements OnInit {
|
||||
this.isUpdate =false;
|
||||
this.initData(this.service.$api_get_contractTemplate)
|
||||
}
|
||||
|
||||
console.log(this.route.snapshot.params.id)
|
||||
console.log(this.route.snapshot.queryParams.status)
|
||||
}
|
||||
goBack() {
|
||||
window.history.go(-1)
|
||||
@ -137,7 +134,6 @@ export class ContractManagementTemplateDetailComponent implements OnInit {
|
||||
}
|
||||
initData(url: string) {
|
||||
this.service.request(url, {id: this.route.snapshot.params.id}).subscribe((res) => {
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.detailList = res;
|
||||
this.sfdata = res;
|
||||
@ -150,28 +146,22 @@ export class ContractManagementTemplateDetailComponent implements OnInit {
|
||||
}
|
||||
|
||||
save () {
|
||||
console.log(this.sf.value);
|
||||
if( !this.sf.value.templateName || !this.sf.value.templateType || !this.sf2.value.templateContent || !this.title) {
|
||||
this.service.msgSrv.error("必填参数为空,请检查再重新保存!");
|
||||
return;
|
||||
}
|
||||
if(this.sf.value.templateType == 'MX' ) {
|
||||
console.log(this.sf.value.contractType)
|
||||
if(this.sf.value.contractType == '') {
|
||||
this.service.msgSrv.error("必填参数为空,请检查再重新保存!");
|
||||
return;
|
||||
}
|
||||
}
|
||||
console.log(this.sfdata);
|
||||
console.log(this.sf2.value);
|
||||
console.log(this.title);
|
||||
const params = {
|
||||
...this.sf.value,
|
||||
...this.sf2.value,
|
||||
templateTitle: this.title
|
||||
}
|
||||
this.service.request(this.service.$api_save_contractTemplate, params).subscribe((res: any) => {
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.service.msgSrv.success("保存成功!")
|
||||
this.router.navigate(['/contract-management/template'])
|
||||
|
||||
@ -166,7 +166,6 @@ export class ContractManagementTemplateComponent implements OnInit {
|
||||
this.sf?.setValue('/_$expand', this._$expand);
|
||||
}
|
||||
tabChange(item: any) {
|
||||
console.log(item)
|
||||
}
|
||||
/**
|
||||
* 重置表单
|
||||
|
||||
@ -44,8 +44,6 @@ export class AbnormalGoldComponent implements OnInit {
|
||||
nzTitle: '清分',
|
||||
nzContent: ClearingModalComponent,
|
||||
nzOnOk: com => {
|
||||
console.log(com.sf.value);
|
||||
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
@ -25,8 +25,6 @@ export class CostManagementDetailComponent implements OnInit {
|
||||
|
||||
loadDetail(id: any) {
|
||||
this.service.request(this.service.$api_get_cost_detail, { id }).subscribe(res => {
|
||||
console.log(res);
|
||||
|
||||
if (res) {
|
||||
this.costInfo = res;
|
||||
}
|
||||
|
||||
@ -139,7 +139,6 @@ export class ExpensesPayableComponent implements OnInit {
|
||||
click: item => {
|
||||
this.st.removeRow(item);
|
||||
this.data = this.data.filter(i => i.id !== item.id);
|
||||
console.log(this.st.data, this.st._data);
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@ -138,7 +138,6 @@ export class ExpensesReceivableComponent implements OnInit {
|
||||
click: item => {
|
||||
this.st.removeRow(item);
|
||||
this.data = this.data.filter(i => i.id !== item.id);
|
||||
console.log(this.st.data, this.st._data);
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@ -72,7 +72,6 @@ export class DriverAccountDetailComponent implements OnInit {
|
||||
}
|
||||
|
||||
stChange(e: STChange): void {
|
||||
console.log(e);
|
||||
}
|
||||
|
||||
exportList() {
|
||||
|
||||
@ -72,7 +72,6 @@ export class FreightAccountDetailComponent implements OnInit {
|
||||
}
|
||||
|
||||
stChange(e: STChange): void {
|
||||
console.log(e);
|
||||
}
|
||||
|
||||
exportList() {
|
||||
|
||||
@ -26,7 +26,6 @@ export class SettingFinancialComponent implements OnInit {
|
||||
this.initSF(this.i);
|
||||
}
|
||||
initSF(staff: any) {
|
||||
console.log(staff);
|
||||
this.schema = {
|
||||
properties: {
|
||||
name: {
|
||||
@ -90,7 +89,6 @@ export class SettingFinancialComponent implements OnInit {
|
||||
staffName: this.sf.value.name
|
||||
};
|
||||
// this.service.request(this.service.$api_addStaff, params).subscribe((res) => {
|
||||
// console.log(res);
|
||||
// if (res) {
|
||||
// this.service.msgSrv.success('保存成功!');
|
||||
// this.modal.close(true);
|
||||
|
||||
@ -34,7 +34,6 @@ export class PayableOrderDetailComponent implements OnInit {
|
||||
|
||||
loadHeadInfo() {
|
||||
this.service.request(this.service.$api_get_fico_ph_header, { id: this.id }).subscribe(res => {
|
||||
console.log(res);
|
||||
if (res) {
|
||||
this.headerInfo = res;
|
||||
}
|
||||
|
||||
@ -30,7 +30,6 @@ export class PaymentOrderDetailComponent implements OnInit {
|
||||
|
||||
loadHeadInfo() {
|
||||
// this.service.request(this.service.$api_get_input_invoice_header, { id: this.id }).subscribe(res => {
|
||||
// console.log(res);
|
||||
// if (res) {
|
||||
// this.headerInfo = res;
|
||||
// }
|
||||
|
||||
@ -35,7 +35,6 @@ export class ReceivableOrderDetailComponent implements OnInit {
|
||||
|
||||
loadHeadInfo() {
|
||||
this.service.request(this.service.$api_get_fico_header, { id: this.id }).subscribe(res => {
|
||||
console.log(res);
|
||||
if (res) {
|
||||
this.headerInfo = res;
|
||||
}
|
||||
|
||||
@ -51,7 +51,6 @@ export class MenuManagerComponentsIndexComponent implements OnInit {
|
||||
}
|
||||
|
||||
editValueChange(event: any) {
|
||||
console.log('editChanged', event);
|
||||
}
|
||||
|
||||
menuImport(index: number) {
|
||||
@ -104,7 +103,6 @@ export class MenuManagerComponentsIndexComponent implements OnInit {
|
||||
|
||||
getMenuByAppID(appId: string) {
|
||||
this.service.request(this.service.$api_get_one, { appId }, 'POST', false).subscribe(res => {
|
||||
console.log(res);
|
||||
if (res) {
|
||||
const menus = res.data;
|
||||
if (res.data?.length > 0) {
|
||||
|
||||
@ -85,7 +85,6 @@ loadTime: any; // 货源单设置回显
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
console.log(this.id)
|
||||
this.initST();
|
||||
this.initSF();
|
||||
this.initSF3();
|
||||
@ -288,13 +287,11 @@ loadTime: any; // 货源单设置回显
|
||||
}
|
||||
initData() {
|
||||
this.service.request(this.service.$api_set_getBulkOrderDetail, {id: this.id}).subscribe(res => {
|
||||
console.log(res)
|
||||
if (res) {
|
||||
this.i = res;
|
||||
// 对装货凭证进行初始化
|
||||
let arr : any= []
|
||||
res?.receiptFilePath.forEach((element: any, index: any) => {
|
||||
console.log(index)
|
||||
arr.push( {
|
||||
url: element,
|
||||
status: 'done',
|
||||
@ -458,9 +455,7 @@ loadTime: any; // 货源单设置回显
|
||||
|
||||
unloadingPeopleVehiclesGoodsFilePath: this.sf.value?.unloadingPeopleVehiclesGoodsFilePath?.data ? this.sf.value?.unloadingPeopleVehiclesGoodsFilePath.data.fullFilePath : this.sf.value?.unloadingPeopleVehiclesGoodsFilePath?.url,
|
||||
}
|
||||
console.log(params)
|
||||
this.service.request(this.service.$api_set_modifyBulkOrder, params).subscribe((res: any) => {
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.service.msgSrv.success('修改成功!');
|
||||
this.router.navigate(['/order-management/bulk']);
|
||||
@ -765,7 +760,6 @@ handleChange1(info: NzUploadChangeParam): void {
|
||||
case 'done':
|
||||
let fileList = [...info.fileList];
|
||||
// 2. Read from response and show file link
|
||||
console.log(fileList)
|
||||
fileList = fileList.map((file: any) => {
|
||||
if (file.response) {
|
||||
file.url = file.response.data.fullFilePath;
|
||||
|
||||
@ -60,13 +60,11 @@ export class OrderManagementBulkeDetailComponent implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
console.log(this.id)
|
||||
this.initData()
|
||||
}
|
||||
|
||||
initData() {
|
||||
this.service.request(this.service.$api_getBulkBillDetail, {id: this.id}).subscribe(res => {
|
||||
console.log(res)
|
||||
if (res) {
|
||||
this.i =res;
|
||||
this.attObj = this.i?.billExpenseDetails?.filter((data: any) => data.expenseCode === 'ATT')[0];
|
||||
@ -81,7 +79,6 @@ export class OrderManagementBulkeDetailComponent implements OnInit {
|
||||
}
|
||||
// 修改订单
|
||||
changeOrder() {
|
||||
console.log(this.id)
|
||||
this.router.navigate(['order-management/bulk-detailChange', this.id])
|
||||
}
|
||||
agreement(value: any) {
|
||||
|
||||
@ -138,7 +138,6 @@ tabs = {
|
||||
})
|
||||
}
|
||||
selectChange(e: number) {
|
||||
console.log(e);
|
||||
this.resourceStatus = e;
|
||||
this.initST();
|
||||
setTimeout(() => {
|
||||
@ -181,7 +180,6 @@ tabs = {
|
||||
searchDebounceTime: 300,
|
||||
searchLoadingText: '搜索中...',
|
||||
onSearch: (q: any) => {
|
||||
console.log(q)
|
||||
if (!!q) {
|
||||
return this.service
|
||||
.request(this.service.$api_enterpriceList, { enterpriseName: q})
|
||||
@ -291,19 +289,6 @@ tabs = {
|
||||
asyncData: () => this.shipperservice.getNetworkFreightForwarder(),
|
||||
},
|
||||
},
|
||||
// goodsName: {
|
||||
// type: 'string',
|
||||
// title: '货物名称',
|
||||
// ui: {
|
||||
// widget: 'select',
|
||||
// placeholder: '请选择',
|
||||
// visibleIf: {
|
||||
// _$expand: (value: boolean) => value,
|
||||
// },
|
||||
// allowClear: true,
|
||||
// asyncData: () => this.getCatalogueMember(),
|
||||
// },
|
||||
// },
|
||||
goodsNameId: {
|
||||
type: 'string',
|
||||
title: '货物名称',
|
||||
@ -586,7 +571,6 @@ tabs = {
|
||||
this.sf?.setValue('/_$expand', this._$expand);
|
||||
}
|
||||
tabChange(item: any) {
|
||||
console.log(item)
|
||||
}
|
||||
/**
|
||||
* 重置表单
|
||||
@ -596,20 +580,6 @@ tabs = {
|
||||
this._$expand = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
getCatalogueMember() {
|
||||
const params = {
|
||||
};
|
||||
return this.service.request(this.service.$api_get_catalogue_member, params, 'GET').pipe(
|
||||
map((res) => {
|
||||
if (res) {
|
||||
console.log(res)
|
||||
}
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导入货源
|
||||
*/
|
||||
@ -617,7 +587,6 @@ tabs = {
|
||||
|
||||
}
|
||||
audit(item: any) {
|
||||
console.log(item)
|
||||
}
|
||||
|
||||
/*
|
||||
@ -627,14 +596,12 @@ tabs = {
|
||||
查看评价: 3
|
||||
*/
|
||||
handleCancel(type: string) {
|
||||
console.log(type)
|
||||
if(type === '0') {
|
||||
this.isVisible = false
|
||||
} else if(type === '1') {
|
||||
console.log(type)
|
||||
this.isVisibleView = false
|
||||
} else if(type === '2') {
|
||||
console.log(type)
|
||||
this.isVisibleEvaluate = false
|
||||
}
|
||||
}
|
||||
@ -652,7 +619,6 @@ tabs = {
|
||||
* 浮动费用查看
|
||||
*/
|
||||
FloatView(item: any) {
|
||||
console.log(item)
|
||||
this.changeViewId = item.id;
|
||||
this.service.request(this.service.$api_getChangeRecordBulkDetail, {id: this.changeViewId}).subscribe((res) => {
|
||||
this.ViewCause = res;
|
||||
@ -663,7 +629,6 @@ tabs = {
|
||||
*查看评价
|
||||
*/
|
||||
viewEvaluate(item: any) {
|
||||
console.log(item)
|
||||
this.isVisibleEvaluate = true
|
||||
}
|
||||
/**
|
||||
@ -713,8 +678,6 @@ tabs = {
|
||||
this.selectedRows.forEach(item => {
|
||||
params.push(item.id);
|
||||
});
|
||||
console.log(this.selectedRows)
|
||||
console.log(params)
|
||||
this.service.request(this.service.$api_get_batchSignBulkOrder, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.st.load(1);
|
||||
@ -746,7 +709,6 @@ tabs = {
|
||||
nzTitle: '是否确定立即撤销费用变更!</i>',
|
||||
nzOnOk: () =>
|
||||
this.service.request(this.service.$api_get_revokeChangeRecord, { id: item.id}).subscribe((res) => {
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.service.msgSrv.success('撤销成功!')
|
||||
this.stFloat.reload()
|
||||
|
||||
@ -142,7 +142,6 @@ export class OrderManagementComplaintDetailComponent implements OnInit {
|
||||
this.complaint = JSON.parse(this.ar.snapshot.queryParams.detail)
|
||||
this.datailList.complainantName = this.complaint?.shipperAppUserName
|
||||
this.datailList.complainantPartyLabel = this.complaint?.driverIdLabel
|
||||
console.log(this.datailList)
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -163,9 +162,6 @@ export class OrderManagementComplaintDetailComponent implements OnInit {
|
||||
}
|
||||
})
|
||||
}
|
||||
kkk(value: any) {
|
||||
console.log(value)
|
||||
}
|
||||
goBack() {
|
||||
window.history.go(-1)
|
||||
}
|
||||
@ -182,7 +178,6 @@ export class OrderManagementComplaintDetailComponent implements OnInit {
|
||||
id: this.channelId
|
||||
}
|
||||
this.service.request(this.service.$api_get_dealWithComplaint, paramsa).subscribe((res: any) =>{
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.service.msgSrv.success('已拒绝!')
|
||||
this.isVisibleRE = false
|
||||
@ -202,7 +197,6 @@ export class OrderManagementComplaintDetailComponent implements OnInit {
|
||||
id: this.channelId
|
||||
}
|
||||
this.service.request(this.service.$api_get_canelComplaint, paramsa).subscribe((res: any) =>{
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.service.msgSrv.success('已拒绝!')
|
||||
this.isVisibleRE = false
|
||||
@ -224,7 +218,6 @@ export class OrderManagementComplaintDetailComponent implements OnInit {
|
||||
id: this.channelId
|
||||
}
|
||||
this.service.request(this.service.$api_get_dealWithComplaint, paramsa).subscribe((res: any) =>{
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.service.msgSrv.success('已通过!')
|
||||
this.isVisibleRE = false
|
||||
|
||||
@ -217,7 +217,6 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
this.sf?.setValue('/_$expand', this._$expand);
|
||||
}
|
||||
tabChange(item: any) {
|
||||
console.log(item)
|
||||
}
|
||||
/**
|
||||
* 重置表单
|
||||
@ -226,24 +225,7 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
this.sf.reset();
|
||||
this._$expand = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 获取录单员
|
||||
getCatalogueMember() {
|
||||
const params = {
|
||||
};
|
||||
return this.service.request(this.service.$api_get_catalogue_member, params, 'GET').pipe(
|
||||
map((res) => {
|
||||
if (res) {
|
||||
console.log(res)
|
||||
}
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
selectChange(e: number) {
|
||||
console.log(e);
|
||||
this.resourceStatus = e;
|
||||
this.initST();
|
||||
setTimeout(() => {
|
||||
@ -257,7 +239,6 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
|
||||
}
|
||||
audit(item: any) {
|
||||
console.log(item)
|
||||
}
|
||||
|
||||
/*
|
||||
@ -273,7 +254,6 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
id: this.channelId
|
||||
}
|
||||
this.service.request(this.service.$api_get_dealWithComplaint, paramsa).subscribe((res: any) =>{
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.service.msgSrv.success('已拒绝!')
|
||||
this.isVisibleRE = false
|
||||
@ -292,7 +272,6 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
id: this.channelId
|
||||
}
|
||||
this.service.request(this.service.$api_get_canelComplaint, paramsa).subscribe((res: any) =>{
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.service.msgSrv.success('已拒绝!')
|
||||
this.isVisibleRE = false
|
||||
@ -313,7 +292,6 @@ export class OrderManagementComplaintComponent implements OnInit {
|
||||
id: this.channelId
|
||||
}
|
||||
this.service.request(this.service.$api_get_dealWithComplaint, paramsa).subscribe((res: any) =>{
|
||||
console.log(res)
|
||||
if(res) {
|
||||
this.service.msgSrv.success('已通过!')
|
||||
this.isVisibleRE = false
|
||||
|
||||
@ -120,9 +120,6 @@ export class OrderManagementRiskDetailComponent implements OnInit {
|
||||
}
|
||||
})
|
||||
}
|
||||
kkk(value: any) {
|
||||
console.log(value)
|
||||
}
|
||||
goBack() {
|
||||
window.history.go(-1)
|
||||
}
|
||||
|
||||
@ -391,7 +391,6 @@ export class OrderManagementRiskComponent implements OnInit {
|
||||
|
||||
|
||||
selectChange(e: number) {
|
||||
console.log(e);
|
||||
this.resourceStatus = e;
|
||||
this.initST();
|
||||
setTimeout(() => {
|
||||
@ -427,7 +426,6 @@ export class OrderManagementRiskComponent implements OnInit {
|
||||
representationsStatus: 3,
|
||||
};
|
||||
this.service.request(this.service.$api_get_listRisk_audit, parms).subscribe(res => {
|
||||
console.log(res);
|
||||
if (res) {
|
||||
this.service.msgSrv.success('审核通过成功!');
|
||||
this.isVisibleRE = false;
|
||||
@ -441,7 +439,6 @@ export class OrderManagementRiskComponent implements OnInit {
|
||||
* 审核拒绝按钮
|
||||
*/
|
||||
reject() {
|
||||
console.log(this.sfView.value);
|
||||
let idList: any[] = [];
|
||||
if(this.selectedRows.length > 0) {
|
||||
this.selectedRows.forEach(item => {
|
||||
@ -456,7 +453,6 @@ export class OrderManagementRiskComponent implements OnInit {
|
||||
representationsStatus: 4,
|
||||
};
|
||||
this.service.request(this.service.$api_get_listRisk_audit, parms).subscribe(res => {
|
||||
console.log(res);
|
||||
if (res) {
|
||||
this.service.msgSrv.success('审核拒绝成功!');
|
||||
this.isVisibleRE = false;
|
||||
@ -477,13 +473,11 @@ export class OrderManagementRiskComponent implements OnInit {
|
||||
} else {
|
||||
this.initSTAudit(2);
|
||||
}
|
||||
console.log(item);
|
||||
}
|
||||
/**
|
||||
*查看详情
|
||||
*/
|
||||
viewEvaluate(item: any) {
|
||||
console.log(item);
|
||||
this.router.navigate(['/order-management/risk-detail', item.id]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -127,7 +127,6 @@ resourceStatus: any;
|
||||
GoingQuantity: 0,
|
||||
totalCount: 0
|
||||
};
|
||||
console.log(this.tabs)
|
||||
this.service.request(this.service.$api_statisticalStatus,{...this.reqParams}).subscribe(res => {
|
||||
if (res) {
|
||||
let totalCount = 0;
|
||||
@ -177,7 +176,6 @@ resourceStatus: any;
|
||||
searchDebounceTime: 300,
|
||||
searchLoadingText: '搜索中...',
|
||||
onSearch: (q: any) => {
|
||||
console.log(q)
|
||||
if (!!q) {
|
||||
return this.service
|
||||
.request(this.service.$api_enterpriceList, { enterpriseName: q})
|
||||
@ -560,24 +558,7 @@ resourceStatus: any;
|
||||
this.sf.reset();
|
||||
this._$expand = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 获取录单员
|
||||
getCatalogueMember() {
|
||||
const params = {
|
||||
};
|
||||
return this.service.request(this.service.$api_get_catalogue_member, params, 'GET').pipe(
|
||||
map((res) => {
|
||||
if (res) {
|
||||
console.log(res)
|
||||
}
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
selectChange(e: number) {
|
||||
console.log(e);
|
||||
this.resourceStatus = e;
|
||||
this.initST();
|
||||
setTimeout(() => {
|
||||
@ -592,7 +573,6 @@ resourceStatus: any;
|
||||
|
||||
}
|
||||
audit(item: any) {
|
||||
console.log(item)
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<!--
|
||||
* @Author: your name
|
||||
* @Date: 2021-12-03 11:10:14
|
||||
* @LastEditTime: 2022-01-18 14:29:44
|
||||
* @LastEditTime: 2022-01-18 16:50:23
|
||||
* @LastEditors: Please set LastEditors
|
||||
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||
* @FilePath: \tms-obc-web\src\app\routes\supply-management\components\vehicle\vehicle.component.html
|
||||
@ -90,103 +90,6 @@
|
||||
<div *ngIf="item?.loadingTime">装 | {{item?.loadingTime}}</div>
|
||||
<div *ngIf="item?.unloadingTime">卸 | {{item?.unloadingTime}}</div>
|
||||
</ng-template>
|
||||
<ng-template st-row="enStatusStr27878" let-item let-index="index">
|
||||
<div class="mr-xs" nzPopoverTitle="Title" nz-popover [nzPopoverContent]="contentTemplate">{{item.no}}</div>
|
||||
</ng-template>
|
||||
<ng-template st-row="feiong" let-item let-index="index">
|
||||
<div style="color: aqua;" (click)="OpenPrice()">
|
||||
{{item.no}}
|
||||
</div>
|
||||
</ng-template>
|
||||
<ng-template #contentTemplate>
|
||||
<div>
|
||||
<p>预付:¥200.00</p>
|
||||
<p>到付:¥200.00</p>
|
||||
<p>油卡:¥200.00</p>
|
||||
<p>回单付:¥200.00</p>
|
||||
<p>小计:¥200.00</p>
|
||||
<p>附加费:¥200.00</p>
|
||||
</div>
|
||||
</ng-template>
|
||||
</st>
|
||||
</div>
|
||||
</nz-card>
|
||||
|
||||
|
||||
<nz-modal [(nzVisible)]="isVisible" [nzWidth]="600" [nzFooter]="nzModalFooter" nzTitle="浮动费用" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel('0')">
|
||||
<ng-container *nzModalContent>
|
||||
<st
|
||||
#stFloat
|
||||
multiSort
|
||||
size="small"
|
||||
[bordered]="true"
|
||||
[data]="datass"
|
||||
[columns]="columnsFloat"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
||||
[loadingDelay]="500"
|
||||
>
|
||||
</st>
|
||||
</ng-container>
|
||||
<ng-template #nzModalFooter>
|
||||
<button nz-button nzType="primary" (click)="handleCancel('0')">取消</button>
|
||||
<button nz-button nzType="default" (click)="handleOK()">确定</button>
|
||||
</ng-template>
|
||||
</nz-modal>
|
||||
|
||||
|
||||
<nz-modal [(nzVisible)]="isVisibleView" [nzWidth]="600" [nzFooter]="nzModalFooterview" nzTitle="查看" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel('1')">
|
||||
<ng-container *nzModalContent>
|
||||
<sf #sfView [schema]="schemaView" [ui]="uiView" [compact]="true" [button]="'none'">
|
||||
<ng-template sf-template="no" let-me let-ui="uiView" let-schema="schemaView">
|
||||
<div style="display: flex;">
|
||||
<nz-input-number [(ngModel)]="demoValue" [nzMin]="1" [nzMax]="10" [nzStep]="1"></nz-input-number>
|
||||
<div class="left_btn">元/吨</div>
|
||||
</div>
|
||||
</ng-template>
|
||||
</sf>
|
||||
<st
|
||||
#stFloatView
|
||||
multiSort
|
||||
size="small"
|
||||
[bordered]="true"
|
||||
[data]="datass"
|
||||
[columns]="columnsFloatView"
|
||||
[req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
|
||||
[res]="{ reName: { list: 'data.records', total: 'data.total' } }"
|
||||
[page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
|
||||
[loadingDelay]="500"
|
||||
>
|
||||
</st>
|
||||
<div><span>变更原因:</span></div>
|
||||
<div><span>拒绝原因:</span></div>
|
||||
<div><span>注:</span></div>
|
||||
</ng-container>
|
||||
<ng-template #nzModalFooterview>
|
||||
<button nz-button nzType="default" (click)="handleCancel('1')">取消</button>
|
||||
<button nz-button nzType="primary" (click)="handleOK()">确定</button>
|
||||
</ng-template>
|
||||
</nz-modal>
|
||||
|
||||
<nz-modal [(nzVisible)]="isVisibleEvaluate" [nzWidth]="600" [nzFooter]="nzModalFooterEvaluate" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel('2')">
|
||||
<ng-container *nzModalContent>
|
||||
<nz-tabset>
|
||||
<nz-tab nzTitle="我的评价">
|
||||
<div>
|
||||
评分: <nz-rate [ngModel]="2.5" nzAllowHalf></nz-rate>
|
||||
<div><span>评价内容:</span></div>
|
||||
</div>
|
||||
</nz-tab>
|
||||
<nz-tab nzTitle="司机评价">
|
||||
<div>
|
||||
暂无评价内容
|
||||
</div>
|
||||
</nz-tab>
|
||||
</nz-tabset>
|
||||
</ng-container>
|
||||
<ng-template #nzModalFooterEvaluate>
|
||||
<button nz-button nzType="default" (click)="handleCancel('2')">取消</button>
|
||||
<button nz-button nzType="primary" (click)="handleOK()">确定</button>
|
||||
</ng-template>
|
||||
</nz-modal>
|
||||
@ -21,36 +21,12 @@ export class WaybillManagementBulkComponent implements OnInit {
|
||||
uiView: SFUISchema = {};
|
||||
schema: SFSchema = {};
|
||||
schemaView: SFSchema = {};
|
||||
auditMany = false;
|
||||
isVisibleView = false;
|
||||
isVisibleEvaluate = false;
|
||||
isVisible = false;
|
||||
_$expand = false;
|
||||
@ViewChild('st') private readonly st!: STComponent;
|
||||
@ViewChild('stFloat') private readonly stFloat!: STComponent;
|
||||
@ViewChild('stFloatView') private readonly stFloatView!: STComponent;
|
||||
@ViewChild('sf', { static: false }) sf!: SFComponent;
|
||||
@ViewChild('sfFre', { static: false }) sfFre!: SFComponent;
|
||||
@ViewChild('sfView', { static: false }) sfView!: SFComponent;
|
||||
columns: STColumn[] = [];
|
||||
columnsFloat: STColumn[] = [];
|
||||
columnsFloatView: STColumn[] = [];
|
||||
demoValue: any;
|
||||
resourceStatus: any;
|
||||
datass: any = [
|
||||
{
|
||||
one: '1',
|
||||
two: '1',
|
||||
three: '1',
|
||||
id: 1
|
||||
},
|
||||
{
|
||||
one: '2',
|
||||
two: '2',
|
||||
three: '2',
|
||||
id: 2
|
||||
},
|
||||
];
|
||||
tabs = {
|
||||
signQuantity: 0,
|
||||
cancelQuantity: 0,
|
||||
@ -83,9 +59,6 @@ tabs = {
|
||||
this.initSF();
|
||||
this.initST();
|
||||
this.getGoodsSourceStatistical()
|
||||
this.initSTFloat();
|
||||
this.initSTFloatView();
|
||||
this.initSFView();
|
||||
}
|
||||
|
||||
|
||||
@ -274,48 +247,6 @@ tabs = {
|
||||
};
|
||||
this.ui = { '*': { spanLabelFixed: 110, grid: { span: 8, gutter: 4 } } };
|
||||
}
|
||||
/**
|
||||
* 初始化查询表单
|
||||
*/
|
||||
initSFView() {
|
||||
this.schemaView = {
|
||||
properties: {
|
||||
no: {
|
||||
type: 'string',
|
||||
title: '运费单价',
|
||||
ui: {
|
||||
widget: 'custom',
|
||||
}
|
||||
},
|
||||
sex: {
|
||||
title: '',
|
||||
type: 'string',
|
||||
default: 0,
|
||||
enum: [
|
||||
{ label: '保留小数', value: 0 },
|
||||
{ label: '男', value: 1 },
|
||||
{ label: '女', value: 2 },
|
||||
{ label: '保密', value: 3 },
|
||||
],
|
||||
ui: {
|
||||
widget: 'select',
|
||||
} as SFSelectWidgetSchema,
|
||||
},
|
||||
appId: {
|
||||
type: 'string',
|
||||
title: '结算重量',
|
||||
ui: {
|
||||
widget: 'select',
|
||||
placeholder: '请选择',
|
||||
allowClear: true,
|
||||
asyncData: () => this.getCatalogueMember(),
|
||||
},
|
||||
},
|
||||
},
|
||||
type: 'object',
|
||||
};
|
||||
this.uiView = { '*': { spanLabelFixed: 80, grid: { span: 12, gutter: 4 } } };
|
||||
}
|
||||
|
||||
/**
|
||||
* 初始化数据列表
|
||||
@ -421,59 +352,6 @@ tabs = {
|
||||
},
|
||||
];
|
||||
}
|
||||
initSTFloat() {
|
||||
this.columnsFloat = [
|
||||
{
|
||||
title: '序号',
|
||||
className: 'text-center',
|
||||
index: 'one',
|
||||
},
|
||||
{
|
||||
title: '操作时间',
|
||||
className: 'text-center',
|
||||
index: 'two',
|
||||
},
|
||||
{
|
||||
title: '操作人',
|
||||
className: 'text-center',
|
||||
index: 'three',
|
||||
},
|
||||
{ title: '状态', index: 'externalSn', className: 'text-center' },
|
||||
{
|
||||
title: '操作',
|
||||
fixed: 'right',
|
||||
width: '80px',
|
||||
className: 'text-left',
|
||||
buttons: [
|
||||
{
|
||||
text: '查看',
|
||||
click: (_record) => this.FloatView(_record),
|
||||
},
|
||||
{
|
||||
text: '撤销',
|
||||
click: (_record) => this.audit(_record),
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
}
|
||||
initSTFloatView() {
|
||||
this.columnsFloatView = [
|
||||
{
|
||||
title: '费用名称',
|
||||
width: '100px',
|
||||
className: 'text-center',
|
||||
render: 'goodsId'
|
||||
},
|
||||
{
|
||||
title: '变更前',
|
||||
width: '100px',
|
||||
className: 'text-center',
|
||||
},
|
||||
{ title: '变更值', index: 'externalSn', width: '120px', className: 'text-center' },
|
||||
{ title: '变更后', index: 'externalSn', width: '120px', className: 'text-center' }
|
||||
];
|
||||
}
|
||||
search() {
|
||||
this.st?.load(1);
|
||||
this.getGoodsSourceStatistical()
|
||||
@ -501,22 +379,6 @@ tabs = {
|
||||
this.sf.reset();
|
||||
this._$expand = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 获取录单员
|
||||
getCatalogueMember() {
|
||||
const params = {
|
||||
};
|
||||
return this.service.request(this.service.$api_get_catalogue_member, params, 'GET').pipe(
|
||||
map((res) => {
|
||||
if (res) {
|
||||
console.log(res)
|
||||
}
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
selectChange(e: number) {
|
||||
console.log(e);
|
||||
if(e>=1) {
|
||||
@ -536,41 +398,12 @@ tabs = {
|
||||
}
|
||||
audit(item: any) {
|
||||
console.log(item)
|
||||
}
|
||||
|
||||
/*
|
||||
* 审核关闭弹窗
|
||||
view: 1
|
||||
浮动费用: 0
|
||||
查看评价: 3
|
||||
*/
|
||||
handleCancel(type: string) {
|
||||
console.log(type)
|
||||
if(type === '0') {
|
||||
this.isVisible = false
|
||||
} else if(type === '1') {
|
||||
console.log(type)
|
||||
this.isVisibleView = false
|
||||
} else if(type === '2') {
|
||||
console.log(type)
|
||||
this.isVisibleEvaluate = false
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 审核通过按钮
|
||||
*/
|
||||
handleOK() {
|
||||
|
||||
}
|
||||
OpenPrice() {
|
||||
this.isVisible = true
|
||||
}
|
||||
/**
|
||||
* 浮动费用查看
|
||||
*/
|
||||
FloatView(item: any) {
|
||||
console.log(item)
|
||||
this.isVisibleView = true
|
||||
}
|
||||
/**
|
||||
*查看评价
|
||||
|
||||
@ -434,18 +434,6 @@ export class WaybillManagementVehicleComponent implements OnInit {
|
||||
this.st?.load(1);
|
||||
this.getGoodsSourceStatistical()
|
||||
}
|
||||
// 获取录单员
|
||||
getCatalogueMember() {
|
||||
const params = {};
|
||||
return this.service.request(this.service.$api_get_catalogue_member, params, 'GET').pipe(
|
||||
map(res => {
|
||||
if (res) {
|
||||
console.log(res);
|
||||
}
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
selectChange(e: number) {
|
||||
console.log(e);
|
||||
this.resourceStatus = e;
|
||||
|
||||
Reference in New Issue
Block a user