|
@@ -1,85 +1,69 @@
|
|
<template>
|
|
<template>
|
|
- <!-- 详情 回显所有信息 面料 装箱单 -->
|
|
|
|
- <div id="detailsFabricDrawer">
|
|
|
|
- <a-drawer title="详情" width="89%" placement="right" :closable="true" :visible="visible" @close="handleCancel">
|
|
|
|
- <!-- 主表信息 回显-->
|
|
|
|
|
|
+ <!-- 新增面料 装箱单 -->
|
|
|
|
+ <div id="addFabricDrawer">
|
|
|
|
+ <a-drawer title="新增面料" width="89%" placement="right" :closable="true" :visible="visible" @close="handleCancel">
|
|
|
|
+ <!-- 主表信息 填写-->
|
|
<a-card :bordered="true">
|
|
<a-card :bordered="true">
|
|
<div class="table-page-search-wrapper">
|
|
<div class="table-page-search-wrapper">
|
|
- <a-form-model layout="inline" ref="form" :model="editFabric">
|
|
|
|
|
|
+ <a-form-model layout="inline" ref="form" :model="addFabric" :rules="validatorRules">
|
|
<a-row :gutter="24">
|
|
<a-row :gutter="24">
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
<a-form-model-item label="单号" prop="oddNum">
|
|
<a-form-model-item label="单号" prop="oddNum">
|
|
- YT67889
|
|
|
|
|
|
+ {{ addFabric.documentNo}}
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
<a-form-model-item label="集装箱号" prop="styleNum">
|
|
<a-form-model-item label="集装箱号" prop="styleNum">
|
|
- <!-- <a-input placeholder="请输入集装箱号" v-model="editFabric.containerNo"></a-input> -->
|
|
|
|
|
|
+ {{addFabric.containerNumber}}
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
<a-form-model-item label="装柜日期" prop="loadingDate">
|
|
<a-form-model-item label="装柜日期" prop="loadingDate">
|
|
- <!-- <a-date-picker
|
|
|
|
- placeholder="请选择装柜日期"
|
|
|
|
- :format="dateFormat"
|
|
|
|
- style="width: 100%"
|
|
|
|
- v-model="editFabric.loadingDate"
|
|
|
|
- /> -->
|
|
|
|
|
|
+ {{addFabric.latestDateOfShipment}}
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
<a-form-model-item label="成衣工厂" prop="clothesFactory">
|
|
<a-form-model-item label="成衣工厂" prop="clothesFactory">
|
|
- <!-- <a-input placeholder="请输入成衣工厂" v-model="editFabric.clothesFactory"></a-input> -->
|
|
|
|
- <!-- <a-select placeholder="请选择成衣工厂">
|
|
|
|
- <a-select-option value="">请选择</a-select-option>
|
|
|
|
- <a-select-option value="0">成衣工厂1</a-select-option>
|
|
|
|
- <a-select-option value="1">成衣工厂2</a-select-option>
|
|
|
|
- <a-select-option value="2">成衣工厂3</a-select-option>
|
|
|
|
- </a-select> -->
|
|
|
|
|
|
+ {{addFabric.garmentFactory}}
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
<a-form-model-item label="发票号" prop="invoiceNum">
|
|
<a-form-model-item label="发票号" prop="invoiceNum">
|
|
- <!-- <a-input placeholder="请输入发票号" v-model="editFabric.invoiceNum"></a-input> -->
|
|
|
|
|
|
+ {{addFabric.invoiceNo}}
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
<a-form-model-item label="制单人" prop="preparedBy">
|
|
<a-form-model-item label="制单人" prop="preparedBy">
|
|
- <!-- <a-input placeholder="请输入制单人" v-model="editFabric.preparedBy"></a-input> -->
|
|
|
|
|
|
+ {{addFabric.preparedBy}}
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
<a-form-model-item label="制单日期" prop="preparedDate">
|
|
<a-form-model-item label="制单日期" prop="preparedDate">
|
|
- <!-- <a-date-picker
|
|
|
|
- placeholder="请选择制单日期"
|
|
|
|
- :format="dateFormat"
|
|
|
|
- style="width: 100%"
|
|
|
|
- v-model="editFabric.preparedDate"
|
|
|
|
- /> -->
|
|
|
|
|
|
+ {{addFabric.preparedDate}}
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
<a-form-model-item label="外销发票号" prop="exportInvoiceNo">
|
|
<a-form-model-item label="外销发票号" prop="exportInvoiceNo">
|
|
- <!-- <a-input placeholder="请输入外销发票号" v-model="editFabric.exportInvoiceNo"></a-input> -->
|
|
|
|
|
|
+ {{addFabric.exportInvoiceNo}}
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
<a-form-model-item label="托书号" prop="bookNum">
|
|
<a-form-model-item label="托书号" prop="bookNum">
|
|
- <!-- <a-input placeholder="请输入托书号" v-model="editFabric.bookNum"></a-input> -->
|
|
|
|
|
|
+ {{addFabric.shippingOrderNumber}}
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
<a-col :md="6" :sm="8">
|
|
<a-form-model-item label="备注" prop="note">
|
|
<a-form-model-item label="备注" prop="note">
|
|
- <!-- <a-input placeholder="请输入备注" v-model="editFabric.note"></a-input> -->
|
|
|
|
|
|
+ {{addFabric.remarks}}
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
</a-row>
|
|
</a-row>
|
|
@@ -87,24 +71,43 @@
|
|
</div>
|
|
</div>
|
|
</a-card>
|
|
</a-card>
|
|
|
|
|
|
- <!-- 子表 -->
|
|
|
|
|
|
+ <!--操作按钮区域 参照发运明细 増行-->
|
|
<a-card :bordered="true" style="margin:10px 0 60px 0;">
|
|
<a-card :bordered="true" style="margin:10px 0 60px 0;">
|
|
|
|
+ <!-- 子表 -->
|
|
<a-spin :spinning="confirmLoading">
|
|
<a-spin :spinning="confirmLoading">
|
|
- <a-form-model ref="formRef">
|
|
|
|
|
|
+ <a-form-model ref="formRef" :rules="validatorRules">
|
|
<a-table
|
|
<a-table
|
|
bordered
|
|
bordered
|
|
- :row-key="record => record.id"
|
|
|
|
- :columns="columns"
|
|
|
|
- :data-source="data"
|
|
|
|
|
|
+ :columns="addFabricColumns"
|
|
|
|
+ :data-source="addFabricData"
|
|
:loading="loading"
|
|
:loading="loading"
|
|
- :pagination="ipagination"
|
|
|
|
|
|
+ pagination="false"
|
|
:scroll="{ x: 1500 }"
|
|
:scroll="{ x: 1500 }"
|
|
@change="handleTableChange"
|
|
@change="handleTableChange"
|
|
>
|
|
>
|
|
|
|
+
|
|
</a-table>
|
|
</a-table>
|
|
</a-form-model>
|
|
</a-form-model>
|
|
</a-spin>
|
|
</a-spin>
|
|
</a-card>
|
|
</a-card>
|
|
|
|
+ <!-- 页面底部提交取消 -->
|
|
|
|
+ <div
|
|
|
|
+ :style="{
|
|
|
|
+ position: 'absolute',
|
|
|
|
+ right: 0,
|
|
|
|
+ bottom: 0,
|
|
|
|
+ width: '100%',
|
|
|
|
+ borderTop: '1px solid #e9e9e9',
|
|
|
|
+ padding: '10px 16px',
|
|
|
|
+ background: '#fff',
|
|
|
|
+ textAlign: 'right',
|
|
|
|
+ zIndex: 1
|
|
|
|
+ }"
|
|
|
|
+ >
|
|
|
|
+ <a-button type="primary" @click="handleCancel">
|
|
|
|
+ 关闭
|
|
|
|
+ </a-button>
|
|
|
|
+ </div>
|
|
</a-drawer>
|
|
</a-drawer>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -114,51 +117,51 @@ import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
- name: 'DetailsFabricDrawer', // 详情 装箱单 -面料
|
|
|
|
|
|
+ name: 'AddFabricDrawer', // 新增 装箱单 -面料
|
|
mixins: [JeecgListMixin],
|
|
mixins: [JeecgListMixin],
|
|
computed: {},
|
|
computed: {},
|
|
- components: { JEllipsis },
|
|
|
|
|
|
+ components: { JEllipsis}, // 参照发运明细 弹框
|
|
data() {
|
|
data() {
|
|
let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} />
|
|
let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} />
|
|
return {
|
|
return {
|
|
// 表头
|
|
// 表头
|
|
- columns: [
|
|
|
|
|
|
+ addFabricColumns: [
|
|
{
|
|
{
|
|
title: '业务员 Merchandiser',
|
|
title: '业务员 Merchandiser',
|
|
- dataIndex: 'merchandiser',
|
|
|
|
|
|
+ dataIndex: 'salesman',
|
|
width: 120,
|
|
width: 120,
|
|
fixed: 'left',
|
|
fixed: 'left',
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '计划单号',
|
|
title: '计划单号',
|
|
- dataIndex: 'planNum',
|
|
|
|
|
|
+ dataIndex: 'planLotNumber',
|
|
width: 160,
|
|
width: 160,
|
|
fixed: 'left',
|
|
fixed: 'left',
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '款号/Kimball',
|
|
title: '款号/Kimball',
|
|
- dataIndex: 'Kimball',
|
|
|
|
|
|
+ dataIndex: 'itemNumber',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '缸号/Batch no.',
|
|
title: '缸号/Batch no.',
|
|
- dataIndex: 'batchNo',
|
|
|
|
|
|
+ dataIndex: 'dyelotNumber',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '颜色/Color',
|
|
title: '颜色/Color',
|
|
- dataIndex: 'color',
|
|
|
|
|
|
+ dataIndex: 'colour',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
|
|
|
|
{
|
|
{
|
|
title: '项目/Item(存货编码)',
|
|
title: '项目/Item(存货编码)',
|
|
- dataIndex: 'itemCode',
|
|
|
|
|
|
+ dataIndex: 'inventoryCode',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
@@ -185,7 +188,7 @@ export default {
|
|
|
|
|
|
{
|
|
{
|
|
title: '门幅/Width',
|
|
title: '门幅/Width',
|
|
- dataIndex: 'larghezza',
|
|
|
|
|
|
+ dataIndex: 'width',
|
|
width: 140,
|
|
width: 140,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
@@ -197,32 +200,32 @@ export default {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '毛重/GW/kg',
|
|
title: '毛重/GW/kg',
|
|
- dataIndex: 'roughWeigh',
|
|
|
|
|
|
+ dataIndex: 'grossWeight',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '净重/NW/kg',
|
|
title: '净重/NW/kg',
|
|
- dataIndex: 'suttle',
|
|
|
|
|
|
+ dataIndex: 'netWeight',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
|
|
|
|
{
|
|
{
|
|
title: '染后重',
|
|
title: '染后重',
|
|
- dataIndex: 'postDyeingWweight',
|
|
|
|
|
|
+ dataIndex: 'afterHeavy',
|
|
width: 90,
|
|
width: 90,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '拷布重',
|
|
title: '拷布重',
|
|
- dataIndex: 'clothWeight',
|
|
|
|
|
|
+ dataIndex: 'kaoClothWeight',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '米数/Length/m',
|
|
title: '米数/Length/m',
|
|
- dataIndex: '米数',
|
|
|
|
|
|
+ dataIndex: 'meter',
|
|
width: 130,
|
|
width: 130,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
@@ -240,31 +243,31 @@ export default {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '供应商编码(染厂)',
|
|
title: '供应商编码(染厂)',
|
|
- dataIndex: 'supplierCodeDye',
|
|
|
|
|
|
+ dataIndex: 'supplierCodeDyeingPlant',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '供应商(染厂)',
|
|
title: '供应商(染厂)',
|
|
- dataIndex: 'supplierDye',
|
|
|
|
|
|
+ dataIndex: 'supplierDyeingPlant',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '供应商编码(印厂)',
|
|
title: '供应商编码(印厂)',
|
|
- dataIndex: 'supplierCodePrint',
|
|
|
|
|
|
+ dataIndex: 'supplierCodePrintingPlant',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '供应商(印厂)',
|
|
title: '供应商(印厂)',
|
|
- dataIndex: 'supplierPrint',
|
|
|
|
|
|
+ dataIndex: 'supplierPrintingPlant',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '包装方式',
|
|
title: '包装方式',
|
|
- dataIndex: 'packingWay ',
|
|
|
|
|
|
+ dataIndex: 'mannerOfPacking ',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
@@ -276,45 +279,45 @@ export default {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '是否手册纱',
|
|
title: '是否手册纱',
|
|
- dataIndex: 'isManualYarn',
|
|
|
|
|
|
+ dataIndex: 'manualYarnFlag',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '手册纱单价',
|
|
title: '手册纱单价',
|
|
- dataIndex: 'manualYarnPrice',
|
|
|
|
|
|
+ dataIndex: 'manualYarnUnitPrice',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '手册纱占比%',
|
|
title: '手册纱占比%',
|
|
- dataIndex: 'aa',
|
|
|
|
|
|
+ dataIndex: 'manualYarnProportion',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '柜号',
|
|
title: '柜号',
|
|
- dataIndex: 'containerNum',
|
|
|
|
|
|
+ dataIndex: 'containerNumber',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
|
|
|
|
{
|
|
{
|
|
title: '备注',
|
|
title: '备注',
|
|
- dataIndex: 'note',
|
|
|
|
|
|
+ dataIndex: 'memo',
|
|
width: 160,
|
|
width: 160,
|
|
customRender: t => ellipsis(t),
|
|
customRender: t => ellipsis(t),
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '入库数量',
|
|
title: '入库数量',
|
|
- dataIndex: 'inQuantity',
|
|
|
|
|
|
+ dataIndex: 'inventoryQuantity',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '规格型号',
|
|
title: '规格型号',
|
|
- dataIndex: 'specificationsModels',
|
|
|
|
|
|
+ dataIndex: 'specificationAndModel',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
@@ -326,30 +329,31 @@ export default {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '超发',
|
|
title: '超发',
|
|
- dataIndex: 'superHair',
|
|
|
|
|
|
+ dataIndex: 'excessQuantity',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '单位',
|
|
title: '单位',
|
|
- dataIndex: 'unit',
|
|
|
|
|
|
+ dataIndex: 'masterMetering',
|
|
width: 120,
|
|
width: 120,
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '备注(U8)',
|
|
title: '备注(U8)',
|
|
- dataIndex: 'noteU8',
|
|
|
|
|
|
+ dataIndex: 'remarks2',
|
|
width: 160,
|
|
width: 160,
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
customRender: t => ellipsis(t),
|
|
customRender: t => ellipsis(t),
|
|
className: 'replacecolor'
|
|
className: 'replacecolor'
|
|
- }
|
|
|
|
|
|
+ },
|
|
],
|
|
],
|
|
- data: [{}, {}, {}],
|
|
|
|
|
|
+ addFabricData: [],
|
|
loading: false, // 表格加载
|
|
loading: false, // 表格加载
|
|
- editFabric: {},
|
|
|
|
|
|
+ addFabric: {},
|
|
visible: false,
|
|
visible: false,
|
|
confirmLoading: false,
|
|
confirmLoading: false,
|
|
|
|
+ validatorRules: { },
|
|
dateFormat: 'YYYY-MM-DD'
|
|
dateFormat: 'YYYY-MM-DD'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -361,23 +365,22 @@ export default {
|
|
console.log('点击抽屉取消')
|
|
console.log('点击抽屉取消')
|
|
this.close()
|
|
this.close()
|
|
},
|
|
},
|
|
|
|
+
|
|
|
|
|
|
// -------------------------------------
|
|
// -------------------------------------
|
|
close() {
|
|
close() {
|
|
this.$emit('close')
|
|
this.$emit('close')
|
|
this.visible = false
|
|
this.visible = false
|
|
- this.$refs.form.resetFields()
|
|
|
|
|
|
+ this.addFabric = {}
|
|
|
|
+ this.addFabricData = []
|
|
},
|
|
},
|
|
- // - father------------------------------------
|
|
|
|
- aa() {},
|
|
|
|
- modalFormOk() {}
|
|
|
|
|
|
|
|
- // 分页、排序、筛选变化时触发
|
|
|
|
|
|
+ // 分页、排序、筛选变化时触发
|
|
// handleTableChange(pagination, filters, sorter) {
|
|
// handleTableChange(pagination, filters, sorter) {
|
|
// // console.log('当前页信息>>>>',pagination)
|
|
// // console.log('当前页信息>>>>',pagination)
|
|
// this.queryParam.pageNo = pagination.current
|
|
// this.queryParam.pageNo = pagination.current
|
|
// this.getAnnList()
|
|
// this.getAnnList()
|
|
- // }'
|
|
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|