| | |
| | | } |
| | | }, |
| | | { |
| | | tid: 'icon', title: '商标', data: '', type: 'text', |
| | | options: { |
| | | field: 'icon', |
| | | testData: '', |
| | | width:270, |
| | | height: 16, |
| | | fontSize: 11.25, |
| | | textAlign: "left", |
| | | textContentVerticalAlign: "middle" |
| | | } |
| | | }, |
| | | { |
| | | tid: 'orderType', title: '订单类型', data: '', type: 'text', |
| | | options: { |
| | | field: 'orderType', |
| | |
| | | } |
| | | const changeTag = () => { |
| | | const json = JSON.parse(tag.value.value) |
| | | //json.panels[0].printElements[0].options.fields.push({text: '序号尺寸', field: 'numberSize'}) |
| | | //json.panels[0].printElements[0].options.fields.push({text: '商标', field: 'icon'}) |
| | | |
| | | hiprintTemplate.value.setPaper(json.panels[0].width, json.panels[0].height) |
| | | hiprintTemplate.value.update(json) |
| | |
| | | <div class="row5"> |
| | | <span style="white-space: pre-wrap;font-size: 6pt">{{ item.building_number?item.building_number.replace(/\r|\n|\s/g,''):'' }}</span> |
| | | <span v-if="item.bend_radius!=null">R={{item.bend_radius}}</span> |
| | | </div> |
| | | <div class="row6"> |
| | | <span>{{item.glass_child}}</span> |
| | | <br> |
| | | <span v-if="company.showDeliveryCreator" >{{item.processing_note}}</span> |
| | | <span v-else style="font-size: 6pt">{{item.processing_note}}</span> |
| | | </div> |
| | | <div class="row6"> |
| | | <span>{{item.glass_child}}</span> |
| | | |
| | | </div> |
| | | |
| | | <div class="row5"> |
| | | <span>{{item.project}}</span> |
| | | </div> |
| | |
| | | #entirety{ |
| | | text-align: center; |
| | | width: 180px; |
| | | height: 87px; |
| | | height: 90px; |
| | | margin-bottom: 10px; |
| | | margin-right: 5px; |
| | | overflow: hidden; |
| | |
| | | |
| | | .row5 { |
| | | margin-top: 5px; |
| | | height: 15px; |
| | | height: 18px; |
| | | font-weight: bold; |
| | | font-size: 6pt; |
| | | } |
| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | | @Api(value="用户controller",tags={"用户操作接口"}) |
| | | @RequestMapping("/userInfo") |
| | |
| | | return Result.seccess(userService.findAll()); |
| | | } |
| | | |
| | | @ApiOperation("app查询报工班组列表") |
| | | @PostMapping("findByAddress") |
| | | public Result findByAddress(@RequestBody Map<String,String> userName){ |
| | | return Result.seccess(userService.findByAddress(userName)); |
| | | } |
| | | |
| | | @ApiOperation("查询所有工序") |
| | | @SaCheckPermission("userList.search") |
| | | @PostMapping("selectProcess") |
| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
| | | import com.example.erp.controller.dto.UserDTO; |
| | | import com.example.erp.entity.userInfo.User; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | Boolean updateUserNameById(Integer id,String userName); |
| | | |
| | | Boolean updateProcessMp(Integer id, String process); |
| | | |
| | | List<User> findByAddress(String userName); |
| | | } |
| | |
| | | |
| | | private String getOrderId(String dateType){ |
| | | String orderId = null; |
| | | if(dateType.equals("day")){ |
| | | if(dateType==null || dateType.equals("day")){ |
| | | Integer maxOrderId = orderMapper.selectMaxOrderId(); |
| | | //查询订单id,并且自增 |
| | | String formattedNumber = String.format("%02d", maxOrderId+1); |
| | |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.example.erp.controller.dto.UserDTO; |
| | | import com.example.erp.entity.userInfo.PermissionBasic; |
| | | import com.example.erp.entity.userInfo.Role; |
| | | import com.example.erp.entity.userInfo.SysError; |
| | | import com.example.erp.entity.userInfo.User; |
| | | import com.example.erp.mapper.pp.ProductionSchedulingMapper; |
| | | import com.example.erp.mapper.userInfo.*; |
| | | import com.example.erp.tools.TokenTools; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.cache.annotation.CacheEvict; |
| | | import org.springframework.cache.annotation.Cacheable; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import org.springframework.transaction.interceptor.TransactionAspectSupport; |
| | | |
| | | import java.util.Collections; |
| | | import java.util.HashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.*; |
| | | |
| | | @Service |
| | | @DS("user_info") |
| | |
| | | public Boolean updateProcessSv(Integer id, String process) { |
| | | return userMapper.updateProcessMp(id,process); |
| | | } |
| | | |
| | | public Object findByAddress(Map<String,String> userName) { |
| | | if(Objects.equals(userName.get("userName"), "")){ |
| | | userName.put("userName", null) ; |
| | | } |
| | | List<User> users = userMapper.findByAddress(userName.get("userName")); |
| | | List<Map<String,Object>> userList = new ArrayList<>(); |
| | | users.forEach(user -> { |
| | | Map<String,Object> userMap = new HashMap<>(); |
| | | userMap.put("value", user.getLoginName()); |
| | | userMap.put("text", user.getUserName()); |
| | | userList.add(userMap); |
| | | }); |
| | | Map<String,List<Object>> map = new HashMap<>(); |
| | | |
| | | map.put("users", Collections.singletonList(userList)); |
| | | return map; |
| | | } |
| | | } |
| | | |
| | |
| | | on b.role_id = c.id |
| | | where state =1 and a.id != 1 |
| | | </select> |
| | | <select id="findByAddress" resultMap="findAllMap"> |
| | | SELECT a.*, |
| | | b.role_id, |
| | | c.role |
| | | FROM erp_user_info.user as a |
| | | left join user_role as b |
| | | on a.id = b.user_id |
| | | left join role as c |
| | | on b.role_id = c.id |
| | | where state =1 and a.id != 1 and address is not null and address !='' |
| | | <if test="userName != null and userName != '' and userName != 'null'"> |
| | | and user_name like concat('%',#{userName},'%') |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="findOne" > |
| | | SELECT * |