diff --git a/inventory-check.html b/inventory-check.html index 5e0fc29..0398d8d 100644 --- a/inventory-check.html +++ b/inventory-check.html @@ -236,6 +236,163 @@ .log-end { color: #ce9178; } + + .btn-pos { + background: #722ed1; + color: white; + } + .btn-pos:hover:not(:disabled) { + background: #9254de; + } + .btn-pos:disabled { + background: #b37feb; + } + .btn-update-batch { + background: #fa8c16; + color: white; + } + .btn-update-batch:hover:not(:disabled) { + background: #ffa940; + } + .btn-update-batch:disabled { + background: #ffd591; + } + .switch-right { + display: flex; + align-items: center; + gap: 16px; + } + .batch-number { + font-size: 14px; + color: #333; + } + .batch-number b { + color: #fa8c16; + font-family: 'Courier New', monospace; + } + + /* 位置设置弹框 */ + .pos-overlay { + position: fixed; + top: 0; left: 0; right: 0; bottom: 0; + background: rgba(0, 0, 0, 0.5); + display: flex; + justify-content: center; + align-items: center; + z-index: 1000; + } + .pos-modal { + background: #fff; + border-radius: 8px; + width: 90%; + max-width: 720px; + max-height: 90vh; + overflow: auto; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); + } + .pos-header { + padding: 15px 20px; + font-size: 18px; + font-weight: 600; + border-bottom: 1px solid #eee; + } + .pos-body { + padding: 20px; + } + .pos-field { + margin-bottom: 15px; + } + .pos-row { + display: flex; + gap: 12px; + } + .pos-row .pos-field { + flex: 1; + margin-bottom: 15px; + } + .pos-field label { + display: block; + margin-bottom: 6px; + color: #555; + } + .pos-field input, .pos-field select { + width: 100%; + padding: 8px 10px; + border: 1px solid #ddd; + border-radius: 4px; + box-sizing: border-box; + } + .pos-grid-tools { + margin: 10px 0; + display: flex; + align-items: center; + gap: 12px; + flex-wrap: wrap; + } + .pos-grid-tools button { + padding: 6px 14px; + border: none; + background: #1890ff; + color: #fff; + border-radius: 4px; + cursor: pointer; + } + .pos-grid-tools .btn-pos-clear { + background: #fa8c16; + } + .pos-grid-tools .btn-pos-clear:hover { + background: #ffa940; + } + .pos-hint { + color: #999; + font-size: 12px; + } + .grid-wrap { + overflow: auto; + max-height: 360px; + } + .grid-table { + border-collapse: collapse; + } + .grid-table th, .grid-table td { + border: 1px solid #ddd; + text-align: center; + padding: 0; + } + .grid-table .cell { + width: 30px; + height: 30px; + cursor: pointer; + background: #fafafa; + } + .grid-table .cell:hover { + background: #e6f7ff; + } + .grid-table .cell.selected { + background: #1890ff; + } + .grid-table .row-head, .grid-table .col-head { + background: #f0f0f0; + cursor: pointer; + padding: 4px 8px; + font-weight: 500; + user-select: none; + white-space: nowrap; + } + .grid-table .row-head:hover, .grid-table .col-head:hover { + background: #d9d9d9; + } + .grid-table .corner { + background: #f0f0f0; + } + .btn-pos-close { + padding: 8px 20px; + border: none; + background: #52c41a; + color: #fff; + border-radius: 4px; + cursor: pointer; + } @@ -246,7 +403,7 @@
- +
@@ -256,7 +413,7 @@
- +
@@ -267,15 +424,20 @@
循环模式 - +
+ + 批次号:- +
+ +
准备就绪
@@ -287,9 +449,51 @@
+ + + diff --git a/src/api/logistics/checkconf/index.ts b/src/api/logistics/checkconf/index.ts index 97be90e..11985f1 100644 --- a/src/api/logistics/checkconf/index.ts +++ b/src/api/logistics/checkconf/index.ts @@ -7,6 +7,7 @@ export interface CheckConfVO { checkName: string // 盘点名称 checkScanType: string // 盘点类型 isEnable: boolean // 是否启用 + isDisplay: boolean // 是否显示 checkType: string // 上位状态码 } diff --git a/src/api/logistics/street/index.ts b/src/api/logistics/street/index.ts index 1c0ac04..89842f6 100644 --- a/src/api/logistics/street/index.ts +++ b/src/api/logistics/street/index.ts @@ -86,6 +86,11 @@ export const StreetApi = { return await request.get({ url: `/logistics/street/rfid/list-by-street-id?streetId=` + streetId }) }, + // 获得Rfid列表 + getRadarListByStreetId: async (streetId) => { + return await request.get({ url: `/logistics/street/radar/list-by-street-id?streetId=` + streetId }) + }, + // ==================== 子表(Rfid) ==================== // 获得Rfid列表 diff --git a/src/api/specificationConf/index.ts b/src/api/specificationConf/index.ts index 46ae63e..a376c3b 100644 --- a/src/api/specificationConf/index.ts +++ b/src/api/specificationConf/index.ts @@ -11,6 +11,7 @@ export interface SpecificationConfVO { name: string // 名称 type: string // 类型 high: number // 高度 + pic: string // 图片 } // 品规配置 API diff --git a/src/api/system/user/profile.ts b/src/api/system/user/profile.ts index 1c541bd..4f4501c 100644 --- a/src/api/system/user/profile.ts +++ b/src/api/system/user/profile.ts @@ -59,3 +59,9 @@ export const updateUserPassword = (oldPassword: string, newPassword: string) => export const uploadAvatar = (data) => { return request.upload({ url: '/system/user/profile/update-avatar', data: data }) } + +// 图片上传 +export const uploadFile = (data) => { + return request.upload({ url: '/system/user/profile/updateFile', data: data }) +} + diff --git a/src/components/Cropper/src/CopperModal.vue b/src/components/Cropper/src/CopperModal.vue index 27052b8..5fa7906 100644 --- a/src/components/Cropper/src/CopperModal.vue +++ b/src/components/Cropper/src/CopperModal.vue @@ -3,7 +3,7 @@ @@ -22,7 +22,7 @@
- + @@ -94,16 +94,24 @@
-
+
@@ -125,7 +133,9 @@ defineOptions({ name: 'CopperModal' }) const props = defineProps({ srcValue: propTypes.string.def(''), - circled: propTypes.bool.def(true) + circled: propTypes.bool.def(true), + title: propTypes.string.def(''), + selectText: propTypes.string.def('') }) const emit = defineEmits(['uploadSuccess']) const { t } = useI18n() @@ -241,7 +251,6 @@ $prefix-cls: #{$namespace}-cropper-am; margin: 0 auto; overflow: hidden; border: 1px solid; - border-radius: 50%; img { width: 100%; @@ -257,5 +266,15 @@ $prefix-cls: #{$namespace}-cropper-am; justify-content: space-around; align-items: center; } + + &-group-square { + display: flex; + padding-top: 8px; + margin-top: 8px; + border-top: 1px solid; + justify-content: space-around; + align-items: center; + gap: 8px; + } } diff --git a/src/views/Home/Index.vue b/src/views/Home/Index.vue index a070751..96f6945 100644 --- a/src/views/Home/Index.vue +++ b/src/views/Home/Index.vue @@ -156,6 +156,7 @@ \ No newline at end of file