jiaxing.zhou

Merge remote-tracking branch 'origin/master'

Showing 26 changed files with 59 additions and 39 deletions
...@@ -141,3 +141,4 @@ public class DeliveryMainController { ...@@ -141,3 +141,4 @@ public class DeliveryMainController {
141 } 141 }
142 } 142 }
143 143
144 +
......
...@@ -87,7 +87,7 @@ public class InvoiceMainController { ...@@ -87,7 +87,7 @@ public class InvoiceMainController {
87 87
88 @Operation(summary = "删除发票", description = "根据发票ID逻辑删除发票") 88 @Operation(summary = "删除发票", description = "根据发票ID逻辑删除发票")
89 @DeleteMapping("/{invoiceId}") 89 @DeleteMapping("/{invoiceId}")
90 - @PreAuthorize("hasAuthority('invoice:delete')") 90 + @PreAuthorize("hasAuthority('invoice:remove')")
91 public ApiRes<Void> deleteInvoice( 91 public ApiRes<Void> deleteInvoice(
92 @Parameter(description = "发票ID", required = true) @PathVariable Long invoiceId) { 92 @Parameter(description = "发票ID", required = true) @PathVariable Long invoiceId) {
93 try { 93 try {
...@@ -141,3 +141,4 @@ public class InvoiceMainController { ...@@ -141,3 +141,4 @@ public class InvoiceMainController {
141 } 141 }
142 } 142 }
143 143
144 +
......
...@@ -61,3 +61,4 @@ public class DeliveryAddReq { ...@@ -61,3 +61,4 @@ public class DeliveryAddReq {
61 private List<DeliveryItemAddReq> deliveryItems; 61 private List<DeliveryItemAddReq> deliveryItems;
62 } 62 }
63 63
64 +
......
...@@ -37,3 +37,4 @@ public class DeliveryItemAddReq { ...@@ -37,3 +37,4 @@ public class DeliveryItemAddReq {
37 private BigDecimal deliveryAmount; 37 private BigDecimal deliveryAmount;
38 } 38 }
39 39
40 +
......
...@@ -59,3 +59,4 @@ public class DeliveryItemRes { ...@@ -59,3 +59,4 @@ public class DeliveryItemRes {
59 private LocalDateTime updateTime; 59 private LocalDateTime updateTime;
60 } 60 }
61 61
62 +
......
...@@ -40,3 +40,4 @@ public class DeliveryItemUpdateReq { ...@@ -40,3 +40,4 @@ public class DeliveryItemUpdateReq {
40 private BigDecimal deliveryAmount; 40 private BigDecimal deliveryAmount;
41 } 41 }
42 42
43 +
......
...@@ -67,3 +67,4 @@ public class DeliveryRes { ...@@ -67,3 +67,4 @@ public class DeliveryRes {
67 private List<DeliveryItemRes> deliveryItems; 67 private List<DeliveryItemRes> deliveryItems;
68 } 68 }
69 69
70 +
......
...@@ -65,3 +65,4 @@ public class DeliveryUpdateReq { ...@@ -65,3 +65,4 @@ public class DeliveryUpdateReq {
65 private List<DeliveryItemUpdateReq> deliveryItems; 65 private List<DeliveryItemUpdateReq> deliveryItems;
66 } 66 }
67 67
68 +
......
...@@ -42,3 +42,4 @@ public class InvoiceItemAddReq { ...@@ -42,3 +42,4 @@ public class InvoiceItemAddReq {
42 private BigDecimal taxAmount; 42 private BigDecimal taxAmount;
43 } 43 }
44 44
45 +
......
...@@ -62,3 +62,4 @@ public class InvoiceItemRes { ...@@ -62,3 +62,4 @@ public class InvoiceItemRes {
62 private LocalDateTime updateTime; 62 private LocalDateTime updateTime;
63 } 63 }
64 64
65 +
......
...@@ -45,3 +45,4 @@ public class InvoiceItemUpdateReq { ...@@ -45,3 +45,4 @@ public class InvoiceItemUpdateReq {
45 private BigDecimal taxAmount; 45 private BigDecimal taxAmount;
46 } 46 }
47 47
48 +
......
...@@ -55,3 +55,4 @@ public class InvoiceQueryReq { ...@@ -55,3 +55,4 @@ public class InvoiceQueryReq {
55 private Integer pageSize = 10; 55 private Integer pageSize = 10;
56 } 56 }
57 57
58 +
......
...@@ -66,3 +66,4 @@ public class DeliveryItem { ...@@ -66,3 +66,4 @@ public class DeliveryItem {
66 private String delFlag; 66 private String delFlag;
67 } 67 }
68 68
69 +
......
...@@ -72,3 +72,4 @@ public class InvoiceItem { ...@@ -72,3 +72,4 @@ public class InvoiceItem {
72 private String delFlag; 72 private String delFlag;
73 } 73 }
74 74
75 +
......
...@@ -81,3 +81,4 @@ public class InvoiceMain { ...@@ -81,3 +81,4 @@ public class InvoiceMain {
81 private String delFlag; 81 private String delFlag;
82 } 82 }
83 83
84 +
......
...@@ -14,3 +14,4 @@ import org.apache.ibatis.annotations.Mapper; ...@@ -14,3 +14,4 @@ import org.apache.ibatis.annotations.Mapper;
14 public interface DeliveryItemMapper extends BaseMapper<DeliveryItem> { 14 public interface DeliveryItemMapper extends BaseMapper<DeliveryItem> {
15 } 15 }
16 16
17 +
......
...@@ -14,3 +14,4 @@ import org.apache.ibatis.annotations.Mapper; ...@@ -14,3 +14,4 @@ import org.apache.ibatis.annotations.Mapper;
14 public interface DeliveryMainMapper extends BaseMapper<DeliveryMain> { 14 public interface DeliveryMainMapper extends BaseMapper<DeliveryMain> {
15 } 15 }
16 16
17 +
......
...@@ -14,3 +14,4 @@ import org.apache.ibatis.annotations.Mapper; ...@@ -14,3 +14,4 @@ import org.apache.ibatis.annotations.Mapper;
14 public interface InvoiceItemMapper extends BaseMapper<InvoiceItem> { 14 public interface InvoiceItemMapper extends BaseMapper<InvoiceItem> {
15 } 15 }
16 16
17 +
......
...@@ -14,3 +14,4 @@ import org.apache.ibatis.annotations.Mapper; ...@@ -14,3 +14,4 @@ import org.apache.ibatis.annotations.Mapper;
14 public interface InvoiceMainMapper extends BaseMapper<InvoiceMain> { 14 public interface InvoiceMainMapper extends BaseMapper<InvoiceMain> {
15 } 15 }
16 16
17 +
......
...@@ -69,3 +69,4 @@ public interface DeliveryMainService extends IService<DeliveryMain> { ...@@ -69,3 +69,4 @@ public interface DeliveryMainService extends IService<DeliveryMain> {
69 boolean updateDeliveryStatus(Long deliveryId, Integer deliveryStatus); 69 boolean updateDeliveryStatus(Long deliveryId, Integer deliveryStatus);
70 } 70 }
71 71
72 +
......
...@@ -69,3 +69,4 @@ public interface InvoiceMainService extends IService<InvoiceMain> { ...@@ -69,3 +69,4 @@ public interface InvoiceMainService extends IService<InvoiceMain> {
69 boolean updateInvoiceStatus(Long invoiceId, Integer invoiceStatus); 69 boolean updateInvoiceStatus(Long invoiceId, Integer invoiceStatus);
70 } 70 }
71 71
72 +
......
...@@ -229,3 +229,4 @@ public class DeliveryMainServiceImpl extends ServiceImpl<DeliveryMainMapper, Del ...@@ -229,3 +229,4 @@ public class DeliveryMainServiceImpl extends ServiceImpl<DeliveryMainMapper, Del
229 } 229 }
230 } 230 }
231 231
232 +
......
...@@ -112,6 +112,7 @@ public class InvoiceMainServiceImpl extends ServiceImpl<InvoiceMainMapper, Invoi ...@@ -112,6 +112,7 @@ public class InvoiceMainServiceImpl extends ServiceImpl<InvoiceMainMapper, Invoi
112 112
113 InvoiceMain invoiceMain = new InvoiceMain(); 113 InvoiceMain invoiceMain = new InvoiceMain();
114 BeanUtils.copyProperties(addReq, invoiceMain); 114 BeanUtils.copyProperties(addReq, invoiceMain);
115 + invoiceMain.setUpdateTime(LocalDateTime.now());
115 invoiceMain.setCreateTime(LocalDateTime.now()); 116 invoiceMain.setCreateTime(LocalDateTime.now());
116 invoiceMain.setUpdateTime(LocalDateTime.now()); 117 invoiceMain.setUpdateTime(LocalDateTime.now());
117 invoiceMain.setDelFlag("0"); 118 invoiceMain.setDelFlag("0");
......
...@@ -7,31 +7,10 @@ export {} ...@@ -7,31 +7,10 @@ export {}
7 7
8 declare module 'vue' { 8 declare module 'vue' {
9 export interface GlobalComponents { 9 export interface GlobalComponents {
10 - ElButton: typeof import('element-plus/es')['ElButton']
11 - ElCard: typeof import('element-plus/es')['ElCard']
12 - ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
13 - ElDescriptions: typeof import('element-plus/es')['ElDescriptions']
14 - ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem']
15 - ElDialog: typeof import('element-plus/es')['ElDialog']
16 - ElForm: typeof import('element-plus/es')['ElForm']
17 - ElFormItem: typeof import('element-plus/es')['ElFormItem']
18 - ElIcon: typeof import('element-plus/es')['ElIcon']
19 - ElInput: typeof import('element-plus/es')['ElInput']
20 - ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
21 - ElOption: typeof import('element-plus/es')['ElOption']
22 - ElPagination: typeof import('element-plus/es')['ElPagination']
23 - ElSelect: typeof import('element-plus/es')['ElSelect']
24 - ElTable: typeof import('element-plus/es')['ElTable']
25 - ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
26 - ElTag: typeof import('element-plus/es')['ElTag']
27 - ElText: typeof import('element-plus/es')['ElText']
28 Header: typeof import('./src/components/layout/Header.vue')['default'] 10 Header: typeof import('./src/components/layout/Header.vue')['default']
29 RouterLink: typeof import('vue-router')['RouterLink'] 11 RouterLink: typeof import('vue-router')['RouterLink']
30 RouterView: typeof import('vue-router')['RouterView'] 12 RouterView: typeof import('vue-router')['RouterView']
31 Sidebar: typeof import('./src/components/layout/Sidebar.vue')['default'] 13 Sidebar: typeof import('./src/components/layout/Sidebar.vue')['default']
32 SidebarItem: typeof import('./src/components/layout/SidebarItem.vue')['default'] 14 SidebarItem: typeof import('./src/components/layout/SidebarItem.vue')['default']
33 } 15 }
34 - export interface ComponentCustomProperties {
35 - vLoading: typeof import('element-plus/es')['ElLoadingDirective']
36 - }
37 } 16 }
......
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
63 <!-- 操作按钮区域 --> 63 <!-- 操作按钮区域 -->
64 <div class="action-section"> 64 <div class="action-section">
65 <div class="action-buttons"> 65 <div class="action-buttons">
66 - <button @click="handleAdd" class="action-btn primary">➕ 新增出库</button> 66 + <button @click="handleAdd" class="action-btn primary">✨ 新增</button>
67 <button @click="handleExport" class="action-btn secondary">📋 导出</button> 67 <button @click="handleExport" class="action-btn secondary">📋 导出</button>
68 </div> 68 </div>
69 </div> 69 </div>
...@@ -178,8 +178,16 @@ ...@@ -178,8 +178,16 @@
178 <h4>出库基本信息</h4> 178 <h4>出库基本信息</h4>
179 <div class="detail-grid"> 179 <div class="detail-grid">
180 <div class="detail-item"> 180 <div class="detail-item">
181 - <label>出库单号:</label> 181 + <label>出库单ID:</label>
182 - <span>{{ deliveryDetail.deliveryNo }}</span> 182 + <span>{{ orderDetail.deliveryId }}</span>
183 + </div>
184 + <div class="detail-item">
185 + <label>出库单编号:</label>
186 + <span>{{ orderDetail.deliveryNo }}</span>
187 + </div>
188 + <div class="detail-item">
189 + <label>关联订单编号:</label>
190 + <span>{{ orderDetail.orderNo }}</span>
183 </div> 191 </div>
184 <div class="detail-item"> 192 <div class="detail-item">
185 <label>关联订单编号:</label> 193 <label>关联订单编号:</label>
...@@ -195,11 +203,7 @@ ...@@ -195,11 +203,7 @@
195 </div> 203 </div>
196 <div class="detail-item"> 204 <div class="detail-item">
197 <label>出库日期:</label> 205 <label>出库日期:</label>
198 - <span>{{ formatDate(deliveryDetail.deliveryDate) }}</span> 206 + <span>{{ formatDate(orderDetail.deliveryDate) }}</span>
199 - </div>
200 - <div class="detail-item">
201 - <label>出库总金额:</label>
202 - <span>{{ formatCurrency(deliveryDetail.totalAmount) }}</span>
203 </div> 207 </div>
204 <div class="detail-item"> 208 <div class="detail-item">
205 <label>出库状态:</label> 209 <label>出库状态:</label>
...@@ -208,33 +212,47 @@ ...@@ -208,33 +212,47 @@
208 </span> 212 </span>
209 </div> 213 </div>
210 <div class="detail-item"> 214 <div class="detail-item">
215 + <label>仓库编码:</label>
216 + <span>{{ orderDetail.warehouseCode }}</span>
217 + </div>
218 + <div class="detail-item">
219 + <label>数据来源:</label>
220 + <span>{{ orderDetail.dataSource || '-' }}</span>
221 + </div>
222 + <div class="detail-item">
223 + <label>上传时间:</label>
224 + <span>{{ formatTime(orderDetail.uploadTime || '') }}</span>
225 + </div>
226 + <div class="detail-item">
211 <label>创建时间:</label> 227 <label>创建时间:</label>
212 - <span>{{ formatTime(deliveryDetail.createTime || '') }}</span> 228 + <span>{{ formatTime(orderDetail.createTime || '') }}</span>
229 + </div>
230 + <div class="detail-item">
231 + <label>更新时间:</label>
232 + <span>{{ formatTime(orderDetail.updateTime || '') }}</span>
213 </div> 233 </div>
214 </div> 234 </div>
215 </div> 235 </div>
216 236
217 - <div class="detail-section" v-if="deliveryDetail.deliveryItems && deliveryDetail.deliveryItems.length > 0"> 237 + <div class="detail-section" v-if="orderDetail.deliveryItems && orderDetail.deliveryItems.length > 0">
218 <h4>出库明细</h4> 238 <h4>出库明细</h4>
219 <table class="detail-table"> 239 <table class="detail-table">
220 <thead> 240 <thead>
221 <tr> 241 <tr>
222 <th>产品编码</th> 242 <th>产品编码</th>
223 <th>产品名称</th> 243 <th>产品名称</th>
224 - <th>产品型号</th>
225 <th>出库数量</th> 244 <th>出库数量</th>
226 <th>出库单价</th> 245 <th>出库单价</th>
227 - <th>出库总价</th> 246 + <th>出库金额</th>
228 </tr> 247 </tr>
229 </thead> 248 </thead>
230 <tbody> 249 <tbody>
231 - <tr v-for="item in deliveryDetail.deliveryItems" :key="item.itemId"> 250 + <tr v-for="item in orderDetail.deliveryItems" :key="item.deliveryItemId">
232 <td>{{ item.productCode }}</td> 251 <td>{{ item.productCode }}</td>
233 <td>{{ item.productName }}</td> 252 <td>{{ item.productName }}</td>
234 - <td>{{ item.productModel }}</td> 253 + <td>{{ item.deliveryQty }}</td>
235 - <td>{{ item.productQty }}</td> 254 + <td>{{ formatCurrency(item.deliveryPrice) }}</td>
236 - <td>{{ formatCurrency(item.unitPrice) }}</td> 255 + <td>{{ formatCurrency(item.deliveryAmount) }}</td>
237 - <td>{{ formatCurrency(item.totalPrice) }}</td>
238 </tr> 256 </tr>
239 </tbody> 257 </tbody>
240 </table> 258 </table>
......
This diff is collapsed. Click to expand it.