diff --git a/src/views/basic/collectPoint/userWorkplace.vue b/src/views/basic/collectPoint/userWorkplace.vue index 6143167c..03b386e5 100644 --- a/src/views/basic/collectPoint/userWorkplace.vue +++ b/src/views/basic/collectPoint/userWorkplace.vue @@ -122,7 +122,7 @@ {{ workplaceTypes[scope.row.workplaceType] }} - + diff --git a/src/views/collect/CollectOrderAllot.vue b/src/views/collect/CollectOrderAllot.vue index 0f828c5f..5ed5a9a6 100644 --- a/src/views/collect/CollectOrderAllot.vue +++ b/src/views/collect/CollectOrderAllot.vue @@ -22,7 +22,6 @@ - @@ -40,7 +39,7 @@ import CollectOrderAllotCardComponents from "./CollectOrderAllotCardComponents.v export default { name: "PrescribeTagCode", components: { - CollectOrderAllotComponents,CollectOrderAllotCardComponents + CollectOrderAllotComponents, CollectOrderAllotCardComponents }, data() { return { @@ -48,11 +47,11 @@ export default { } }, methods: { - parentMethod(data,url) { + parentMethod(data, url) { // 处理从子组件传来的数据 - if (this.workPlaceCode == null){ + if (this.workPlaceCode == null) { this.callParentMethod(url) - }else { + } else { this.callParentMethodA(data) } @@ -66,7 +65,7 @@ export default { }, }, created() { - if (this.$route.query.workplaceId != null){ + if (this.$route.query.workplaceId != null) { this.workPlaceCode = Number(this.$route.query.workplaceId); } } diff --git a/src/views/collect/CollectOrderTabs.vue b/src/views/collect/CollectOrderTabs.vue index b7d95ba2..d77818e8 100644 --- a/src/views/collect/CollectOrderTabs.vue +++ b/src/views/collect/CollectOrderTabs.vue @@ -7,51 +7,51 @@
- - - - - {{ item.workplaceName }} - {{ - item.workplaceId - }} - - - - - - - - - + + - {{ item.busName }} - {{ item.documentTypeCode }} - - + + {{ item.workplaceName }} + {{ + item.workplaceId + }} + + + + - 切换业务 - - + + + + + {{ item.busName }} + {{ item.documentTypeCode }} + + + + 切换业务 + + @@ -59,7 +59,7 @@ -
+
@@ -76,47 +76,47 @@ - - - - - - - 处理单据 - - - - 工位上货 - - - - 工位退货 - - - - 工位存量 - - - - 待处理单 - - - - 已完成单 - - - - 单据上传 - - - - 损耗出库 - - - + + + + + + + 处理单据 + + + + 工位上货 + + + + 工位退货 + + + + 工位存量 + + + + 待处理单 + + + + 已完成单 + + + + 单据上传 + + + + 损耗出库 + + + +
    +
  • 关闭当前
  • +
  • 关闭其他
  • +
  • 关闭所有
  • +
@@ -179,7 +184,8 @@
-

{{ info.remark }}

+

+ {{ info.remark }}

开始作业 @@ -225,7 +231,7 @@ export default { return { showContextMenu: false, // 控制上下文菜单的显示 contextMenuPosition: { x: 0, y: 0 }, // 上下文菜单的位置 - selectBusTypeDisabled: false, + selectBusTypeDisabled: false, busQuery: { busKey: '', workplaceCode: null, @@ -233,8 +239,8 @@ export default { limit: 100 }, formData: {}, - curWorkPlaces:[], - busTypeList:[], + curWorkPlaces: [], + busTypeList: [], logo: logoImg, isLinkDisabled: false, showChild: true, @@ -264,7 +270,7 @@ export default { component: IoCreateOrderOut, // 假设你需要传递的参数 componentProps: { - fromSplitType: 'out' + fromSplitType: 'out', } }, { @@ -330,21 +336,21 @@ export default { ], tabIndex: 0, menuActive: 0, - resetKeys:{} + resetKeys: {} } }, methods: { - toggleBusType(){ + toggleBusType() { //隐藏下拉框内容 // this.$refs.selectHeadEmpId.blur(); this.selectBusTypeDisabled = true }, selectBusType(val) { this.formData.busType = val - let newQuery = { ...this.$route.query }; + let newQuery = {...this.$route.query}; delete newQuery.billNo; newQuery.busType = val - this.$router.push({ query: newQuery, path: this.$route.path }); + this.$router.push({query: newQuery, path: this.$route.path}); this.editableTabs = [] this.clickMenuItem(0) this.showChild = false; @@ -441,10 +447,11 @@ export default { this.busTypeList = res.data.list this.busTypeTotal = res.data.total - if (this.$route.query.busType != null){ + if (this.$route.query.busType != null) { this.formData.busType = this.$route.query.busType }else if (this.busTypeList.length == 1) { this.formData.busType = this.busTypeList[0].documentTypeCode + this.$router.push({query: {...this.$route.query, busType: this.formData.busType}, path: this.$route.path}) this.selectBusTypeDisabled = false } else { this.selectBusTypeDisabled = true @@ -456,47 +463,46 @@ export default { }) }, - handleContextMenu(event, tabItem) { - console.log("右击") + handleContextMenu() { this.showContextMenu = true; + }, + handleTabContextMenu(event, tab) { + this.showContextMenu = true; + this.contextMenuTab = tab; this.contextMenuPosition = { x: event.clientX, y: event.clientY }; - // 这里可以显示一个自定义的菜单,例如使用 Element UI 的 Dialog 或 Popover - // 假设你有一个名为 showContextMenu 的方法来显示菜单,并传递 tabItem 作为参数 - this.showContextMenu(tabItem, event.clientX, event.clientY); }, - showContextMenu(tabItem, x, y) { - // 显示你的自定义菜单逻辑,这里只是示例 - this.contextMenuVisible = true; - this.contextMenuPosition = { x, y }; - this.selectedTabItem = tabItem; + + closeContextMenu() { + this.showContextMenu = false; + this.contextMenuStyle.display = 'none'; // 隐藏上下文菜单 }, - // 其他菜单操作的方法,如 closeCurrent, closeOthers, closeAll - closeCurrent() { + closeCurrentTab(index) { // 关闭当前标签页的逻辑 - const index = this.editableTabs.findIndex(tab => tab.name === this.selectedTabItem.name); - if (index !== -1) { - this.editableTabs.splice(index, 1); - this.editableTabsValue = this.editableTabs[this.editableTabs.length - 1]?.name || ''; - } + this.editableTabs.splice(index, 1); // 假设这是关闭标签页的方式 + this.editableTabsValue = this.editableTabs.length > 0 ? this.editableTabs[0].name : ''; + this.closeContextMenu(); }, - closeOthers() { + closeOtherTabs() { // 关闭其他标签页的逻辑 - this.editableTabs = this.editableTabs.filter(tab => tab.name === this.selectedTabItem.name); - this.editableTabsValue = this.selectedTabItem.name; + // ... + this.closeContextMenu(); }, - closeAll() { + closeAllTabs() { // 关闭所有标签页的逻辑 this.editableTabs = []; this.editableTabsValue = ''; - } + this.closeContextMenu(); + }, }, computed: { - contextMenuStyle() { + contextMenuPosition() { return { + position: 'fixed', // 使用 fixed 定位确保它浮动在顶层 left: `${this.contextMenuPosition.x}px`, top: `${this.contextMenuPosition.y}px`, - // 你可以添加更多的样式来美化你的上下文菜单 + zIndex: 1000, // 确保它在其他内容之上 + // 其他样式... }; }, }, @@ -511,7 +517,7 @@ export default { } - diff --git a/src/views/collect/DealOrder.vue b/src/views/collect/DealOrder.vue index 32a0fc8e..4002d75d 100644 --- a/src/views/collect/DealOrder.vue +++ b/src/views/collect/DealOrder.vue @@ -56,53 +56,53 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -272,7 +272,8 @@
-

{{ info.remark }}

+

+ {{ info.remark }}

开始作业 @@ -442,8 +443,7 @@ export default { if (this.formData.billNo != null) { this.getBillNo(this.formData.billNo) this.startDeal(); - } - else { + } else { if (this.busTypeList.length == 1 && this.$route.query.busType == null) { let busType = this.busTypeList[0] this.formData.busType = this.busTypeList[0].documentTypeCode @@ -740,7 +740,7 @@ export default { //选择单据 selectPrescribe() { // console.log(this.formData.workPlaceCode) - if (this.$route.query.busType != null){ + if (this.$route.query.busType != null) { this.formData.busType = this.$route.query.busType } this.selectPrescriptionVisible = true; @@ -891,7 +891,7 @@ export default { this.formData.confirmFinish = false; this.refreshCodesPanel(this) }, - toggleBusType(){ + toggleBusType() { //隐藏下拉框内容 // this.$refs.selectHeadEmpId.blur(); this.selectBusTypeDisabled = true @@ -925,9 +925,6 @@ export default { } - - - } } diff --git a/src/views/collect/IoCreateOrder.vue b/src/views/collect/IoCreateOrder.vue index 5cc451b5..4da56c73 100644 --- a/src/views/collect/IoCreateOrder.vue +++ b/src/views/collect/IoCreateOrder.vue @@ -407,6 +407,7 @@ export default { sickerAdNum: null, workPlaceCode: null, fifoSplit: 1, + splitBusType: null, }, detailList: [], @@ -1081,7 +1082,7 @@ export default { parseTime(date, "{y}{m}{d}{h}{i}{s}") + Math.ceil(Math.random() * 89 + 10); } - + debugger this.loading = true; let tQuery = Object.assign( JSON.parse(JSON.stringify(this.orderFormData)) @@ -1751,6 +1752,7 @@ export default { preCurSpaceCode: null, //单据 sickerAdNum: null, workPlaceCode: null, + splitBusType: null, fifoSplit: 1, } this.scanCode = ""; @@ -1847,7 +1849,8 @@ export default { this.corpOrderIdDisabled = true this.isLinkDisabled = true this.workplaceId = this.$route.query.workplaceId - this.orderFormData.workPlaceCode = Number(this.$route.query.workplaceId) + this.orderFormData.workPlaceCode = Number(this.$route.query.workplaceId); + this.orderFormData.splitBusType = "YPCF002" } },