| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364 |
- <template>
- <!-- 详情 预装箱单 回显信息,有文本框-->
- <div id="detailsAdpackingDrawer">
- <a-drawer title="详情" width="89%" placement="right" :closable="true" :visible="visible" @close="handleCancel">
- <!-- 主表信息 展示 -->
- <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="orderNum">
- {{ detailsAdpacking.orderNum }}
- </a-form-model-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <a-form-model-item label="款号" prop="styleNum">
- {{ detailsAdpacking.itemNumber }}
- </a-form-model-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <a-form-model-item label="品名" prop="name">
- {{ detailsAdpacking.productName }}
- </a-form-model-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <a-form-model-item label="尺码范围" prop="sizeRange">
- {{ detailsAdpacking.sizeRange }}
- </a-form-model-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <a-form-model-item label="客户" prop="customer">
- {{ detailsAdpacking.customer }}
- </a-form-model-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <a-form-model-item label="集装箱代号" prop="containerCode">
- {{ detailsAdpacking.containerCode }}
- </a-form-model-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <a-form-model-item label="集装箱号" prop="containerNumber">
- {{ detailsAdpacking.containerNumber }}
- </a-form-model-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <a-form-model-item label="备注" prop="aa">
- {{ detailsAdpacking.aa }}
- </a-form-model-item>
- </a-col>
- <a-col :md="6" :sm="8">
- <a-form-model-item label="成衣工厂" prop="garmentFactory">
- {{ detailsAdpacking.garmentFactory }}
- </a-form-model-item>
- </a-col>
- </a-row>
- </a-form-model>
- </div>
- </a-card>
- <!-- 子表 ipagination-->
- <a-card :bordered="true" style="margin:10px 0">
- <a-spin :spinning="confirmLoading">
- <a-form-model ref="formRef">
- <a-table
- bordered
- rowKey="id"
- :columns="columns"
- :data-source="data"
- :loading="loading"
- :pagination="false"
- :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'
- export default {
- name: 'DetailsAdpackingDrawer', // 详情
- mixins: [JeecgListMixin],
- components: { JEllipsis },
- data() {
- let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} />
- return {
- // 表头
- columns: [
- {
- title: '账套',
- dataIndex: 'accountSet',
- width: 120,
- fixed: 'left',
- className: 'replacecolor'
- },
- {
- title: '成衣工厂',
- dataIndex: 'garmentFactory',
- width: 120,
- fixed: 'left',
- className: 'replacecolor'
- },
- {
- title: 'HOD',
- dataIndex: 'hod',
- width: 120,
- fixed: 'left',
- className: 'replacecolor'
- },
- {
- title: 'STYLE NO.',
- dataIndex: 'styleNo',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: 'PO NO.',
- dataIndex: 'poNo',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: 'ITEM NO./SKU NO./UPC NO./PACKS CODE',
- dataIndex: 'itemNoSoon',
- width: 340,
- className: 'replacecolor'
- },
- {
- title: '分销点/DC/LABEL',
- dataIndex: 'dcLabel',
- width: 180,
- className: 'replacecolor'
- },
- {
- title: 'PREPACK SKU',
- dataIndex: 'prepackSku',
- width: 140,
- className: 'replacecolor'
- },
- {
- title: 'S',
- dataIndex: 's',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: 'M',
- dataIndex: 'm',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: 'L',
- dataIndex: 'l',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: 'XL',
- dataIndex: 'xl',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: 'XXL',
- dataIndex: 'xxl',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '3XL',
- dataIndex: 'xxxl',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '启始箱号',
- dataIndex: ' inceptionBoxNo.',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '结束箱号',
- dataIndex: 'endBoxNo.',
- width: 140,
- className: 'replacecolor'
- },
- {
- title: '颜色(中英文)',
- dataIndex: 'colorChUsa',
- width: 140,
- customRender: t => ellipsis(t),
- className: 'replacecolor'
- },
- {
- title: '配码--根据U8订单来显示',
- dataIndex: 'configCode',
- width: 140,
- className: 'replacecolor'
- },
- {
- title: '件数/箱',
- dataIndex: 'packagesBox',
- width: 90,
- className: 'replacecolor'
- },
- {
- title: '箱数',
- dataIndex: 'boxNumber',
- width: 140,
- className: 'replacecolor'
- },
- {
- title: '总件数',
- dataIndex: 'totalPackagesNum',
- width: 140,
- className: 'replacecolor'
- },
- {
- title: '净重/箱',
- dataIndex: 'suttle',
- width: 90,
- className: 'replacecolor'
- },
- {
- title: '总净重',
- dataIndex: 'totalNetWeight',
- width: 140,
- className: 'replacecolor'
- },
- {
- title: '毛重/箱',
- dataIndex: 'roughWeight',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '总毛重',
- dataIndex: 'totalGrossWeight',
- width: 140,
- className: 'replacecolor'
- },
- {
- title: '外箱长度',
- dataIndex: 'boxLength',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '外箱宽度',
- dataIndex: 'boxWidth',
- width: 140,
- className: 'replacecolor'
- },
- {
- title: '外箱高度',
- dataIndex: 'boxHeight',
- width: 140,
- className: 'replacecolor'
- },
- {
- title: '总体积',
- dataIndex: 'totalVolume',
- width: 140,
- className: 'replacecolor'
- },
- {
- title: '净净重',
- dataIndex: 'netNetWeight',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '单价',
- dataIndex: 'price',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '总价',
- dataIndex: 'totalPrice',
- width: 120,
- className: 'replacecolor'
- },
- {
- title: '备注(U8)',
- dataIndex: 'memo',
- width: 140,
- fixed: 'right',
- className: 'replacecolor'
- }
- ],
- data: [], //子表信息
- loading: false, // 表格加载
- visible: false,
- detailsAdpacking: {}, //主表信息
- confirmLoading: false
- }
- },
- created() {},
- methods: {
- // 抽屉 取消
- handleCancel() {
- console.log('点击抽屉取消')
- this.close()
- },
- // -------------------------------------
- close() {
- this.$emit('close')
- this.visible = false
- // this.$refs.form.resetFields()
- },
- aa() {},
- modalFormOk() {}
- },
- computed: {},
- mounted() {}
- }
- </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;
- }
- </style>
|