|
@@ -152,7 +152,7 @@
|
|
|
<div>
|
|
|
<clothesAdd-drawer ref="clothesAddDrawer" :fatherList="getSpltList" @ok="modalFormOk"></clothesAdd-drawer>
|
|
|
<detailsClothes-drawer ref="detailsClothesDrawer" :father="bb" @ok="modalFormOk"></detailsClothes-drawer>
|
|
|
- <editClothes-drawer ref="editClothesDrawer" :father="cc" @ok="modalFormOk"></editClothes-drawer>
|
|
|
+ <!-- <editClothes-drawer ref="editClothesDrawer" :father="cc" @ok="modalFormOk"></editClothes-drawer> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -163,7 +163,7 @@ import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
|
import clothesAddDrawer from '@views/packing-list/packinglist-clothes/clothesAddDrawer.vue'
|
|
|
import detailsClothesDrawer from '@views/packing-list/packinglist-clothes/detailsClothesDrawer.vue'
|
|
|
import editClothesDrawer from '@views/packing-list/packinglist-clothes/editClothesDrawer.vue'
|
|
|
-import { spltList,deleteSpltList} from '@api/document/packing-list/packinglist-clothes'
|
|
|
+import { spltList,deleteSpltList,spltListId} from '@api/document/packing-list/packinglist-clothes'
|
|
|
|
|
|
|
|
|
export default {
|
|
@@ -457,7 +457,36 @@ export default {
|
|
|
// 操作 编辑
|
|
|
edit(record) {
|
|
|
console.log('编辑')
|
|
|
- this.$refs.editClothesDrawer.visible = true
|
|
|
+ spltListId({id:record.id}).then(res => {
|
|
|
+ if (res.success) {
|
|
|
+ var editData = res.result
|
|
|
+ this.$refs.clothesAddDrawer.visible = true
|
|
|
+ this.$refs.clothesAddDrawer.editDecide = 'edit';
|
|
|
+ this.$refs.clothesAddDrawer.dynamicColumns(editData.sizeTables)
|
|
|
+ this.$refs.clothesAddDrawer.clothesAdd = {
|
|
|
+ orderNum:editData.orderNumber,
|
|
|
+ styleNum:editData.itemNumber,
|
|
|
+ name:editData.productName,
|
|
|
+ sizeRange:editData.sizeRange,
|
|
|
+ customer:editData.customer,
|
|
|
+ containerCode:editData.containerCode,
|
|
|
+ containerNo:editData.containerNumber,
|
|
|
+ note:editData.memo,
|
|
|
+ clothesFactory:editData.garmentFactory,
|
|
|
+ exportInvoiceNo:editData.exportInvoiceNo,
|
|
|
+ bookNum:editData.shippingOrderNumber
|
|
|
+ };
|
|
|
+ this.$refs.clothesAddDrawer.clothesAddData = editData.syPackingListTailoringItemList
|
|
|
+ for (var i=0; i<res.result.syPackingListTailoringItemList.length;i++){
|
|
|
+ var row = res.result.syPackingListTailoringItemList[i];
|
|
|
+ var sizeTables = row.sizeTables;
|
|
|
+ for (var j=0; j<sizeTables.length;j++){
|
|
|
+ row['size-'+sizeTables[j].size] = sizeTables[j].proportion;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
},
|
|
|
// 操作 删除
|
|
|
handleDelete(record) {
|