|
@@ -1,33 +1,33 @@
|
|
|
<template>
|
|
|
<!-- 编辑 预装箱单 回显信息,有文本框-->
|
|
|
- <div id="editAdvancePacking">
|
|
|
- <a-drawer title="编辑" width="89%" placement="right" :closable="true" :visible="visible" @close="handleCancel">
|
|
|
+ <div id="editAdpackingDrawer">
|
|
|
+ <a-drawer title="编辑" width="89%" placement="right" :closable="true" :visible="visible" @close="onClose">
|
|
|
<!-- 主表信息 填写 :rules="validatorRules" -->
|
|
|
<a-card :bordered="true">
|
|
|
<div class="table-page-search-wrapper">
|
|
|
- <a-form-model layout="inline" ref="form" :model="addAdpacking">
|
|
|
+ <a-form-model layout="inline" ref="form" :model="editAdpacking">
|
|
|
<a-row :gutter="24">
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-model-item label="订单号" prop="orderNum">
|
|
|
- <a-input placeholder="请输入订单号" v-model="addAdpacking.orderNum"></a-input>
|
|
|
+ <a-form-model-item label="订单号" prop="orderNumber">
|
|
|
+ <a-input placeholder="请输入订单号" v-model="editAdpacking.orderNumber"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="款号" prop="styleNum">
|
|
|
- <a-input placeholder="请输入款号" v-model="addAdpacking.styleNum"></a-input>
|
|
|
+ <a-input placeholder="请输入款号" v-model="editAdpacking.styleNum"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="品名" prop="name">
|
|
|
- <a-input placeholder="请输入品名" v-model="addAdpacking.name"></a-input>
|
|
|
+ <a-input placeholder="请输入品名" v-model="editAdpacking.name"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="尺码范围" prop="sizeRange">
|
|
|
- <a-input placeholder="请输入尺码范围" v-model="addAdpacking.sizeRange"></a-input>
|
|
|
+ <a-input placeholder="请输入尺码范围" v-model="editAdpacking.sizeRange"></a-input>
|
|
|
<!-- <a-select placeholder="请选择尺码范围">
|
|
|
<a-select-option value="">请选择</a-select-option>
|
|
|
<a-select-option value="0">客户1</a-select-option>
|
|
@@ -39,31 +39,31 @@
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="客户" prop="customer">
|
|
|
- <a-input placeholder="请输入客户" v-model="addAdpacking.customer"></a-input>
|
|
|
+ <a-input placeholder="请输入客户" v-model="editAdpacking.customer"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="集装箱代号" prop="containerCode">
|
|
|
- <a-input placeholder="请输入集装箱代号" v-model="addAdpacking.containerCode"></a-input>
|
|
|
+ <a-input placeholder="请输入集装箱代号" v-model="editAdpacking.containerCode"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-model-item label="集装箱号" prop="containerNo">
|
|
|
- <a-input placeholder="请输入集装箱号" v-model="addAdpacking.containerNo"></a-input>
|
|
|
+ <a-form-model-item label="集装箱号" prop="containerNumber">
|
|
|
+ <a-input placeholder="请输入集装箱号" v-model="editAdpacking.containerNumber"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
- <a-form-model-item label="备注" prop="note">
|
|
|
- <a-input placeholder="请输入备注" v-model="addAdpacking.note"></a-input>
|
|
|
+ <a-form-model-item label="备注" prop="memo">
|
|
|
+ <a-input placeholder="请输入备注" v-model="editAdpacking.memo"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
<a-col :md="6" :sm="8">
|
|
|
<a-form-model-item label="成衣工厂" prop="clothesFactory">
|
|
|
- <a-input placeholder="请输入成衣工厂" v-model="addAdpacking.clothesFactory"></a-input>
|
|
|
+ <a-input placeholder="请输入成衣工厂" v-model="editAdpacking.clothesFactory"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
@@ -79,92 +79,92 @@
|
|
|
</div>
|
|
|
|
|
|
<!-- 子表 :rules="validatorRules"-->
|
|
|
- <a-spin :spinning="confirmLoading">
|
|
|
- <a-form-model ref="formRef">
|
|
|
- <a-table
|
|
|
- bordered
|
|
|
- rowKey="id"
|
|
|
- :columns="columns"
|
|
|
- :data-source="data"
|
|
|
- :loading="loading"
|
|
|
- :pagination="ipagination"
|
|
|
- :scroll="{ x: 1500 }"
|
|
|
- @change="handleTableChange"
|
|
|
- >
|
|
|
- <!-- 结束箱号 输入框 required :rules="rules.styleNum"-->
|
|
|
- <template slot="endBoxNo" slot-scope="text, record, index">
|
|
|
- <a-form-model-item prop="endBoxNo">
|
|
|
- <a-input style="width:100%" type="text" v-model="record.endBoxNo" />
|
|
|
- </a-form-model-item>
|
|
|
- </template>
|
|
|
-
|
|
|
- <!-- 颜色(中英文) -->
|
|
|
- <template slot="colorChUsa" slot-scope="text, record, index">
|
|
|
- <a-form-model-item prop="colorChUsa">
|
|
|
- <a-input style="width:100%" type="text" v-model="record.colorChUsa" />
|
|
|
- </a-form-model-item>
|
|
|
- </template>
|
|
|
-
|
|
|
- <!-- 箱数 -->
|
|
|
- <template slot="boxes" slot-scope="text, record, index">
|
|
|
- <a-form-model-item prop="boxes">
|
|
|
- <a-input style="width:100%" type="text" v-model="record.boxes" />
|
|
|
- </a-form-model-item>
|
|
|
- </template>
|
|
|
-
|
|
|
- <!-- 总件数 -->
|
|
|
- <template slot="totalPackagesNum" slot-scope="text, record, index">
|
|
|
- <a-form-model-item prop="totalPackagesNum">
|
|
|
- <a-input style="width:100%" type="text" v-model="record.totalPackagesNum" />
|
|
|
- </a-form-model-item>
|
|
|
- </template>
|
|
|
-
|
|
|
- <!-- 总净重 -->
|
|
|
- <template slot="totalSuttle" slot-scope="text, record, index">
|
|
|
- <a-form-model-item prop="totalSuttle">
|
|
|
- <a-input style="width:100%" type="text" v-model="record.totalSuttle" />
|
|
|
- </a-form-model-item>
|
|
|
- </template>
|
|
|
-
|
|
|
- <!-- 总毛重 -->
|
|
|
- <template slot="totalRoughWeigh" slot-scope="text, record, index">
|
|
|
- <a-form-model-item prop="totalRoughWeigh">
|
|
|
- <a-input style="width:100%" type="text" v-model="record.totalRoughWeigh" />
|
|
|
- </a-form-model-item>
|
|
|
- </template>
|
|
|
-
|
|
|
- <!-- 外箱宽度 -->
|
|
|
- <template slot="boxWidth" slot-scope="text, record, index">
|
|
|
- <a-form-model-item prop="boxWidth">
|
|
|
- <a-input style="width:100%" type="text" v-model="record.boxWidth" />
|
|
|
- </a-form-model-item>
|
|
|
- </template>
|
|
|
-
|
|
|
- <!-- 外箱高度 -->
|
|
|
- <template slot="boxHeight" slot-scope="text, record, index">
|
|
|
- <a-form-model-item prop="boxHeight">
|
|
|
- <a-input style="width:100%" type="text" v-model="record.boxHeight" />
|
|
|
- </a-form-model-item>
|
|
|
- </template>
|
|
|
-
|
|
|
- <!-- 总体积 -->
|
|
|
- <template slot="totalVolume" slot-scope="text, record, index">
|
|
|
- <a-form-model-item prop="totalVolume">
|
|
|
- <a-input style="width:100%" type="text" v-model="record.totalVolume" />
|
|
|
- </a-form-model-item>
|
|
|
- </template>
|
|
|
-
|
|
|
- <!-- 操作 -->
|
|
|
- <span slot="operationSlot" slot-scope="text, record">
|
|
|
- <a-popconfirm title="确定删除吗?" ok-text="是" cancel-text="否" @confirm="handleDelete(record.id)">
|
|
|
- <a href="javascript:void(0);" style="color:red;">删除</a>
|
|
|
- </a-popconfirm>
|
|
|
- <a-divider type="vertical" />
|
|
|
- <a @click="copy(record)">复制</a>
|
|
|
- </span>
|
|
|
- </a-table>
|
|
|
- </a-form-model>
|
|
|
- </a-spin>
|
|
|
+ <!-- <a-spin :spinning="confirmLoading"> -->
|
|
|
+ <!-- <a-form-model ref="formRef"> -->
|
|
|
+ <a-table
|
|
|
+ bordered
|
|
|
+ rowKey="id"
|
|
|
+ :columns="columns"
|
|
|
+ :data-source="data"
|
|
|
+ :loading="loading"
|
|
|
+ :pagination="ipagination"
|
|
|
+ :scroll="{ x: 1500 }"
|
|
|
+ @change="handleTableChange"
|
|
|
+ >
|
|
|
+ <!-- 结束箱号 输入框 required :rules="rules.styleNum"-->
|
|
|
+ <template slot="endBoxNo" slot-scope="text, record, index">
|
|
|
+ <a-form-model-item prop="endBoxNo">
|
|
|
+ <a-input style="width:100%" type="text" v-model="record.endBoxNo" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <!-- 颜色(中英文) -->
|
|
|
+ <template slot="colorChUsa" slot-scope="text, record, index">
|
|
|
+ <a-form-model-item prop="colorChUsa">
|
|
|
+ <a-input style="width:100%" type="text" v-model="record.colorChUsa" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <!-- 箱数 -->
|
|
|
+ <template slot="boxes" slot-scope="text, record, index">
|
|
|
+ <a-form-model-item prop="boxNumber">
|
|
|
+ <a-input style="width:100%" type="text" v-model="record.boxNumber" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <!-- 总件数 -->
|
|
|
+ <template slot="totalPackagesNum" slot-scope="text, record, index">
|
|
|
+ <a-form-model-item prop="totalPackagesNum">
|
|
|
+ <a-input style="width:100%" type="text" v-model="record.totalPackagesNum" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <!-- 总净重 -->
|
|
|
+ <template slot="totalSuttle" slot-scope="text, record, index">
|
|
|
+ <a-form-model-item prop="totalSuttle">
|
|
|
+ <a-input style="width:100%" type="text" v-model="record.totalSuttle" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <!-- 总毛重 -->
|
|
|
+ <template slot="totalRoughWeigh" slot-scope="text, record, index">
|
|
|
+ <a-form-model-item prop="totalRoughWeigh">
|
|
|
+ <a-input style="width:100%" type="text" v-model="record.totalRoughWeigh" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <!-- 外箱宽度 -->
|
|
|
+ <template slot="boxWidth" slot-scope="text, record, index">
|
|
|
+ <a-form-model-item prop="boxWidth">
|
|
|
+ <a-input style="width:100%" type="text" v-model="record.boxWidth" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <!-- 外箱高度 -->
|
|
|
+ <template slot="boxHeight" slot-scope="text, record, index">
|
|
|
+ <a-form-model-item prop="boxHeight">
|
|
|
+ <a-input style="width:100%" type="text" v-model="record.boxHeight" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <!-- 总体积 -->
|
|
|
+ <template slot="totalVolume" slot-scope="text, record, index">
|
|
|
+ <a-form-model-item prop="totalVolume">
|
|
|
+ <a-input style="width:100%" type="text" v-model="record.totalVolume" />
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
+
|
|
|
+ <!-- 操作 -->
|
|
|
+ <span slot="operationSlot" slot-scope="text, record">
|
|
|
+ <a-popconfirm title="确定删除吗?" ok-text="是" cancel-text="否" @confirm="handleDelete(record.id)">
|
|
|
+ <a href="javascript:void(0);" style="color:red;">删除</a>
|
|
|
+ </a-popconfirm>
|
|
|
+ <a-divider type="vertical" />
|
|
|
+ <a @click="copy(record)">复制</a>
|
|
|
+ </span>
|
|
|
+ </a-table>
|
|
|
+ <!-- </a-form-model> -->
|
|
|
+ <!-- </a-spin> -->
|
|
|
</a-card>
|
|
|
<!-- 页面底部提交取消 -->
|
|
|
<div
|
|
@@ -183,8 +183,8 @@
|
|
|
<a-popconfirm title="确定放弃编辑?" @confirm="handleCancel" okText="确定" cancelText="取消">
|
|
|
<a-button :style="{ marginRight: '8px' }">取消</a-button>
|
|
|
</a-popconfirm>
|
|
|
- <a-button type="primary" @click="submitEdit">
|
|
|
- 提交
|
|
|
+ <a-button type="primary" @click="saveEdit">
|
|
|
+ 保存
|
|
|
</a-button>
|
|
|
</div>
|
|
|
</a-drawer>
|
|
@@ -201,28 +201,32 @@
|
|
|
<script>
|
|
|
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
|
+
|
|
|
import ReferShipmentDetailsModal from '@views/advance-packingList/referShipmentDetailsModal.vue'
|
|
|
|
|
|
+import { itemByMainId, editById } from '@api/document/advance-packingList.js'
|
|
|
+
|
|
|
export default {
|
|
|
- name: 'EditAdvancePacking', // 编辑预装箱单
|
|
|
+ name: 'EditAdpackingDrawer', // 编辑 预装箱单
|
|
|
mixins: [JeecgListMixin],
|
|
|
components: { ReferShipmentDetailsModal, JEllipsis }, // 参照发运明细弹框
|
|
|
data() {
|
|
|
let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} />
|
|
|
|
|
|
return {
|
|
|
+ editAdpacking: {}, // 主表编辑预装箱单-成衣
|
|
|
// 表头
|
|
|
columns: [
|
|
|
{
|
|
|
title: '账套',
|
|
|
- dataIndex: 'accountSet',
|
|
|
+ dataIndex: 'acSetNo',
|
|
|
width: 120,
|
|
|
fixed: 'left',
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '成衣工厂',
|
|
|
- dataIndex: 'clothesFactory',
|
|
|
+ dataIndex: 'garmentFactory',
|
|
|
width: 120,
|
|
|
fixed: 'left',
|
|
|
className: 'replacecolor'
|
|
@@ -249,13 +253,13 @@ export default {
|
|
|
|
|
|
{
|
|
|
title: 'ITEM NO./SKU NO./UPC NO./PACKS CODE',
|
|
|
- dataIndex: 'itemNoSoon',
|
|
|
+ dataIndex: 'itemCode',
|
|
|
width: 340,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '分销点/DC/LABEL',
|
|
|
- dataIndex: 'dcLabel',
|
|
|
+ dataIndex: 'distributionPoint',
|
|
|
width: 180,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
@@ -304,102 +308,93 @@ export default {
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
- title: '启始箱号',
|
|
|
- dataIndex: ' inceptionBoxNo.',
|
|
|
+ title: '起始箱号',
|
|
|
+ dataIndex: ' startingBoxNumber.',
|
|
|
width: 120,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
|
|
|
{
|
|
|
title: '结束箱号',
|
|
|
- dataIndex: 'endBoxNo.',
|
|
|
+ dataIndex: 'endCaseNumber.',
|
|
|
width: 140,
|
|
|
- scopedSlots: { customRender: 'endBoxNo' },
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
|
|
|
{
|
|
|
title: '颜色(中英文)',
|
|
|
- dataIndex: 'colorChUsa',
|
|
|
+ dataIndex: 'colour',
|
|
|
width: 140,
|
|
|
customRender: t => ellipsis(t),
|
|
|
- scopedSlots: { customRender: 'colorChUsa' },
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '配码--根据U8订单来显示',
|
|
|
- dataIndex: 'configCode',
|
|
|
+ dataIndex: 'withCode',
|
|
|
width: 140,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '件数/箱',
|
|
|
- dataIndex: 'packagesBox',
|
|
|
+ dataIndex: 'piecesBox',
|
|
|
width: 90,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '箱数',
|
|
|
- dataIndex: 'boxes',
|
|
|
+ dataIndex: 'boxNumber',
|
|
|
width: 140,
|
|
|
- scopedSlots: { customRender: 'boxes' },
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
|
|
|
{
|
|
|
title: '总件数',
|
|
|
- dataIndex: 'totalPackagesNum',
|
|
|
+ dataIndex: 'total',
|
|
|
width: 140,
|
|
|
- scopedSlots: { customRender: 'totalPackagesNum' },
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '净重/箱',
|
|
|
- dataIndex: 'suttle',
|
|
|
+ dataIndex: 'netWeight',
|
|
|
width: 90,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '总净重',
|
|
|
- dataIndex: 'totalSuttle',
|
|
|
+ dataIndex: 'totalNetWeight',
|
|
|
width: 140,
|
|
|
- scopedSlots: { customRender: 'totalSuttle' },
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
|
|
|
{
|
|
|
title: '毛重/箱',
|
|
|
- dataIndex: 'roughWeight',
|
|
|
+ dataIndex: 'grossWeight',
|
|
|
width: 120,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '总毛重',
|
|
|
- dataIndex: 'totalRoughWeigh',
|
|
|
+ dataIndex: 'totalGrossWeight',
|
|
|
width: 140,
|
|
|
- scopedSlots: { customRender: 'totalRoughWeigh' },
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '外箱长度',
|
|
|
- dataIndex: 'boxLength',
|
|
|
+ dataIndex: 'outerBoxLength',
|
|
|
width: 120,
|
|
|
- // scopedSlots: { customRender: 'boxLength' },
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
|
|
|
{
|
|
|
title: '外箱宽度',
|
|
|
- dataIndex: 'boxWidth',
|
|
|
+ dataIndex: 'outerBoxWidth',
|
|
|
width: 140,
|
|
|
- scopedSlots: { customRender: 'boxWidth' },
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '外箱高度',
|
|
|
- dataIndex: 'boxHeight',
|
|
|
+ dataIndex: 'outerBoxHeight',
|
|
|
width: 140,
|
|
|
- scopedSlots: { customRender: 'boxHeight' },
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
|
|
@@ -407,63 +402,87 @@ export default {
|
|
|
title: '总体积',
|
|
|
dataIndex: 'totalVolume',
|
|
|
width: 140,
|
|
|
- scopedSlots: { customRender: 'totalVolume' },
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '净净重',
|
|
|
- dataIndex: 'netNetWeight',
|
|
|
+ dataIndex: 'netWeightToo',
|
|
|
width: 120,
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '单价',
|
|
|
- dataIndex: 'price',
|
|
|
+ dataIndex: 'unitPrice',
|
|
|
width: 120,
|
|
|
-
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '总价',
|
|
|
- dataIndex: 'totalPrices',
|
|
|
+ dataIndex: 'totalPrice',
|
|
|
width: 120,
|
|
|
-
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
title: '备注(U8)',
|
|
|
- dataIndex: 'note',
|
|
|
+ dataIndex: 'u8Remarks',
|
|
|
width: 140,
|
|
|
fixed: 'right',
|
|
|
customRender: t => ellipsis(t),
|
|
|
className: 'replacecolor'
|
|
|
- },
|
|
|
-
|
|
|
- {
|
|
|
- title: '操作',
|
|
|
- dataIndex: 'operation',
|
|
|
- scopedSlots: { customRender: 'operationSlot' },
|
|
|
- width: 160,
|
|
|
- fixed: 'right',
|
|
|
- className: 'replacecolor'
|
|
|
}
|
|
|
],
|
|
|
-
|
|
|
- data: [{}, {}, {}, {}, {}],
|
|
|
+ data: [], //子表信息
|
|
|
loading: false, // 表格加载
|
|
|
visible: false,
|
|
|
// validatorRules: {
|
|
|
- // orderNum: [{ required: true, message: '订单号不能为空', trigger: 'blur' }],
|
|
|
+ // orderNumber: [{ required: true, message: '订单号不能为空', trigger: 'blur' }],
|
|
|
// styleNum: [{ required: true, message: '款号不能为空', trigger: 'blur' }],
|
|
|
// name: [{ required: true, message: '品名不能为空', trigger: 'blur' }]
|
|
|
// // 待确定还有哪些必填信息
|
|
|
// },
|
|
|
- addAdpacking: {},
|
|
|
- confirmLoading: false
|
|
|
+
|
|
|
+ // confirmLoading: false,
|
|
|
+ dateFormat: 'YYYY-MM-DD',
|
|
|
+ record: {}
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ // 接收父组件查询方法
|
|
|
+ props: {
|
|
|
+ fatherList: {
|
|
|
+ type: Function,
|
|
|
+ default: null
|
|
|
}
|
|
|
},
|
|
|
- created() {},
|
|
|
+ created() {
|
|
|
+ this.getEditInfo()
|
|
|
+ },
|
|
|
methods: {
|
|
|
+ getEditInfo() {
|
|
|
+ this.$nextTick(() => {
|
|
|
+ itemByMainId({ id: this.record.id }).then(res => {
|
|
|
+ if (res.code == 0) {
|
|
|
+ console.log('点击的对象', res.result)
|
|
|
+ this.editAdpacking = res.result //主表信息
|
|
|
+ this.data = res.result.syPreAssembledPackingListItemList //子表信息
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
+ // 保存
|
|
|
+ saveEdit() {
|
|
|
+ console.log('保存编辑、刷新预装箱单-成衣')
|
|
|
+ // const that = this
|
|
|
+ // // 触发表单验证
|
|
|
+ // this.$refs.form.validate(valid => {
|
|
|
+ // if (valid) {
|
|
|
+ // that.confirmLoading = true
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ this.close()
|
|
|
+ // this.getShipmentList() // 刷新 预装箱单-成衣列表
|
|
|
+ },
|
|
|
// 参照发运明细
|
|
|
referShipmentDetails() {
|
|
|
console.log('打开发运明细')
|
|
@@ -472,15 +491,14 @@ export default {
|
|
|
// 増行
|
|
|
handleAddColumn() {
|
|
|
console.log('増行')
|
|
|
-
|
|
|
const addrow = {
|
|
|
- accountSet: '',
|
|
|
- clothesFactory: '',
|
|
|
+ acSetNo: '',
|
|
|
+ garmentFactory: '',
|
|
|
hod: '',
|
|
|
styleNo: '',
|
|
|
poNo: '',
|
|
|
- itemNoSoon: '',
|
|
|
- dcLabel: '',
|
|
|
+ itemCode: '',
|
|
|
+ distributionPoint: '',
|
|
|
prepackSku: '',
|
|
|
s: '',
|
|
|
m: '',
|
|
@@ -488,60 +506,42 @@ export default {
|
|
|
xl: '',
|
|
|
xxl: '',
|
|
|
xxxl: '',
|
|
|
- inceptionBoxNo: '',
|
|
|
- endBoxNo: '',
|
|
|
- colorChUsa: '',
|
|
|
- configCode: '',
|
|
|
- packagesBox: '',
|
|
|
- boxes: '',
|
|
|
- totalPackagesNum: '',
|
|
|
- suttle: '',
|
|
|
- totalSuttle: '',
|
|
|
+ startingBoxNumber: '',
|
|
|
+ endCaseNumber: '',
|
|
|
+ colour: '',
|
|
|
+ withCode: '',
|
|
|
+ piecesBox: '',
|
|
|
+ boxNumber: '',
|
|
|
+ total: '',
|
|
|
+ netWeight: '',
|
|
|
+ totalNetWeight: '',
|
|
|
+
|
|
|
roughWeight: '',
|
|
|
- totalRoughWeigh: '',
|
|
|
- boxLength: '',
|
|
|
- boxWidth: '',
|
|
|
- boxHeight: '',
|
|
|
+ totalGrossWeight: '',
|
|
|
+ outerBoxLength: '',
|
|
|
+ outerBoxWidth: '',
|
|
|
+ outerBoxHeight: '',
|
|
|
totalVolume: '',
|
|
|
- netNetWeight: '',
|
|
|
- price: '',
|
|
|
- totalPrices: '',
|
|
|
- note: '',
|
|
|
+ netWeightToo: '',
|
|
|
+ unitPrice: '',
|
|
|
+ totalPrice: '',
|
|
|
+ u8Remarks: '',
|
|
|
operation: ''
|
|
|
}
|
|
|
-
|
|
|
this.data.push(addrow)
|
|
|
},
|
|
|
- // ----------------------------------------
|
|
|
- // 操作按钮 删除
|
|
|
+
|
|
|
+ // 删除
|
|
|
handleDelete(record) {},
|
|
|
- // 操作按钮
|
|
|
+
|
|
|
+ // 复制
|
|
|
copy(record) {},
|
|
|
- // ----------------------------------------
|
|
|
|
|
|
- // 抽屉 取消
|
|
|
- handleCancel() {
|
|
|
- console.log('点击抽屉取消')
|
|
|
- this.close()
|
|
|
- },
|
|
|
- // 抽屉 提交
|
|
|
- submitEdit() {
|
|
|
- console.log('保存编辑、刷新预装箱单-成衣')
|
|
|
- const that = this
|
|
|
- // 触发表单验证
|
|
|
- this.$refs.form.validate(valid => {
|
|
|
- if (valid) {
|
|
|
- that.confirmLoading = true
|
|
|
- }
|
|
|
- })
|
|
|
- this.close()
|
|
|
- // this.getShipmentList() // 刷新 预装箱单-成衣列表
|
|
|
- },
|
|
|
- // -------------------------------------
|
|
|
- close() {
|
|
|
- this.$emit('close')
|
|
|
+ onClose() {
|
|
|
this.visible = false
|
|
|
- this.$refs.form.resetFields()
|
|
|
+ },
|
|
|
+ handleCancel() {
|
|
|
+ console.log('where')
|
|
|
},
|
|
|
aa() {},
|
|
|
modalFormOk() {}
|