diff --git a/ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesList.vue b/ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesList.vue index 22643f86..fe45a212 100644 --- a/ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesList.vue +++ b/ant-design-vue-jeecg/src/views/erp/accessories/ZyAccessoriesList.vue @@ -177,7 +177,7 @@ { title:'供货商信息', align:"center", - dataIndex: 'supplierInfo' + dataIndex: 'supplierInfo_dictText' }, { title: '操作', diff --git a/ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesForm.vue b/ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesForm.vue index 88aa62ba..3716f4bf 100644 --- a/ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesForm.vue +++ b/ant-design-vue-jeecg/src/views/erp/accessories/modules/ZyAccessoriesForm.vue @@ -52,9 +52,14 @@ + + + + + - + @@ -104,6 +109,10 @@ contents: [ { required: true, message: '请输入名称!'}, ], + store: [ + { + pattern: /^\d*\.?\d+$/,message:'请输入正数' + }], }, url: { add: "/accessories/zyAccessories/add", diff --git a/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricForm.vue b/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricForm.vue index f87c343b..83a5e190 100644 --- a/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricForm.vue +++ b/ant-design-vue-jeecg/src/views/erp/fabric/modules/ZyFabricForm.vue @@ -63,12 +63,12 @@ - + - + @@ -83,7 +83,7 @@ - + @@ -189,6 +189,14 @@ name: [ { required: true, message: '请输入名称!'}, ], + money: [ + { required: true, message: '请输入单价!'}, + {pattern: /^\d+$/,message:'请输入正整数'} + ], + retailPrice: [ + { required: true, message: '请输入零售价!'}, + {pattern: /^\d+$/,message:'请输入正整数'} + ], // money: [ // { required: false}, // { pattern: /^\d{0,11}$/, message: '长度不能超过11位数字'}, diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyClothActionForm.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyClothActionForm.vue index e56374db..9a55745f 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyClothActionForm.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyClothActionForm.vue @@ -75,12 +75,15 @@ validatorRules: { freq: [ { required: true, message: '请输入频率!'}, + {pattern: /^\d+$/,message:'请输入正整数'} ], machineTmu: [ { required: true, message: '请输入机器TMU!'}, + {pattern: /^\d+$/,message:'请输入正整数'} ], manualTmu: [ { required: true, message: '请输入手工TMU!'}, + {pattern: /^\d+$/,message:'请输入正整数'} ], nums: [ { required: true, message: '请输入编号!'}, diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyClothsTypeForm.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyClothsTypeForm.vue index 03512483..b632d2ef 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyClothsTypeForm.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyClothsTypeForm.vue @@ -5,7 +5,12 @@ - + + + + + + @@ -18,11 +23,7 @@ {{ typeId }} - - - - - + @@ -62,6 +63,7 @@ data () { return { model:{ + nums:'' }, typeId:"", labelCol: { @@ -88,7 +90,8 @@ url: { add: "/base/zyClothsType/add", edit: "/base/zyClothsType/edit", - queryById: "/base/zyClothsType/queryById" + queryById: "/base/zyClothsType/queryById", + weiyi:"/base/zyClothsType/weiyi" } } }, @@ -102,6 +105,20 @@ this.modelDefault = JSON.parse(JSON.stringify(this.model)); }, methods: { + bianhao(){ + var n=6 + getAction(this.url.weiyi,null).then((res)=>{ + var num=parseInt(res.result,10)+1 + console.log(num) + num=num.toString() + while(num.length{ if(res.success){ + this.loadData(); this.$message.success(res.message); }else{ this.$message.warning(res.message); @@ -215,6 +221,7 @@ down(id){ getAction(this.url.down,{id:id}).then((res)=>{ if(res.success){ + this.loadData(); this.$message.success(res.message); }else{ this.$message.warning(res.message); diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyProcessForm.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessForm.vue index 8309243e..777262af 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyProcessForm.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessForm.vue @@ -1,14 +1,14 @@