|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<!-- 新增 预装箱单-->
|
|
|
- <a-card :bordered="false">
|
|
|
+ <div id="addAdvancePacking">
|
|
|
<a-drawer
|
|
|
title="新增预装箱单"
|
|
|
width="89%"
|
|
@@ -10,166 +10,169 @@
|
|
|
@close="handleCancel"
|
|
|
>
|
|
|
<!-- 主表信息 填写 -->
|
|
|
- <div class="table-page-search-wrapper">
|
|
|
- <a-form-model layout="inline" ref="form" :model="addAdpacking" :rules="validatorRules">
|
|
|
- <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>
|
|
|
- </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-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-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-select placeholder="请选择尺码范围">
|
|
|
+ <a-card :bordered="false">
|
|
|
+ <div class="table-page-search-wrapper">
|
|
|
+ <a-form-model layout="inline" ref="form" :model="addAdpacking" :rules="validatorRules">
|
|
|
+ <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>
|
|
|
+ </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-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-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-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> -->
|
|
|
- </a-form-model-item>
|
|
|
- </a-col>
|
|
|
-
|
|
|
- <a-col :md="6" :sm="8">
|
|
|
- <a-form-model-item label="客户" prop="customer">
|
|
|
- <a-input placeholder="请输入客户" v-model="addAdpacking.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-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>
|
|
|
- </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>
|
|
|
- </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-form-model-item>
|
|
|
- </a-col>
|
|
|
- </a-row>
|
|
|
- </a-form-model>
|
|
|
- </div>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-model-item label="客户" prop="customer">
|
|
|
+ <a-input placeholder="请输入客户" v-model="addAdpacking.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-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>
|
|
|
+ </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>
|
|
|
+ </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-form-model-item>
|
|
|
+ </a-col>
|
|
|
+ </a-row>
|
|
|
+ </a-form-model>
|
|
|
+ </div>
|
|
|
+ </a-card>
|
|
|
|
|
|
<!--操作按钮区域 参照发运明细 増行-->
|
|
|
- <div class="table-operator">
|
|
|
- <a-button type="primary" @click="referShipmentDetails" icon="ordered-list">参照发运明细</a-button>
|
|
|
- <a-button type="primary" @click="handleAddColumn" icon="plus" style="margin-left: 20px">増行</a-button>
|
|
|
- </div>
|
|
|
-
|
|
|
- <!-- 子表 ipagination-->
|
|
|
- <a-spin :spinning="confirmLoading">
|
|
|
- <a-form-model ref="formRef" :rules="validatorRules">
|
|
|
- <a-table
|
|
|
- bordered
|
|
|
- rowKey="id"
|
|
|
- :columns="addAdvancePackingColumns"
|
|
|
- :data-source="addAdvancePackingData"
|
|
|
- :loading="loading"
|
|
|
- :pagination="false"
|
|
|
- :scroll="{ x: 1500 }"
|
|
|
- @change="handleTableChange"
|
|
|
- >
|
|
|
- <!-- 结束箱号 输入框-->
|
|
|
- <template slot="endBoxNo" slot-scope="text, record, index">
|
|
|
- <a-form-model-item prop="endBoxNo" :rules="rules.styleNum" required>
|
|
|
- <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" :rules="rules.styleNum" required>
|
|
|
- <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" :rules="rules.styleNum" required>
|
|
|
- <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" :rules="rules.styleNum" required>
|
|
|
- <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" :rules="rules.styleNum" required>
|
|
|
- <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" :rules="rules.styleNum" required>
|
|
|
- <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" :rules="rules.styleNum" required>
|
|
|
- <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" :rules="rules.styleNum" required>
|
|
|
- <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" :rules="rules.styleNum" required>
|
|
|
- <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 :bordered="false" style="margin:10px 0 60px 0;">
|
|
|
+ <div class="table-operator">
|
|
|
+ <a-button type="primary" @click="referShipmentDetails" icon="ordered-list">参照发运明细</a-button>
|
|
|
+ <a-button type="primary" @click="handleAddColumn" icon="plus" style="margin-left: 20px">増行</a-button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 子表 ipagination-->
|
|
|
+ <a-spin :spinning="confirmLoading">
|
|
|
+ <a-form-model ref="formRef" :rules="validatorRules">
|
|
|
+ <a-table
|
|
|
+ bordered
|
|
|
+ rowKey="id"
|
|
|
+ :columns="addAdvancePackingColumns"
|
|
|
+ :data-source="addAdvancePackingData"
|
|
|
+ :loading="loading"
|
|
|
+ :pagination="false"
|
|
|
+ :scroll="{ x: 1500 }"
|
|
|
+ @change="handleTableChange"
|
|
|
+ >
|
|
|
+ <!-- 结束箱号 输入框-->
|
|
|
+ <template slot="endBoxNo" slot-scope="text, record, index">
|
|
|
+ <a-form-model-item prop="endBoxNo" :rules="rules.styleNum" required>
|
|
|
+ <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" :rules="rules.styleNum" required>
|
|
|
+ <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" :rules="rules.styleNum" required>
|
|
|
+ <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" :rules="rules.styleNum" required>
|
|
|
+ <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" :rules="rules.styleNum" required>
|
|
|
+ <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" :rules="rules.styleNum" required>
|
|
|
+ <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" :rules="rules.styleNum" required>
|
|
|
+ <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" :rules="rules.styleNum" required>
|
|
|
+ <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" :rules="rules.styleNum" required>
|
|
|
+ <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
|
|
|
:style="{
|
|
@@ -199,17 +202,17 @@
|
|
|
:father="aa"
|
|
|
@ok="modalFormOk"
|
|
|
></referShipmentDetails-modal>
|
|
|
- </a-card>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { JeecgListMixin } from '@/mixins/JeecgListMixin' // 分页等
|
|
|
+import { JeecgListMixin } from '@/mixins/JeecgListMixin'
|
|
|
import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
|
import ReferShipmentDetailsModal from '@views/advance-packingList/referShipmentDetailsModal.vue'
|
|
|
|
|
|
export default {
|
|
|
name: 'AddAdvancePacking', // 新增预装箱单
|
|
|
- mixins: [JeecgListMixin], // 分页等
|
|
|
+ mixins: [JeecgListMixin],
|
|
|
components: { ReferShipmentDetailsModal, JEllipsis }, // 参照发运明细弹框
|
|
|
data() {
|
|
|
let ellipsis = (v, l = 20) => <j-ellipsis value={v} length={l} /> // 省略
|
|
@@ -566,4 +569,11 @@ export default {
|
|
|
// /deep/ th.replacecolor {
|
|
|
// background-color: #ccc;
|
|
|
// }
|
|
|
+// 抽屉里的card样式
|
|
|
+/deep/ .ant-drawer-content {
|
|
|
+ background-color: #f0f2f5;
|
|
|
+}
|
|
|
+/deep/ .ant-drawer-body {
|
|
|
+ padding: 10px;
|
|
|
+}
|
|
|
</style>
|