diff --git a/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/controller/SelectController.java b/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/controller/SelectController.java index 36bbe837..5b237c54 100644 --- a/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/controller/SelectController.java +++ b/sgzb-modules/sgzb-system/src/main/java/com/bonus/sgzb/system/controller/SelectController.java @@ -5,6 +5,7 @@ import com.bonus.sgzb.system.domain.SelectDto; import com.bonus.sgzb.system.service.SelectService; import io.swagger.annotations.ApiOperation; import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @@ -23,91 +24,91 @@ public class SelectController { @ApiOperation(value = "往来单位下拉选") @PostMapping("getUnitCbx") - public AjaxResult getUnitData(SelectDto dto) { + public AjaxResult getUnitData(@RequestBody SelectDto dto) { return service.getUnitData(dto); } @ApiOperation(value = "工程下拉选") @PostMapping("getSectionEngineeringCbx") - public AjaxResult getProData(SelectDto dto) { + public AjaxResult getProData(@RequestBody SelectDto dto) { return service.getProData(dto); } @ApiOperation(value = "机具类型下拉选") @PostMapping("getMaTypeData") - public AjaxResult getMaTypeData(SelectDto dto){ + public AjaxResult getMaTypeData(@RequestBody SelectDto dto){ return service.getMaTypeData(dto); } @ApiOperation(value = "数据字典下拉选") @PostMapping("getDictByPidCbx") - public AjaxResult getDictByPidCbx(SelectDto dto){ + public AjaxResult getDictByPidCbx(@RequestBody SelectDto dto){ return service.getDictByPidCbx(dto); } @ApiOperation(value = "单位树/归属部门/所属上级") @PostMapping("getDeptTree") - public AjaxResult getDeptTree(SelectDto dto){ + public AjaxResult getDeptTree(@RequestBody SelectDto dto){ return service.getDeptTree(dto); } @ApiOperation(value = "岗位下拉选") @PostMapping("getPostCbx") - public AjaxResult getPostCbx(SelectDto dto){ + public AjaxResult getPostCbx(@RequestBody SelectDto dto){ return service.getPostCbx(dto); } @ApiOperation(value = "角色下拉选") @PostMapping("getRoleCbx") - public AjaxResult getRoleCbx(SelectDto dto){ + public AjaxResult getRoleCbx(@RequestBody SelectDto dto){ return service.getRoleCbx(dto); } @ApiOperation(value = "单位类型下拉选") @PostMapping("getUnitTypeCbx") - public AjaxResult getUnitTypeCbx(SelectDto dto){ + public AjaxResult getUnitTypeCbx(@RequestBody SelectDto dto){ return service.getUnitTypeCbx(dto); } @ApiOperation(value = "设备类型树") @PostMapping("getDeviceTypeTree") - public AjaxResult getDeviceTypeTree(SelectDto dto){ + public AjaxResult getDeviceTypeTree(@RequestBody SelectDto dto){ return service.getDeviceTypeTree(dto); } @ApiOperation(value = "资产属性") @PostMapping("getAssetAttributesCbx") - public AjaxResult getAssetAttributesCbx(SelectDto dto){ + public AjaxResult getAssetAttributesCbx(@RequestBody SelectDto dto){ return service.getAssetAttributesCbx(dto); } @ApiOperation(value = "机具厂家") @PostMapping("getDeviceFactoryCbx") - public AjaxResult getDeviceFactoryCbx(SelectDto dto){ + public AjaxResult getDeviceFactoryCbx(@RequestBody SelectDto dto){ return service.getDeviceFactoryCbx(dto); } @ApiOperation(value = "工程项目") @PostMapping("getProCbx") - public AjaxResult getProCbx(SelectDto dto){ + public AjaxResult getProCbx(@RequestBody SelectDto dto){ return service.getProCbx(dto); } @ApiOperation(value = "配件所属上级树") @PostMapping("getAccessoryTree") - public AjaxResult getAccessoryTree(SelectDto dto){ + public AjaxResult getAccessoryTree(@RequestBody SelectDto dto){ return service.getAccessoryTree(dto); } @ApiOperation(value = "货架") @PostMapping("getGoodsShelvesCbx") - public AjaxResult getGoodsShelvesCbx(SelectDto dto){ + public AjaxResult getGoodsShelvesCbx(@RequestBody SelectDto dto){ return service.getGoodsShelvesCbx(dto); } @ApiOperation(value = "用户/维修员/库管员/采购员") @PostMapping("getUserByRoleIdCbx") - public AjaxResult getUserByRoleIdCbx(SelectDto dto){ + public AjaxResult getUserByRoleIdCbx(@RequestBody SelectDto dto){ return service.getUserByRoleIdCbx(dto); } } diff --git a/sgzb-ui/.env.production b/sgzb-ui/.env.production index b4893b0d..512859c3 100644 --- a/sgzb-ui/.env.production +++ b/sgzb-ui/.env.production @@ -1,8 +1,8 @@ # 页面标题 -VUE_APP_TITLE = 若依管理系统 +VUE_APP_TITLE = 施工装备管理系统 # 生产环境配置 ENV = 'production' # 若依管理系统/生产环境 -VUE_APP_BASE_API = '/prod-api' +VUE_APP_BASE_API = '/dev-api' diff --git a/sgzb-ui/src/api/system/upload.js b/sgzb-ui/src/api/system/upload.js new file mode 100644 index 00000000..4560e702 --- /dev/null +++ b/sgzb-ui/src/api/system/upload.js @@ -0,0 +1,42 @@ +import request from '@/utils/request' +//资源图片上传 +export function imgUpLoad(param){ + const formData = new FormData() + formData.append('file', param.file) + formData.append('fileType', param.type) + return request({ + url: '/system/sys/file/upload', + method: 'post', + data: formData, + header:'multipart/form-data' + }) + } + +//资源文件上传 +export function fileUpLoad(param){ + const formData = new FormData() + formData.append('file', param.file) + return request({ + url: '/system/sys/file/upload', + method: 'post', + data: formData, + }) + } + + + + + + + + + + + + + + + + + + diff --git a/sgzb-ui/src/views/base/assetAttributeAllocation/index.vue b/sgzb-ui/src/views/base/assetAttributeAllocation/index.vue index 8e22687b..c6dbf8f7 100644 --- a/sgzb-ui/src/views/base/assetAttributeAllocation/index.vue +++ b/sgzb-ui/src/views/base/assetAttributeAllocation/index.vue @@ -331,8 +331,7 @@ export default { }, // 多选框选中数据 handleSelectionChange(selection) { - this.ids = selection.map(item => item.typeId); - + this.ids = selection.map(item => item); console.log(this.ids) }, /** 保存按钮操作 */ @@ -342,7 +341,8 @@ export default { if(this.chosenPropId && this.ids.length>0){ let param = { propId:this.chosenPropId, - typeId:this.ids[0] + typeId:this.ids[0].typeId, + propName:this.ids[0].propName, } savePropInfo(param).then(response => { if(response.code == 200){ diff --git a/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue b/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue index 0727c139..01bb76ce 100644 --- a/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue +++ b/sgzb-ui/src/views/claimAndRefund/receive/agreement.vue @@ -162,20 +162,20 @@ - - + + - + @@ -71,6 +71,7 @@ + @@ -154,7 +155,7 @@ - + { console.log(row) - this.form = row; + let rowData = row + rowData.checkNum = rowData.purchaseNum; + this.form = rowData; this.open = true; this.title = "验收"; // }); diff --git a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesArrival.vue b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesArrival.vue index 1e20719b..86c8286c 100644 --- a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesArrival.vue +++ b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesArrival.vue @@ -1,7 +1,7 @@