diff --git a/ant-design-vue-jeecg/src/views/device/modules/ZyDeviceForm.vue b/ant-design-vue-jeecg/src/views/device/modules/ZyDeviceForm.vue index 37fd658a..e9ee3463 100644 --- a/ant-design-vue-jeecg/src/views/device/modules/ZyDeviceForm.vue +++ b/ant-design-vue-jeecg/src/views/device/modules/ZyDeviceForm.vue @@ -77,8 +77,8 @@ - + @@ -161,7 +161,7 @@ methods: { canshu(){ this.parm1.brand_id=this.model.canshu - console.log(this.parm1) + // console.log(this.parm1) }, add () { this.edit(this.modelDefault); diff --git a/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricTypeForm.vue b/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricTypeForm.vue index ec14ee55..736c1a0c 100644 --- a/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricTypeForm.vue +++ b/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricTypeForm.vue @@ -82,7 +82,15 @@ add () { var n=4 getAction(this.url.weiyi,{id:this.model.nums}).then((res)=>{ - var num=parseInt(res.result,10)+1 + var num=""; + if(res.message!="") + { + num=parseInt(res.message,10)+1 + }else + { + num="0001"; + } + var num=parseInt(res.message,10)+1 num=num.toString() while(num.length - +