diff --git a/ant-design-vue-jeecg/src/views/delivery/DeliveryList.vue b/ant-design-vue-jeecg/src/views/delivery/DeliveryList.vue index 16bf0339..2cfedd50 100644 --- a/ant-design-vue-jeecg/src/views/delivery/DeliveryList.vue +++ b/ant-design-vue-jeecg/src/views/delivery/DeliveryList.vue @@ -97,6 +97,8 @@ 确定出库 + 撤销出库 + 编辑 @@ -130,6 +132,7 @@ import DeliveryModal from './modules/DeliveryModal' import DeliveryModal1 from './modules/DeliveryModal1' import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' + import { getAction } from '../../api/manage' export default { name: 'DeliveryList', @@ -201,6 +204,11 @@ align:"center", dataIndex: 'adminId_dictText' }, + { + title:'出库状态', + align:"center", + dataIndex: 'status_dictText' + }, { title: '操作', dataIndex: 'action', @@ -211,6 +219,7 @@ } ], url: { + cxck: "/delivery/delivery/cxck", list: "/delivery/delivery/list", delete: "/delivery/delivery/delete", deleteBatch: "/delivery/delivery/deleteBatch", @@ -231,6 +240,15 @@ }, }, methods: { + cxck(record){ + getAction(this.url.cxck,{ id: record.id}).then((res)=>{ + if(res.success){ + this.loadData(1); + }else{ + that.$message.warning(res.message); + } + }) + }, qdck: function (record) { this.$refs.modalFormqdck.edit(record); this.$refs.modalFormqdck.title = "确定出库"; diff --git a/ant-design-vue-jeecg/src/views/delivery/modules/DeliveryForm.vue b/ant-design-vue-jeecg/src/views/delivery/modules/DeliveryForm.vue index 3530446c..45e95852 100644 --- a/ant-design-vue-jeecg/src/views/delivery/modules/DeliveryForm.vue +++ b/ant-design-vue-jeecg/src/views/delivery/modules/DeliveryForm.vue @@ -3,19 +3,16 @@ - - - - - + - + - + - + - + - - - - - - - - - - - + + @@ -167,9 +151,7 @@ amount: [ { required: true, message: '请输入用量!'}, ], - storehouseId: [ - { required: true, message: '请输入仓库!'}, - ], + itemType: [ { required: true, message: '请输入物品类型!'}, ], @@ -179,12 +161,8 @@ deliveryTime: [ { required: true, message: '请输入出库时间!'}, ], - carrierId: [ - { required: true, message: '请输入取货人!'}, - ], - adminName: [ - { required: true, message: '请输入管理员!'}, - ], + + }, url: { add: "/delivery/delivery/add", diff --git a/ant-design-vue-jeecg/src/views/delivery/modules/DeliveryForm1.vue b/ant-design-vue-jeecg/src/views/delivery/modules/DeliveryForm1.vue index 86771266..f2011fdc 100644 --- a/ant-design-vue-jeecg/src/views/delivery/modules/DeliveryForm1.vue +++ b/ant-design-vue-jeecg/src/views/delivery/modules/DeliveryForm1.vue @@ -5,17 +5,18 @@ - + - + - - 一旦确定将无法编辑修改 - - @@ -56,6 +53,7 @@ data () { return { model:{ + state :"0", itemType :"1", deliveryReason : "0" }, diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/delivery/controller/DeliveryController.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/delivery/controller/DeliveryController.java index 5f22e058..9085d920 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/delivery/controller/DeliveryController.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/delivery/controller/DeliveryController.java @@ -137,6 +137,35 @@ public class DeliveryController extends JeecgController edit1(@RequestBody Delivery delivery) { + delivery.setStatus("1"); + deliveryService.updateById(delivery); + return Result.OK("编辑成功!"); + } + + //重新上线cxsx + @AutoLog(value = "专利列表-重新上线") + @ApiOperation(value="专利列表-重新上线", notes="专利列表-重新上线") + @RequestMapping(value = "/cxck") + public Result cxck(@RequestParam(name="id",required=true) String id) { + Delivery delivery = new Delivery(); + delivery.setId(id); + delivery.setStatus("2"); + deliveryService.updateById(delivery); + return Result.OK("ok!"); + } + + /** * 通过id删除 * diff --git a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/delivery/entity/Delivery.java b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/delivery/entity/Delivery.java index dd4d1f05..fb1dccbf 100644 --- a/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/delivery/entity/Delivery.java +++ b/jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/delivery/entity/Delivery.java @@ -103,4 +103,10 @@ public class Delivery implements Serializable { @Excel(name = "管理员", width = 15) @ApiModelProperty(value = "管理员") private String adminName; + + /**出库状态*/ + @Excel(name = "出库状态", width = 15, dicCode = "ckzt") + @Dict(dicCode = "ckzt") + @ApiModelProperty(value = "出库状态") + private java.lang.String status; }