diff --git a/src/components/EditHeader/index.vue b/src/components/EditHeader/index.vue index 1788a2b..e626492 100644 --- a/src/components/EditHeader/index.vue +++ b/src/components/EditHeader/index.vue @@ -4,7 +4,9 @@
- {{title}} + + {{title}} +
diff --git a/src/views/yh/report/edit/components/ReportProductEdit.vue b/src/views/yh/report/edit/components/ReportProductEdit.vue index de46d38..8ec04d5 100644 --- a/src/views/yh/report/edit/components/ReportProductEdit.vue +++ b/src/views/yh/report/edit/components/ReportProductEdit.vue @@ -120,6 +120,11 @@ :user-query="userQuery" /> + +
@@ -140,6 +145,7 @@ import HoverShow from "@/components/HoverShow/index.vue"; import ReportProductRowEdit from "@/views/yh/report/edit/components/ReportProductRowEdit.vue"; import PriceDrawer from "@/components/Business/Price/PriceDrawer.vue"; import {calcTotalAmount} from "@/views/yh/report/utils"; +import UserProdPreview from './UserProdPreview.vue' export default { name: "ReportProductEdit", @@ -151,7 +157,7 @@ export default { Dict, ReportProductUserListEdit, ReportProductOrderListEdit, - UserProductBatchDialog, FormCol, PriceInput, PriceDialog, UserInput}, + UserProductBatchDialog, FormCol, PriceInput, PriceDialog, UserInput, UserProdPreview}, props: { value: { type: Array, @@ -226,6 +232,8 @@ export default { showMore: false, editingIndex: -1, // 当前正在编辑的工序索引 isAllSelected: false, + showUserProdPreview: false, + currentPreviewData: null, } }, watch: { @@ -418,6 +426,10 @@ export default { item.selected = !item.selected; this.handleSelect(item, item.selected); }, + handlePreview(row) { + this.currentPreviewData = row; + this.showUserProdPreview = true; + }, } } @@ -496,6 +508,20 @@ export default { margin-left: 0; } + .preview-icon { + color: #909399; + cursor: pointer; + padding: 4px; + font-size: 16px; + border-radius: 4px; + transition: all 0.2s; + + &:hover { + color: #409EFF; + background-color: rgba(64, 158, 255, 0.1); + } + } + .delete-icon { color: #909399; cursor: pointer; @@ -618,5 +644,19 @@ export default { } } +.preview-icon { + color: #909399; + cursor: pointer; + padding: 4px; + font-size: 16px; + border-radius: 4px; + transition: all 0.2s; + + &:hover { + color: #409EFF; + background-color: rgba(64, 158, 255, 0.1); + } +} + diff --git a/src/views/yh/report/edit/components/UserProdPreview.vue b/src/views/yh/report/edit/components/UserProdPreview.vue new file mode 100644 index 0000000..8158e22 --- /dev/null +++ b/src/views/yh/report/edit/components/UserProdPreview.vue @@ -0,0 +1,345 @@ + + + + + \ No newline at end of file diff --git a/src/views/yh/report/edit/edit.vue b/src/views/yh/report/edit/edit.vue index 081918e..74c8915 100644 --- a/src/views/yh/report/edit/edit.vue +++ b/src/views/yh/report/edit/edit.vue @@ -1,6 +1,10 @@