diff --git a/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemandcount/VehicleDemandCountList.vue b/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemandcount/VehicleDemandCountList.vue index 43136a1..9eaa1c0 100644 --- a/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemandcount/VehicleDemandCountList.vue +++ b/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemandcount/VehicleDemandCountList.vue @@ -284,6 +284,12 @@ } }); }, + modalFormOk(val) { + // 新增/修改 成功时,重载列表 + this.getByVdNo(val); + //清空列表选中 + // this.onClearSelected() + }, loadData(){}, initDictConfig(){ }, diff --git a/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemandcount/modules/VehicleDemandCountForm.vue b/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemandcount/modules/VehicleDemandCountForm.vue index 7bf70ea..06fd0f8 100644 --- a/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemandcount/modules/VehicleDemandCountForm.vue +++ b/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemandcount/modules/VehicleDemandCountForm.vue @@ -98,6 +98,7 @@ carLong :[{required: true, message: '请选择车长!'}], pickUpHub :[{required: true, message: '请选择取货仓库!'}], deliveryAddress :[{required: true, message: '请选择送货地点!'}], + supplierCode :[{required: true, message: '请选择供应商编码!'}], }, url: { add: "/vehicledemandcount/vehicleDemandCount/add", @@ -145,7 +146,7 @@ httpAction(httpurl,this.model,method).then((res)=>{ if(res.success){ that.$message.success(res.message); - that.$emit('ok'); + that.$emit('ok',this.model.vdNo); }else{ that.$message.warning(res.message); } diff --git a/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemandcount/modules/VehicleDemandCountModal.vue b/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemandcount/modules/VehicleDemandCountModal.vue index 18e914c..fc5c555 100644 --- a/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemandcount/modules/VehicleDemandCountModal.vue +++ b/ant-design-vue-jeecg/src/views/tms/outbound/vehicledemandcount/modules/VehicleDemandCountModal.vue @@ -48,8 +48,8 @@ handleOk () { this.$refs.realForm.submitForm(); }, - submitCallback(){ - this.$emit('ok'); + submitCallback(val){ + this.$emit('ok',val); this.visible = false; }, handleCancel () {