|
@@ -75,6 +75,18 @@
|
|
|
<a-input style="width:100%" type="text" v-model="record.itemNumber" readOnly />
|
|
|
</a-form-model-item>
|
|
|
</template> -->
|
|
|
+ <!-- 预发货日期 -->
|
|
|
+ <template slot="preDeliveryDate" slot-scope="text, record, index">
|
|
|
+ <a-form-model-item prop="preDeliveryDate" >
|
|
|
+ <a-date-picker v-model="record.preDeliveryDate" @change="changePreDeliveryDate(record)"/>
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
+ <!-- 小po -->
|
|
|
+ <template slot="smallPo" slot-scope="text, record, index">
|
|
|
+ <a-form-model-item prop="smallPo">
|
|
|
+ <a-input style="width:100%" type="text" v-model="record.smallPo" @change="changeSmallPo(record)"/>
|
|
|
+ </a-form-model-item>
|
|
|
+ </template>
|
|
|
<!-- 成衣工厂 :rules="rules.garmentFactory"-->
|
|
|
<template slot="garmentFactory" slot-scope="text, record, index">
|
|
|
<a-form-model-item prop="garmentFactory">
|
|
@@ -285,8 +297,9 @@ export default {
|
|
|
{
|
|
|
title: '预发货日期',
|
|
|
dataIndex: 'preDeliveryDate',
|
|
|
- width: 100,
|
|
|
+ width: 150,
|
|
|
className: 'replacecolor',
|
|
|
+ scopedSlots: { customRender: 'preDeliveryDate' },
|
|
|
ellipsis: true,
|
|
|
},
|
|
|
// {
|
|
@@ -321,8 +334,9 @@ export default {
|
|
|
{
|
|
|
title: '小po',
|
|
|
dataIndex: 'smallPo',
|
|
|
- width: 100,
|
|
|
+ width: 110,
|
|
|
className: 'replacecolor',
|
|
|
+ scopedSlots: { customRender: 'smallPo' },
|
|
|
ellipsis: true,
|
|
|
},
|
|
|
{
|
|
@@ -753,6 +767,18 @@ export default {
|
|
|
}
|
|
|
|
|
|
},
|
|
|
+ // 修改小po
|
|
|
+ changeSmallPo(record){
|
|
|
+ this.syShippingDetailsItemList.map(item=>{
|
|
|
+ item.smallPo = record.smallPo
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 修改预发货日期
|
|
|
+ changePreDeliveryDate(record){
|
|
|
+ this.syShippingDetailsItemList.map(item=>{
|
|
|
+ item.preDeliveryDate = moment(record.preDeliveryDate).format('YYYY-MM-DD')
|
|
|
+ })
|
|
|
+ },
|
|
|
// 参照订单数据
|
|
|
referOrderDataOpen() {
|
|
|
if(this.syShippingDetailsItemList.length !== 0){
|