|
@@ -61,10 +61,88 @@
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
|
|
|
- <a-col :md="18" :sm="18">
|
|
|
- <!-- 'U8 备注' -->
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-model-item label="pack id" prop="packId">
|
|
|
+ <a-input placeholder="请输入pack id" v-model="addShipDet.packId"></a-input>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-model-item label="分销点" prop="distributionPoint">
|
|
|
+ <a-input placeholder="请输入分销点" v-model="addShipDet.distributionPoint"></a-input>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-model-item label="数量" prop="todo">
|
|
|
+ <a-input placeholder="合计" v-model="addShipDet.todo"></a-input>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-model-item label="单价" prop="salesUnitPrice">
|
|
|
+ <a-input placeholder="销售" v-model="addShipDet.salesUnitPrice"></a-input>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-model-item label="采购/委外订单号" prop="purOrSubOrder">
|
|
|
+ <a-input placeholder="请输入采购/委外订单号" v-model="addShipDet.purOrSubOrder"></a-input>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-model-item label="订单类型" prop="orderType">
|
|
|
+ <a-input placeholder="请输入订单类型" v-model="addShipDet.orderType"></a-input>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-model-item label="工厂单价" prop="factoryUnitPrice">
|
|
|
+ <a-input placeholder="采购/委外单价" v-model="addShipDet.factoryUnitPrice"></a-input>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-model-item label="申报要素" prop="declarationElements">
|
|
|
+ <a-input placeholder="单证维护" v-model="addShipDet.declarationElements"></a-input>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-model-item label="套装件数" prop="numberOfSets">
|
|
|
+ <a-input placeholder="存货自定义项" v-model="addShipDet.numberOfSets"></a-input>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-model-item label="中文品名" prop="chineseName">
|
|
|
+ <a-input placeholder="请输入中文品名" v-model="addShipDet.chineseName"></a-input>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-model-item label="英文品名" prop="englishName">
|
|
|
+ <a-input placeholder="请输入英文品名" v-model="addShipDet.englishName"></a-input>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-model-item label="成衣工厂" prop="garmentFactory">
|
|
|
+ <a-input placeholder="请输入成衣工厂" v-model="addShipDet.garmentFactory"></a-input>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ <a-col :md="6" :sm="8">
|
|
|
+ <a-form-model-item label="报关单价" prop="customsDeclarationUnitPrice">
|
|
|
+ <a-input placeholder="请输入报关单价" v-model="addShipDet.customsDeclarationUnitPrice"></a-input>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
+
|
|
|
+ <!-- U8系统适用 -->
|
|
|
+ <a-col :md="12" :sm="12">
|
|
|
<a-form-model-item label="备注" prop="memo">
|
|
|
- <a-input placeholder="请输入备注" v-model="addShipDet.memo"></a-input>
|
|
|
+ <a-input placeholder="U8系统适用" v-model="addShipDet.memo"></a-input>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
</a-row>
|
|
@@ -131,7 +209,8 @@
|
|
|
<a-popconfirm
|
|
|
v-if="syShippingDetailsItemList.length"
|
|
|
title="确定删除吗?"
|
|
|
- @confirm="handleDelete(record)">
|
|
|
+ @confirm="handleDelete(index)"
|
|
|
+ >
|
|
|
<a href="javascript:void(0);" style="color:red;">删除</a>
|
|
|
</a-popconfirm>
|
|
|
|
|
@@ -449,15 +528,32 @@ export default {
|
|
|
console.log('点击参照订单数据')
|
|
|
},
|
|
|
// 新增 保存
|
|
|
+
|
|
|
addSave() {
|
|
|
var newObj = {} // 新增对象
|
|
|
- newObj.documentNo = this.addShipDet.documentNo // 单据号
|
|
|
- newObj.documentDate = this.addShipDet.documentDate.format('YYYY-MM-DD') // 单据日期
|
|
|
+ newObj.documentNo = this.addShipDet.documentNo
|
|
|
+ newObj.documentDate = this.addShipDet.documentDate.format('YYYY-MM-DD')
|
|
|
newObj.customer = this.addShipDet.customer
|
|
|
newObj.preDeliveryDate = this.addShipDet.preDeliveryDate.format('YYYY-MM-DD') // 预发货日期
|
|
|
newObj.preCompletionDate = this.addShipDet.preCompletionDate.format('YYYY-MM-DD') // 预完工日期
|
|
|
+ // 2022-06-10 增加的字段
|
|
|
+ newObj.packId = this.addShipDet.packId
|
|
|
+ newObj.distributionPoint = this.addShipDet.distributionPoint
|
|
|
+ newObj.todo = this.addShipDet.todo //数量(合计)
|
|
|
+ newObj.salesUnitPrice = this.addShipDet.salesUnitPrice
|
|
|
+ newObj.purOrSubOrder = this.addShipDet.purOrSubOrder
|
|
|
+ newObj.orderType = this.addShipDet.orderType
|
|
|
+ newObj.factoryUnitPrice = this.addShipDet.factoryUnitPrice
|
|
|
+ newObj.declarationElements = this.addShipDet.declarationElements
|
|
|
+ newObj.numberOfSets = this.addShipDet.numberOfSets
|
|
|
+ newObj.chineseName = this.addShipDet.chineseName
|
|
|
+ newObj.englishName = this.addShipDet.englishName
|
|
|
+ newObj.garmentFactory = this.addShipDet.garmentFactory
|
|
|
+ newObj.customsDeclarationUnitPrice = this.addShipDet.customsDeclarationUnitPrice
|
|
|
+
|
|
|
newObj.memo = this.addShipDet.memo // U8系统适用
|
|
|
newObj.syShippingDetailsItemList = this.syShippingDetailsItemList // 子表信息赋值
|
|
|
+
|
|
|
// 单据状态
|
|
|
// newObj.state = this.state
|
|
|
// newObj.pushState = this.pushState
|
|
@@ -523,12 +619,12 @@ export default {
|
|
|
},
|
|
|
// --------------------------------------
|
|
|
// 操作 删除
|
|
|
- handleDelete(record) {
|
|
|
- console.log('record', record)
|
|
|
- console.log('删除该项订单数据', record.orderNumber)
|
|
|
- return this.syShippingDetailsItemList.splice(record)
|
|
|
+ handleDelete(index) {
|
|
|
+ console.log('index', index)
|
|
|
+ console.log('删除该项订单数据', index)
|
|
|
+ return this.syShippingDetailsItemList.splice(index, 1)
|
|
|
},
|
|
|
- // 操作 复制
|
|
|
+ // 操作 复制 复制一行已有的数据
|
|
|
copy(record) {},
|
|
|
// --------------------------------------
|
|
|
// 抽屉 取消
|