kz-ui-base 1.0.35 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/sm/InventorySearch.vue +392 -0
- package/components/sm/information.vue +177 -0
- package/components/sm/informationAlterationTable.vue +131 -0
- package/components/sm/inventoryAvailabilityQuery.vue +497 -0
- package/components/sm/inventoryCode.vue +610 -0
- package/components/sm/materialPriceList.vue +1830 -0
- package/components/sm/materialPriceListAdd.vue +506 -0
- package/components/sm/materialPriceListAlteration.vue +1987 -0
- package/components/sm/materialPriceListCollection.vue +128 -0
- package/components/sm/materialPriceListCopy.vue +1442 -0
- package/components/sm/materialSpecSearch.vue +341 -0
- package/components/sm/otherPriceList.vue +372 -0
- package/components/sm/priceListSearch.vue +346 -0
- package/components/sm/processingStatusModel.vue +108 -0
- package/components/sm/smTable.vue +574 -0
- package/package.json +1 -1
- package/views/bd/common/modal/AddressInfoModal.vue +115 -0
- package/views/bd/common/modal/BankInfoModal.vue +106 -0
- package/views/bd/common/modal/CustomerContactsModal.vue +120 -0
- package/views/bd/common/modal/CustomerModal.vue +172 -0
- package/views/bd/common/modal/DeptModal.vue +180 -0
- package/views/bd/common/modal/EmployeeModal.vue +440 -0
- package/views/bd/common/modal/ItemModal.vue +419 -0
- package/views/bd/common/modal/ItemModalBk.vue +268 -0
- package/views/bd/common/modal/NumberingRuleModal.vue +76 -0
- package/views/bd/common/modal/PostModal.vue +289 -0
- package/views/bd/common/modal/ProjectModal.vue +75 -0
- package/views/bd/common/modal/SalesmanInfoModel.vue +81 -0
- package/views/bd/common/modal/VendorModal.vue +75 -0
- package/views/bd/common/modal/WorkGroupModal.vue +91 -0
- package/views/bd/common/modal/materialCodeModal.vue +105 -0
- package/views/extLink/index.vue +43 -0
- package/views/fd/common/modal/AddResourceModal.vue +110 -0
- package/views/fd/common/modal/AssetModal.vue +353 -0
- package/views/fd/common/modal/FactoryTreeModal.vue +94 -0
- package/views/fd/common/modal/ResourceModal.vue +376 -0
- package/views/fd/common/modal/SiteModal.vue +134 -0
- package/views/fd/common/modal/StorageUnitModal.vue +116 -0
- package/views/fd/common/modal/StorageZoneModal.vue +125 -0
- package/views/fd/common/modal/WorkAreaModal.vue +118 -0
- package/views/fd/common/modal/WorkCenterModal.vue +125 -0
- package/views/fd/common/modal/WorkUnitModal.vue +116 -0
- package/views/ic/common/modal/CancelModal.vue +76 -0
- package/views/ic/common/modal/ItemInvLot.vue +274 -0
- package/views/ic/common/modal/ItemInvLotSelect.vue +360 -0
- package/views/ic/common/modal/ItemInvLotSelectForStockTake.vue +324 -0
- package/views/ic/common/modal/QtyEditModal.vue +123 -0
- package/views/orange-party/index.css +45 -0
- package/views/orange-party/index.js +102 -0
- package/views/orange-party/linkPage.vue +30 -0
- package/views/pd/common/modal/BopModal.vue +81 -0
- package/views/pd/common/modal/DrawingPathModal.vue +175 -0
- package/views/pd/common/modal/ParameterModal.vue +159 -0
- package/views/pd/common/modal/ProcessModal.vue +115 -0
- package/views/pd/common/modal/ProdRoutingDtlModal.vue +125 -0
- package/views/pd/common/modal/ProdRoutingModal.vue +96 -0
- package/views/pd/common/modal/ProdStructureModal.vue +96 -0
- package/views/pd/common/modal/ProdstructTemplateHdrModal.vue +99 -0
- package/views/pd/common/modal/ProductionVersionModal.vue +171 -0
- package/views/pd/common/modal/technicalStandardModal.vue +530 -0
- package/views/pd/productionVersion/copyVersion.vue +511 -0
- package/views/pd/productionVersion/index.vue +151 -0
- package/views/pd/routing/productAddition.vue +268 -0
- package/views/pe/ProductionExecute/FormAbnormal/index.vue +102 -0
- package/views/pe/ProductionExecute/FormAbnormal/update.vue +126 -0
- package/views/pe/ProductionExecute/FormAndon/components/HistoryTable.vue +237 -0
- package/views/pe/ProductionExecute/FormAndon/components/ReviewModal.vue +94 -0
- package/views/pe/ProductionExecute/FormAndon/index.vue +166 -0
- package/views/pe/ProductionExecute/FormAuxiliaryJob/index.vue +194 -0
- package/views/pe/ProductionExecute/FormAuxiliaryJob/update.vue +209 -0
- package/views/pe/ProductionExecute/FormFeed/components/HistoryTable.vue +184 -0
- package/views/pe/ProductionExecute/FormFeed/components/ManualMode.vue +407 -0
- package/views/pe/ProductionExecute/FormFeed/components/ReturnModal.vue +211 -0
- package/views/pe/ProductionExecute/FormFeed/components/ScanMode.vue +571 -0
- package/views/pe/ProductionExecute/FormFeed/index.vue +220 -0
- package/views/pe/ProductionExecute/FormLoadContainer/by-work-unit.vue +520 -0
- package/views/pe/ProductionExecute/FormLoadContainer/components/FeedHoleFormItem.vue +59 -0
- package/views/pe/ProductionExecute/FormLoadContainer/components/FeedLotFormItem.vue +88 -0
- package/views/pe/ProductionExecute/FormLoadContainer/components/HistoryTable.vue +184 -0
- package/views/pe/ProductionExecute/FormLoadContainer/components/OneTimeForm.vue +181 -0
- package/views/pe/ProductionExecute/FormLoadContainer/components/TurnOverForm.vue +169 -0
- package/views/pe/ProductionExecute/FormLoadContainer/index.vue +213 -0
- package/views/pe/ProductionExecute/FormProcessFile/index.vue +143 -0
- package/views/pe/ProductionExecute/FormProcessParamAcq/index.vue +264 -0
- package/views/pe/ProductionExecute/FormReport/ContinuousThread.vue +59 -0
- package/views/pe/ProductionExecute/FormReport/Normal.vue +60 -0
- package/views/pe/ProductionExecute/FormReport/Pelletize.vue +58 -0
- package/views/pe/ProductionExecute/FormReport/Pickling.vue +58 -0
- package/views/pe/ProductionExecute/FormReport/QuickByContainer.vue +127 -0
- package/views/pe/ProductionExecute/FormReport/Segment.vue +58 -0
- package/views/pe/ProductionExecute/FormReport/components/BreakPositionForm.vue +112 -0
- package/views/pe/ProductionExecute/FormReport/components/HeatNoFormItem.vue +125 -0
- package/views/pe/ProductionExecute/FormReport/components/InvAttributeSection.vue +276 -0
- package/views/pe/ProductionExecute/FormReport/components/ScaleInfoSection.vue +102 -0
- package/views/pe/ProductionExecute/FormReport/components/SelfInspectSection.vue +211 -0
- package/views/pe/ProductionExecute/FormReport/components/TheContinuousThreadReport.vue +385 -0
- package/views/pe/ProductionExecute/FormReport/components/TheNormalReport.vue +399 -0
- package/views/pe/ProductionExecute/FormReport/components/ThePelletizeReport.vue +233 -0
- package/views/pe/ProductionExecute/FormReport/components/ThePicklingReport.vue +223 -0
- package/views/pe/ProductionExecute/FormReport/components/TheQuickByContainerReport.vue +396 -0
- package/views/pe/ProductionExecute/FormReport/components/TheSegmentReport.vue +237 -0
- package/views/pe/ProductionExecute/FormReport/components/WorkUnitHolesPickForm.vue +110 -0
- package/views/pe/ProductionExecute/FormReport/components/WorkUnitLoadingContainersTable.vue +128 -0
- package/views/pe/ProductionExecute/FormReport/helper/bus.js +3 -0
- package/views/pe/ProductionExecute/FormReport/index.vue +127 -0
- package/views/pe/ProductionExecute/FormSetUpTooling/components/HistoryTable.vue +147 -0
- package/views/pe/ProductionExecute/FormSetUpTooling/index.vue +190 -0
- package/views/pe/ProductionExecute/FormShiftHandover/components/AbnormalPane/index.vue +209 -0
- package/views/pe/ProductionExecute/FormShiftHandover/components/AccountPane/PpOrderValueList.vue +173 -0
- package/views/pe/ProductionExecute/FormShiftHandover/components/AccountPane/ZeroMeterRegister.vue +263 -0
- package/views/pe/ProductionExecute/FormShiftHandover/components/AccountPane/index.vue +494 -0
- package/views/pe/ProductionExecute/FormShiftHandover/components/AuxiliaryJobPane/index.vue +218 -0
- package/views/pe/ProductionExecute/FormShiftHandover/components/Header/index.vue +81 -0
- package/views/pe/ProductionExecute/FormShiftHandover/components/WastePane/index.vue +241 -0
- package/views/pe/ProductionExecute/FormShiftHandover/components/WorkHoursPane/index.vue +105 -0
- package/views/pe/ProductionExecute/FormShiftHandover/components/WorkUnitStatusPane/index.vue +182 -0
- package/views/pe/ProductionExecute/FormShiftHandover/index.vue +97 -0
- package/views/pe/ProductionExecute/FormWaste/index.vue +186 -0
- package/views/pe/ProductionExecute/FormWaste/update.vue +207 -0
- package/views/pe/ProductionExecute/common/components/AsideMenu/assets/andon.png +0 -0
- package/views/pe/ProductionExecute/common/components/AsideMenu/assets/auxiliary.png +0 -0
- package/views/pe/ProductionExecute/common/components/AsideMenu/assets/exception.png +0 -0
- package/views/pe/ProductionExecute/common/components/AsideMenu/assets/inspect.png +0 -0
- package/views/pe/ProductionExecute/common/components/AsideMenu/assets/params.png +0 -0
- package/views/pe/ProductionExecute/common/components/AsideMenu/assets/waste.png +0 -0
- package/views/pe/ProductionExecute/common/components/AsideMenu/index.vue +148 -0
- package/views/pe/ProductionExecute/common/components/FooterMenu/assets/book.png +0 -0
- package/views/pe/ProductionExecute/common/components/FooterMenu/assets/feed.png +0 -0
- package/views/pe/ProductionExecute/common/components/FooterMenu/assets/fetch.png +0 -0
- package/views/pe/ProductionExecute/common/components/FooterMenu/assets/finish.png +0 -0
- package/views/pe/ProductionExecute/common/components/FooterMenu/assets/pause.png +0 -0
- package/views/pe/ProductionExecute/common/components/FooterMenu/assets/play.png +0 -0
- package/views/pe/ProductionExecute/common/components/FooterMenu/assets/report.png +0 -0
- package/views/pe/ProductionExecute/common/components/FooterMenu/assets/setup.png +0 -0
- package/views/pe/ProductionExecute/common/components/FooterMenu/assets/shift.png +0 -0
- package/views/pe/ProductionExecute/common/components/FooterMenu/assets/wheel.png +0 -0
- package/views/pe/ProductionExecute/common/components/FooterMenu/index.vue +113 -0
- package/views/pe/ProductionExecute/common/components/ProcessPlanHeader/index.vue +61 -0
- package/views/pe/ProductionExecute/common/helper/constant.ts +15 -0
- package/views/pe/ProductionExecute/common/style/form.scss +77 -0
- package/views/pe/ProductionExecute/common/utils/number.ts +11 -0
- package/views/pe/ProductionExecute/common/utils/unit-convert.ts +27 -0
- package/views/pe/ProductionExecute/components/TableExtendAnchors.vue +239 -0
- package/views/pe/ProductionExecute/components/TheAuxiliaryJobReportTable.vue +93 -0
- package/views/pe/ProductionExecute/components/TheLabInspectTable.vue +151 -0
- package/views/pe/ProductionExecute/components/TheMoAttributeTable.vue +73 -0
- package/views/pe/ProductionExecute/components/TheMoItemAttributeTable.vue +103 -0
- package/views/pe/ProductionExecute/components/TheParamAcqTable.vue +105 -0
- package/views/pe/ProductionExecute/components/TheParamAcqTableDetail.vue +191 -0
- package/views/pe/ProductionExecute/components/ThePpParameterTable.vue +94 -0
- package/views/pe/ProductionExecute/components/ThePpReelPlanTable.vue +108 -0
- package/views/pe/ProductionExecute/components/ThePpScaleTable.vue +71 -0
- package/views/pe/ProductionExecute/components/ThePpSegmentDetailTable.vue +152 -0
- package/views/pe/ProductionExecute/components/TheProdAbnormalTable.vue +91 -0
- package/views/pe/ProductionExecute/components/TheProdFeedTable.vue +137 -0
- package/views/pe/ProductionExecute/components/TheProdReportTable.vue +136 -0
- package/views/pe/ProductionExecute/components/TheProdWasteTable.vue +88 -0
- package/views/pe/ProductionExecute/components/TheToolingSetup.vue +79 -0
- package/views/pe/ProductionExecute/components/assets/abnormal.png +0 -0
- package/views/pe/ProductionExecute/components/assets/auxiliary.png +0 -0
- package/views/pe/ProductionExecute/components/assets/feed.png +0 -0
- package/views/pe/ProductionExecute/components/assets/inspect.png +0 -0
- package/views/pe/ProductionExecute/components/assets/item.png +0 -0
- package/views/pe/ProductionExecute/components/assets/order.png +0 -0
- package/views/pe/ProductionExecute/components/assets/params.png +0 -0
- package/views/pe/ProductionExecute/components/assets/reel.png +0 -0
- package/views/pe/ProductionExecute/components/assets/report.png +0 -0
- package/views/pe/ProductionExecute/components/assets/rule.png +0 -0
- package/views/pe/ProductionExecute/components/assets/segmentt.png +0 -0
- package/views/pe/ProductionExecute/components/assets/setup.png +0 -0
- package/views/pe/ProductionExecute/components/assets/waste.png +0 -0
- package/views/pe/ProductionExecute/index.vue +1061 -0
- package/views/pe/common/components/CollapseContainer.vue +174 -0
- package/views/pe/common/components/EllipsisTooltip.vue +41 -0
- package/views/pe/common/utils/validate.js +11 -0
- package/views/ps/Scheduling/WuRestPlan/components/Modal.vue +278 -0
- package/views/ps/components/Input/DynamicInputBox.vue +121 -0
- package/views/ps/components/ProcessPlan/ProcessPlanModal.vue +317 -0
- package/views/ps/components/ReelPlan/CreateReelModal.vue +456 -0
- package/views/ps/components/SegmentPlan/BreakLine.vue +99 -0
- package/views/ps/components/SegmentPlan/CreateModal.vue +436 -0
- package/views/ps/components/SegmentPlan/EditModal.vue +329 -0
- package/views/ps/components/SegmentPlan/SegmentModal.vue +167 -0
- package/views/ps/components/SzGant/components/bar-line/index.vue +480 -0
- package/views/ps/components/SzGant/components/blocks/index.vue +423 -0
- package/views/ps/components/SzGant/components/context-menu/README.md +177 -0
- package/views/ps/components/SzGant/components/context-menu/components/Contextmenu.vue +121 -0
- package/views/ps/components/SzGant/components/context-menu/components/Submenu.vue +306 -0
- package/views/ps/components/SzGant/components/context-menu/constant.js +6 -0
- package/views/ps/components/SzGant/components/context-menu/index.js +42 -0
- package/views/ps/components/SzGant/components/context-menu/sample.png +0 -0
- package/views/ps/components/SzGant/components/context-menu/util.js +30 -0
- package/views/ps/components/SzGant/components/dynamic-render.js +146 -0
- package/views/ps/components/SzGant/components/gantt-context-menu.js +214 -0
- package/views/ps/components/SzGant/components/left-bar/index.vue +40 -0
- package/views/ps/components/SzGant/components/mark-line/current-time.vue +35 -0
- package/views/ps/components/SzGant/components/mark-line/index.vue +70 -0
- package/views/ps/components/SzGant/components/move-bar.js +190 -0
- package/views/ps/components/SzGant/components/resize-bar.js +89 -0
- package/views/ps/components/SzGant/components/time-line/index.vue +262 -0
- package/views/ps/components/SzGant/components/total-blocks/index.vue +232 -0
- package/views/ps/components/SzGant/gantt.scss +340 -0
- package/views/ps/components/SzGant/gantt.vue +847 -0
- package/views/ps/components/SzGant/icon/resize.png +0 -0
- package/views/ps/components/SzGant/utils/debounce.js +22 -0
- package/views/ps/components/SzGant/utils/gtUtils.js +204 -0
- package/views/ps/components/SzGant/utils/throttle.js +26 -0
- package/views/ps/components/SzGant/utils/timeLineUtils.js +102 -0
- package/views/ps/components/SzGant/utils/tool.js +27 -0
- package/views/qms/components/basicData.vue +40 -0
- package/views/qms/components/common.css +70 -0
- package/views/qms/components/inputNumberRange.vue +198 -0
- package/views/qms/components/modal/DefectGroupModal.vue +220 -0
- package/views/qms/components/modal/DefectItemModal.vue +255 -0
- package/views/qms/components/modal/DefectModal.vue +296 -0
- package/views/qms/components/modal/DefectModifyModal.vue +261 -0
- package/views/qms/components/modal/InspectModal.vue +343 -0
- package/views/qms/components/modal/MesDefectModifyModal.vue +206 -0
- package/views/qms/components/orderDefectsDialog.vue +407 -0
- package/views/qms/components/pringDialog.vue +146 -0
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { Component, Prop } from "vue-property-decorator";
|
|
3
|
+
import { pageSelectInv } from '@srcApi/wm/inv'
|
|
4
|
+
import { GOODS_OWNER_TYPE } from "@/constant/wm";
|
|
5
|
+
import { getSiteNameByIdOrNo, getStorageZoneNameByIdOrNo } from "kz-ui-base/common/src/utils/cache/fdCache";
|
|
6
|
+
import { vendorList } from "@srcApi/bd/vendor";
|
|
7
|
+
import { listCustomer } from "@srcApi/bd/customer";
|
|
8
|
+
import { MAX_PAGE_SIZE } from "@/constant/common";
|
|
9
|
+
import {ListBasePage} from "kz-ui-base";
|
|
10
|
+
import {
|
|
11
|
+
queryMessageInventory,
|
|
12
|
+
InventoryMessage
|
|
13
|
+
} from "@srcApi/sm/dm/SmDelInventoryReservation";
|
|
14
|
+
import {getInvLotDtoList} from "@srcApi/sm/cm/salesOrder";
|
|
15
|
+
@Component
|
|
16
|
+
export default class priceListSearch extends ListBasePage {
|
|
17
|
+
@Prop()
|
|
18
|
+
setting;
|
|
19
|
+
//微服务模块名称
|
|
20
|
+
moduleName = "wm";
|
|
21
|
+
//实体名称-服务名称
|
|
22
|
+
serviceName = "Inv";
|
|
23
|
+
//表格是否自动加载数据
|
|
24
|
+
isAutoLoad = false;
|
|
25
|
+
labelwidth = "120px";
|
|
26
|
+
//操作菜单设定
|
|
27
|
+
opMenus = [
|
|
28
|
+
|
|
29
|
+
]
|
|
30
|
+
// 列表分页参数
|
|
31
|
+
listQueryParams = {
|
|
32
|
+
pageNum: 1,
|
|
33
|
+
pageSize: 10,
|
|
34
|
+
totalPages: 1,
|
|
35
|
+
total: 0,
|
|
36
|
+
orderBy: "id",
|
|
37
|
+
orderByColumn: "id",
|
|
38
|
+
isAsc: "desc",
|
|
39
|
+
};
|
|
40
|
+
listSetting = {
|
|
41
|
+
//获取列表数据的api方法名
|
|
42
|
+
getListAction: "pageSelectInv",
|
|
43
|
+
//主键字段
|
|
44
|
+
pkField: this.pkField,
|
|
45
|
+
// 遮罩层
|
|
46
|
+
loading: false,
|
|
47
|
+
//是否显示合计行
|
|
48
|
+
isShowSumRow: false,
|
|
49
|
+
//是否显示分页栏
|
|
50
|
+
isShowPager: true,
|
|
51
|
+
//是否显示操作栏
|
|
52
|
+
isShowOpColumn: false,
|
|
53
|
+
isShowIndexColumn: true,
|
|
54
|
+
//单点时选中行多选
|
|
55
|
+
multipleChoice: false,
|
|
56
|
+
//表头标签居中
|
|
57
|
+
headerCellStyle: {
|
|
58
|
+
textAlign: "center",
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
//表格选中数据
|
|
62
|
+
row = {};
|
|
63
|
+
//表格数据
|
|
64
|
+
listData = [];
|
|
65
|
+
specificationListData = [];
|
|
66
|
+
//编辑列区域设置,含控件区域分组及Tab设置
|
|
67
|
+
areaSetting = [
|
|
68
|
+
{
|
|
69
|
+
name: "basic",
|
|
70
|
+
visable: true,
|
|
71
|
+
icon: "ion-plus-round",
|
|
72
|
+
text: "基本信息",
|
|
73
|
+
type: "area",
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
// 查询信息
|
|
77
|
+
searchRules = [
|
|
78
|
+
{
|
|
79
|
+
op: "EQ", text: "库存组织", property: "storageSiteId", displayType: "DropDownList", disabled: false, storageSiteId: '',
|
|
80
|
+
setting: {
|
|
81
|
+
isShowPleaseChoose: false,
|
|
82
|
+
url: "/fd/fd/getUserSitesByParam",
|
|
83
|
+
displayField: "componentName",
|
|
84
|
+
valueField: "componentNo",
|
|
85
|
+
parameter: { isStoraging: 1 },
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
op: "EQ", text: "仓库", property: "storageZoneId", displayType: "DropDownList", disabled: false, storageZoneId: '',
|
|
90
|
+
setting: { type: "StorageZones" }
|
|
91
|
+
},
|
|
92
|
+
{ op: "EQ", text: "存货编码", property: "itemNo", displayType: "TextBox", disabled: false, itemNo: '' },
|
|
93
|
+
{ op: "EQ", text: "批号", property: "lotNo", displayType: "TextBox", disabled: false, lotNo: '' },
|
|
94
|
+
{ op: "EQ", text: "制品号", property: "productNo", displayType: "TextBox", disabled: false, itemNo: '' },
|
|
95
|
+
// { op: "EQ", text: "查询类型", property: "queryType", displayType: "TextBox", disabled: true, visible: false, itemName: '' },
|
|
96
|
+
// { op: "EQ", text: "仅可出库锁定", property: "onlyStocklockAvailable", displayType: "TextBox", disabled: true, visible: false, lotNo: '' },
|
|
97
|
+
];
|
|
98
|
+
// 表单校验
|
|
99
|
+
rules = {};
|
|
100
|
+
loading = false;
|
|
101
|
+
detailLoading = false;
|
|
102
|
+
// 启用多选模式
|
|
103
|
+
isMultiple = true;
|
|
104
|
+
// 列表列信息
|
|
105
|
+
listColumns = [
|
|
106
|
+
{ text: "物料id", property: "itemId", visible: false },
|
|
107
|
+
{ text: "存货编码", property: "itemNo", width: 120 },
|
|
108
|
+
{ text: "存货名称", property: "itemName", width: 200 },
|
|
109
|
+
{ text: "规格型号", property: "itemSpec", width: 260 },
|
|
110
|
+
{ text: "物料库存Id", property: "invLotId", visible: false },
|
|
111
|
+
{ text: "批号", property: "lotNo", width: 140 },
|
|
112
|
+
{ text: "制品号", property: "productNo", width: 160 },
|
|
113
|
+
{ text: "毛重", property: "grossWeight", width: 110 },
|
|
114
|
+
{ text: "净重", property: "netWeight", width: 110 },
|
|
115
|
+
{
|
|
116
|
+
text: "库存组织", property: "storageSiteId", width: 200,
|
|
117
|
+
setting: {
|
|
118
|
+
isShowPleaseChoose: false,
|
|
119
|
+
url: "/fd/fd/getUserSitesByParam",
|
|
120
|
+
displayField: "componentName",
|
|
121
|
+
valueField: "componentNo",
|
|
122
|
+
parameter: { isStoraging: 1 },
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
text: "仓库", property: "storageZoneId", width: 200,
|
|
127
|
+
setting: { type: "StorageZones" }
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
text: "货主类型", property: "goodsownerTypeCode", width: 140,
|
|
131
|
+
setting: {
|
|
132
|
+
dictType: "goodsowner_type_code"
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
text: "货主", property: "goodsownerId", width: 160, format: "getGoodsOwnerNameByIdAndType"
|
|
137
|
+
// setting: {
|
|
138
|
+
// urlFormat: "/sm/bdgroup/selectList",
|
|
139
|
+
// dataName: "goodsowner",
|
|
140
|
+
// //指定显示字段和取值字段
|
|
141
|
+
// displayField: "groupName",
|
|
142
|
+
// valueField: "groupNo"
|
|
143
|
+
// }
|
|
144
|
+
},
|
|
145
|
+
{ text: "销售订单编号", property: "orderNo", width: 140 },
|
|
146
|
+
{ text: "销售订单行号", property: "orderLine", width: 120 },
|
|
147
|
+
// { text: "钢厂", property: "makerCode", width: 140 },
|
|
148
|
+
{ text: "生产日期", property: "productionDate", displayType: "DatePicker", width: 120, setting: { format: "yyyy-MM-dd" } },
|
|
149
|
+
{ text: "入库日期", property: "stockinDate", displayType: "DatePicker", width: 120, setting: { format: "yyyy-MM-dd" } },
|
|
150
|
+
// { text: "生产订单编号", property: "poNo", width: 140 },
|
|
151
|
+
];
|
|
152
|
+
|
|
153
|
+
//当前功能主键字段
|
|
154
|
+
pkField = "id";
|
|
155
|
+
//列表自定义操作菜单设定 - 若无自定义按钮,不需要重写
|
|
156
|
+
listCustomOpMenus = [
|
|
157
|
+
//{ visable: true, text: "按钮1", icon: "el-icon-edit", permission: "", name: "custom1", isShowText: false }
|
|
158
|
+
];
|
|
159
|
+
vendorList = [];
|
|
160
|
+
customerList = [];
|
|
161
|
+
reservedInventoryInfo = [];
|
|
162
|
+
created() {
|
|
163
|
+
let that = this;
|
|
164
|
+
this.setting.labelWidth = this.setting.labelWidth || "100px";
|
|
165
|
+
if (this.setting.data && this.setting.data.searchObj) {
|
|
166
|
+
this.searchRules.forEach((item, index) => {
|
|
167
|
+
if (item.property == "itemNo" && that.setting.data.searchObj.itemNo) {
|
|
168
|
+
this.$set(that.searchRules[index], "disabled", true);
|
|
169
|
+
this.$set(that.searchRules[index], "itemNo", that.setting.data.searchObj.itemNo);
|
|
170
|
+
}
|
|
171
|
+
if (item.property == "storageSiteId" && that.setting.data.searchObj.storageSiteId) {
|
|
172
|
+
this.$set(that.searchRules[index], "disabled", true);
|
|
173
|
+
this.$set(that.searchRules[index], "storageSiteId", that.setting.data.searchObj.storageSiteId);
|
|
174
|
+
}
|
|
175
|
+
// if (item.property == "queryType" && that.setting.data.searchObj.queryType) {
|
|
176
|
+
// this.$set(that.searchRules[index], "disabled", true);
|
|
177
|
+
// this.$set(that.searchRules[index], "queryType", that.setting.data.searchObj.queryType);
|
|
178
|
+
// }
|
|
179
|
+
// if (item.property == "onlyStocklockAvailable" && that.setting.data.searchObj.onlyStocklockAvailable) {
|
|
180
|
+
// this.$set(that.searchRules[index], "disabled", true);
|
|
181
|
+
// this.$set(that.searchRules[index], "onlyStocklockAvailable", that.setting.data.searchObj.onlyStocklockAvailable);
|
|
182
|
+
// }
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
this.reservedInventoryInfo = this.setting.data.reservedInventoryInfo;
|
|
186
|
+
console.log("fff:",this.reservedInventoryInfo)
|
|
187
|
+
this.getVendorList();
|
|
188
|
+
this.getCustomerList();
|
|
189
|
+
}
|
|
190
|
+
mounted() {
|
|
191
|
+
// this.getList();
|
|
192
|
+
}
|
|
193
|
+
//当前绑定实体字段值变更事件
|
|
194
|
+
onChangeEvent(args) {
|
|
195
|
+
// console.log(args);
|
|
196
|
+
// console.log(this.matter);
|
|
197
|
+
|
|
198
|
+
}
|
|
199
|
+
clickRow(row) {
|
|
200
|
+
console.log("row", row);
|
|
201
|
+
this.row = row;
|
|
202
|
+
}
|
|
203
|
+
/** 重置按钮操作 */
|
|
204
|
+
resetQuery() {
|
|
205
|
+
for (var searchRule of this.searchRules) {
|
|
206
|
+
if (searchRule.property == "itemNo") {
|
|
207
|
+
if (this.setting.data && this.setting.data.searchObj && this.setting.data.searchObj.itemNo) {
|
|
208
|
+
continue;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
// if (searchRule.property == "queryType") {
|
|
212
|
+
// if (this.setting.data && this.setting.data.searchObj && this.setting.data.searchObj.queryType) {
|
|
213
|
+
// continue;
|
|
214
|
+
// }
|
|
215
|
+
// }
|
|
216
|
+
// if (searchRule.property == "onlyStocklockAvailable") {
|
|
217
|
+
// if (this.setting.data && this.setting.data.searchObj && this.setting.data.searchObj.onlyStocklockAvailable) {
|
|
218
|
+
// continue;
|
|
219
|
+
// }
|
|
220
|
+
// }
|
|
221
|
+
|
|
222
|
+
this.$set(searchRule, searchRule.property, undefined);
|
|
223
|
+
if (searchRule.displayType == "Lookup") {
|
|
224
|
+
this.$refs.Lookup.forEach((item) => {
|
|
225
|
+
item.reset();
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
if (searchRule.displayType == "Cascader") {
|
|
229
|
+
this.$refs.cascader.forEach((item) => {
|
|
230
|
+
item.reset();
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
this.resetForm("queryForm");
|
|
235
|
+
|
|
236
|
+
this.getList();
|
|
237
|
+
}
|
|
238
|
+
getList() {
|
|
239
|
+
this.loading = true
|
|
240
|
+
const pageNum = this.listQueryParams.pageNum ? this.listQueryParams.pageNum : 1;
|
|
241
|
+
const pageSize = this.listQueryParams.pageSize ? this.listQueryParams.pageSize : 10;
|
|
242
|
+
|
|
243
|
+
let params = {
|
|
244
|
+
pageNum: pageNum,
|
|
245
|
+
pageSize: pageSize,
|
|
246
|
+
}
|
|
247
|
+
if (this.searchRules) {
|
|
248
|
+
for (var item of this.searchRules) {
|
|
249
|
+
if (item[item.property] || item[item.property] == 0) {
|
|
250
|
+
if (item["displayType"] == "status") {
|
|
251
|
+
if (item[item.property])
|
|
252
|
+
params[item["property"]] = item[item.property][0];
|
|
253
|
+
} else {
|
|
254
|
+
params[item["property"]] = item[item.property];
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
// pageSelectInv(params).then((response) => {
|
|
261
|
+
getInvLotDtoList(params).then((response) => {
|
|
262
|
+
this.listData = response.data
|
|
263
|
+
if(this.listData.length>0){
|
|
264
|
+
this.listData.forEach(item=>{
|
|
265
|
+
item.stockinDate = item.createTime
|
|
266
|
+
if(this.reservedInventoryInfo.length>0){
|
|
267
|
+
this.reservedInventoryInfo.forEach(data=>{
|
|
268
|
+
this.listData = this.listData.filter(item => item.id !== data.id)
|
|
269
|
+
})
|
|
270
|
+
}
|
|
271
|
+
})
|
|
272
|
+
}
|
|
273
|
+
this.listQueryParams.total = Number(response.total)
|
|
274
|
+
this.loading = false
|
|
275
|
+
}).catch(() => {
|
|
276
|
+
this.loading = false
|
|
277
|
+
})
|
|
278
|
+
this.loading = false
|
|
279
|
+
}
|
|
280
|
+
// 取消按钮
|
|
281
|
+
cancel() {
|
|
282
|
+
this.setting.isShow = false;
|
|
283
|
+
}
|
|
284
|
+
// 表单重置
|
|
285
|
+
reset() { }
|
|
286
|
+
/** 提交按钮 */
|
|
287
|
+
submitForm() {
|
|
288
|
+
this.$set(this.setting, "submitLoading", true);
|
|
289
|
+
if (this.setting.data.multiSelect) {
|
|
290
|
+
console.log("this.currentEntities=", this.currentEntities);
|
|
291
|
+
if (this.currentEntities.length <= 0) {
|
|
292
|
+
this.$message.error("请至少选择一笔批次数据");
|
|
293
|
+
this.$set(this.setting, "submitLoading", false);
|
|
294
|
+
return;
|
|
295
|
+
}
|
|
296
|
+
} else {
|
|
297
|
+
if (this.currentEntities.length !== 1) {
|
|
298
|
+
this.$message.error("请选择一笔批次数据");
|
|
299
|
+
this.$set(this.setting, "submitLoading", false);
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
}
|
|
304
|
+
let i = 0;
|
|
305
|
+
//库存预约卡控,add 20230608,不要随便删除
|
|
306
|
+
if (this.setting.data.checkRule != null && this.setting.data.checkRule) {
|
|
307
|
+
this.currentEntities.forEach((item) => {
|
|
308
|
+
this.setting.data.InventoryData.forEach((res) => {
|
|
309
|
+
if (item.productNo == res.productNo) {
|
|
310
|
+
i = 1;
|
|
311
|
+
this.$message.error(item.productNo + "已经存在,请勿重复选择!");
|
|
312
|
+
return;
|
|
313
|
+
}
|
|
314
|
+
})
|
|
315
|
+
})
|
|
316
|
+
}
|
|
317
|
+
if(i===1){
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
this.$emit("confirm", this.currentEntities);
|
|
321
|
+
this.$set(this.setting, "submitLoading", false);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
// 多选框选中数据
|
|
325
|
+
onSelectionChange(selection, row) {
|
|
326
|
+
|
|
327
|
+
//库存预约卡控,add 20230608,不要随便删除
|
|
328
|
+
if (this.setting.data.checkRule != null && this.setting.data.checkRule) {
|
|
329
|
+
selection.forEach((item) => {
|
|
330
|
+
if (item.soNo != null || item.soNo == "") {
|
|
331
|
+
this.$message.warning(item.productNo + "已经属于" + item.soNo + "订单的货!");
|
|
332
|
+
// return;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
this.setting.data.InventoryData.forEach((res) => {
|
|
336
|
+
if (item.productNo == res.productNo) {
|
|
337
|
+
this.$message.error(item.productNo + "已经存在,请勿重复选择!");
|
|
338
|
+
}
|
|
339
|
+
})
|
|
340
|
+
|
|
341
|
+
})
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
this.currentEntities = selection;
|
|
345
|
+
}
|
|
346
|
+
onSearch(args) {
|
|
347
|
+
switch (args.property) {
|
|
348
|
+
case "goodsOwnerId":
|
|
349
|
+
|
|
350
|
+
break;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
/** 获取货主名称 */
|
|
354
|
+
getGoodsOwnerNameByIdAndType(row, column, value) {
|
|
355
|
+
let val = value;
|
|
356
|
+
switch (row['goodsOwnerTypeCode']) {
|
|
357
|
+
case GOODS_OWNER_TYPE.BUSINESS_ORGANIZATION:
|
|
358
|
+
return val = getSiteNameByIdOrNo(value);
|
|
359
|
+
break;
|
|
360
|
+
case GOODS_OWNER_TYPE.VENDOR:
|
|
361
|
+
const vendor = this.vendorList.find(item => item.id === value)
|
|
362
|
+
if (vendor && vendor.hasOwnProperty("vendorName")) {
|
|
363
|
+
return val = vendor.vendorName
|
|
364
|
+
}
|
|
365
|
+
break;
|
|
366
|
+
case GOODS_OWNER_TYPE.CUSTOMER:
|
|
367
|
+
const customer = this.customerList.find(item => item.id === value)
|
|
368
|
+
if (customer && customer.hasOwnProperty("customerName")) {
|
|
369
|
+
return val = customer.customerName
|
|
370
|
+
}
|
|
371
|
+
break;
|
|
372
|
+
default:
|
|
373
|
+
return val
|
|
374
|
+
break;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
getVendorList() {
|
|
378
|
+
const pageNum = 1;
|
|
379
|
+
const pageSize = MAX_PAGE_SIZE;
|
|
380
|
+
vendorList({ op: "AND", pageNum, pageSize }).then((response) => {
|
|
381
|
+
this.vendorList = response.rows
|
|
382
|
+
})
|
|
383
|
+
}
|
|
384
|
+
getCustomerList() {
|
|
385
|
+
const pageNum = 1;
|
|
386
|
+
const pageSize = MAX_PAGE_SIZE;
|
|
387
|
+
listCustomer({ op: "AND", pageNum, pageSize }).then((response) => {
|
|
388
|
+
this.customerList = response.rows
|
|
389
|
+
})
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
</script>
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div style="margin-bottom: 0px">
|
|
3
|
+
<el-form
|
|
4
|
+
ref="entity"
|
|
5
|
+
:model="entity"
|
|
6
|
+
:rules="rules"
|
|
7
|
+
:label-width="labelWidth"
|
|
8
|
+
>
|
|
9
|
+
<el-row>
|
|
10
|
+
<FormColumns
|
|
11
|
+
ref="FormColumns"
|
|
12
|
+
:areaSetting="areaSetting"
|
|
13
|
+
:columns.sync="listColumns"
|
|
14
|
+
@onSearch="onSearch"
|
|
15
|
+
:entity.sync="entity"
|
|
16
|
+
@change="onChangeEvent"
|
|
17
|
+
></FormColumns>
|
|
18
|
+
</el-row>
|
|
19
|
+
</el-form>
|
|
20
|
+
<div slot="footer" class="dialog-footer">
|
|
21
|
+
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</template>
|
|
25
|
+
|
|
26
|
+
<script lang="ts">
|
|
27
|
+
import { listEntity } from "kz-ui-base/common/src/api/common/common";
|
|
28
|
+
import FormColumns from "@srcComponents/customForm/formColumns.vue";
|
|
29
|
+
import technicalStandardModal from '@srcViews/pd/common/modal/technicalStandardModal.vue'
|
|
30
|
+
import processingStatusModel from './processingStatusModel.vue'
|
|
31
|
+
// import TableForm from "./tableForm.vue";
|
|
32
|
+
import {
|
|
33
|
+
Component,
|
|
34
|
+
Prop,
|
|
35
|
+
Vue,
|
|
36
|
+
Watch,
|
|
37
|
+
Emit,
|
|
38
|
+
Mixins,
|
|
39
|
+
} from "vue-property-decorator";
|
|
40
|
+
@Component({
|
|
41
|
+
components: {
|
|
42
|
+
FormColumns
|
|
43
|
+
},
|
|
44
|
+
})
|
|
45
|
+
export default class infomation extends Vue {
|
|
46
|
+
@Prop()
|
|
47
|
+
value;
|
|
48
|
+
//表格数据
|
|
49
|
+
entity = {};
|
|
50
|
+
|
|
51
|
+
//列表列信息
|
|
52
|
+
listColumns = [{disabled: false}];
|
|
53
|
+
//页面设置参数
|
|
54
|
+
listSetting = { viewDetail : false};
|
|
55
|
+
rules = {};
|
|
56
|
+
labelWidth = "100px";
|
|
57
|
+
//编辑列区域设置,含控件区域分组及Tab设置
|
|
58
|
+
areaSetting = [
|
|
59
|
+
{
|
|
60
|
+
name: "technicalInfo",
|
|
61
|
+
visible: true,
|
|
62
|
+
icon: "ion-plus-round",
|
|
63
|
+
text: "技术信息",
|
|
64
|
+
type: "area",
|
|
65
|
+
},
|
|
66
|
+
// {
|
|
67
|
+
// name: "unitPriceComposition",
|
|
68
|
+
// visible: true,
|
|
69
|
+
// icon: "ion-plus-round",
|
|
70
|
+
// text: "单价构成",
|
|
71
|
+
// type: "area",
|
|
72
|
+
// },
|
|
73
|
+
{
|
|
74
|
+
name: "other",
|
|
75
|
+
visible: true,
|
|
76
|
+
icon: "ion-plus-round",
|
|
77
|
+
text: "其他",
|
|
78
|
+
type: "area",
|
|
79
|
+
}
|
|
80
|
+
];
|
|
81
|
+
created() {
|
|
82
|
+
this.listColumns = this?.value?.listColumns;
|
|
83
|
+
this.entity = this.value.row;
|
|
84
|
+
this.listSetting = this.value.listSetting;
|
|
85
|
+
|
|
86
|
+
this.listColumns.forEach((item, index) => {
|
|
87
|
+
if(this.listSetting.viewDetail){
|
|
88
|
+
this.$set(this.listColumns[index], "disabled", true);
|
|
89
|
+
}
|
|
90
|
+
if(this.value.entity.prodCategoryCode && "prodCategoryCode" in item){
|
|
91
|
+
if(item["prodCategoryCode"]){
|
|
92
|
+
if(!(item['prodCategoryCode'] as any).includes(this.value.entity.prodCategoryCode)){
|
|
93
|
+
this.$set(this.listColumns[index], "visible", false);
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
if (this.value?.specialContract) {
|
|
99
|
+
this.areaSetting.shift()
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
//当前绑定实体字段值变更事件
|
|
103
|
+
onChangeEvent(args) {
|
|
104
|
+
//console.log(args);
|
|
105
|
+
}
|
|
106
|
+
onSearch(args) {
|
|
107
|
+
const that = this;
|
|
108
|
+
switch (args.property) {
|
|
109
|
+
case "inspectionStandard":
|
|
110
|
+
(this as any).Dialog.open({
|
|
111
|
+
component: technicalStandardModal,
|
|
112
|
+
setting: {
|
|
113
|
+
isShow: true,
|
|
114
|
+
title: '选择检验标准',
|
|
115
|
+
size: 'small', // 可选项tiny/small/large/full
|
|
116
|
+
width: '1300px', // 表格宽度 不传默认为800px
|
|
117
|
+
labelWidth: '120px', // input标题宽度 不传默认为100px
|
|
118
|
+
data: { btnShow: true }
|
|
119
|
+
},
|
|
120
|
+
confirm: (result) => {
|
|
121
|
+
if (!result.id) {
|
|
122
|
+
(this as any).$message.error(`请选择一条数据`)
|
|
123
|
+
return false
|
|
124
|
+
}
|
|
125
|
+
this.$set(this.entity, "inspectionStandard", result.technicalStandardCode);
|
|
126
|
+
return true;
|
|
127
|
+
}
|
|
128
|
+
})
|
|
129
|
+
break;
|
|
130
|
+
case "processingStatus":
|
|
131
|
+
(this as any).Dialog.open({
|
|
132
|
+
component: processingStatusModel,
|
|
133
|
+
setting: {
|
|
134
|
+
isShow: true,
|
|
135
|
+
title: '选择加工属性',
|
|
136
|
+
size: 'small', // 可选项tiny/small/large/full
|
|
137
|
+
width: '800px', // 表格宽度 不传默认为800px
|
|
138
|
+
labelWidth: '120px', // input标题宽度 不传默认为100px
|
|
139
|
+
data: {
|
|
140
|
+
btnShow: true,
|
|
141
|
+
multipleChoice: true
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
confirm: (result) => {
|
|
145
|
+
|
|
146
|
+
if (result.length == 0) {
|
|
147
|
+
(this as any).$message.error(`请选择一条数据`)
|
|
148
|
+
return false
|
|
149
|
+
}
|
|
150
|
+
let processingStatus = "";
|
|
151
|
+
for (let i = 0; i < result.length; i++) {
|
|
152
|
+
if (i > 0) processingStatus += ","
|
|
153
|
+
processingStatus += result[i].dictLabel;
|
|
154
|
+
}
|
|
155
|
+
this.$set(this.entity, "processingStatus", processingStatus);
|
|
156
|
+
return true;
|
|
157
|
+
}
|
|
158
|
+
})
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
/** 提交按钮 */
|
|
163
|
+
submitForm() {
|
|
164
|
+
this.$emit("confirm", this.entity);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
</script>
|
|
168
|
+
<style scoped>
|
|
169
|
+
/* ::v-deep.el-row .borderClass{
|
|
170
|
+
display: inline-block;
|
|
171
|
+
} */
|
|
172
|
+
::v-deep .customDialog .el-dialog__body {
|
|
173
|
+
padding: 10px 20px 55px 20px !important;
|
|
174
|
+
overflow-y: auto;
|
|
175
|
+
border-top: 1px solid #dcdfe6;
|
|
176
|
+
}
|
|
177
|
+
</style>
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div style="margin-bottom: 0px">
|
|
3
|
+
<KZ_Table :listData="entityOne" :loading="collectionAgreementSetting.loading"
|
|
4
|
+
:listSetting="collectionAgreementSetting" :listColumns="newColumns"></KZ_Table>
|
|
5
|
+
<div slot="footer" class="dialog-footer">
|
|
6
|
+
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
7
|
+
</div>
|
|
8
|
+
</div>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script lang="ts">
|
|
12
|
+
import { Component, Prop, Vue } from "vue-property-decorator";
|
|
13
|
+
import KZ_Table from "@srcComponents/customForm/table.vue";
|
|
14
|
+
|
|
15
|
+
@Component({
|
|
16
|
+
components: {
|
|
17
|
+
KZ_Table
|
|
18
|
+
}
|
|
19
|
+
})
|
|
20
|
+
export default class Information extends Vue {
|
|
21
|
+
@Prop({ type: Object, required: true })
|
|
22
|
+
value!: {
|
|
23
|
+
listColumns: Array<any>;
|
|
24
|
+
row: Array<any>;
|
|
25
|
+
index:Number;
|
|
26
|
+
listSetting: { viewDetail: boolean };
|
|
27
|
+
entity: {
|
|
28
|
+
prodCategoryCode: string; salesOrderAlterationDetails: Array<any>
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// 表格数据
|
|
33
|
+
entity: Object;
|
|
34
|
+
// 表格设置
|
|
35
|
+
collectionAgreementSetting = {
|
|
36
|
+
loading: false,
|
|
37
|
+
isShowOpColumn: false,
|
|
38
|
+
isShowSumRow: false,
|
|
39
|
+
isShowIndex: true,
|
|
40
|
+
isShowIndexColumn: false,
|
|
41
|
+
multipleChoice: true,
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
// 列表列信息
|
|
45
|
+
listColumns: Array<any> = [];
|
|
46
|
+
index: Number;
|
|
47
|
+
// 页面设置参数
|
|
48
|
+
listSetting: { viewDetail: boolean } = { viewDetail: false };
|
|
49
|
+
// 用于存储处理后的实体数据
|
|
50
|
+
entityOne: Array<any> = [];
|
|
51
|
+
// 用于存储处理后的列数据(如果需要的话)
|
|
52
|
+
columnsOne: Array<any> = [];
|
|
53
|
+
newColumns=[]
|
|
54
|
+
|
|
55
|
+
created() {
|
|
56
|
+
this.listColumns = this?.value?.listColumns;
|
|
57
|
+
this.index = this?.value?.index;
|
|
58
|
+
this.entity = this?.value?.row;
|
|
59
|
+
this.listSetting = this?.value?.listSetting;
|
|
60
|
+
|
|
61
|
+
if (this?.listColumns?.length > 0) {
|
|
62
|
+
this.listColumns.forEach((item, index) => {
|
|
63
|
+
if (this.listSetting.viewDetail) {
|
|
64
|
+
this.$set(this.listColumns, index, { ...item, disabled: true });
|
|
65
|
+
}
|
|
66
|
+
if (this?.value.entity.prodCategoryCode && "prodCategoryCode" in item) {
|
|
67
|
+
if (item.prodCategoryCode && !(item.prodCategoryCode as any).includes(this?.value.entity.prodCategoryCode)) {
|
|
68
|
+
this.$set(this.listColumns, index, { ...item, visible: false });
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
this.tableData();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
tableData() {
|
|
77
|
+
this.listColumns.forEach(item => {
|
|
78
|
+
item.disabled = false;
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
const newListColumns = this.listColumns.reduce<Array<any>>((acc, col) => {
|
|
82
|
+
acc.push(col);
|
|
83
|
+
if (col.visible !== false && col.disabled === false) {
|
|
84
|
+
const alteredCol = {
|
|
85
|
+
...col,
|
|
86
|
+
text: `新${col.text}`,
|
|
87
|
+
property: `${col.property}Alteration`,
|
|
88
|
+
disabled:true
|
|
89
|
+
};
|
|
90
|
+
col.text = `原${col.text}`;
|
|
91
|
+
col.disabled=true
|
|
92
|
+
acc.push(alteredCol);
|
|
93
|
+
}
|
|
94
|
+
return acc;
|
|
95
|
+
}, []);
|
|
96
|
+
|
|
97
|
+
this.listColumns = newListColumns;
|
|
98
|
+
|
|
99
|
+
let rowEntity: any = {};
|
|
100
|
+
// &&resData.alterationLineNo==this.index
|
|
101
|
+
this.value.entity.salesOrderAlterationDetails.forEach(resData => {
|
|
102
|
+
this.listColumns.forEach(res => {
|
|
103
|
+
if (resData.alterationField == res.property&&resData.alterationLineNo==this.index) {
|
|
104
|
+
let alteredKey = resData.alterationField + 'Alteration';
|
|
105
|
+
rowEntity[resData.alterationField] = resData.alterationBefore;
|
|
106
|
+
rowEntity[alteredKey] = resData.alterationBack;
|
|
107
|
+
console.log(rowEntity,resData.alterationBefore,resData.alterationField);
|
|
108
|
+
|
|
109
|
+
}
|
|
110
|
+
if ((res.property==resData.alterationField||res.property==resData.alterationField+'Alteration')&&resData.alterationLineNo==this.index) {
|
|
111
|
+
// res.displayType="TextBox"
|
|
112
|
+
if (['DropDownList', 'TextArea', 'Switch'].includes(res.displayType)) {
|
|
113
|
+
res.setting = res.setting || {}; // 确保 setting 存在
|
|
114
|
+
res.setting.displayMode="form"
|
|
115
|
+
res.setting.height=1
|
|
116
|
+
}
|
|
117
|
+
res.width="260"
|
|
118
|
+
this.newColumns.push(res)
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
this.entityOne.push(rowEntity);
|
|
123
|
+
|
|
124
|
+
console.log(this.listColumns, this.entity, this.entityOne,this.newColumns);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
submitForm() {
|
|
128
|
+
this.$emit("confirm");
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
</script>
|