|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<!-- 发运明细 列表 -->
|
|
|
<div id="ShipmentList">
|
|
|
- <!-- 查询 -->
|
|
|
+ <!-- 查询 回显 且 可编辑 -->
|
|
|
<a-card :bordered="false">
|
|
|
<div class="table-page-search-wrapper">
|
|
|
<a-form layout="inline" @keyup.enter.native="searchQuery">
|
|
@@ -213,7 +213,7 @@
|
|
|
<declareElements-modal ref="declareElementsModal"></declareElements-modal>
|
|
|
|
|
|
<!-- 维护款号成分 -->
|
|
|
- <itemNumEle-modal ref="itemNumEleModal"></itemNumEle-modal>
|
|
|
+ <itemNumEle-modal ref="itemNumEleModal" :fatherList="getShipmentList"></itemNumEle-modal>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -384,7 +384,8 @@ export default {
|
|
|
className: 'replacecolor'
|
|
|
},
|
|
|
{
|
|
|
- title: '工厂单价(采购/委外单价)',
|
|
|
+ // (采购/委外单价)
|
|
|
+ title: '工厂单价',
|
|
|
dataIndex: 'factoryUnitPrice',
|
|
|
width: 120,
|
|
|
className: 'replacecolor'
|
|
@@ -396,7 +397,8 @@ export default {
|
|
|
// className: 'replacecolor'
|
|
|
// },
|
|
|
{
|
|
|
- title: '套装件数(存货自定义项)',
|
|
|
+ // (存货自定义项)
|
|
|
+ title: '套装件数',
|
|
|
dataIndex: 'numberOfSets',
|
|
|
width: 120,
|
|
|
className: 'replacecolor'
|
|
@@ -540,13 +542,24 @@ export default {
|
|
|
// 维护款号成分
|
|
|
itemNumberElement(record) {
|
|
|
this.$refs.itemNumEleModal.itemNumEleModVis = true
|
|
|
- // console.log('record.itemNumber', record.itemNumber)
|
|
|
+
|
|
|
this.$refs.itemNumEleModal.editItemNumber.itemIds = record.itemIds
|
|
|
this.$refs.itemNumEleModal.editItemNumber.itemNumber = record.itemNumber
|
|
|
this.$refs.itemNumEleModal.editItemNumber.materialComposition = record.materialComposition
|
|
|
this.$refs.itemNumEleModal.editItemNumber.isTc = record.isTc
|
|
|
},
|
|
|
|
|
|
+ // 编辑
|
|
|
+ edit(record) {
|
|
|
+ this.$refs.editShipDetDrawer.visible = true
|
|
|
+ shipmentQueryById({ id: record.id }).then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ // console.log('编辑对象', res.result)
|
|
|
+ this.$refs.editShipDetDrawer.editShipDet = res.result
|
|
|
+ this.$refs.editShipDetDrawer.syShippingDetailsItemList = res.result.syShippingDetailsItemList
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
// 详情
|
|
|
details(record) {
|
|
|
this.$refs.detailsShipDetDrawer.visible = true
|
|
@@ -561,19 +574,6 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- // 编辑
|
|
|
- edit(record) {
|
|
|
- this.$refs.editShipDetDrawer.visible = true
|
|
|
- shipmentQueryById({ id: record.id }).then(res => {
|
|
|
- if (res.success) {
|
|
|
- console.log('编辑对象', res.result)
|
|
|
- // console.log('子表信息', res.result.syShippingDetailsItemList)
|
|
|
- this.$refs.editShipDetDrawer.editShipDet = res.result
|
|
|
- this.$refs.editShipDetDrawer.syShippingDetailsItemList = res.result.syShippingDetailsItemList
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
// 提交
|
|
|
submit(record) {
|
|
|
console.log('点击id:', record.id)
|
|
@@ -702,6 +702,6 @@ export default {
|
|
|
// background-color: #ccc;
|
|
|
// }
|
|
|
/deep/ .ant-form-item {
|
|
|
- margin-bottom: 0 !important;
|
|
|
+ // margin-bottom: 0 !important;
|
|
|
}
|
|
|
</style>
|