123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462 |
- <template>
- <!-- 详情 发运明细 -->
- <div id="detailsShipDetDrawer">
- <a-drawer title="详情" width="89%" placement="right" :closable="true" :visible="visible" @close="onClose">
- <!-- 主表信息 -->
- <a-card :bordered="true">
- <div class="table-page-search-wrapper">
- <a-form-model layout="inline" ref="form">
- <a-row :gutter="24">
- <a-col :md="6" :sm="8">
- <a-form-model-item label="单据号" prop="documentNo">
- {{ detailsShipDet.documentNo }}
- </a-form-model-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <a-form-model-item label="单据日期" prop="documentDate">
- {{ detailsShipDet.documentDate }}
- </a-form-model-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <a-form-model-item label="客户" prop="customer">
- {{ detailsShipDet.customer }}
- </a-form-model-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <a-form-model-item label="预发货日期" prop="preDeliveryDate">
- {{ detailsShipDet.preDeliveryDate }}
- </a-form-model-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <a-form-model-item label="预完工日期" prop="preCompletionDate">
- {{ detailsShipDet.preCompletionDate }}
- </a-form-model-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <a-form-model-item label="订单类型" prop="orderType">
- {{ detailsShipDet.orderType }}
- </a-form-model-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <a-form-model-item label="成衣工厂" prop="garmentFactory">
- {{ detailsShipDet.garmentFactory }}
- </a-form-model-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <a-form-model-item label="整单合计" prop="wholeOrderTotal">
- {{ detailsShipDet.wholeOrderTotal }}
- </a-form-model-item>
- </a-col>
- <!-- U8系统适用 -->
- <a-col :md="12" :sm="12">
- <a-form-model-item label="备注" prop="memo">
- {{ detailsShipDet.memo }}
- </a-form-model-item>
- </a-col>
- </a-row>
- </a-form-model>
- </div>
- </a-card>
- <!-- 子表 :model="form" -->
- <a-card :bordered="true" style="margin:10px 0">
- <a-spin :spinning="confirmLoading">
- <a-form-model ref="formRef">
- <a-table
- bordered
- rowKey="id"
- size="middle"
- :columns="columns"
- :data-source="syShippingDetailsItemList"
- :loading="loading"
- :pagination="ipagination"
- :scroll="{ x: 1500 }"
- @change="handleTableChange"
- >
- </a-table>
- </a-form-model>
- </a-spin>
- </a-card>
- </a-drawer>
- </div>
- </template>
- <script>
- import { JeecgListMixin } from '@/mixins/JeecgListMixin'
- import JEllipsis from '@/components/jeecg/JEllipsis'
- import moment from 'moment'
- export default {
- name: 'DetailsShipDetDrawer', // 详情 发运明细 抽屉
- mixins: [JeecgListMixin],
- components: { JEllipsis, moment },
- data() {
- let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} />
- return {
- id: '',
- detailsShipDet: [], // 主表信息
- // 表头
- columns: [
- {
- title: '账套',
- dataIndex: 'account',
- width: 80,
- fixed: 'left',
- className: 'replacecolor'
- },
- {
- title: '订单号',
- dataIndex: 'orderNumber',
- width: 120,
- fixed: 'left',
- className: 'replacecolor'
- },
- {
- title: '款号',
- dataIndex: 'itemNumber',
- scopedSlots: { customRender: 'itemNumber' },
- fixed: 'left',
- width: 180,
- className: 'replacecolor'
- },
- // {
- // title: '创建时间',
- // dataIndex: 'createTime',
- // align: 'center',
- // sorter: true,
- // customRender: text => {
- // return moment(text).format('YYYY-MM-DD')
- // }
- // },
- {
- title: '订单日期',
- dataIndex: 'orderDate',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '业务类型',
- dataIndex: 'businessTypeText',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '订单主表ID',
- dataIndex: 'syOrderDataId',
- width: 80,
- className: 'replacecolor'
- },
- {
- title: '客户订单',
- dataIndex: 'customerOrder',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '小po',
- dataIndex: 'smallPo',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: 'Pack Id',
- dataIndex: 'packId',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '分销点',
- dataIndex: 'distributionPoint',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '采购/委外订单号',
- dataIndex: 'purOrSubOrder',
- scopedSlots: { customRender: 'purOrSubOrder' },
- // fixed: 'left',
- width: 180,
- className: 'replacecolor'
- },
- {
- title: ' 报关单价',
- dataIndex: 'customsDeclarationUnitPrice',
- scopedSlots: { customRender: 'customsDeclarationUnitPrice' },
- // fixed: 'left',
- width: 180,
- className: 'replacecolor'
- },
- {
- title: '订单数量',
- dataIndex: 'orderQuantity',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '订单剩余数量',
- dataIndex: 'orderRemainingQuantity',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '发货数量',
- dataIndex: 'shipmentQuantity',
- scopedSlots: { customRender: 'shipmentQuantity' },
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '套装件数',
- dataIndex: 'numberOfSets',
- scopedSlots: { customRender: 'numberOfSets' },
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '是否TC功能',
- dataIndex: 'isTc',
- width: 90,
- className: 'replacecolor',
- customRender:function(value){
- if (value == "1")
- return "是";
- else if (value == "0")
- return "否";
- return value;
- }
- },
- {
- title: '物料成分',
- dataIndex: 'materialComposition',
- scopedSlots: { customRender: 'materialComposition' },
- width: 140,
- className: 'replacecolor'
- },
- {
- title: '销售类型',
- dataIndex: 'salesTypeText',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '客户简称',
- dataIndex: 'customerAbbreviation',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '客户名称',
- dataIndex: 'customerName',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '汇率',
- dataIndex: 'exchangeRate',
- width: 120,
- className: 'replacecolor'
- },
- // {
- // title: '整单(合计)',
- // dataIndex: 'wholeOrderTotal',
- // width: 120,
- // className: 'replacecolor'
- // },
- {
- title: '销售部门',
- dataIndex: 'salesDepartment',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '业务员',
- dataIndex: 'salesman',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '币种',
- dataIndex: 'currencyText',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '品牌方',
- dataIndex: 'brandSide',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '第三方',
- dataIndex: 'thirdParty',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '定金比例(%)',
- dataIndex: 'depositRatio',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '定金',
- dataIndex: 'deposit',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '协同路线',
- dataIndex: 'collaborativeRoute',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '单价(销售)',
- dataIndex: 'salesUnitPrice',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '工厂单价',
- dataIndex: 'factoryUnitPrice',
- width: 120,
- scopedSlots: { customRender: 'factoryUnitPrice' },
- className: 'replacecolor'
- },
- {
- title: '付款条件',
- dataIndex: 'termOfPayment',
- width: 160,
- customRender: t => ellipsis(t),
- className: 'replacecolor'
- },
- {
- title: '最终客户',
- dataIndex: 'endCustomer',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '订单备注',
- dataIndex: 'orderRemarks',
- width: 160,
- customRender: t => ellipsis(t),
- className: 'replacecolor'
- },
- {
- title: '申报要素',
- dataIndex: 'declarationElements',
- width: 160,
- scopedSlots: { customRender: 'declarationElements' },
- className: 'replacecolor'
- },
- {
- title: '价格备注',
- dataIndex: 'priceRemarks',
- width: 160,
- customRender: t => ellipsis(t),
- className: 'replacecolor'
- },
- {
- title: '订单变更说明',
- dataIndex: 'orderChangeDescription',
- width: 160,
- customRender: t => ellipsis(t),
- className: 'replacecolor'
- },
- {
- title: '订单子表ID',
- dataIndex: 'syOrderDataItemId',
- width: 160,
- className: 'replacecolor'
- },
- {
- title: '处理方式',
- dataIndex: 'treatmentMethod',
- width: 160,
- scopedSlots: { customRender: 'treatmentMethod' },
- className: 'replacecolor'
- },
- {
- title: '是否手册纱',
- dataIndex: 'manualYarnFlag',
- width: 100,
- scopedSlots: { customRender: 'manualYarnFlag' },
- className: 'replacecolor'
- },
- {
- title: '手册纱单价',
- dataIndex: 'manualYarnUnitPrice',
- width: 160,
- scopedSlots: { customRender: 'manualYarnUnitPrice' },
- className: 'replacecolor'
- },
- {
- title: '手册纱占比',
- dataIndex: 'manualYarnProportion',
- width: 120,
- scopedSlots: { customRender: 'manualYarnProportion' },
- className: 'replacecolor'
- }
- ],
- syShippingDetailsItemList: [], // 子表信息
- visible: false,
- confirmLoading: false,
- dateFormat: 'YYYY-MM-DD'
- }
- },
- created() {},
- methods: {
- onClose() {
- this.$emit('close')
- this.visible = false
- }
- }
- }
- </script>
- <style lang="less" scoped>
- @import '~@assets/less/common.less';
- /deep/ .ant-table-thead > tr > th {
- text-align: center;
- // font-weight: 700;
- }
- /deep/ .ant-table-tbody {
- text-align: center;
- }
- // /deep/ th.replacecolor {
- // background-color: #ccc;
- // }
- // 抽屉里的card样式
- /deep/ .ant-drawer-content {
- background-color: #f0f2f5;
- }
- /deep/ .ant-drawer-body {
- padding: 10px;
- }
- // 回显label文字
- /deep/.ant-form-item-label > label {
- font-weight: 700;
- }
- </style>
|