diff --git a/anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/fincollectionconfirmation/FinCollectionConfirmationService.java b/anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/fincollectionconfirmation/FinCollectionConfirmationService.java index 3cc353b1e5..d9b5b09e98 100644 --- a/anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/fincollectionconfirmation/FinCollectionConfirmationService.java +++ b/anrui-fin/anrui-fin-biz/src/main/java/com/yxt/anrui/fin/biz/fincollectionconfirmation/FinCollectionConfirmationService.java @@ -1329,13 +1329,13 @@ public class FinCollectionConfirmationService extends MybatisBaseService import('@/views/redirect/index.vue') }] }, - { - path: '/', - redirect: 'index' - }, - { - path: '/index', - component: Layout, - redirect: '/index', - children: [{ - path: '/index', - component: () => - import('@/views/index.vue'), - name: 'index', - meta: { - title: '主页', - noCache: true, - affix: true - } - }] - }, + { + path: '/', + redirect: 'index' + }, + { + path: '/index', + component: Layout, + redirect: '/index', + children: [{ + path: '/index', + component: () => + import('@/views/index.vue'), + name: 'index', + meta: { + title: '主页', + noCache: true, + affix: true + } + }] + }, { path: '/404', component: () => @@ -50,48 +49,68 @@ export const constantRoutes = [ meta: { title: '业务' }, - children: [ - { + children: [{ path: '/preregistration/preregistration', component: () => import('@/views/operation/preregistration/preregistration.vue'), name: 'Preregistration', - meta: { title: '预约登记', noCache: true } + meta: { + title: '预约登记', + noCache: true + } }, { path: '/repairbill/repairbill', component: () => import('@/views/operation/repairbill/repairbill.vue'), name: 'RepairBill', - meta: { title: '维修开单管理(登记)', noCache: true } + meta: { + title: '维修开单管理(登记)', + noCache: true + } }, { path: '/repairbill/repairbillBySendWork', component: () => import('@/views/operation/repairbill/repairbillBySendWork.vue'), name: 'RepairBillBySendWork', - meta: { title: '维修开单管理(派工)', noCache: true } + meta: { + title: '维修开单管理(派工)', + noCache: true + } }, { path: '/repairbill/repairbillByMaintain', component: () => import('@/views/operation/repairbill/repairbillByMaintain.vue'), name: 'RepairBillByMaintain', - meta: { title: '维修开单管理(维修)', noCache: true } + meta: { + title: '维修开单管理(维修)', + noCache: true + } }, { path: '/repairbill/repairbillByBeCompleted', component: () => import('@/views/operation/repairbill/repairbillByBeCompleted.vue'), name: 'RepairBillByBeCompleted', - meta: { title: '维修开单管理(竣工)', noCache: true } + meta: { + title: '维修开单管理(竣工)', + noCache: true + } }, { path: '/repairbill/repairbillBySettleAccounts', component: () => import('@/views/operation/repairbill/repairbillBySettleAccounts.vue'), name: 'RepairBillBySettleAccounts', - meta: { title: '维修开单管理(结算)', noCache: true } + meta: { + title: '维修开单管理(结算)', + noCache: true + } }, { path: '/repairbill/repairbillBYLeaveFactory', component: () => import('@/views/operation/repairbill/repairbillBYLeaveFactory.vue'), name: 'RepairBillBYLeaveFactory', - meta: { title: '维修开单管理(出厂)', noCache: true } + meta: { + title: '维修开单管理(出厂)', + noCache: true + } }, // { // path: '/workslrsettlement/workslrsettlement', @@ -101,7 +120,107 @@ export const constantRoutes = [ // }, ] }, + { + path: '/operation', + component: Layout, + redirect: '/operation', + meta: { + title: '仓库管理' + }, + children: [{ + path: '/goodsShelves/index', + component: () => import('@/views/warehouse/goodsShelves/index.vue'), + name: 'GoodsShelves', + meta: { + title: '库位管理', + noCache: true + } + }, + { + path: '/warehouseArea/index', + component: () => import('@/views/warehouse/warehouseArea/index.vue'), + name: 'WarehouseArea', + meta: { + title: '库区管理', + noCache: true + } + }, + { + path: '/warehouseAreaType/index', + component: () => import('@/views/warehouse/warehouseAreaType/index.vue'), + name: 'WarehouseAreaType', + meta: { + title: '库区类型管理', + noCache: true + } + }, + { + path: '/warehouse/index', + component: () => import('@/views/warehouse/warehouse/index.vue'), + name: 'Warehouse', + meta: { + title: '仓库管理', + noCache: true + } + }, + + ] + }, + { + path: '/goods', + component: Layout, + redirect: '/goods', + meta: { + title: '商品管理' + }, + children: [{ + path: '/brands/index', + component: () => import('@/views/goods/brands/index.vue'), + name: 'Brands', + meta: { + title: '品牌管理', + noCache: true + } + }, + { + path: '/category/index', + component: () => import('@/views/goods/category/index.vue'), + name: 'Category', + meta: { + title: '类别管理', + noCache: true + } + }, + { + path: '/factory/index', + component: () => import('@/views/goods/factory/index.vue'), + name: 'Factory', + meta: { + title: '厂家管理', + noCache: true + } + }, + { + path: '/goods/index', + component: () => import('@/views/goods/goods/index.vue'), + name: 'Goods', + meta: { + title: '商品管理', + noCache: true + } + }, + { + path: '/unit/index', + component: () => import('@/views/goods/unit/index.vue'), + name: 'Unit', + meta: { + title: '单位管理', + noCache: true + } + }, + ] + }, { path: '/storage', component: Layout, @@ -109,18 +228,32 @@ export const constantRoutes = [ meta: { title: '仓储' }, - children: [ + children: [{ + path: 'outStorage', + name: 'outStorage', + component: () => import('@/views/storage/outStorage/index'), + meta: { + title: '出库管理', + noCache: true + } + }, { path: '/inventory/inventory', component: () => import('@/views/storage/inventory/inventory.vue'), name: 'Inventory', - meta: { title: '库存查询', noCache: true } + meta: { + title: '库存查询', + noCache: true + } }, { path: '/inventory/inventoryRefer', component: () => import('@/views/storage/inventory/inventoryRefer.vue'), name: 'InventoryRefer', - meta: { title: '出入库查询', noCache: true } + meta: { + title: '出入库查询', + noCache: true + } }, { path: '/stocktaking/index', @@ -231,18 +364,23 @@ export const constantRoutes = [ meta: { title: '采购' }, - children: [ - { + children: [{ path: '/procurement/procurement', component: () => import('@/views/purchase/procurement/procurement.vue'), name: 'Procurement', - meta: { title: '采购开单', noCache: true } + meta: { + title: '采购开单', + noCache: true + } }, { path: '/purchasereturn/purchasereturn', component: () => import('@/views/purchase/purchasereturn/purchasereturn.vue'), name: 'PurchaseReturn', - meta: { title: '采购退货', noCache: true } + meta: { + title: '采购退货', + noCache: true + } } ] }, @@ -253,48 +391,68 @@ export const constantRoutes = [ meta: { title: '报表' }, - children: [ - { + children: [{ path: '/salesstatement/merchandisesalesdetail', component: () => import('@/views/statement/salesstatement/merchandisesalesdetail.vue'), name: 'MerchandiseSalesDetail', - meta: { title: '销售明细商品', noCache: true } + meta: { + title: '销售明细商品', + noCache: true + } }, { path: '/salesstatement/merchandisesalessummary', component: () => import('@/views/statement/salesstatement/merchandisesalessummary.vue'), name: 'MerchandiseSalesSummary', - meta: { title: '销售汇总商品', noCache: true } + meta: { + title: '销售汇总商品', + noCache: true + } }, { path: '/salesstatement/salestrendreport', component: () => import('@/views/statement/salesstatement/salestrendreport.vue'), name: 'SalesTrendReport', - meta: { title: '销售价趋势报表', noCache: true } + meta: { + title: '销售价趋势报表', + noCache: true + } }, { path: '/warehousereport/inventorystatistics', component: () => import('@/views/statement/warehousereport/inventorystatistics.vue'), name: 'InventoryStatistics', - meta: { title: '库存统计', noCache: true } + meta: { + title: '库存统计', + noCache: true + } }, { path: '/warehousereport/receiptandreceiptrecord', component: () => import('@/views/statement/warehousereport/receiptandreceiptrecord.vue'), name: 'ReceiptAndReceiptRecord', - meta: { title: '收发存明细报表', noCache: true } + meta: { + title: '收发存明细报表', + noCache: true + } }, { path: '/purchasereport/detailedpurchasereport', component: () => import('@/views/statement/purchasereport/detailedpurchasereport.vue'), name: 'DetailedPurchaseReport', - meta: { title: '采购明细报表', noCache: true } + meta: { + title: '采购明细报表', + noCache: true + } }, { path: '/purchasereport/purchasesummaryreport', component: () => import('@/views/statement/purchasereport/purchasesummaryreport.vue'), name: 'PurchaseSummaryReport', - meta: { title: '采购汇总报表', noCache: true } + meta: { + title: '采购汇总报表', + noCache: true + } } ] }, @@ -305,48 +463,68 @@ export const constantRoutes = [ meta: { title: '基础信息' }, - children: [ - { + children: [{ path: '/maintenanceitem/maintenanceitem', component: () => import('@/views/basicinformation/maintenanceitem/maintenanceitem.vue'), name: 'MaintenanceItem', - meta: { title: '维修项目管理', noCache: true } + meta: { + title: '维修项目管理', + noCache: true + } }, { path: '/additionitem/additionitem', component: () => import('@/views/basicinformation/additionitem/additionitem.vue'), name: 'AdditionItem', - meta: { title: '附加项目管理', noCache: true } + meta: { + title: '附加项目管理', + noCache: true + } }, { path: '/setmeal/setmeal', component: () => import('@/views/basicinformation/setmeal/setmeal.vue'), name: 'Setmeal', - meta: { title: '套餐管理', noCache: true } + meta: { + title: '套餐管理', + noCache: true + } }, { path: '/profession/profession', component: () => import('@/views/basicinformation/profession/profession.vue'), name: 'Profession', - meta: { title: '工种管理', noCache: true } + meta: { + title: '工种管理', + noCache: true + } }, { path: '/subjects/subjects', component: () => import('@/views/basicinformation/subjects/subjects.vue'), name: 'Subjects', - meta: { title: '科目管理', noCache: true } + meta: { + title: '科目管理', + noCache: true + } }, { path: '/team/team', component: () => import('@/views/basicinformation/team/team.vue'), name: 'Team', - meta: { title: '班组管理', noCache: true } + meta: { + title: '班组管理', + noCache: true + } }, { path: '/suppliertype/suppliertype', component: () => import('@/views/basicinformation/suppliertype/suppliertype.vue'), name: 'SupplierType', - meta: { title: '供应商类型管理', noCache: true } + meta: { + title: '供应商类型管理', + noCache: true + } }, { path: '/supplier/supplier', @@ -356,22 +534,24 @@ export const constantRoutes = [ } ] }, - // 404 page must be placed at the end !!! - // { path: '*', redirect: '/404', hidden: true } + // 404 page must be placed at the end !!! + // { path: '*', redirect: '/404', hidden: true } ] const createRouter = () => new Router({ - // mode: 'history', // require service support - scrollBehavior: () => ({ y: 0 }), - routes: constantRoutes + // mode: 'history', // require service support + scrollBehavior: () => ({ + y: 0 + }), + routes: constantRoutes }) const router = createRouter() // Detail see: https://github.com/vuejs/vue-router/issues/1234#issuecomment-357941465 export function resetRouter() { - const newRouter = createRouter() - router.matcher = newRouter.matcher // reset router + const newRouter = createRouter() + router.matcher = newRouter.matcher // reset router } export default router diff --git a/yxt-as-ui/src/views/goods/brands/brandsAdd.vue b/yxt-as-ui/src/views/goods/brands/brandsAdd.vue new file mode 100644 index 0000000000..75c4756677 --- /dev/null +++ b/yxt-as-ui/src/views/goods/brands/brandsAdd.vue @@ -0,0 +1,282 @@ + + + + diff --git a/yxt-as-ui/src/views/goods/brands/index.vue b/yxt-as-ui/src/views/goods/brands/index.vue new file mode 100644 index 0000000000..a63f06b1aa --- /dev/null +++ b/yxt-as-ui/src/views/goods/brands/index.vue @@ -0,0 +1,256 @@ + + + + diff --git a/yxt-as-ui/src/views/goods/category/categoryAdd.vue b/yxt-as-ui/src/views/goods/category/categoryAdd.vue new file mode 100644 index 0000000000..4fe3f2a1e0 --- /dev/null +++ b/yxt-as-ui/src/views/goods/category/categoryAdd.vue @@ -0,0 +1,218 @@ + + + + diff --git a/yxt-as-ui/src/views/goods/category/index.vue b/yxt-as-ui/src/views/goods/category/index.vue new file mode 100644 index 0000000000..710a106e4f --- /dev/null +++ b/yxt-as-ui/src/views/goods/category/index.vue @@ -0,0 +1,285 @@ + + + + diff --git a/yxt-as-ui/src/views/goods/factory/factoryAdd.vue b/yxt-as-ui/src/views/goods/factory/factoryAdd.vue new file mode 100644 index 0000000000..6cbabb4b99 --- /dev/null +++ b/yxt-as-ui/src/views/goods/factory/factoryAdd.vue @@ -0,0 +1,175 @@ + + + + diff --git a/yxt-as-ui/src/views/goods/factory/index.vue b/yxt-as-ui/src/views/goods/factory/index.vue new file mode 100644 index 0000000000..7bd36663ad --- /dev/null +++ b/yxt-as-ui/src/views/goods/factory/index.vue @@ -0,0 +1,261 @@ + + + + diff --git a/yxt-as-ui/src/views/goods/goods/goodsAdd.vue b/yxt-as-ui/src/views/goods/goods/goodsAdd.vue new file mode 100644 index 0000000000..d2bb507b42 --- /dev/null +++ b/yxt-as-ui/src/views/goods/goods/goodsAdd.vue @@ -0,0 +1,1101 @@ + + + + diff --git a/yxt-as-ui/src/views/goods/goods/goodsInfo.vue b/yxt-as-ui/src/views/goods/goods/goodsInfo.vue new file mode 100644 index 0000000000..cb54f3debc --- /dev/null +++ b/yxt-as-ui/src/views/goods/goods/goodsInfo.vue @@ -0,0 +1,945 @@ + + + + diff --git a/yxt-as-ui/src/views/goods/goods/index.vue b/yxt-as-ui/src/views/goods/goods/index.vue new file mode 100644 index 0000000000..ffd2d1adcb --- /dev/null +++ b/yxt-as-ui/src/views/goods/goods/index.vue @@ -0,0 +1,289 @@ + + + + diff --git a/yxt-as-ui/src/views/goods/unit/index.vue b/yxt-as-ui/src/views/goods/unit/index.vue new file mode 100644 index 0000000000..bd142e5b43 --- /dev/null +++ b/yxt-as-ui/src/views/goods/unit/index.vue @@ -0,0 +1,245 @@ + + + + diff --git a/yxt-as-ui/src/views/goods/unit/unitAdd.vue b/yxt-as-ui/src/views/goods/unit/unitAdd.vue new file mode 100644 index 0000000000..b83a328752 --- /dev/null +++ b/yxt-as-ui/src/views/goods/unit/unitAdd.vue @@ -0,0 +1,208 @@ + + + + diff --git a/yxt-as-ui/src/views/storage/inOutStorage/index.vue b/yxt-as-ui/src/views/storage/inOutStorage/index.vue new file mode 100644 index 0000000000..b2212efe41 --- /dev/null +++ b/yxt-as-ui/src/views/storage/inOutStorage/index.vue @@ -0,0 +1,396 @@ + + + + diff --git a/yxt-as-ui/src/views/storage/inStorage/inStorageAdd.vue b/yxt-as-ui/src/views/storage/inStorage/inStorageAdd.vue new file mode 100644 index 0000000000..46d75e8666 --- /dev/null +++ b/yxt-as-ui/src/views/storage/inStorage/inStorageAdd.vue @@ -0,0 +1,1143 @@ + + + + diff --git a/yxt-as-ui/src/views/storage/inStorage/inStorageInfo.vue b/yxt-as-ui/src/views/storage/inStorage/inStorageInfo.vue new file mode 100644 index 0000000000..a2f2abed83 --- /dev/null +++ b/yxt-as-ui/src/views/storage/inStorage/inStorageInfo.vue @@ -0,0 +1,308 @@ + + + + diff --git a/yxt-as-ui/src/views/storage/inStorage/index.vue b/yxt-as-ui/src/views/storage/inStorage/index.vue new file mode 100644 index 0000000000..5574cd0312 --- /dev/null +++ b/yxt-as-ui/src/views/storage/inStorage/index.vue @@ -0,0 +1,241 @@ + + + + diff --git a/yxt-as-ui/src/views/storage/outStorage/distributionAdd.vue b/yxt-as-ui/src/views/storage/outStorage/distributionAdd.vue new file mode 100644 index 0000000000..468a191c42 --- /dev/null +++ b/yxt-as-ui/src/views/storage/outStorage/distributionAdd.vue @@ -0,0 +1,291 @@ + + + + diff --git a/yxt-as-ui/src/views/storage/outStorage/index.vue b/yxt-as-ui/src/views/storage/outStorage/index.vue new file mode 100644 index 0000000000..aad61858cd --- /dev/null +++ b/yxt-as-ui/src/views/storage/outStorage/index.vue @@ -0,0 +1,335 @@ + + + + diff --git a/yxt-as-ui/src/views/storage/outStorage/outStorageAdd.vue b/yxt-as-ui/src/views/storage/outStorage/outStorageAdd.vue new file mode 100644 index 0000000000..b71ee5c56b --- /dev/null +++ b/yxt-as-ui/src/views/storage/outStorage/outStorageAdd.vue @@ -0,0 +1,529 @@ + + + + diff --git a/yxt-as-ui/src/views/storage/outStorage/outStorageInfo.vue b/yxt-as-ui/src/views/storage/outStorage/outStorageInfo.vue new file mode 100644 index 0000000000..2df4b5482a --- /dev/null +++ b/yxt-as-ui/src/views/storage/outStorage/outStorageInfo.vue @@ -0,0 +1,231 @@ + + + + diff --git a/yxt-as-ui/src/views/warehouse/goodsShelves/goodsShelvesAdd.vue b/yxt-as-ui/src/views/warehouse/goodsShelves/goodsShelvesAdd.vue new file mode 100644 index 0000000000..57e9704401 --- /dev/null +++ b/yxt-as-ui/src/views/warehouse/goodsShelves/goodsShelvesAdd.vue @@ -0,0 +1,223 @@ + + + + diff --git a/yxt-as-ui/src/views/warehouse/goodsShelves/index.vue b/yxt-as-ui/src/views/warehouse/goodsShelves/index.vue new file mode 100644 index 0000000000..af7f9b2607 --- /dev/null +++ b/yxt-as-ui/src/views/warehouse/goodsShelves/index.vue @@ -0,0 +1,262 @@ + + + + diff --git a/yxt-as-ui/src/views/warehouse/warehouse/index.vue b/yxt-as-ui/src/views/warehouse/warehouse/index.vue new file mode 100644 index 0000000000..9a4851724f --- /dev/null +++ b/yxt-as-ui/src/views/warehouse/warehouse/index.vue @@ -0,0 +1,265 @@ + + + + diff --git a/yxt-as-ui/src/views/warehouse/warehouse/warehouseAdd.vue b/yxt-as-ui/src/views/warehouse/warehouse/warehouseAdd.vue new file mode 100644 index 0000000000..7331b206f2 --- /dev/null +++ b/yxt-as-ui/src/views/warehouse/warehouse/warehouseAdd.vue @@ -0,0 +1,240 @@ + + + + diff --git a/yxt-as-ui/src/views/warehouse/warehouseArea/index.vue b/yxt-as-ui/src/views/warehouse/warehouseArea/index.vue new file mode 100644 index 0000000000..8f81b6f152 --- /dev/null +++ b/yxt-as-ui/src/views/warehouse/warehouseArea/index.vue @@ -0,0 +1,264 @@ + + + + diff --git a/yxt-as-ui/src/views/warehouse/warehouseArea/warehouseAreaAdd.vue b/yxt-as-ui/src/views/warehouse/warehouseArea/warehouseAreaAdd.vue new file mode 100644 index 0000000000..775b3823e2 --- /dev/null +++ b/yxt-as-ui/src/views/warehouse/warehouseArea/warehouseAreaAdd.vue @@ -0,0 +1,234 @@ + + + + diff --git a/yxt-as-ui/src/views/warehouse/warehouseAreaType/index.vue b/yxt-as-ui/src/views/warehouse/warehouseAreaType/index.vue new file mode 100644 index 0000000000..aded094c30 --- /dev/null +++ b/yxt-as-ui/src/views/warehouse/warehouseAreaType/index.vue @@ -0,0 +1,261 @@ + + + + diff --git a/yxt-as-ui/src/views/warehouse/warehouseAreaType/warehouseAreaTypeAdd.vue b/yxt-as-ui/src/views/warehouse/warehouseAreaType/warehouseAreaTypeAdd.vue new file mode 100644 index 0000000000..40249cb071 --- /dev/null +++ b/yxt-as-ui/src/views/warehouse/warehouseAreaType/warehouseAreaTypeAdd.vue @@ -0,0 +1,163 @@ + + + + diff --git a/yxt-base-biz/src/main/java/com/yxt/base/apiadmin/base/BaseSupplierInfoRest.java b/yxt-base-biz/src/main/java/com/yxt/base/apiadmin/base/BaseSupplierInfoRest.java index ba36c8a33d..76ec333b69 100644 --- a/yxt-base-biz/src/main/java/com/yxt/base/apiadmin/base/BaseSupplierInfoRest.java +++ b/yxt-base-biz/src/main/java/com/yxt/base/apiadmin/base/BaseSupplierInfoRest.java @@ -51,7 +51,7 @@ import java.util.List; */ @Api(tags = "供应商信息") @RestController -@RequestMapping("/apiadmin/base/basesupplierinfo") +@RequestMapping("v1/basesupplierinfo") public class BaseSupplierInfoRest { @Autowired diff --git a/yxt-base-biz/src/main/java/com/yxt/base/biz/base/basesupplierinfo/BaseSupplierInfo.java b/yxt-base-biz/src/main/java/com/yxt/base/biz/base/basesupplierinfo/BaseSupplierInfo.java index c89cb37e92..ae79b6e2ac 100644 --- a/yxt-base-biz/src/main/java/com/yxt/base/biz/base/basesupplierinfo/BaseSupplierInfo.java +++ b/yxt-base-biz/src/main/java/com/yxt/base/biz/base/basesupplierinfo/BaseSupplierInfo.java @@ -31,6 +31,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import java.math.BigDecimal; + /** * Project: yxt-base(供应商管理)
* File: BaseSupplierInfo.java
@@ -102,6 +104,8 @@ public class BaseSupplierInfo extends BaseEntity { private String billingTypeKey; // 开票类型key @ApiModelProperty("开票类型value") private String billingTypeValue; // 开票类型value + @ApiModelProperty("税率") + private BigDecimal taxRate; @ApiModelProperty("使用组织sid") private String useOrgSid; // 使用组织sid @ApiModelProperty("创建组织名称") diff --git a/yxt-base-biz/src/main/java/com/yxt/base/biz/base/basesupplierinfo/BaseSupplierInfoDetailsVo.java b/yxt-base-biz/src/main/java/com/yxt/base/biz/base/basesupplierinfo/BaseSupplierInfoDetailsVo.java index 4bdb326393..1d5a7e35e7 100644 --- a/yxt-base-biz/src/main/java/com/yxt/base/biz/base/basesupplierinfo/BaseSupplierInfoDetailsVo.java +++ b/yxt-base-biz/src/main/java/com/yxt/base/biz/base/basesupplierinfo/BaseSupplierInfoDetailsVo.java @@ -33,6 +33,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import java.math.BigDecimal; import java.util.List; /** @@ -106,6 +107,8 @@ public class BaseSupplierInfoDetailsVo implements Vo { private String billingTypeKey; // 开票类型key @ApiModelProperty("开票类型value") private String billingTypeValue; // 开票类型value + @ApiModelProperty("税率") + private BigDecimal taxRate; @ApiModelProperty("使用组织sid") private String useOrgSid; // 使用组织sid @ApiModelProperty("创建组织名称") diff --git a/yxt-base-biz/src/main/java/com/yxt/base/biz/base/basesupplierinfo/BaseSupplierInfoDto.java b/yxt-base-biz/src/main/java/com/yxt/base/biz/base/basesupplierinfo/BaseSupplierInfoDto.java index 31b89cf81c..749c43edf2 100644 --- a/yxt-base-biz/src/main/java/com/yxt/base/biz/base/basesupplierinfo/BaseSupplierInfoDto.java +++ b/yxt-base-biz/src/main/java/com/yxt/base/biz/base/basesupplierinfo/BaseSupplierInfoDto.java @@ -33,6 +33,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import java.math.BigDecimal; import java.util.List; /** @@ -106,6 +107,8 @@ public class BaseSupplierInfoDto implements Dto { private String billingTypeKey; // 开票类型key @ApiModelProperty("开票类型value") private String billingTypeValue; // 开票类型value + @ApiModelProperty("税率") + private BigDecimal taxRate; @ApiModelProperty("使用组织sid") private String useOrgSid; // 使用组织sid @ApiModelProperty("创建组织名称") diff --git a/yxt-pms-biz/src/main/java/com/yxt/pms/apiadmin/pms/PmsSupplierTypeRest.java b/yxt-pms-biz/src/main/java/com/yxt/pms/apiadmin/pms/PmsSupplierTypeRest.java index bab2185696..aea17241d2 100644 --- a/yxt-pms-biz/src/main/java/com/yxt/pms/apiadmin/pms/PmsSupplierTypeRest.java +++ b/yxt-pms-biz/src/main/java/com/yxt/pms/apiadmin/pms/PmsSupplierTypeRest.java @@ -34,6 +34,8 @@ import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; +import java.util.List; + /** * Project: yxt-base(仓储基础信息供应商)
* File: BaseSupplierTypeFeignFallback.java
@@ -78,4 +80,12 @@ public class PmsSupplierTypeRest { baseSupplierTypeService.del(sids); return rb.success(); } + + @ApiOperation("获取供应商类型") + @PostMapping("/selSupplierType") + public ResultBean> selSupplierType(@RequestParam("orgPath") String orgPath){ + ResultBean rb = ResultBean.fireFail(); + List pmsSupplierTypeDowns = baseSupplierTypeService.selSupplierType(orgPath); + return rb.success().setData(pmsSupplierTypeDowns); + } } diff --git a/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssupplierinfo/PmsSupplierInfoDto.java b/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssupplierinfo/PmsSupplierInfoDto.java index 7641fb0f76..f42a54f830 100644 --- a/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssupplierinfo/PmsSupplierInfoDto.java +++ b/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssupplierinfo/PmsSupplierInfoDto.java @@ -33,6 +33,7 @@ import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.math.BigDecimal; +import java.util.ArrayList; import java.util.List; /** @@ -115,5 +116,5 @@ public class PmsSupplierInfoDto implements Dto { @ApiModelProperty("创建组织sid") private String createOrgSid; // 创建组织sid @ApiModelProperty("开户行信息") - private List pmsSupplierBankList; + private List pmsSupplierBankList = new ArrayList<>(); } \ No newline at end of file diff --git a/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssupplierinfo/PmsSupplierInfoService.java b/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssupplierinfo/PmsSupplierInfoService.java index 20a22fb897..55453ea622 100644 --- a/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssupplierinfo/PmsSupplierInfoService.java +++ b/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssupplierinfo/PmsSupplierInfoService.java @@ -37,10 +37,14 @@ import com.yxt.pms.biz.pms.pmssupplierBank.PmsSupplierBankService; import com.yxt.common.core.query.PagerQuery; import com.yxt.common.core.result.ResultBean; import com.yxt.common.core.vo.PagerVo; +import com.yxt.pms.feign.yxtbase.supplier.BaseSupplierBankDto; +import com.yxt.pms.feign.yxtbase.supplier.BaseSupplierInfoDto; +import com.yxt.pms.feign.yxtbase.supplier.BaseSupplierInfoFeign; import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import java.util.ArrayList; import java.util.List; /** @@ -61,6 +65,8 @@ public class PmsSupplierInfoService extends MybatisBaseService listPageVo(PagerQuery pq) { PmsSupplierInfoQuery query = pq.getParams(); @@ -89,54 +95,28 @@ public class PmsSupplierInfoService extends MybatisBaseService pmsSupplierBankDtoList = dto.getPmsSupplierBankList(); - if (pmsSupplierBankDtoList == null || pmsSupplierBankDtoList.size() == 0){ - return rb.setMsg("开户行信息不能为空"); - } - if (StringUtils.isBlank(dtoSid)) { - String sid = this.insertByDto(dto); - for (PmsSupplierBankDto pmsSupplierBankDto : pmsSupplierBankDtoList) { - pmsSupplierBankDto.setSupplierSid(sid); - pmsSupplierBankService.saveOrUpdateDto(pmsSupplierBankDto); - } - return rb.success(); - } - this.updateByDto(dto); - for (PmsSupplierBankDto pmsSupplierBankDto : pmsSupplierBankDtoList) { - String bankSid = pmsSupplierBankDto.getSid(); - if(StringUtils.isNotBlank(bankSid)){ - PmsSupplierBank pmsSupplierBank = pmsSupplierBankService.fetchBySid(bankSid); - BeanUtil.copyProperties(pmsSupplierBankDto,pmsSupplierBank,"sid"); - pmsSupplierBank.setSupplierSid(dtoSid); - pmsSupplierBankService.updateById(pmsSupplierBank); - }else{ - PmsSupplierBank pmsSupplierBank = new PmsSupplierBank(); - BeanUtil.copyProperties(pmsSupplierBankDto,pmsSupplierBank,"sid"); - pmsSupplierBank.setSupplierSid(dtoSid); - pmsSupplierBankService.insert(pmsSupplierBank); - } + //获取pms下供应商开户行信息 + List pmsSupplierBankList = dto.getPmsSupplierBankList(); + //创建base下供应商信息对象 + BaseSupplierInfoDto baseSupplierInfoDto = new BaseSupplierInfoDto(); + //复制pms供应商信息到base供应商信息中 + BeanUtil.copyProperties(dto,baseSupplierInfoDto); + //创建base下供应商开户行信息list对象 + List baseSupplierBankDtos = new ArrayList<>(); + //循环pms下供应商开户行list对象 + for (PmsSupplierBankDto pmsSupplierBankDto : pmsSupplierBankList) { + //创建base下供应商开户行信息 + BaseSupplierBankDto baseSupplierBankDto = new BaseSupplierBankDto(); + //复制pms供应商开户行信息到base供应商开户行信息中 + BeanUtil.copyProperties(pmsSupplierBankDto,baseSupplierBankDto); + //添加base供应商开户行信息到base供应商开户行list对象中 + baseSupplierBankDtos.add(baseSupplierBankDto); } + baseSupplierInfoDto.setBaseSupplierBankList(baseSupplierBankDtos); + baseSupplierInfoFeign.save(baseSupplierInfoDto); return rb.success(); } - public String insertByDto(PmsSupplierInfoDto dto){ - PmsSupplierInfo entity = new PmsSupplierInfo(); - BeanUtil.copyProperties(dto, entity, "id", "sid"); - baseMapper.insert(entity); - return entity.getSid(); - } - - public void updateByDto(PmsSupplierInfoDto dto){ - String dtoSid = dto.getSid(); - if (StringUtils.isBlank(dtoSid)) { - return; - } - PmsSupplierInfo entity = fetchBySid(dtoSid); - BeanUtil.copyProperties(dto, entity, "id", "sid"); - baseMapper.updateById(entity); - } - public PmsSupplierInfoDetailsVo fetchDetailsVoBySid(String sid){ PmsSupplierInfo entity = fetchBySid(sid); PmsSupplierInfoDetailsVo vo = new PmsSupplierInfoDetailsVo(); diff --git a/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssuppliertype/PmsSupplierTypeDown.java b/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssuppliertype/PmsSupplierTypeDown.java new file mode 100644 index 0000000000..31ebb156a3 --- /dev/null +++ b/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssuppliertype/PmsSupplierTypeDown.java @@ -0,0 +1,54 @@ +/********************************************************* + ********************************************************* + ******************** ******************* + ************* ************ + ******* _oo0oo_ ******* + *** o8888888o *** + * 88" . "88 * + * (| -_- |) * + * 0\ = /0 * + * ___/`---'\___ * + * .' \\| |// '. * + * / \\||| : |||// \ * + * / _||||| -:- |||||- \ * + * | | \\\ - /// | | * + * | \_| ''\---/'' |_/ | * + * \ .-\__ '-' ___/-. / * + * ___'. .' /--.--\ `. .'___ * + * ."" '< `.___\_<|>_/___.' >' "". * + * | | : `- \`.;`\ _ /`;.`/ - ` : | | * + * \ \ `_. \_ __\ /__ _/ .-` / / * + * =====`-.____`.___ \_____/___.-`___.-'===== * + * `=---=' * + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * + *********__佛祖保佑__永无BUG__验收通过__钞票多多__********* + *********************************************************/ +package com.yxt.pms.biz.pms.pmssuppliertype; + + +import com.yxt.common.core.vo.Vo; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * Project: yxt-base(仓储基础信息供应商)
+ * File: BaseSupplierTypeVo.java
+ * Class: com.yxt.anrui.as.api.pmssuppliertype.BaseSupplierTypeVo
+ * Description: 供应商类型 视图数据对象.
+ * Copyright: Copyright (c) 2011
+ * Company: https://gitee.com/liuzp315
+ * Makedate: 2024-03-13 16:51:56
+ * + * @author liupopo + * @version 1.0 + * @since 1.0 + */ +@Data +public class PmsSupplierTypeDown implements Vo { + + @ApiModelProperty("供应商类型名称") + private String supplierTypeName; + @ApiModelProperty("供应商类型编码") + private String supplierTypeCode; +} diff --git a/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssuppliertype/PmsSupplierTypeMapper.java b/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssuppliertype/PmsSupplierTypeMapper.java index 4da13daf8e..1894711d6b 100644 --- a/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssuppliertype/PmsSupplierTypeMapper.java +++ b/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssuppliertype/PmsSupplierTypeMapper.java @@ -53,4 +53,7 @@ public interface PmsSupplierTypeMapper extends BaseMapper { @Delete("delete from yxt_base.base_supplier_type where sid = #{sid}") void del(String sid); + + @Select("select * from yxt_base.base_supplier_type where createOrgSid = #{createOrgSid}") + List selSupplierType(String createOrgSid); } \ No newline at end of file diff --git a/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssuppliertype/PmsSupplierTypeService.java b/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssuppliertype/PmsSupplierTypeService.java index 50ce7c31d0..8811636989 100644 --- a/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssuppliertype/PmsSupplierTypeService.java +++ b/yxt-pms-biz/src/main/java/com/yxt/pms/biz/pms/pmssuppliertype/PmsSupplierTypeService.java @@ -41,6 +41,8 @@ import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import java.util.List; + /** * Project: yxt-base(仓储基础信息供应商)
* File: BaseSupplierTypeService.java
@@ -99,4 +101,10 @@ public class PmsSupplierTypeService extends MybatisBaseService selSupplierType(String orgPath) { + String createOrgSid = sysStaffOrgFeign.getOrgSidByPath(orgPath).getData(); + List pmsSupplierTypeDowns = baseMapper.selSupplierType(createOrgSid); + return pmsSupplierTypeDowns; + } } \ No newline at end of file diff --git a/yxt-pms-biz/src/main/java/com/yxt/pms/feign/yxtbase/supplier/BaseSupplierInfoDto.java b/yxt-pms-biz/src/main/java/com/yxt/pms/feign/yxtbase/supplier/BaseSupplierInfoDto.java index f913d83bdf..5cab63cc2c 100644 --- a/yxt-pms-biz/src/main/java/com/yxt/pms/feign/yxtbase/supplier/BaseSupplierInfoDto.java +++ b/yxt-pms-biz/src/main/java/com/yxt/pms/feign/yxtbase/supplier/BaseSupplierInfoDto.java @@ -32,6 +32,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import java.math.BigDecimal; import java.util.List; /** @@ -105,6 +106,8 @@ public class BaseSupplierInfoDto implements Dto { private String billingTypeKey; // 开票类型key @ApiModelProperty("开票类型value") private String billingTypeValue; // 开票类型value + @ApiModelProperty("税率") + private BigDecimal taxRate; @ApiModelProperty("使用组织sid") private String useOrgSid; // 使用组织sid @ApiModelProperty("创建组织名称")