Merge branch 'develop' of https://gitlab.eascs.com/tms-ui/tms-obc-web into develop
This commit is contained in:
		@ -4,7 +4,7 @@
 | 
			
		||||
 * @Author       : Shiming
 | 
			
		||||
 * @Date         : 2022-01-18 09:51:21
 | 
			
		||||
 * @LastEditors  : Shiming
 | 
			
		||||
 * @LastEditTime : 2022-02-25 17:52:10
 | 
			
		||||
 * @LastEditTime : 2022-03-02 14:52:07
 | 
			
		||||
 * @FilePath     : \\tms-obc-web\\proxy.conf.js
 | 
			
		||||
 * Copyright (C) 2022 huzhenhong. All rights reserved.
 | 
			
		||||
 */
 | 
			
		||||
@ -20,7 +20,7 @@ module.exports = {
 | 
			
		||||
  // }
 | 
			
		||||
  '//api': {
 | 
			
		||||
    target: {
 | 
			
		||||
      host: 'tms-api-test.eascs.com',
 | 
			
		||||
      host: 'tms-api-dev.eascs.com',
 | 
			
		||||
      protocol: 'https:',
 | 
			
		||||
      port: 443
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
@ -189,7 +189,10 @@ export class FreightAccountDetailComponent implements OnInit {
 | 
			
		||||
      { title: '交易时间', index: 'createTime', type: 'date' },
 | 
			
		||||
      { title: '流水号', index: 'transactionNumber' },
 | 
			
		||||
      { title: '交易类型', index: 'tradeTypeLabel', className: 'text-center' },
 | 
			
		||||
      { title: '关联单号', index: 'businessNumber' },
 | 
			
		||||
      { title: '交易单号', index: 'businessNumber' },
 | 
			
		||||
      { title: '订单号', index: 'business2Number' },
 | 
			
		||||
      { title: '运单号', index: 'busine1ssNumber' },
 | 
			
		||||
      { title: '货主', index: 'busine11ssNumber' },
 | 
			
		||||
      { title: '所属项目', index: 'projectId' },
 | 
			
		||||
      { title: '收支类型', index: 'incomeTypeLabel', className: 'text-center' },
 | 
			
		||||
      {
 | 
			
		||||
@ -207,7 +210,10 @@ export class FreightAccountDetailComponent implements OnInit {
 | 
			
		||||
        type: 'widget',
 | 
			
		||||
        className: 'text-right',
 | 
			
		||||
        widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.accountBalance }) }
 | 
			
		||||
      }
 | 
			
		||||
      },
 | 
			
		||||
      { title: '付款方', index: 'busine111ssNumber' },
 | 
			
		||||
      { title: '收款方', index: 'payeeName' },
 | 
			
		||||
      { title: '备注', index: 'projectId1' },
 | 
			
		||||
    ];
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -167,10 +167,10 @@ export class FreightAccountComponent implements OnInit {
 | 
			
		||||
 | 
			
		||||
  private initST(): STColumn[] {
 | 
			
		||||
    return [
 | 
			
		||||
      { title: '企业名称', width: 140, index: 'tenantName' },
 | 
			
		||||
      { title: '企业名称', width: 170, index: 'tenantName' },
 | 
			
		||||
      { title: '联系人', width: 120, index: 'name' },
 | 
			
		||||
      { title: '联系人电话', width: 140, index: 'phone' },
 | 
			
		||||
      { title: '网络货运人', width: 140, index: 'ltdName' },
 | 
			
		||||
      { title: '网络货运人', width: 170, index: 'ltdName' },
 | 
			
		||||
      { title: '银行类型', width: 120, index: 'bankTypeLabel' },
 | 
			
		||||
      { title: '虚拟账户', width: 140, index: 'virtualAccount' },
 | 
			
		||||
      {
 | 
			
		||||
 | 
			
		||||
@ -45,7 +45,7 @@ export class ReceivableOrderDetailComponent implements OnInit {
 | 
			
		||||
    Object.assign(requestOptions.body, { ahxHId: this.id });
 | 
			
		||||
    if (this.sf) {
 | 
			
		||||
      Object.assign(requestOptions.body, {
 | 
			
		||||
        ...this.sf.value,
 | 
			
		||||
        ...this.sf.value
 | 
			
		||||
      });
 | 
			
		||||
      if (this.sf.value.feedate?.[0]) {
 | 
			
		||||
        Object.assign(requestOptions.body, {
 | 
			
		||||
@ -108,7 +108,7 @@ export class ReceivableOrderDetailComponent implements OnInit {
 | 
			
		||||
            widget: 'select',
 | 
			
		||||
            placeholder: '请选择',
 | 
			
		||||
            allowClear: true,
 | 
			
		||||
            asyncData: () => this.service.getCloseAccount(),
 | 
			
		||||
            asyncData: () => this.service.getCloseAccount()
 | 
			
		||||
          },
 | 
			
		||||
          default: ''
 | 
			
		||||
        },
 | 
			
		||||
@ -122,7 +122,7 @@ export class ReceivableOrderDetailComponent implements OnInit {
 | 
			
		||||
              expand: (value: boolean) => value
 | 
			
		||||
            }
 | 
			
		||||
          } as SFDateWidgetSchema
 | 
			
		||||
        },
 | 
			
		||||
        }
 | 
			
		||||
        // billTime: {
 | 
			
		||||
        //   title: '订单日期',
 | 
			
		||||
        //   type: 'string',
 | 
			
		||||
@ -146,8 +146,8 @@ export class ReceivableOrderDetailComponent implements OnInit {
 | 
			
		||||
      { title: '订单号', index: 'billHCode', width: 100 },
 | 
			
		||||
      // { title: '订单日期', index: 'billTime', width: 150 },
 | 
			
		||||
      // { title: '费用类型', index: 'cnoName', width: 90 },
 | 
			
		||||
      // { title: '订单费用科目', index: 'feeSubId', width: 100 },
 | 
			
		||||
      { title: '费用科目', index: 'feeSubId', width: 140 },
 | 
			
		||||
      { title: '订单费用科目', index: 'billLTypeLabel', width: 100 },
 | 
			
		||||
      { title: '费用科目', index: 'feeSubName', width: 140 },
 | 
			
		||||
      { title: '结算客户', index: 'cnoName', width: 100 },
 | 
			
		||||
      {
 | 
			
		||||
        title: '已收金额',
 | 
			
		||||
 | 
			
		||||
@ -22,7 +22,7 @@
 | 
			
		||||
            <!-- <button nz-button nzType="primary" [nzLoading]="service.http.loading" style="float: right;">打印</button> -->
 | 
			
		||||
        </se-title>
 | 
			
		||||
        <se label="帐套" required>
 | 
			
		||||
            {{info?.ltdId}}
 | 
			
		||||
            {{info?.vcltdcode}} - {{info?.vcltdname}}
 | 
			
		||||
        </se>
 | 
			
		||||
        <se label="凭证类型" required>
 | 
			
		||||
            {{info?.vctype}}
 | 
			
		||||
 | 
			
		||||
@ -13,9 +13,7 @@ import { Component, OnInit, ViewChild } from '@angular/core';
 | 
			
		||||
import { Router } from '@angular/router';
 | 
			
		||||
import { STComponent, STColumn, STRequestOptions, STChange } from '@delon/abc/st';
 | 
			
		||||
import { SFComponent, SFSchema, SFDateWidgetSchema } from '@delon/form';
 | 
			
		||||
import { ShipperBaseService } from '@shared';
 | 
			
		||||
import { NzModalService } from 'ng-zorro-antd/modal';
 | 
			
		||||
import { AddCollectionInvoiceModalComponent } from 'src/app/routes/ticket-management/components/input-invoice/add-collection-invoice-modal/add-collection-invoice-modal.component';
 | 
			
		||||
import { FreightAccountService } from '../../services/freight-account.service';
 | 
			
		||||
 | 
			
		||||
@Component({
 | 
			
		||||
@ -294,7 +292,7 @@ export class VoucherManagementComponent implements OnInit {
 | 
			
		||||
    return [
 | 
			
		||||
      { title: '', index: 'key', type: 'checkbox', width: 60, className: 'text-center', fixed: 'left' },
 | 
			
		||||
      { title: '凭证号', index: 'vccode', type: 'link', width: 200 },
 | 
			
		||||
      { title: '帐套', index: 'ltdId', width: 200 },
 | 
			
		||||
      { title: '帐套', index: 'ltdId', width: 200,format:item=>`${item.vcltdcode}-${item.vcltdname}` },
 | 
			
		||||
      { title: '凭证时间', index: 'vctime', type: 'date', width: 200 },
 | 
			
		||||
      { title: '凭证类型', index: 'vctype', width: 200 },
 | 
			
		||||
      { title: '序号', index: 'invmoney', width: 200, format: _ => '1' },
 | 
			
		||||
 | 
			
		||||
@ -4,7 +4,7 @@
 | 
			
		||||
 * @Author       : Shiming
 | 
			
		||||
 * @Date         : 2022-01-12 10:52:50
 | 
			
		||||
 * @LastEditors  : Shiming
 | 
			
		||||
 * @LastEditTime : 2022-03-01 13:26:59
 | 
			
		||||
 * @LastEditTime : 2022-03-02 14:56:27
 | 
			
		||||
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\bulk\\bulk.component.html
 | 
			
		||||
 * Copyright (C) 2022 huzhenhong. All rights reserved.
 | 
			
		||||
-->
 | 
			
		||||
@ -81,6 +81,9 @@
 | 
			
		||||
      <ng-template st-row="payeeName" let-item let-index="index">
 | 
			
		||||
        <div> {{ item?.payeeName }}/{{ item?.payeePhone }} </div>
 | 
			
		||||
      </ng-template>
 | 
			
		||||
      <ng-template st-row="createUserName" let-item let-index="index">
 | 
			
		||||
        <div> {{ item?.createUserName }}/{{ item?.createUserPhone }} </div>
 | 
			
		||||
      </ng-template>
 | 
			
		||||
      <ng-template st-row="billCode" let-item let-index="index">
 | 
			
		||||
        <a [routerLink]="'bulk-detail/' + item.id">{{ item.billCode }}</a>
 | 
			
		||||
        <div>
 | 
			
		||||
 | 
			
		||||
@ -429,6 +429,7 @@ export class OrderManagementBulkComponent implements OnInit {
 | 
			
		||||
        className: 'text-right',
 | 
			
		||||
        render: 'mybidDetailInfo'
 | 
			
		||||
      },
 | 
			
		||||
      { title: '录单员', render: 'createUserName', width: '200px', className: 'text-left' },
 | 
			
		||||
      { title: '网络货运人', index: 'enterpriseInfoName', width: '250px', className: 'text-left' },
 | 
			
		||||
      { title: '货主', index: 'shipperAppUserName', width: '250px', className: 'text-left' },
 | 
			
		||||
      { title: '所属项目', index: 'enterpriseProjectName', width: '250px', className: 'text-left' },
 | 
			
		||||
 | 
			
		||||
@ -4,7 +4,7 @@
 | 
			
		||||
 * @Author       : Shiming
 | 
			
		||||
 * @Date         : 2022-01-12 10:52:50
 | 
			
		||||
 * @LastEditors  : Shiming
 | 
			
		||||
 * @LastEditTime : 2022-02-28 13:59:54
 | 
			
		||||
 * @LastEditTime : 2022-03-02 14:57:31
 | 
			
		||||
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\order-management\\components\\vehicle\\vehicle.component.html
 | 
			
		||||
 * Copyright (C) 2022 huzhenhong. All rights reserved.
 | 
			
		||||
-->
 | 
			
		||||
@ -83,6 +83,9 @@
 | 
			
		||||
          <span>{{ item?.goodsNumber ? item?.goodsNumber + '件' : '' }}</span>
 | 
			
		||||
        </div>
 | 
			
		||||
      </ng-template>
 | 
			
		||||
      <ng-template st-row="createUserName" let-item let-index="index">
 | 
			
		||||
        <div> {{ item?.createUserName }}/{{ item?.createUserPhone }} </div>
 | 
			
		||||
      </ng-template>
 | 
			
		||||
      <ng-template st-row="mybidDetailInfo" let-item let-index="index">
 | 
			
		||||
        <div *ngIf="item.mybidDetailInfo.length > 0">
 | 
			
		||||
          <p *ngFor="let data of item.mybidDetailInfo">
 | 
			
		||||
 | 
			
		||||
@ -390,6 +390,7 @@ resourceStatus: any;
 | 
			
		||||
        className: 'text-right',
 | 
			
		||||
        render: 'mybidDetailInfo',
 | 
			
		||||
      },
 | 
			
		||||
      { title: '录单员', render: 'createUserName', width: '200px', className: 'text-left' },
 | 
			
		||||
      { title: '网络货运人', index: 'enterpriseInfoName', width: '250px', className: 'text-left' },
 | 
			
		||||
      { title: '货主', index: 'shipperAppUserName', width: '250px', className: 'text-left' },
 | 
			
		||||
      { title: '关联运单号', index: 'wayBillCode', width: '170px', className: 'text-left' },
 | 
			
		||||
 | 
			
		||||
@ -13,12 +13,20 @@
 | 
			
		||||
      <div nz-row>
 | 
			
		||||
        <div nz-col nzSpan="14" class="text-grey-darker">网络货运人:{{ i?.shipperAppUserName }}</div>
 | 
			
		||||
        <div nz-col nzSpan="10">
 | 
			
		||||
          <<<<<<< HEAD <button nz-button (click)="cancleGoodsSource()" *ngIf="i?.resourceStatus === '1'" acl
 | 
			
		||||
            [acl-ability]="['SUPPLY-BULK-DETAIL-cancelSupply']">取消货源</button>
 | 
			
		||||
            <button nz-button (click)="updatePrice(i)" *ngIf="i?.resourceStatus === '1'" acl
 | 
			
		||||
              [acl-ability]="['SUPPLY-BULK-DETAIL-updatePrice']">修改单价</button>
 | 
			
		||||
            <button nz-button nzType="primary" nzGhost (click)="placeOrder(i)" acl
 | 
			
		||||
              [acl-ability]="['SUPPLY-BULK-DETAIL-bulkAnotherOrder']">再下一单</button>
 | 
			
		||||
            =======
 | 
			
		||||
            <button nz-button (click)="cancleGoodsSource()" *ngIf="i?.resourceStatus === '1'" acl
 | 
			
		||||
              [acl-ability]="['SUPPLY-BULK-DETAIL-cancelSupply']">取消货源</button>
 | 
			
		||||
            <button nz-button (click)="updatePrice(i)" *ngIf="i?.resourceStatus === '1'" acl
 | 
			
		||||
              [acl-ability]="['SUPPLY-BULK-DETAIL-updatePrice']">修改单价</button>
 | 
			
		||||
            <button nz-button nzType="primary" nzGhost (click)="placeOrder(i)" acl
 | 
			
		||||
              [acl-ability]="['SUPPLY-BULK-DETAIL-bulkAnotherOrder']">再下一单</button>
 | 
			
		||||
            >>>>>>> 82c3801cc6ea10d8f6b895d85fe5553850672cea
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="mt-sm mb-sm" nz-row>
 | 
			
		||||
@ -40,13 +48,14 @@
 | 
			
		||||
    <div class="approval-status">
 | 
			
		||||
      <div style="width: 60%; margin: 0 auto">
 | 
			
		||||
        <nz-steps style="width: 70%; margin: 0 auto" [nzLabelPlacement]="'vertical'">
 | 
			
		||||
          <nz-step [nzStatus]="i?.resourceStatus !== '1' ? 'finish' : 'process'" nzIcon="solution" nzTitle="下单"
 | 
			
		||||
            [nzDescription]="i?.createTime"></nz-step>
 | 
			
		||||
          <nz-step [nzStatus]="i?.resourceStatus !== '1' ? 'finish' : 'process'" nzIcon="solution"
 | 
			
		||||
            [nzDescription]="i?.createAt" nzTitle="下单" [nzSubtitle]="i?.createTime"></nz-step>
 | 
			
		||||
          <nz-step *ngIf="i?.resourceStatus === '1' || i?.resourceStatus === '2'"
 | 
			
		||||
            [nzStatus]="i?.resourceStatus === '1' ? 'wait' : 'finish'" nzIcon="file-done"
 | 
			
		||||
            [nzTitle]="i?.resourceStatus === '2' ? '已完结' : '完结'" [nzDescription]="i?.endTime"></nz-step>
 | 
			
		||||
            [nzTitle]="i?.resourceStatus === '2' ? '已完结' : '完结'" [nzSubtitle]="i?.endTime"></nz-step>
 | 
			
		||||
 | 
			
		||||
          <nz-step nzStatus="finish" nzIcon="close-circle" nzTitle="取消货源" *ngIf="i?.resourceStatus === '3'"
 | 
			
		||||
            [nzDescription]="i?.endTime"></nz-step>
 | 
			
		||||
            [nzSubtitle]="i?.endTime"></nz-step>
 | 
			
		||||
        </nz-steps>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
 | 
			
		||||
@ -75,6 +75,9 @@
 | 
			
		||||
      [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
 | 
			
		||||
      [loading]="loading"
 | 
			
		||||
    >
 | 
			
		||||
    <ng-template st-row="createUserName" let-item let-index="index">
 | 
			
		||||
      <div> {{ item?.createUserName }}/{{ item?.createUserPhone }} </div>
 | 
			
		||||
    </ng-template>
 | 
			
		||||
      <!--运费单价  -->
 | 
			
		||||
      <ng-template st-row="freightPrice" let-item let-index="index">
 | 
			
		||||
        <div class="mr-xs">{{ item?.freightPrice | currency }} </div>
 | 
			
		||||
 | 
			
		||||
@ -255,6 +255,7 @@ export class SupplyManagementBulkComponent implements OnInit {
 | 
			
		||||
        className: 'text-left',
 | 
			
		||||
        render: 'resourceCode'
 | 
			
		||||
      },
 | 
			
		||||
      { title: '录单员', render: 'createUserName', width: '200px', className: 'text-left' },
 | 
			
		||||
      { title: '货主', index: 'shipperAppUserName', width: '220px', className: 'text-left' },
 | 
			
		||||
      { title: '项目名称', index: 'enterpriseProjectName', width: '220px', className: 'text-left' },
 | 
			
		||||
      { title: '关联订单', render: 'orderSn', width: '200px', className: 'text-left' },
 | 
			
		||||
 | 
			
		||||
@ -4,15 +4,12 @@
 | 
			
		||||
 * @Author       : Shiming
 | 
			
		||||
 * @Date         : 2022-01-12 10:52:50
 | 
			
		||||
 * @LastEditors  : Shiming
 | 
			
		||||
 * @LastEditTime : 2022-01-18 17:27:53
 | 
			
		||||
 * @LastEditTime : 2022-03-02 14:27:20
 | 
			
		||||
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\supply-management\\components\\choose-famifiar\\choose-famifiar.component.html
 | 
			
		||||
 * Copyright (C) 2022 huzhenhong. All rights reserved.
 | 
			
		||||
-->
 | 
			
		||||
 | 
			
		||||
<button nz-button nzType="primary" style="margin-bottom: 24px" (click)="add()"><i nz-icon nzType="plus"></i>添加司机</button>
 | 
			
		||||
<!-- <button nz-button nzType="primary" style="margin-bottom: 24px" (click)="add()"><i nz-icon nzType="plus"></i>添加司机</button> -->
 | 
			
		||||
<!-- 搜索区 -->
 | 
			
		||||
<div nz-row nzGutter="8">
 | 
			
		||||
  <div nz-col [nzSpan]="12">
 | 
			
		||||
<div nz-row nzGutter="8">
 | 
			
		||||
  <div nz-col [nzSpan]="18">
 | 
			
		||||
    <sf #sf [ui]="ui" [schema]="schema" [button]="'none'"></sf>
 | 
			
		||||
@ -22,30 +19,20 @@
 | 
			
		||||
    <button nz-button (click)="resetSF()">重置</button>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
<div nz-row nzGutter="8">
 | 
			
		||||
  <div nz-col [nzSpan]="12">
 | 
			
		||||
    <!-- 数据列表 -->
 | 
			
		||||
    <st
 | 
			
		||||
      #st
 | 
			
		||||
      *ngIf="columns"
 | 
			
		||||
      [bordered]="true"
 | 
			
		||||
      [data]="service.$api_getList_card"
 | 
			
		||||
      [columns]="columns"
 | 
			
		||||
      size="small"
 | 
			
		||||
    <st #st [bordered]="true" [data]="service.$api_getListCars" [columns]="columns" size="small"
 | 
			
		||||
      [req]="{ method: 'POST', allInBody: true, reName: { pi: 'pageIndex', ps: 'pageSize' }, params: reqParams }"
 | 
			
		||||
      [res]="{ reName: { list: 'data.records', total: 'data.total' }, process: reqProcess }"
 | 
			
		||||
      [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
 | 
			
		||||
      [loading]="service.http.loading"
 | 
			
		||||
      [widthMode]="{ type: 'strict' }"
 | 
			
		||||
      [scroll]="{ x: '600px' }"
 | 
			
		||||
      style="margin-top: 22px; width: 100%"
 | 
			
		||||
    >
 | 
			
		||||
      [loadingDelay]="500" [loading]="service.http.loading" [widthMode]="{ type: 'strict' }" [scroll]="{ x: '600px' }"
 | 
			
		||||
      style="margin-top: 22px">
 | 
			
		||||
      <ng-template st-row="userCarLicenseDesensitizationVOList" let-item let-index="index">
 | 
			
		||||
        <nz-select [(ngModel)]="item.default" (ngModelChange)="carChange($event, item)" style="width: 100%">
 | 
			
		||||
          <nz-option nzValue="" nzLabel="不限"></nz-option>
 | 
			
		||||
          <nz-option [nzValue]="cart" [nzLabel]="cart.carNo" *ngFor="let cart of item.userCarLicenseDesensitizationVOList"> </nz-option>
 | 
			
		||||
          <nz-option [nzValue]="cart" [nzLabel]="cart.carNo"
 | 
			
		||||
            *ngFor="let cart of item.userCarLicenseDesensitizationVOList"> </nz-option>
 | 
			
		||||
        </nz-select>
 | 
			
		||||
      </ng-template>
 | 
			
		||||
    </st>
 | 
			
		||||
@ -53,21 +40,18 @@
 | 
			
		||||
  <div nz-col [nzSpan]="12">
 | 
			
		||||
    <!-- 选中列表 -->
 | 
			
		||||
    <div>已选择{{ st2Data.length }}位司机</div>
 | 
			
		||||
    <st
 | 
			
		||||
      #st2
 | 
			
		||||
      *ngIf="columns2"
 | 
			
		||||
      [bordered]="true"
 | 
			
		||||
      [data]="st2Data"
 | 
			
		||||
      [columns]="columns2"
 | 
			
		||||
      size="small"
 | 
			
		||||
      [page]="{ show: false }"
 | 
			
		||||
      [scroll]="{ x: '600px', y: '300px' }"
 | 
			
		||||
      style="width: 100%"
 | 
			
		||||
    >
 | 
			
		||||
    <st #st2 [bordered]="true" [data]="st2Data" [columns]="columns2" size="small"
 | 
			
		||||
      [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" [loading]="service.http.loading" [widthMode]="{ type: 'strict' }" [scroll]="{ x: '600px' }">
 | 
			
		||||
      <ng-template st-row="captain" let-item let-index="index">
 | 
			
		||||
        <span>{{ item.captainName }} {{ item.captainPhone }}</span>  
 | 
			
		||||
        <a (click)="setCaptain(item, index)">设置</a>
 | 
			
		||||
      </ng-template>
 | 
			
		||||
      <ng-template st-row="defaultCar" let-item let-index="index">
 | 
			
		||||
        {{item.default?.carNo}}
 | 
			
		||||
      </ng-template>
 | 
			
		||||
    </st>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
@ -3,7 +3,7 @@ import { ActivatedRoute, Router } from '@angular/router';
 | 
			
		||||
import { STChange, STColumn, STComponent, STData, STRequestOptions } from '@delon/abc/st';
 | 
			
		||||
import { SFComponent, SFSchema, SFSelectWidgetSchema, SFUISchema } from '@delon/form';
 | 
			
		||||
import { ModalHelper } from '@delon/theme';
 | 
			
		||||
import { processSingleSort } from '@shared';
 | 
			
		||||
import { EAEnvironmentService, processSingleSort } from '@shared';
 | 
			
		||||
import { NzDrawerRef, NzDrawerService } from 'ng-zorro-antd/drawer';
 | 
			
		||||
import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal';
 | 
			
		||||
import { SupplyManagementAddDriversComponent } from 'src/app/routes/supply-management/components/add-drivers/add-drivers.component';
 | 
			
		||||
@ -37,7 +37,7 @@ export class PublishGoodsChooseFamifiarComponent implements OnInit {
 | 
			
		||||
  submitUrl = '';
 | 
			
		||||
 | 
			
		||||
  @Input()
 | 
			
		||||
  submitParams = {};
 | 
			
		||||
  submitParams:any;
 | 
			
		||||
 | 
			
		||||
  constructor(
 | 
			
		||||
    private modal: NzModalRef,
 | 
			
		||||
@ -47,7 +47,7 @@ export class PublishGoodsChooseFamifiarComponent implements OnInit {
 | 
			
		||||
    public service: SupplyManagementService,
 | 
			
		||||
    private modalService: NzModalService,
 | 
			
		||||
    private modalHelper: ModalHelper,
 | 
			
		||||
    private cdr: ChangeDetectorRef
 | 
			
		||||
    private envSrv: EAEnvironmentService
 | 
			
		||||
  ) { }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
@ -61,26 +61,23 @@ export class PublishGoodsChooseFamifiarComponent implements OnInit {
 | 
			
		||||
  }
 | 
			
		||||
  ngOnInit() {
 | 
			
		||||
    this.initSF();
 | 
			
		||||
 | 
			
		||||
    setTimeout(() => {
 | 
			
		||||
    this.initST();
 | 
			
		||||
    this.initST2();
 | 
			
		||||
    }, 200);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  initSF() {
 | 
			
		||||
    this.schema = {
 | 
			
		||||
      properties: {
 | 
			
		||||
        name: {
 | 
			
		||||
        nameOrPhone: {
 | 
			
		||||
          type: 'string',
 | 
			
		||||
          title: '',
 | 
			
		||||
          title: '承运司机',
 | 
			
		||||
          ui: {
 | 
			
		||||
            placeholder: '请输入司机姓名/手机号'
 | 
			
		||||
          }
 | 
			
		||||
        },
 | 
			
		||||
        name2: {
 | 
			
		||||
        carNo: {
 | 
			
		||||
          type: 'string',
 | 
			
		||||
          title: '',
 | 
			
		||||
          title: '车牌号',
 | 
			
		||||
          ui: {
 | 
			
		||||
            placeholder: '请输入车牌号'
 | 
			
		||||
          }
 | 
			
		||||
@ -98,13 +95,11 @@ export class PublishGoodsChooseFamifiarComponent implements OnInit {
 | 
			
		||||
    this.columns = [
 | 
			
		||||
      {
 | 
			
		||||
        title: '司机姓名',
 | 
			
		||||
        index: 'name',
 | 
			
		||||
        width: 120
 | 
			
		||||
        index: 'name'
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        title: '手机号',
 | 
			
		||||
        index: 'telephone',
 | 
			
		||||
        width: 120
 | 
			
		||||
        index: 'telephone'
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        title: '指定车辆',
 | 
			
		||||
@ -115,7 +110,6 @@ export class PublishGoodsChooseFamifiarComponent implements OnInit {
 | 
			
		||||
        title: '状态',
 | 
			
		||||
        className: 'text-center',
 | 
			
		||||
        index: 'certificationStatus',
 | 
			
		||||
        width: 120,
 | 
			
		||||
        type: 'badge',
 | 
			
		||||
        badge: {
 | 
			
		||||
          '-1': { text: '未提交', color: 'default' },
 | 
			
		||||
@ -127,12 +121,11 @@ export class PublishGoodsChooseFamifiarComponent implements OnInit {
 | 
			
		||||
      {
 | 
			
		||||
        title: '操作',
 | 
			
		||||
        className: 'text-center',
 | 
			
		||||
        width: 80,
 | 
			
		||||
        buttons: [
 | 
			
		||||
          {
 | 
			
		||||
            text: '选择',
 | 
			
		||||
            iif: item => item.showChoose != false,
 | 
			
		||||
            click: (_record, _modal, _instance) => this.choose(_record),
 | 
			
		||||
            click: (_record, _modal, _instance) => this.verifyVechicleStatus(_record),
 | 
			
		||||
            iifBehavior: 'disabled'
 | 
			
		||||
          }
 | 
			
		||||
        ]
 | 
			
		||||
@ -145,7 +138,7 @@ export class PublishGoodsChooseFamifiarComponent implements OnInit {
 | 
			
		||||
      {
 | 
			
		||||
        title: '司机姓名',
 | 
			
		||||
        index: 'name',
 | 
			
		||||
        width: 120
 | 
			
		||||
        width: '90px'
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        title: '手机号',
 | 
			
		||||
@ -155,17 +148,17 @@ export class PublishGoodsChooseFamifiarComponent implements OnInit {
 | 
			
		||||
      {
 | 
			
		||||
        title: '车队长',
 | 
			
		||||
        render: 'captain',
 | 
			
		||||
        width: '100px'
 | 
			
		||||
        width: '200px'
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        title: '指定车辆',
 | 
			
		||||
        index: 'carNo',
 | 
			
		||||
        render: 'defaultCar',
 | 
			
		||||
        width: '130px'
 | 
			
		||||
      },
 | 
			
		||||
      {
 | 
			
		||||
        title: '操作',
 | 
			
		||||
        className: 'text-center',
 | 
			
		||||
        width: 80,
 | 
			
		||||
        width: '90px',
 | 
			
		||||
        buttons: [
 | 
			
		||||
          {
 | 
			
		||||
            text: '移除',
 | 
			
		||||
@ -198,6 +191,23 @@ export class PublishGoodsChooseFamifiarComponent implements OnInit {
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * 校验司机是否能设置车队长
 | 
			
		||||
   * @param item 当前对象
 | 
			
		||||
   */
 | 
			
		||||
  verifyCanSetCarCaptain(item: any, index: any) {
 | 
			
		||||
    this.service.request(this.service.$api_get_sys_config, [{ itemKey: 'sys.config.shipper.setCarCaptain', businessId: this.envSrv.env.enterpriseId }]).subscribe(res => {
 | 
			
		||||
      if (res && res.length > 0) {
 | 
			
		||||
        const { itemValue } = res[0];
 | 
			
		||||
        if (itemValue !== '1') {
 | 
			
		||||
          this.service.msgSrv.error('不可设置车队长!');
 | 
			
		||||
          return;
 | 
			
		||||
        }
 | 
			
		||||
        this.setCaptain(item, index);
 | 
			
		||||
      }
 | 
			
		||||
    })
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  //设置车队长
 | 
			
		||||
  setCaptain(record: STData, index: any) {
 | 
			
		||||
    this.modalHelper
 | 
			
		||||
@ -260,5 +270,53 @@ export class PublishGoodsChooseFamifiarComponent implements OnInit {
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  carChange(event: any, item: STData) {}
 | 
			
		||||
  carChange(event: any, item: STData) {
 | 
			
		||||
    
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
   /**
 | 
			
		||||
 * 验证车辆的状态
 | 
			
		||||
 */
 | 
			
		||||
    verifyVechicleStatus(_record: STData) {
 | 
			
		||||
      const { carId, appUserId: driverId, captainAppUserId: carCaptainId } = _record;
 | 
			
		||||
      const carInfo: any = { carId, driverId, carCaptainId };
 | 
			
		||||
      const goodsInfoList = this.submitParams?.goodsInfoList;
 | 
			
		||||
      this.service.request(this.service.$api_verify_vehicle_status, { ...carInfo, goodsInfoList }).subscribe((res: any) => {
 | 
			
		||||
        if (res) {
 | 
			
		||||
          const { title, alert, subContent, content } = res;
 | 
			
		||||
          switch (alert) {
 | 
			
		||||
            case 'Error':
 | 
			
		||||
              this.error(title, content, subContent);
 | 
			
		||||
              break;
 | 
			
		||||
            case 'Warn':
 | 
			
		||||
              this.showConfirm(_record, title, content, subContent);
 | 
			
		||||
              break;
 | 
			
		||||
            case 'Success':
 | 
			
		||||
              this.choose(_record);
 | 
			
		||||
              break;
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      });
 | 
			
		||||
  
 | 
			
		||||
    }
 | 
			
		||||
  
 | 
			
		||||
    error(title: string, content: string, subContent: string): void {
 | 
			
		||||
      this.modalService.error({
 | 
			
		||||
        nzTitle: title,
 | 
			
		||||
        nzContent: `<span class="text-error-dark">${content ? content : ''}</span><span class="text-grey-dark">${subContent ? subContent : ''}</span>`,
 | 
			
		||||
        nzOkText: '知道了'
 | 
			
		||||
      });
 | 
			
		||||
    }
 | 
			
		||||
  
 | 
			
		||||
    showConfirm(_record: STData, title: string, content: string, subContent: string): void {
 | 
			
		||||
      this.modalService.confirm({
 | 
			
		||||
        nzTitle: title,
 | 
			
		||||
        nzContent: `<span class="text-error-dark">${content ? content : ''}</span><span class="text-grey-dark">${subContent ? subContent : ''}</span>`,
 | 
			
		||||
        nzOkText: '继续',
 | 
			
		||||
        nzCancelText: '取消',
 | 
			
		||||
        nzOnOk: () => {
 | 
			
		||||
          this.choose(_record);
 | 
			
		||||
        }
 | 
			
		||||
      });
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,13 @@
 | 
			
		||||
/*
 | 
			
		||||
 * @Description  : 
 | 
			
		||||
 * @Version      : 1.0
 | 
			
		||||
 * @Author       : Shiming
 | 
			
		||||
 * @Date         : 2021-12-06 15:17:52
 | 
			
		||||
 * @LastEditors  : Shiming
 | 
			
		||||
 * @LastEditTime : 2022-03-02 14:29:12
 | 
			
		||||
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\supply-management\\components\\choose-famifiar\\set-captain\\set-captain.component.ts
 | 
			
		||||
 * Copyright (C) 2022 huzhenhong. All rights reserved.
 | 
			
		||||
 */
 | 
			
		||||
import { AfterViewInit, ChangeDetectorRef, Component, OnChanges, OnInit, ViewChild } from '@angular/core';
 | 
			
		||||
import { ActivatedRoute } from '@angular/router';
 | 
			
		||||
import { SFComponent, SFSchema, SFSchemaEnumType, SFUISchema } from '@delon/form';
 | 
			
		||||
@ -16,7 +26,7 @@ export class PublishchooseFamifiarSetCaptainComponent implements OnInit {
 | 
			
		||||
 | 
			
		||||
  i: any;
 | 
			
		||||
 | 
			
		||||
  constructor(public http: _HttpClient, private cdr: ChangeDetectorRef, private route: ActivatedRoute) {}
 | 
			
		||||
  constructor(public http: _HttpClient, private cdr: ChangeDetectorRef, private route: ActivatedRoute, private modal: NzModalRef,) {}
 | 
			
		||||
 | 
			
		||||
  ngOnInit(): void {
 | 
			
		||||
    this.initSF();
 | 
			
		||||
@ -24,12 +34,11 @@ export class PublishchooseFamifiarSetCaptainComponent implements OnInit {
 | 
			
		||||
  initSF() {
 | 
			
		||||
    this.schema = {
 | 
			
		||||
      properties: {
 | 
			
		||||
        name: {
 | 
			
		||||
        captainPhone: {
 | 
			
		||||
          type: 'string',
 | 
			
		||||
          title: '车队长手机号'
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      required: ['name']
 | 
			
		||||
    };
 | 
			
		||||
    this.ui = {
 | 
			
		||||
      '*': {
 | 
			
		||||
@ -39,6 +48,6 @@ export class PublishchooseFamifiarSetCaptainComponent implements OnInit {
 | 
			
		||||
    };
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  close() {}
 | 
			
		||||
  save() {}
 | 
			
		||||
  close() {this.modal.close()}
 | 
			
		||||
  save() {this.modal.close(this.sf.value.captainPhone)}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -13,6 +13,15 @@
 | 
			
		||||
      <div nz-row>
 | 
			
		||||
        <div nz-col nzSpan="14" class="text-grey-darker">网络货运人:{{ i?.enterpriseInfoName }}</div>
 | 
			
		||||
        <div nz-col nzSpan="10">
 | 
			
		||||
          <<<<<<< HEAD <button nz-button (click)="cancleGoodsSource()" *ngIf="i?.resourceStatus  === '1'" acl
 | 
			
		||||
            [acl-ability]="['SUPPLY-VEHICLE-DETAIL-cancelSupply']">取消货源</button>
 | 
			
		||||
            <button nz-button (click)="assignedCar(i)" *ngIf="i?.resourceStatus  === '1' && i?.serviceType === '2'" acl
 | 
			
		||||
              [acl-ability]="['SUPPLY-VEHICLE-DETAIL-vehicleAnew']">重新指派</button>
 | 
			
		||||
            <button nz-button (click)="updateGoodsSource(i)" *ngIf="i?.resourceStatus === '1'" acl
 | 
			
		||||
              [acl-ability]="['SUPPLY-VEHICLE-DETAIL-changeSupply']">修改货源</button>
 | 
			
		||||
            <button nz-button nzType="primary" nzGhost (click)="nextOrder(i)" acl
 | 
			
		||||
              [acl-ability]="['SUPPLY-VEHICLE-DETAIL-vehiclePlaceOrder']">再下一单</button>
 | 
			
		||||
            =======
 | 
			
		||||
            <button nz-button (click)="cancleGoodsSource()" *ngIf="i?.resourceStatus === '1'" acl
 | 
			
		||||
              [acl-ability]="['SUPPLY-VEHICLE-DETAIL-cancelSupply']">取消货源</button>
 | 
			
		||||
            <button nz-button (click)="assignedCar(i)" *ngIf="i?.resourceStatus === '1' && i?.serviceType === '2'" acl
 | 
			
		||||
@ -21,6 +30,7 @@
 | 
			
		||||
              [acl-ability]="['SUPPLY-VEHICLE-DETAIL-changeSupply']">修改货源</button>
 | 
			
		||||
            <button nz-button nzType="primary" nzGhost (click)="nextOrder(i)" acl
 | 
			
		||||
              [acl-ability]="['SUPPLY-VEHICLE-DETAIL-vehiclePlaceOrder']">再下一单</button>
 | 
			
		||||
            >>>>>>> 82c3801cc6ea10d8f6b895d85fe5553850672cea
 | 
			
		||||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="mt-sm mb-sm" nz-row>
 | 
			
		||||
@ -43,18 +53,17 @@
 | 
			
		||||
      <div style="width: 60%; margin: 0 auto">
 | 
			
		||||
        <nz-steps [nzLabelPlacement]="'vertical'">
 | 
			
		||||
          <nz-step [nzStatus]="i?.resourceStatus !== '1' ? 'finish' : 'process'" nzIcon="solution"
 | 
			
		||||
            [nzDescription]="i?.createTime" nzTitle="下单"></nz-step>
 | 
			
		||||
            [nzDescription]="i?.createAt" nzTitle="下单" [nzSubtitle]="i?.createTime"></nz-step>
 | 
			
		||||
          <nz-step *ngIf="i?.resourceStatus === '1' || i?.resourceStatus === '2'"
 | 
			
		||||
            [nzStatus]="i?.resourceStatus === '1' ? 'wait' : 'finish'" nzIcon="file-done" [nzTitle]="'接单'"
 | 
			
		||||
            [nzDescription]="i?.orderReceivingTime"></nz-step>
 | 
			
		||||
            [nzSubtitle]="i?.orderReceivingTime"></nz-step>
 | 
			
		||||
          <nz-step nzStatus="finish" nzIcon="close-circle" nzTitle="取消货源" *ngIf="i?.resourceStatus === '3'"
 | 
			
		||||
            [nzDescription]="i?.endTime"></nz-step>
 | 
			
		||||
            [nzSubtitle]="i?.endTime"></nz-step>
 | 
			
		||||
        </nz-steps>
 | 
			
		||||
      </div>
 | 
			
		||||
    </div>
 | 
			
		||||
  </nz-card>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  <nz-card nzTitle="基本信息">
 | 
			
		||||
    <sv-container col="2">
 | 
			
		||||
      <sv-title>货物信息</sv-title>
 | 
			
		||||
@ -62,9 +71,7 @@
 | 
			
		||||
        <sv label="货物名称">
 | 
			
		||||
          {{ item.goodsName }}
 | 
			
		||||
        </sv>
 | 
			
		||||
        <sv label="货物数量">
 | 
			
		||||
          {{item.weight}}吨,{{item.volume}}方,{{item.number}}件
 | 
			
		||||
        </sv>
 | 
			
		||||
        <sv label="货物数量"> {{ item.weight }}吨,{{ item.volume }}方,{{ item.number }}件 </sv>
 | 
			
		||||
      </ng-container>
 | 
			
		||||
    </sv-container>
 | 
			
		||||
    <sv-container class="mt-md">
 | 
			
		||||
@ -128,9 +135,7 @@
 | 
			
		||||
      <sv label="货物价值">
 | 
			
		||||
        {{ i?.goodsValue | currency }}
 | 
			
		||||
      </sv>
 | 
			
		||||
      <sv label="保价费金额">
 | 
			
		||||
        {{i?.insurancePremium |currency}} 元
 | 
			
		||||
      </sv>
 | 
			
		||||
      <sv label="保价费金额"> {{ i?.insurancePremium | currency }} 元 </sv>
 | 
			
		||||
    </sv-container>
 | 
			
		||||
  </nz-card>
 | 
			
		||||
  <nz-card [nzTitle]="'运费信息(到货后' + i?.paymentDays + '天内支付运费)'">
 | 
			
		||||
@ -152,7 +157,7 @@
 | 
			
		||||
        <h3>
 | 
			
		||||
          <label>总计 :</label>
 | 
			
		||||
          <span class="text-error-dark text-xl">
 | 
			
		||||
            {{(i?.totalAmount) | currency}}
 | 
			
		||||
            {{ i?.totalAmount | currency }}
 | 
			
		||||
          </span>
 | 
			
		||||
          <span>(运费{{ i?.totalFreight | currency }}含附加运费 {{ i?.totalSurcharge | currency }})</span>
 | 
			
		||||
        </h3>
 | 
			
		||||
@ -180,7 +185,6 @@
 | 
			
		||||
    </sv-container>
 | 
			
		||||
  </nz-card>
 | 
			
		||||
  <nz-card nzTitle="操作日志">
 | 
			
		||||
    <st #st [data]="i?.auditRecordList" [columns]="logColumns" [ps]="0" [page]="{ show: false, showSize: false }">
 | 
			
		||||
    </st>
 | 
			
		||||
    <st #st [data]="i?.auditRecordList" [columns]="logColumns" [ps]="0" [page]="{ show: false, showSize: false }"> </st>
 | 
			
		||||
  </nz-card>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
@ -71,6 +71,9 @@
 | 
			
		||||
      [loading]="loading"
 | 
			
		||||
      [scroll]="{ x: '1200px', y: '500px' }"
 | 
			
		||||
    >
 | 
			
		||||
    <ng-template st-row="createUserName" let-item let-index="index">
 | 
			
		||||
      <div> {{ item?.createUserName }}/{{ item?.createUserPhone }} </div>
 | 
			
		||||
    </ng-template>
 | 
			
		||||
      <ng-template st-row="resourceCode" let-item let-index="index">
 | 
			
		||||
        <a [routerLink]="'vehicle-detail/' + item?.id">{{ item?.resourceCode }}</a>
 | 
			
		||||
        <p>{{ item?.resourceTypeLabel }}{{ item?.serviceTypeLabel }}</p>
 | 
			
		||||
 | 
			
		||||
@ -58,7 +58,7 @@ export class SupplyManagementVehicleComponent implements OnInit {
 | 
			
		||||
    if (this.resourceStatus) {
 | 
			
		||||
      a.resourceStatus = this.resourceStatus;
 | 
			
		||||
    }
 | 
			
		||||
    this.loading = true
 | 
			
		||||
    this.loading = true;
 | 
			
		||||
    return {
 | 
			
		||||
      ...a
 | 
			
		||||
    };
 | 
			
		||||
@ -81,10 +81,10 @@ export class SupplyManagementVehicleComponent implements OnInit {
 | 
			
		||||
    return requestOptions;
 | 
			
		||||
  };
 | 
			
		||||
  afterRes = (data: any[], rawData?: any) => {
 | 
			
		||||
    this.loading = false
 | 
			
		||||
    this.loading = false;
 | 
			
		||||
    return data.map(item => ({
 | 
			
		||||
      ...item,
 | 
			
		||||
      disabled: item.auditStatus !== '1',
 | 
			
		||||
      disabled: item.auditStatus !== '1'
 | 
			
		||||
    }));
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
@ -362,7 +362,7 @@ export class SupplyManagementVehicleComponent implements OnInit {
 | 
			
		||||
            },
 | 
			
		||||
            allowClear: true,
 | 
			
		||||
            onSearch: (q: any) => {
 | 
			
		||||
              let str =q.replace(/^\s+|\s+$/g,"");
 | 
			
		||||
              let str = q.replace(/^\s+|\s+$/g, '');
 | 
			
		||||
              if (str) {
 | 
			
		||||
                return this.service
 | 
			
		||||
                  .request(this.service.$api_enterpriceList, { enterpriseName: str })
 | 
			
		||||
@ -477,12 +477,14 @@ export class SupplyManagementVehicleComponent implements OnInit {
 | 
			
		||||
        className: 'text-left',
 | 
			
		||||
        render: 'resourceCode'
 | 
			
		||||
      },
 | 
			
		||||
      { title: '录单员', render: 'createUserName', width: '200px', className: 'text-left' },
 | 
			
		||||
      {
 | 
			
		||||
        title: '货主',
 | 
			
		||||
        index: 'shipperAppUserName',
 | 
			
		||||
        width: '180px',
 | 
			
		||||
        className: 'text-left'
 | 
			
		||||
      },
 | 
			
		||||
  
 | 
			
		||||
      {
 | 
			
		||||
        title: '项目名称',
 | 
			
		||||
        index: 'enterpriseProjectName',
 | 
			
		||||
@ -606,8 +608,7 @@ export class SupplyManagementVehicleComponent implements OnInit {
 | 
			
		||||
            iif: item => item.resourceStatus === '1' && item.serviceType === '2',
 | 
			
		||||
            acl: { ability: ['SUPPLY-INDEX-vehicleReassign'] }
 | 
			
		||||
          },
 | 
			
		||||
          {type: 'divider'},
 | 
			
		||||
 | 
			
		||||
          { type: 'divider' }
 | 
			
		||||
        ]
 | 
			
		||||
      }
 | 
			
		||||
    ];
 | 
			
		||||
 | 
			
		||||
@ -4,7 +4,7 @@
 | 
			
		||||
 * @Author       : Shiming
 | 
			
		||||
 * @Date         : 2021-12-03 11:10:14
 | 
			
		||||
 * @LastEditors  : Shiming
 | 
			
		||||
 * @LastEditTime : 2022-03-02 10:10:18
 | 
			
		||||
 * @LastEditTime : 2022-03-02 14:27:18
 | 
			
		||||
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\supply-management\\services\\supply-management.service.ts
 | 
			
		||||
 * Copyright (C) 2022 huzhenhong. All rights reserved.
 | 
			
		||||
 */
 | 
			
		||||
@ -165,4 +165,6 @@ export class SupplyManagementService extends BaseService {
 | 
			
		||||
  public $api_getNetworkTransporter = '/api/mdc/cuc/enterpriseInfo/operate/getNetworkTransporter';
 | 
			
		||||
  $api_verify_vehicle_status = `/api/sdc/goodsResourceShipper/saveVerify`;// 发布货源校验司机/车队长的状态
 | 
			
		||||
  $api_get_sys_config = `/api/mdc/pbc/sysConfigItem/findConfigValues`; // 根据项key、业务id获取配置信息
 | 
			
		||||
    // 获取指派熟车列表
 | 
			
		||||
    $api_getListCars = '/api/mdc/cuc/enterpriseVehicle/getPracticeCarList';
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -11,34 +11,17 @@
 | 
			
		||||
        <img [src]="userDetail?.avatar" />
 | 
			
		||||
        <div style="flex: 1">
 | 
			
		||||
          <div style="display: flex; width: 100%; justify-content: space-between">
 | 
			
		||||
            <p style="padding-right: 80px; width: 400px"
 | 
			
		||||
              >{{ userDetail?.name }}
 | 
			
		||||
            <p style="padding-right: 80px; width: 400px">{{ userDetail?.name }}
 | 
			
		||||
              <nz-badge nzStatus="success" nzText="正常" *ngIf="!userDetail?.stateLocked" class="ml-xl"> </nz-badge>
 | 
			
		||||
              <nz-badge nzStatus="warning" nzText="冻结" *ngIf="userDetail?.stateLocked" class="ml-xl"> </nz-badge>
 | 
			
		||||
            </p>
 | 
			
		||||
            <div style="margin-right: 24px">
 | 
			
		||||
              <button
 | 
			
		||||
                *ngIf="userDetail?.stateLocked"
 | 
			
		||||
                [nzLoading]="service.http.loading"
 | 
			
		||||
                nz-button
 | 
			
		||||
                nzType="primary"
 | 
			
		||||
                nzGhost
 | 
			
		||||
                (click)="userAction(1)"
 | 
			
		||||
                acl
 | 
			
		||||
                [acl-ability]="['USERCENTER-DRIVER-CAPTAIN-DETAIL-lock']"
 | 
			
		||||
              >
 | 
			
		||||
              <button *ngIf="userDetail?.stateLocked" [nzLoading]="service.http.loading" nz-button nzType="primary"
 | 
			
		||||
                nzGhost (click)="userAction(1)" acl [acl-ability]="['USERCENTER-DRIVER-CAPTAIN-DETAIL-lock']">
 | 
			
		||||
                启用
 | 
			
		||||
              </button>
 | 
			
		||||
              <button
 | 
			
		||||
                *ngIf="!userDetail?.stateLocked"
 | 
			
		||||
                [nzLoading]="service.http.loading"
 | 
			
		||||
                nz-button
 | 
			
		||||
                nzDanger
 | 
			
		||||
                nzGhost
 | 
			
		||||
                (click)="userAction(0)"
 | 
			
		||||
                acl
 | 
			
		||||
                [acl-ability]="['USERCENTER-DRIVER-CAPTAIN-DETAIL-lock']"
 | 
			
		||||
              >
 | 
			
		||||
              <button *ngIf="!userDetail?.stateLocked" [nzLoading]="service.http.loading" nz-button nzDanger nzGhost
 | 
			
		||||
                (click)="userAction(0)" acl [acl-ability]="['USERCENTER-DRIVER-CAPTAIN-DETAIL-lock']">
 | 
			
		||||
                冻结
 | 
			
		||||
              </button>
 | 
			
		||||
            </div>
 | 
			
		||||
@ -56,13 +39,12 @@
 | 
			
		||||
<nz-card [nzLoading]="service.http.loading">
 | 
			
		||||
  <div [class]="isEditUser ? 'edit-box' : 'readOnly-box'">
 | 
			
		||||
    <sv-container col="2">
 | 
			
		||||
      <sv-title
 | 
			
		||||
        >个人信息
 | 
			
		||||
        <label *ngIf="userIdentityDetail?.certificationStatus === 1" style="color: #52c41a" class="ml-md"
 | 
			
		||||
          ><i nz-icon nzType="check-circle" nzTheme="fill" class="mr-xs"></i>审核通过
 | 
			
		||||
      <sv-title>个人信息
 | 
			
		||||
        <label *ngIf="userIdentityDetail?.certificationStatus === 1" style="color: #52c41a" class="ml-md"><i nz-icon
 | 
			
		||||
            nzType="check-circle" nzTheme="fill" class="mr-xs"></i>审核通过
 | 
			
		||||
        </label>
 | 
			
		||||
        <label *ngIf="userIdentityDetail?.certificationStatus === 2" style="color: #ff4d4f" class="ml-md"
 | 
			
		||||
          ><i nz-icon nzType="close-circle" nzTheme="fill" class="mr-xs"></i>驳回
 | 
			
		||||
        <label *ngIf="userIdentityDetail?.certificationStatus === 2" style="color: #ff4d4f" class="ml-md"><i nz-icon
 | 
			
		||||
            nzType="close-circle" nzTheme="fill" class="mr-xs"></i>驳回
 | 
			
		||||
        </label>
 | 
			
		||||
        <div style="float: right">
 | 
			
		||||
          <ng-container *ngIf="isEditUser; else elseTemplate">
 | 
			
		||||
@ -70,40 +52,28 @@
 | 
			
		||||
            <button [nzLoading]="service.http.loading" nz-button nzDanger (click)="saveUser()"> 保存 </button>
 | 
			
		||||
          </ng-container>
 | 
			
		||||
          <ng-template #elseTemplate>
 | 
			
		||||
            <button nz-button nzType="default" nzDanger (click)="approveUser()" *ngIf="userIdentityDetail?.certificationStatus === 0"
 | 
			
		||||
            acl  [acl-ability]="['USERCENTER-DRIVER-CAPTAIN-DETAIL-audit']">审核通过</button
 | 
			
		||||
            >
 | 
			
		||||
            <button nz-button nzType="default" nzDanger (click)="rejectedUser()" *ngIf="userIdentityDetail?.certificationStatus === 0"
 | 
			
		||||
            acl  [acl-ability]="['USERCENTER-DRIVER-CAPTAIN-DETAIL-audit']" >驳回审核</button
 | 
			
		||||
            >
 | 
			
		||||
            <button nz-button nzType="default" nzDanger (click)="ratify()" acl  [acl-ability]="['USERCENTER-DRIVER-CAPTAIN-DETAIL-edit']">修改</button>
 | 
			
		||||
            <button nz-button nzType="default" nzDanger (click)="approveUser()"
 | 
			
		||||
              *ngIf="userIdentityDetail?.certificationStatus === 0" acl
 | 
			
		||||
              [acl-ability]="['USERCENTER-DRIVER-CAPTAIN-DETAIL-audit']">审核通过</button>
 | 
			
		||||
            <button nz-button nzType="default" nzDanger (click)="rejectedUser()"
 | 
			
		||||
              *ngIf="userIdentityDetail?.certificationStatus === 0" acl
 | 
			
		||||
              [acl-ability]="['USERCENTER-DRIVER-CAPTAIN-DETAIL-audit']">驳回审核</button>
 | 
			
		||||
            <button nz-button nzType="default" nzDanger (click)="ratify()" acl
 | 
			
		||||
              [acl-ability]="['USERCENTER-DRIVER-CAPTAIN-DETAIL-edit']">修改</button>
 | 
			
		||||
          </ng-template>
 | 
			
		||||
        </div>
 | 
			
		||||
      </sv-title>
 | 
			
		||||
      <sv label="姓名">
 | 
			
		||||
        <input
 | 
			
		||||
          nz-input
 | 
			
		||||
          type="text"
 | 
			
		||||
          [(ngModel)]="userIdentityDetail.name"
 | 
			
		||||
          [readonly]="!isEditUser"
 | 
			
		||||
          [nzBorderless]="!isEditUser"
 | 
			
		||||
          [placeholder]="isEditUser ? '' : '-'"
 | 
			
		||||
        />
 | 
			
		||||
        <input nz-input type="text" [(ngModel)]="userIdentityDetail.name" [readonly]="!isEditUser"
 | 
			
		||||
          [nzBorderless]="!isEditUser" [placeholder]="isEditUser ? '' : '-'" />
 | 
			
		||||
      </sv>
 | 
			
		||||
      <sv label="身份证号">
 | 
			
		||||
        <input
 | 
			
		||||
          nz-input
 | 
			
		||||
          type="text"
 | 
			
		||||
          [(ngModel)]="userIdentityDetail.certificateNumber"
 | 
			
		||||
          [readonly]="!isEditUser"
 | 
			
		||||
          [nzBorderless]="!isEditUser"
 | 
			
		||||
          [placeholder]="isEditUser ? '' : '-'"
 | 
			
		||||
        />
 | 
			
		||||
        <input nz-input type="text" [(ngModel)]="userIdentityDetail.certificateNumber" [readonly]="!isEditUser"
 | 
			
		||||
          [nzBorderless]="!isEditUser" [placeholder]="isEditUser ? '' : '-'" />
 | 
			
		||||
      </sv>
 | 
			
		||||
      <sv label="身份证照" col="1">
 | 
			
		||||
        <div class="d-flex">
 | 
			
		||||
          <ng-container
 | 
			
		||||
            *ngTemplateOutlet="
 | 
			
		||||
          <ng-container *ngTemplateOutlet="
 | 
			
		||||
              uploadTemplate;
 | 
			
		||||
              context: {
 | 
			
		||||
                data: userIdentityDetail,
 | 
			
		||||
@ -112,11 +82,9 @@
 | 
			
		||||
                key2: 'certificatePhotoFront',
 | 
			
		||||
                hover: 'certificateBackFront'
 | 
			
		||||
              }
 | 
			
		||||
            "
 | 
			
		||||
          >
 | 
			
		||||
            ">
 | 
			
		||||
          </ng-container>
 | 
			
		||||
          <ng-container
 | 
			
		||||
            *ngTemplateOutlet="
 | 
			
		||||
          <ng-container *ngTemplateOutlet="
 | 
			
		||||
              uploadTemplate;
 | 
			
		||||
              context: {
 | 
			
		||||
                data: userIdentityDetail,
 | 
			
		||||
@ -125,8 +93,7 @@
 | 
			
		||||
                key2: 'certificatePhotoBack',
 | 
			
		||||
                hover: 'certificateBack'
 | 
			
		||||
              }
 | 
			
		||||
            "
 | 
			
		||||
          >
 | 
			
		||||
            ">
 | 
			
		||||
          </ng-container>
 | 
			
		||||
        </div>
 | 
			
		||||
      </sv>
 | 
			
		||||
@ -158,28 +125,16 @@
 | 
			
		||||
</ng-template>
 | 
			
		||||
 | 
			
		||||
<ng-template #uploadTemplate let-data="data" let-status="status" let-key="key" let-key2="key2" let-hover="hover">
 | 
			
		||||
  <nz-upload
 | 
			
		||||
    class="avatar-uploader"
 | 
			
		||||
    [nzAction]="uploadURl"
 | 
			
		||||
    nzName="multipartFile"
 | 
			
		||||
    nzListType="picture-card"
 | 
			
		||||
    [nzShowUploadList]="false"
 | 
			
		||||
    nzFileType="image/png,image/jpeg,image/jpg,image/gif"
 | 
			
		||||
    [nzDisabled]="!status || disabledUpload"
 | 
			
		||||
    (nzChange)="changeUpload($event, data, key, key2)"
 | 
			
		||||
  >
 | 
			
		||||
  <nz-upload class="avatar-uploader" [nzAction]="uploadURl" nzName="multipartFile" nzListType="picture-card"
 | 
			
		||||
    [nzShowUploadList]="false" nzFileType="image/png,image/jpeg,image/jpg,image/gif"
 | 
			
		||||
    [nzDisabled]="!status || disabledUpload" (nzChange)="changeUpload($event, data, key, key2)">
 | 
			
		||||
    <ng-container *ngIf="!data[key] && status">
 | 
			
		||||
      <i class="upload-icon" nz-icon [nzType]="service.http.loading ? 'loading' : 'plus'"></i>
 | 
			
		||||
      <div class="ant-upload-text">上传</div>
 | 
			
		||||
    </ng-container>
 | 
			
		||||
    <div
 | 
			
		||||
      *ngIf="data[key]"
 | 
			
		||||
      (mouseover)="data[hover] = true"
 | 
			
		||||
      (mouseleave)="data[hover] = false"
 | 
			
		||||
      (click)="$event.cancelBubble = true"
 | 
			
		||||
      class="image-hover"
 | 
			
		||||
    >
 | 
			
		||||
      <img [src]="data[key]" style="width: 200px; height: 160px" (click)="showImg(data[key])" />
 | 
			
		||||
    <div *ngIf="data[key]" (mouseover)="data[hover] = true" (mouseleave)="data[hover] = false"
 | 
			
		||||
      (click)="$event.cancelBubble = true" class="image-hover">
 | 
			
		||||
      <img nz-image [nzSrc]="data[key]" style="width: 200px; height: 160px" />
 | 
			
		||||
      <div class="mask" *ngIf="data[hover] && status"></div>
 | 
			
		||||
      <div class="mask-over" *ngIf="data[hover] && status">
 | 
			
		||||
        <i nz-icon nzType="close-circle" nzTheme="fill" class="delete-icon" (click)="deleteImg(data, key, key2)"></i>
 | 
			
		||||
 | 
			
		||||
@ -2,6 +2,7 @@ import { DatePipe } from '@angular/common';
 | 
			
		||||
import { Component, OnInit, ViewChild } from '@angular/core';
 | 
			
		||||
import { ActivatedRoute } from '@angular/router';
 | 
			
		||||
import { apiConf } from '@conf/api.conf';
 | 
			
		||||
import { NzImageService } from 'ng-zorro-antd/image';
 | 
			
		||||
import { NzModalService } from 'ng-zorro-antd/modal';
 | 
			
		||||
import { UsermanageService } from 'src/app/routes/usercenter/services/usercenter.service';
 | 
			
		||||
import { ImageViewComponent } from 'src/app/shared/components/imagelist';
 | 
			
		||||
@ -31,7 +32,8 @@ export class CaptainDetailComponent implements OnInit {
 | 
			
		||||
    private nzModalService: NzModalService,
 | 
			
		||||
    public service: UsermanageService,
 | 
			
		||||
    private route: ActivatedRoute,
 | 
			
		||||
    private datePipe: DatePipe
 | 
			
		||||
    private datePipe: DatePipe,
 | 
			
		||||
    private nzImageService: NzImageService
 | 
			
		||||
  ) {}
 | 
			
		||||
 | 
			
		||||
  ngOnInit() {
 | 
			
		||||
@ -192,7 +194,8 @@ export class CaptainDetailComponent implements OnInit {
 | 
			
		||||
      imgList: [url],
 | 
			
		||||
      index: 0
 | 
			
		||||
    };
 | 
			
		||||
    this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
 | 
			
		||||
    this.nzImageService.preview([{ src: url }]);
 | 
			
		||||
    // this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  deleteImg(data: any, key: string, key2: string) {
 | 
			
		||||
 | 
			
		||||
@ -318,7 +318,7 @@
 | 
			
		||||
    </ng-container>
 | 
			
		||||
    <div *ngIf="data[key]" (mouseover)="data[hover]=true" (mouseleave)="data[hover]=false"
 | 
			
		||||
      (click)="$event.cancelBubble=true" class="image-hover">
 | 
			
		||||
      <img [src]="data[key]" style="width: 200px;height: 160px;" (click)="showImg(data[key])" />
 | 
			
		||||
      <img nz-image [nzSrc]="data[key]" style="width: 200px;height: 160px;"  />
 | 
			
		||||
      <div class="mask" *ngIf="data[hover] && status"></div>
 | 
			
		||||
      <div class="mask-over" *ngIf="data[hover] && status">
 | 
			
		||||
        <i nz-icon nzType="close-circle" nzTheme="fill" class="delete-icon" (click)="deleteImg(data,key,key2)"></i>
 | 
			
		||||
 | 
			
		||||
@ -5,6 +5,7 @@ import { apiConf } from '@conf/api.conf';
 | 
			
		||||
import { STColumn, STComponent } from '@delon/abc/st';
 | 
			
		||||
import { SFComponent, SFDateWidgetSchema, SFSchema, SFTagWidgetSchema, SFTextWidgetSchema, SFUISchema } from '@delon/form';
 | 
			
		||||
import { ModalHelper, _HttpClient } from '@delon/theme';
 | 
			
		||||
import { NzImageService } from 'ng-zorro-antd/image';
 | 
			
		||||
import { NzMessageService } from 'ng-zorro-antd/message';
 | 
			
		||||
import { NzModalService } from 'ng-zorro-antd/modal';
 | 
			
		||||
import { ImageViewComponent } from 'src/app/shared/components/imagelist';
 | 
			
		||||
@ -65,7 +66,8 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
 | 
			
		||||
    private nzModalService: NzModalService,
 | 
			
		||||
    public service: UsermanageService,
 | 
			
		||||
    public route: ActivatedRoute,
 | 
			
		||||
    private datePipe: DatePipe
 | 
			
		||||
    private datePipe: DatePipe,
 | 
			
		||||
    private nzImageService: NzImageService
 | 
			
		||||
  ) {}
 | 
			
		||||
 | 
			
		||||
  ngOnInit() {
 | 
			
		||||
@ -423,11 +425,7 @@ export class UserCenterComponentsDriverDetailComponent implements OnInit {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  showImg(url: any) {
 | 
			
		||||
    const params = {
 | 
			
		||||
      imgList: [url],
 | 
			
		||||
      index: 0
 | 
			
		||||
    };
 | 
			
		||||
    this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
 | 
			
		||||
    this.nzImageService.preview([{ src: url }]);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  deleteImg(data: any, key: string, key2: string) {
 | 
			
		||||
 | 
			
		||||
@ -19,6 +19,7 @@ import { NzModalService } from 'ng-zorro-antd/modal';
 | 
			
		||||
import { apiConf } from '@conf/api.conf';
 | 
			
		||||
import { ImageViewComponent } from 'src/app/shared/components/imagelist';
 | 
			
		||||
import { NzCascaderOption } from 'ng-zorro-antd/cascader';
 | 
			
		||||
import { NzImageService } from 'ng-zorro-antd/image';
 | 
			
		||||
@Component({
 | 
			
		||||
  selector: 'app-Freight-components-EnterpriseAudit-view',
 | 
			
		||||
  templateUrl: './view.component.html',
 | 
			
		||||
@ -49,7 +50,12 @@ export class FreightComponentsEnterpriseAuditViewComponent implements OnInit {
 | 
			
		||||
 | 
			
		||||
  values: string[] | null = null;
 | 
			
		||||
  ltdId: any[] = [];
 | 
			
		||||
  constructor(private nzModalService: NzModalService, public service: UsermanageService, private route: ActivatedRoute) {}
 | 
			
		||||
  constructor(
 | 
			
		||||
    private nzModalService: NzModalService,
 | 
			
		||||
    public service: UsermanageService,
 | 
			
		||||
    private route: ActivatedRoute,
 | 
			
		||||
    private nzImageService: NzImageService
 | 
			
		||||
  ) {}
 | 
			
		||||
 | 
			
		||||
  ngOnInit() {
 | 
			
		||||
    this.initData();
 | 
			
		||||
@ -127,7 +133,8 @@ export class FreightComponentsEnterpriseAuditViewComponent implements OnInit {
 | 
			
		||||
      imgList: [url],
 | 
			
		||||
      index: 0
 | 
			
		||||
    };
 | 
			
		||||
    this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
 | 
			
		||||
    this.nzImageService.preview([{ src: url }]);
 | 
			
		||||
    // this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  deleteImg(key: string) {
 | 
			
		||||
 | 
			
		||||
@ -4,6 +4,7 @@ import { apiConf } from '@conf/api.conf';
 | 
			
		||||
import { STColumn, STComponent } from '@delon/abc/st';
 | 
			
		||||
import { SFComponent, SFDateWidgetSchema, SFSchema, SFUISchema } from '@delon/form';
 | 
			
		||||
import { ModalHelper, _HttpClient } from '@delon/theme';
 | 
			
		||||
import { NzImageService } from 'ng-zorro-antd/image';
 | 
			
		||||
import { NzMessageService } from 'ng-zorro-antd/message';
 | 
			
		||||
import { NzModalService } from 'ng-zorro-antd/modal';
 | 
			
		||||
import { ImageViewComponent } from 'src/app/shared/components/imagelist';
 | 
			
		||||
@ -34,7 +35,12 @@ export class FreightComponentsUserDetailComponent implements OnInit {
 | 
			
		||||
  isEditUser = false;
 | 
			
		||||
  uploadURl = apiConf.waterFileUpload;
 | 
			
		||||
  disabledUpload = false;
 | 
			
		||||
  constructor(private nzModalService: NzModalService, public service: UsermanageService, public route: ActivatedRoute) {}
 | 
			
		||||
  constructor(
 | 
			
		||||
    private nzModalService: NzModalService,
 | 
			
		||||
    public service: UsermanageService,
 | 
			
		||||
    public route: ActivatedRoute,
 | 
			
		||||
    private nzImageService: NzImageService
 | 
			
		||||
  ) {}
 | 
			
		||||
 | 
			
		||||
  ngOnInit() {
 | 
			
		||||
    this.initData();
 | 
			
		||||
@ -170,7 +176,8 @@ export class FreightComponentsUserDetailComponent implements OnInit {
 | 
			
		||||
      imgList: [url],
 | 
			
		||||
      index: 0
 | 
			
		||||
    };
 | 
			
		||||
    this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
 | 
			
		||||
    this.nzImageService.preview([{ src: url }]);
 | 
			
		||||
    // this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  deleteImg(data: any, key: string, key2: string) {
 | 
			
		||||
 | 
			
		||||
@ -10,6 +10,7 @@ import { Injectable, Injector } from '@angular/core';
 | 
			
		||||
import { cacheConf } from '@conf/cache.conf';
 | 
			
		||||
import { _HttpClient } from '@delon/theme';
 | 
			
		||||
import { EACacheService, ShipperBaseService } from '@shared';
 | 
			
		||||
import { NzImageService } from 'ng-zorro-antd/image';
 | 
			
		||||
import { NzModalService } from 'ng-zorro-antd/modal';
 | 
			
		||||
import { ImageViewComponent } from 'src/app/shared/components/imagelist';
 | 
			
		||||
@Injectable({
 | 
			
		||||
@ -144,7 +145,12 @@ export class UsermanageService extends ShipperBaseService {
 | 
			
		||||
  // 查询司机配置列表
 | 
			
		||||
  $api_configPage = '/api/mdc/cuc/driver/list/configPage';
 | 
			
		||||
 | 
			
		||||
  constructor(public injector: Injector, private nzModalService: NzModalService, public eaCacheSrv: EACacheService) {
 | 
			
		||||
  constructor(
 | 
			
		||||
    public injector: Injector,
 | 
			
		||||
    private nzModalService: NzModalService,
 | 
			
		||||
    public eaCacheSrv: EACacheService,
 | 
			
		||||
    private nzImageService: NzImageService
 | 
			
		||||
  ) {
 | 
			
		||||
    super(injector, eaCacheSrv);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@ -153,6 +159,7 @@ export class UsermanageService extends ShipperBaseService {
 | 
			
		||||
      imgList: [url],
 | 
			
		||||
      index: 0
 | 
			
		||||
    };
 | 
			
		||||
    this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
 | 
			
		||||
    this.nzImageService.preview([{ src: url }]);
 | 
			
		||||
    // this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -14,6 +14,7 @@ import { VehicleService } from '../../../services/vehicle.service';
 | 
			
		||||
import { EADateUtil } from '@shared';
 | 
			
		||||
import { VehicleImgViewComponent } from '../../list/img-view/img-view.component';
 | 
			
		||||
import { VehicleComponentsListEditComponent } from '../../list/edit/edit.component';
 | 
			
		||||
import { NzImageService } from 'ng-zorro-antd/image';
 | 
			
		||||
 | 
			
		||||
@Component({
 | 
			
		||||
  selector: 'app-Vehicle-components-Audit-detail',
 | 
			
		||||
@ -33,11 +34,16 @@ export class VehicleComponentsAuditDetailComponent implements OnInit {
 | 
			
		||||
  approvalOpinion = '';
 | 
			
		||||
  uploadURl = apiConf.waterFileUpload;
 | 
			
		||||
  disabledUpload = false;
 | 
			
		||||
  constructor(public service: VehicleService, private route: ActivatedRoute, private nzModalService: NzModalService, private modal: ModalHelper,) {}
 | 
			
		||||
  constructor(
 | 
			
		||||
    public service: VehicleService,
 | 
			
		||||
    private route: ActivatedRoute,
 | 
			
		||||
    private nzModalService: NzModalService,
 | 
			
		||||
    private modal: ModalHelper,
 | 
			
		||||
    private nzImageService: NzImageService
 | 
			
		||||
  ) {}
 | 
			
		||||
 | 
			
		||||
  ngOnInit() {
 | 
			
		||||
    this.getSelectList();
 | 
			
		||||
    console.log(this.route.snapshot.params)
 | 
			
		||||
    this.getDetailList();
 | 
			
		||||
    this.initST();
 | 
			
		||||
  }
 | 
			
		||||
@ -56,21 +62,20 @@ export class VehicleComponentsAuditDetailComponent implements OnInit {
 | 
			
		||||
        buttons: [
 | 
			
		||||
          {
 | 
			
		||||
            text: '查看协议',
 | 
			
		||||
            click: (_record) => this.viewEvaluate(_record),
 | 
			
		||||
            iif: item => item.auditStatusEnum == 10 || item.auditStatusEnum == 20,
 | 
			
		||||
            click: _record => this.viewEvaluate(_record),
 | 
			
		||||
            iif: item => item.auditStatusEnum == 10 || item.auditStatusEnum == 20
 | 
			
		||||
          },
 | 
			
		||||
          {
 | 
			
		||||
            text: '上传协议',
 | 
			
		||||
            click: (_record) => this.updateEvaluate(_record),
 | 
			
		||||
            iif: item => item.auditStatusEnum == -1,
 | 
			
		||||
          },
 | 
			
		||||
            click: _record => this.updateEvaluate(_record),
 | 
			
		||||
            iif: item => item.auditStatusEnum == -1
 | 
			
		||||
          }
 | 
			
		||||
        ]
 | 
			
		||||
      }
 | 
			
		||||
    ];
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  getDetailList() {
 | 
			
		||||
    console.log(this.route.snapshot.queryParams.carId);
 | 
			
		||||
    const params = {
 | 
			
		||||
      id: this.route.snapshot?.params?.id
 | 
			
		||||
    };
 | 
			
		||||
@ -88,7 +93,7 @@ export class VehicleComponentsAuditDetailComponent implements OnInit {
 | 
			
		||||
        this.adjuctUser(
 | 
			
		||||
          {
 | 
			
		||||
            approvalStatus: 20,
 | 
			
		||||
            id: this.route.snapshot?.params?.id,
 | 
			
		||||
            id: this.route.snapshot?.params?.id
 | 
			
		||||
          },
 | 
			
		||||
          '审核成功'
 | 
			
		||||
        );
 | 
			
		||||
@ -125,23 +130,21 @@ export class VehicleComponentsAuditDetailComponent implements OnInit {
 | 
			
		||||
 | 
			
		||||
  save() {
 | 
			
		||||
    this.isEdit = false;
 | 
			
		||||
    this.detailData.driverLicenseRegisterTime = EADateUtil.yearToDate(this.detailData?.driverLicenseRegisterTime)
 | 
			
		||||
    this.detailData.driverLicenseRegisterTime = EADateUtil.yearToDate(this.detailData?.driverLicenseRegisterTime);
 | 
			
		||||
 | 
			
		||||
    this.detailData.driverLicenseEndTime = EADateUtil.yearToDate(this.detailData?.driverLicenseEndTime)
 | 
			
		||||
    this.detailData.driverLicenseEndTime = EADateUtil.yearToDate(this.detailData?.driverLicenseEndTime);
 | 
			
		||||
 | 
			
		||||
    this.detailData.driverLicenseGetTime = EADateUtil.yearToDate(this.detailData?.driverLicenseGetTime)
 | 
			
		||||
    this.detailData.driverLicenseGetTime = EADateUtil.yearToDate(this.detailData?.driverLicenseGetTime);
 | 
			
		||||
 | 
			
		||||
    this.detailData.roadTransportStartTime = EADateUtil.yearToDate(this.detailData?.roadTransportStartTime)
 | 
			
		||||
    this.detailData.roadTransportStartTime = EADateUtil.yearToDate(this.detailData?.roadTransportStartTime);
 | 
			
		||||
 | 
			
		||||
    this.detailData.roadTransportEndTime = EADateUtil.yearToDate(this.detailData?.roadTransportEndTime)
 | 
			
		||||
    console.log(this.detailData)
 | 
			
		||||
    this.service.request(this.service.$api_get_update_audit, this.detailData).subscribe((res)=>{
 | 
			
		||||
      console.log(res)
 | 
			
		||||
    this.detailData.roadTransportEndTime = EADateUtil.yearToDate(this.detailData?.roadTransportEndTime);
 | 
			
		||||
    this.service.request(this.service.$api_get_update_audit, this.detailData).subscribe(res => {
 | 
			
		||||
      if (res) {
 | 
			
		||||
        this.getDetailList()
 | 
			
		||||
        this.service.msgSrv.success('修改成功!')
 | 
			
		||||
        this.getDetailList();
 | 
			
		||||
        this.service.msgSrv.success('修改成功!');
 | 
			
		||||
      }
 | 
			
		||||
    })
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ratify() {
 | 
			
		||||
@ -149,7 +152,6 @@ export class VehicleComponentsAuditDetailComponent implements OnInit {
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  changeUpload({ file, fileList, type }: any, key: string) {
 | 
			
		||||
    console.log({ file, fileList, type });
 | 
			
		||||
    if (type === 'success') {
 | 
			
		||||
      this.detailData[key] = file.response.data.fullFileWatermarkPath;
 | 
			
		||||
    }
 | 
			
		||||
@ -169,7 +171,8 @@ export class VehicleComponentsAuditDetailComponent implements OnInit {
 | 
			
		||||
      imgList: [url],
 | 
			
		||||
      index: 0
 | 
			
		||||
    };
 | 
			
		||||
    this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
 | 
			
		||||
    this.nzImageService.preview([{ src: url }]);
 | 
			
		||||
    // this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  deleteImg(key: string) {
 | 
			
		||||
@ -220,16 +223,17 @@ export class VehicleComponentsAuditDetailComponent implements OnInit {
 | 
			
		||||
  }
 | 
			
		||||
  // 获取录单员
 | 
			
		||||
  getSelectList() {
 | 
			
		||||
      this.Serveice("car:color")
 | 
			
		||||
      this.Serveice("car:model")
 | 
			
		||||
      this.Serveice("car:length")
 | 
			
		||||
    this.Serveice('car:color');
 | 
			
		||||
    this.Serveice('car:model');
 | 
			
		||||
    this.Serveice('car:length');
 | 
			
		||||
  }
 | 
			
		||||
  Serveice(param: any) {
 | 
			
		||||
    let value: any;
 | 
			
		||||
      this.service.request(`${this.service.$api_get_getDictValue}`, 
 | 
			
		||||
      {
 | 
			
		||||
    this.service
 | 
			
		||||
      .request(`${this.service.$api_get_getDictValue}`, {
 | 
			
		||||
        dictKey: param
 | 
			
		||||
      }).subscribe((res) => {
 | 
			
		||||
      })
 | 
			
		||||
      .subscribe(res => {
 | 
			
		||||
        if (param === 'car:color') {
 | 
			
		||||
          this.contenCarNoColor = res;
 | 
			
		||||
        } else if (param === 'car:model') {
 | 
			
		||||
@ -237,19 +241,19 @@ export class VehicleComponentsAuditDetailComponent implements OnInit {
 | 
			
		||||
        } else if (param === 'car:length') {
 | 
			
		||||
          this.contenCarLength = res;
 | 
			
		||||
        }
 | 
			
		||||
      })
 | 
			
		||||
      });
 | 
			
		||||
    return value;
 | 
			
		||||
  }
 | 
			
		||||
  viewEvaluate(item: any) {
 | 
			
		||||
      this.modal.createStatic(VehicleImgViewComponent, { i: item } ).subscribe((i) => {
 | 
			
		||||
    this.modal.createStatic(VehicleImgViewComponent, { i: item }).subscribe(i => {
 | 
			
		||||
      this.st.reload();
 | 
			
		||||
        this.getDetailList()
 | 
			
		||||
      this.getDetailList();
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
  updateEvaluate(item: any) {
 | 
			
		||||
      this.modal.createStatic(VehicleComponentsListEditComponent, { i: item }).subscribe((i) => {
 | 
			
		||||
    this.modal.createStatic(VehicleComponentsListEditComponent, { i: item }).subscribe(i => {
 | 
			
		||||
      this.st.reload();
 | 
			
		||||
        this.getDetailList()
 | 
			
		||||
      this.getDetailList();
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -11,11 +11,12 @@ import { apiConf } from '@conf/api.conf';
 | 
			
		||||
import { NzModalService } from 'ng-zorro-antd/modal';
 | 
			
		||||
import { ImageViewComponent } from 'src/app/shared/components/imagelist';
 | 
			
		||||
import { EADateUtil } from '@shared';
 | 
			
		||||
import { NzImageService } from 'ng-zorro-antd/image';
 | 
			
		||||
 | 
			
		||||
@Component({
 | 
			
		||||
  selector: 'app-supplier-components-list-view',
 | 
			
		||||
  templateUrl: './detail.component.html',
 | 
			
		||||
  styleUrls: ['./detail.component.less'],
 | 
			
		||||
  styleUrls: ['./detail.component.less']
 | 
			
		||||
})
 | 
			
		||||
export class VehicleComponentsListDetailComponent implements OnInit {
 | 
			
		||||
  i: any;
 | 
			
		||||
@ -49,6 +50,7 @@ export class VehicleComponentsListDetailComponent implements OnInit {
 | 
			
		||||
    private modalHelper: ModalHelper,
 | 
			
		||||
    private msgSrv: NzMessageService,
 | 
			
		||||
    private nzModalService: NzModalService,
 | 
			
		||||
    private nzImageService: NzImageService
 | 
			
		||||
  ) {}
 | 
			
		||||
 | 
			
		||||
  ngOnInit() {
 | 
			
		||||
@ -57,7 +59,6 @@ export class VehicleComponentsListDetailComponent implements OnInit {
 | 
			
		||||
    this.initSF();
 | 
			
		||||
    this.initSF1();
 | 
			
		||||
    this.initST();
 | 
			
		||||
 | 
			
		||||
  }
 | 
			
		||||
  /**
 | 
			
		||||
   * 查询参数
 | 
			
		||||
@ -77,12 +78,12 @@ export class VehicleComponentsListDetailComponent implements OnInit {
 | 
			
		||||
          type: 'string',
 | 
			
		||||
          ui: {
 | 
			
		||||
            widget: 'date',
 | 
			
		||||
            format: 'yyyy-MM-dd 00:00:00',
 | 
			
		||||
            format: 'yyyy-MM-dd 00:00:00'
 | 
			
		||||
            // hidden: this.modalName === 'effectiveDate' ? false : true,
 | 
			
		||||
          } as SFDateWidgetSchema,
 | 
			
		||||
          } as SFDateWidgetSchema
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
      },
 | 
			
		||||
      required: ['effectiveDate'],
 | 
			
		||||
      required: ['effectiveDate']
 | 
			
		||||
    };
 | 
			
		||||
    this.ui = { '*': { spanLabelFixed: 120, grid: { span: 24 } } };
 | 
			
		||||
  }
 | 
			
		||||
@ -100,18 +101,18 @@ export class VehicleComponentsListDetailComponent implements OnInit {
 | 
			
		||||
        buttons: [
 | 
			
		||||
          {
 | 
			
		||||
            text: '查看协议',
 | 
			
		||||
            click: (_record) => this.viewEvaluate(_record),
 | 
			
		||||
            iif: item => item.auditStatusEnum == 10 || item.auditStatusEnum == 20,
 | 
			
		||||
            click: _record => this.viewEvaluate(_record),
 | 
			
		||||
            iif: item => item.auditStatusEnum == 10 || item.auditStatusEnum == 20
 | 
			
		||||
          },
 | 
			
		||||
          {
 | 
			
		||||
            text: '上传协议',
 | 
			
		||||
            click: (_record) => this.updateEvaluate(_record),
 | 
			
		||||
            iif: item => item.auditStatusEnum == -1,
 | 
			
		||||
          },
 | 
			
		||||
        ],
 | 
			
		||||
      },
 | 
			
		||||
            click: _record => this.updateEvaluate(_record),
 | 
			
		||||
            iif: item => item.auditStatusEnum == -1
 | 
			
		||||
          }
 | 
			
		||||
        ]
 | 
			
		||||
      }
 | 
			
		||||
    ];
 | 
			
		||||
  }
 | 
			
		||||
  initSF1() {
 | 
			
		||||
    this.schema1 = {
 | 
			
		||||
      properties: {
 | 
			
		||||
@ -121,7 +122,7 @@ export class VehicleComponentsListDetailComponent implements OnInit {
 | 
			
		||||
          title: '类型',
 | 
			
		||||
          enum: [
 | 
			
		||||
            { label: '非外部供应商', value: 0 },
 | 
			
		||||
            { label: '外部供应商', value: 1 },
 | 
			
		||||
            { label: '外部供应商', value: 1 }
 | 
			
		||||
          ],
 | 
			
		||||
          default: '',
 | 
			
		||||
          ui: {
 | 
			
		||||
@ -136,33 +137,34 @@ export class VehicleComponentsListDetailComponent implements OnInit {
 | 
			
		||||
                this.suppliersData.externalSuppliersId = '';
 | 
			
		||||
              }
 | 
			
		||||
              this.initSF1();
 | 
			
		||||
            },
 | 
			
		||||
          },
 | 
			
		||||
            }
 | 
			
		||||
          }
 | 
			
		||||
        },
 | 
			
		||||
        externalSuppliersId: {
 | 
			
		||||
          title: '外部供应商id',
 | 
			
		||||
          type: 'string',
 | 
			
		||||
          default: '',
 | 
			
		||||
          ui: {
 | 
			
		||||
            visibleIf: { suppliersType: (value: any) => value === 1 },
 | 
			
		||||
            visibleIf: { suppliersType: (value: any) => value === 1 }
 | 
			
		||||
          }
 | 
			
		||||
        }
 | 
			
		||||
      },
 | 
			
		||||
        },
 | 
			
		||||
      },
 | 
			
		||||
      required: this.validData,
 | 
			
		||||
      required: this.validData
 | 
			
		||||
    };
 | 
			
		||||
  }
 | 
			
		||||
  // 获取录单员
 | 
			
		||||
  getSelectList() {
 | 
			
		||||
    this.Serveice("car:color")
 | 
			
		||||
    this.Serveice("car:model")
 | 
			
		||||
    this.Serveice("car:length")
 | 
			
		||||
    this.Serveice('car:color');
 | 
			
		||||
    this.Serveice('car:model');
 | 
			
		||||
    this.Serveice('car:length');
 | 
			
		||||
  }
 | 
			
		||||
  Serveice(param: any) {
 | 
			
		||||
    let value: any;
 | 
			
		||||
    this.service.request(`${this.service.$api_get_getDictValue}`, 
 | 
			
		||||
    {
 | 
			
		||||
    this.service
 | 
			
		||||
      .request(`${this.service.$api_get_getDictValue}`, {
 | 
			
		||||
        dictKey: param
 | 
			
		||||
    }).subscribe((res) => {
 | 
			
		||||
      })
 | 
			
		||||
      .subscribe(res => {
 | 
			
		||||
        if (param === 'car:color') {
 | 
			
		||||
          this.contenCarNoColor = res;
 | 
			
		||||
        } else if (param === 'car:model') {
 | 
			
		||||
@ -170,29 +172,26 @@ export class VehicleComponentsListDetailComponent implements OnInit {
 | 
			
		||||
        } else if (param === 'car:length') {
 | 
			
		||||
          this.contenCarLength = res;
 | 
			
		||||
        }
 | 
			
		||||
    })
 | 
			
		||||
      });
 | 
			
		||||
    return value;
 | 
			
		||||
  }
 | 
			
		||||
  //
 | 
			
		||||
  getDetailList() {
 | 
			
		||||
   console.log( this.route.snapshot?.params?.id)
 | 
			
		||||
    console.log(this.route.snapshot?.params?.id);
 | 
			
		||||
    const params = {
 | 
			
		||||
      id: this.route.snapshot?.params?.id
 | 
			
		||||
    };
 | 
			
		||||
   this.service.request(`${this.service.$api_get_operate_get}`, params).subscribe((res) => {
 | 
			
		||||
    this.service.request(`${this.service.$api_get_operate_get}`, params).subscribe(res => {
 | 
			
		||||
      this.detailData = res;
 | 
			
		||||
      this.tempalateData = res;
 | 
			
		||||
    })
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  goBack() {
 | 
			
		||||
    window.history.go(-1);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
  handleCancel(name: any) {
 | 
			
		||||
 | 
			
		||||
  }
 | 
			
		||||
  handleCancel(name: any) {}
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   *查看评价
 | 
			
		||||
@ -212,9 +211,7 @@ export class VehicleComponentsListDetailComponent implements OnInit {
 | 
			
		||||
      this.getDetailList();
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
  handleOK() {
 | 
			
		||||
    
 | 
			
		||||
  }
 | 
			
		||||
  handleOK() {}
 | 
			
		||||
  ratify() {
 | 
			
		||||
    this.isEdit = true;
 | 
			
		||||
  }
 | 
			
		||||
@ -225,7 +222,7 @@ export class VehicleComponentsListDetailComponent implements OnInit {
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
  deleteImg(key: string) {
 | 
			
		||||
    console.log(key)
 | 
			
		||||
    console.log(key);
 | 
			
		||||
    this.nzModalService.warning({
 | 
			
		||||
      nzTitle: '是否确认删除该图片',
 | 
			
		||||
      nzOnOk: () => {
 | 
			
		||||
@ -242,7 +239,8 @@ export class VehicleComponentsListDetailComponent implements OnInit {
 | 
			
		||||
      imgList: [url],
 | 
			
		||||
      index: 0
 | 
			
		||||
    };
 | 
			
		||||
    this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
 | 
			
		||||
    this.nzImageService.preview([{ src: url }]);
 | 
			
		||||
    // this.nzModalService.create({ nzContent: ImageViewComponent, nzComponentParams: { params } });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  reset() {
 | 
			
		||||
@ -252,24 +250,24 @@ export class VehicleComponentsListDetailComponent implements OnInit {
 | 
			
		||||
 | 
			
		||||
  save() {
 | 
			
		||||
    this.isEdit = false;
 | 
			
		||||
    console.log(this.detailData)
 | 
			
		||||
      this.detailData.driverLicenseRegisterTime = EADateUtil.yearToDate(this.detailData?.driverLicenseRegisterTime)
 | 
			
		||||
    console.log(this.detailData);
 | 
			
		||||
    this.detailData.driverLicenseRegisterTime = EADateUtil.yearToDate(this.detailData?.driverLicenseRegisterTime);
 | 
			
		||||
 | 
			
		||||
      this.detailData.driverLicenseEndTime = EADateUtil.yearToDate(this.detailData?.driverLicenseEndTime)
 | 
			
		||||
    this.detailData.driverLicenseEndTime = EADateUtil.yearToDate(this.detailData?.driverLicenseEndTime);
 | 
			
		||||
 | 
			
		||||
      this.detailData.driverLicenseGetTime = EADateUtil.yearToDate(this.detailData?.driverLicenseGetTime)
 | 
			
		||||
    this.detailData.driverLicenseGetTime = EADateUtil.yearToDate(this.detailData?.driverLicenseGetTime);
 | 
			
		||||
 | 
			
		||||
      this.detailData.roadTransportStartTime = EADateUtil.yearToDate(this.detailData?.roadTransportStartTime)
 | 
			
		||||
    this.detailData.roadTransportStartTime = EADateUtil.yearToDate(this.detailData?.roadTransportStartTime);
 | 
			
		||||
 | 
			
		||||
      this.detailData.roadTransportEndTime = EADateUtil.yearToDate(this.detailData?.roadTransportEndTime)
 | 
			
		||||
    console.log(this.detailData)
 | 
			
		||||
    this.service.request(this.service.$api_get_update, this.detailData).subscribe((res)=>{
 | 
			
		||||
      console.log(res)
 | 
			
		||||
    this.detailData.roadTransportEndTime = EADateUtil.yearToDate(this.detailData?.roadTransportEndTime);
 | 
			
		||||
    console.log(this.detailData);
 | 
			
		||||
    this.service.request(this.service.$api_get_update, this.detailData).subscribe(res => {
 | 
			
		||||
      console.log(res);
 | 
			
		||||
      if (res) {
 | 
			
		||||
        this.getDetailList()
 | 
			
		||||
        this.service.msgSrv.success('修改成功!')
 | 
			
		||||
        this.getDetailList();
 | 
			
		||||
        this.service.msgSrv.success('修改成功!');
 | 
			
		||||
      }
 | 
			
		||||
    })
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  private initData() {
 | 
			
		||||
 | 
			
		||||
@ -63,6 +63,12 @@
 | 
			
		||||
      [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
 | 
			
		||||
      [loading]="service.http.loading"
 | 
			
		||||
    >
 | 
			
		||||
    <ng-template st-row="createUserName" let-item let-index="index">
 | 
			
		||||
      <div> {{ item?.createUserName }}/{{ item?.createUserPhone }} </div>
 | 
			
		||||
    </ng-template>
 | 
			
		||||
    <ng-template st-row="createUserName" let-item let-index="index">
 | 
			
		||||
      <div> {{ item?.createUserName }}/{{ item?.createUserPhone }} </div>
 | 
			
		||||
    </ng-template>
 | 
			
		||||
      <ng-template st-row="driverName" let-item let-index="index">
 | 
			
		||||
        <div> {{ item?.driverName }}/{{ item?.driverTelephone }}/{{ item?.driverLicenseCarNo }} </div>
 | 
			
		||||
      </ng-template>
 | 
			
		||||
 | 
			
		||||
@ -247,6 +247,7 @@ tabs = {
 | 
			
		||||
        className: 'text-right',
 | 
			
		||||
        render: 'billExpenseDetailVOList'
 | 
			
		||||
      },
 | 
			
		||||
      { title: '录单员', render: 'createUserName', width: '200px', className: 'text-left' },
 | 
			
		||||
      { title: '网络货运人', index: 'enterpriseInfoName', width: '220px', className: 'text-left' },
 | 
			
		||||
      { title: '货主', index: 'shipperAppUserName', width: '180px', className: 'text-left' },
 | 
			
		||||
      { title: '关联订单号', index: 'billCode', width: '180px', className: 'text-left' },
 | 
			
		||||
 | 
			
		||||
@ -1,7 +1,7 @@
 | 
			
		||||
<!--
 | 
			
		||||
 * @Author: your name
 | 
			
		||||
 * @Date: 2021-12-03 11:10:14
 | 
			
		||||
 * @LastEditTime : 2022-02-23 15:39:15
 | 
			
		||||
 * @LastEditTime : 2022-03-02 14:59:17
 | 
			
		||||
 * @LastEditors  : Shiming
 | 
			
		||||
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 | 
			
		||||
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\waybill-management\\components\\vehicle\\vehicle.component.html
 | 
			
		||||
@ -64,6 +64,12 @@
 | 
			
		||||
      [page]="{ show: true, showSize: true, pageSizes: [10, 20, 30, 50, 100, 200, 300, 500, 1000] }"
 | 
			
		||||
      [loading]="service.http.loading"
 | 
			
		||||
    >
 | 
			
		||||
    <ng-template st-row="createUserName" let-item let-index="index">
 | 
			
		||||
      <div> {{ item?.createUserName }}/{{ item?.createUserPhone }} </div>
 | 
			
		||||
    </ng-template>
 | 
			
		||||
    <ng-template st-row="createUserName" let-item let-index="index">
 | 
			
		||||
      <div> {{ item?.createUserName }}/{{ item?.createUserPhone }} </div>
 | 
			
		||||
    </ng-template>
 | 
			
		||||
      <ng-template st-row="driverName" let-item let-index="index">
 | 
			
		||||
        <div> {{ item?.driverName }}/{{ item?.driverTelephone }}/{{ item?.driverLicenseCarNo }} </div>
 | 
			
		||||
      </ng-template>
 | 
			
		||||
 | 
			
		||||
@ -291,6 +291,7 @@ export class WaybillManagementVehicleComponent implements OnInit {
 | 
			
		||||
        className: 'text-right',
 | 
			
		||||
        render: 'billExpenseDetailVOList'
 | 
			
		||||
      },
 | 
			
		||||
      { title: '录单员', render: 'createUserName', width: '200px', className: 'text-left' },
 | 
			
		||||
      { title: '网络货运人', index: 'enterpriseInfoName', width: '220px', className: 'text-left' },
 | 
			
		||||
      { title: '货主', index: 'shipperAppUserName', width: '200px', className: 'text-left' },
 | 
			
		||||
      { title: '关联订单号', index: 'billCode', width: '180px', className: 'text-left' },
 | 
			
		||||
 | 
			
		||||
@ -2,7 +2,7 @@ import { WaybillManagementBulkComponent } from './../components/bulk/bulk.compon
 | 
			
		||||
/*
 | 
			
		||||
 * @Author: your name
 | 
			
		||||
 * @Date: 2021-12-07 14:52:29
 | 
			
		||||
 * @LastEditTime : 2022-02-17 19:38:59
 | 
			
		||||
 * @LastEditTime : 2022-03-02 14:30:55
 | 
			
		||||
 * @LastEditors  : Shiming
 | 
			
		||||
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 | 
			
		||||
 * @FilePath     : \\tms-obc-web\\src\\app\\routes\\waybill-management\\services\\waybill-management.service.ts
 | 
			
		||||
@ -20,12 +20,12 @@ export class WaybillManagementServe extends BaseService {
 | 
			
		||||
    // 据 手机号/姓名 查询 车队长/司机
 | 
			
		||||
    $api_get_getDriverInfo = `/api/mdc/cuc/user/getDriverInfo`;
 | 
			
		||||
    // 查询整车运单-运营后台
 | 
			
		||||
    $api_get_wholePage = `/api/sdc/wayBillOperate/list/listWholePage`;
 | 
			
		||||
    $api_get_wholePage = `/api/sdc/wayBillOperate/listWholePage`;
 | 
			
		||||
    // 查询整车运单详情-运营后台
 | 
			
		||||
    $api_get_getWholeDetail = `/api/sdc/wayBillOperate/getWholeDetail`;
 | 
			
		||||
 | 
			
		||||
     // 查询大宗运单-运营后台
 | 
			
		||||
     $api_get_Bulkpage = `/api/sdc/wayBillOperate/list/listBulkPage`;
 | 
			
		||||
     $api_get_Bulkpage = `/api/sdc/wayBillOperate/listBulkPage`;
 | 
			
		||||
    // 查询大宗运单详情-运营后台
 | 
			
		||||
    $api_get_getBulkDetail = `/api/sdc/wayBillOperate/getBulkDetail`;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -2,12 +2,13 @@ import { CommonModule } from '@angular/common';
 | 
			
		||||
import { NgModule } from '@angular/core';
 | 
			
		||||
import { ImageListComponent } from './imagelist.component';
 | 
			
		||||
import { ImageViewComponent } from './imageview/imageview.component';
 | 
			
		||||
import { NzImageModule } from 'ng-zorro-antd/image';
 | 
			
		||||
 | 
			
		||||
const COMPONENTS = [ImageListComponent, ImageViewComponent];
 | 
			
		||||
 | 
			
		||||
@NgModule({
 | 
			
		||||
  declarations: COMPONENTS,
 | 
			
		||||
  imports: [CommonModule],
 | 
			
		||||
  exports: COMPONENTS,
 | 
			
		||||
  imports: [CommonModule, NzImageModule],
 | 
			
		||||
  exports: COMPONENTS
 | 
			
		||||
})
 | 
			
		||||
export class ImageListModule {}
 | 
			
		||||
 | 
			
		||||
@ -1,3 +1,3 @@
 | 
			
		||||
<div class="imgBox">
 | 
			
		||||
  <img *ngFor="let item of imgList; let i = index" [src]="item" (click)="showImg(i)" />
 | 
			
		||||
  <img *ngFor="let item of imgList; let i = index" nz-image [nzSrc]="item" />
 | 
			
		||||
</div>
 | 
			
		||||
@ -8,25 +8,32 @@
 | 
			
		||||
 */
 | 
			
		||||
import { Component, Input, OnInit } from '@angular/core';
 | 
			
		||||
import { ModalHelper, _HttpClient } from '@delon/theme';
 | 
			
		||||
import { NzImageService } from 'ng-zorro-antd/image';
 | 
			
		||||
import { NzMessageService } from 'ng-zorro-antd/message';
 | 
			
		||||
import { ImageViewComponent } from './imageview/imageview.component';
 | 
			
		||||
 | 
			
		||||
@Component({
 | 
			
		||||
  selector: 'app-imagelist',
 | 
			
		||||
  templateUrl: './imagelist.component.html',
 | 
			
		||||
  styleUrls: ['./imagelist.less'],
 | 
			
		||||
  styleUrls: ['./imagelist.less']
 | 
			
		||||
})
 | 
			
		||||
export class ImageListComponent implements OnInit {
 | 
			
		||||
  @Input() imgList: any = [];
 | 
			
		||||
  constructor(private modal: ModalHelper, public msgSrv: NzMessageService, public http: _HttpClient) {}
 | 
			
		||||
  constructor(
 | 
			
		||||
    private modal: ModalHelper,
 | 
			
		||||
    public msgSrv: NzMessageService,
 | 
			
		||||
    public http: _HttpClient,
 | 
			
		||||
    private nzImageService: NzImageService
 | 
			
		||||
  ) {}
 | 
			
		||||
 | 
			
		||||
  ngOnInit(): void {
 | 
			
		||||
  }
 | 
			
		||||
  ngOnInit(): void {}
 | 
			
		||||
  showImg(index: any) {
 | 
			
		||||
    const params = {
 | 
			
		||||
      imgList: this.imgList,
 | 
			
		||||
      index,
 | 
			
		||||
      index
 | 
			
		||||
    };
 | 
			
		||||
    this.modal.create(ImageViewComponent, { params }).subscribe((res) => {});
 | 
			
		||||
    const images = this.imgList.map((url: string) => ({ src: url }));
 | 
			
		||||
    this.nzImageService.preview(images);
 | 
			
		||||
    // this.modal.create(ImageViewComponent, { params }).subscribe(res => {});
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -46,6 +46,7 @@ import { NzAnchorModule } from 'ng-zorro-antd/anchor';
 | 
			
		||||
import { NzAffixModule } from 'ng-zorro-antd/affix';
 | 
			
		||||
import { NzTypographyModule } from 'ng-zorro-antd/typography';
 | 
			
		||||
import { NzSwitchModule } from 'ng-zorro-antd/switch';
 | 
			
		||||
import { NzImageModule } from 'ng-zorro-antd/image';
 | 
			
		||||
export const SHARED_ZORRO_MODULES = [
 | 
			
		||||
  NzButtonModule,
 | 
			
		||||
  NzGridModule,
 | 
			
		||||
@ -85,5 +86,6 @@ export const SHARED_ZORRO_MODULES = [
 | 
			
		||||
  NzAnchorModule,
 | 
			
		||||
  NzAffixModule,
 | 
			
		||||
  NzTypographyModule,
 | 
			
		||||
  NzSwitchModule 
 | 
			
		||||
  NzSwitchModule,
 | 
			
		||||
  NzImageModule
 | 
			
		||||
];
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user