Merge branch 'ycds-wms-dev' of http://47.97.1.152:5880/r/zy-asrs-master into ycds-wms-dev
| | |
| | |
|
| | | const onFinish = values => {
|
| | | // console.log('Success:', values);
|
| | | open.value = false;
|
| | |
|
| | | let param = {
|
| | | orderNo: formData.value.orderNo,
|
| | |
| | | post(isSave.value ? '/api/order/save' : '/api/order/update', param).then((resp) => {
|
| | | let result = resp.data;
|
| | | if (result.code === 200) {
|
| | | open.value = false;
|
| | | message.success(isSave.value ? formatMessage('page.add.success', '新增成功') : formatMessage('page.update.success', '更新成功'));
|
| | | emit('tableReload', 'reload')
|
| | | nextTick(() => {
|
| | | formTable.value.resetFields()
|
| | | })
|
| | | } else {
|
| | | message.error(result.msg);
|
| | | }
|
| | | emit('tableReload', 'reload')
|
| | | nextTick(() => {
|
| | | formTable.value.resetFields()
|
| | | })
|
| | | })
|
| | | };
|
| | | const onFinishFailed = errorInfo => {
|
| | |
| | | @ApiModelProperty(value = "供应商编码")
|
| | | private String suppCode;
|
| | |
|
| | | @ApiModelProperty("数量")
|
| | | @TableField(exist = false)
|
| | | private Double anfme;
|
| | |
|
| | | @ApiModelProperty("使用次数")
|
| | | private Integer utiliz;
|
| | |
|
| | |
| | |
|
| | | import com.alibaba.fastjson.JSONObject;
|
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
| | | import com.baomidou.mybatisplus.extension.service.IService;
|
| | | import com.zy.asrs.framework.common.R;
|
| | |
| | | */
|
| | | @Override
|
| | | public R getMatsByCode(String matnr) {
|
| | | return R.ok().add(matService.list(new LambdaQueryWrapper<Mat>().eq(Mat::getMatnr, matnr)));
|
| | | QueryWrapper<LocDetl> wrapper = new QueryWrapper<>();
|
| | | wrapper.eq("matnr", matnr).select("id, maktx, matnr, SUM(anfme) anfme");
|
| | | LocDetl detl = locDetlService.getOne(wrapper);
|
| | |
|
| | | Mat one = matService.getOne(new LambdaQueryWrapper<Mat>().eq(Mat::getMatnr, detl.getMatnr()), false);
|
| | | if (Objects.isNull(one)) {
|
| | | throw new CoolException("物料不存在!!");
|
| | | }
|
| | | one.setAnfme(detl.getAnfme());
|
| | | return R.ok().add(one);
|
| | | }
|
| | |
|
| | | /**
|
| | |
| | |
|
| | | @PostMapping("/login")
|
| | | public R login(@RequestBody LoginParam param, HttpServletRequest request) {
|
| | | if (!licenseTimer.getSystemSupport()) {//许可证已失效
|
| | | return R.parse(CodeRes.SYSTEM_20001);
|
| | | }
|
| | | // if (!licenseTimer.getSystemSupport()) {//许可证已失效
|
| | | // return R.parse(CodeRes.SYSTEM_20001);
|
| | | // }
|
| | | String username = param.getUsername();
|
| | | Long hostId = param.getHostId();
|
| | | User user = userService.getByUsername(username, hostId);
|