From fbd676fe36bae17a744876d6c9e251b1f826e230 Mon Sep 17 00:00:00 2001 From: mors <3067699729@qq.com> Date: Tue, 10 Jan 2023 17:09:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E5=85=A5=E6=AC=BE=E5=BC=8F=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=8F=90=E7=A4=BA=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/mixins/JeecgListMixin.js | 4 +- .../process/modules/ZyClothsComponentForm.vue | 32 ++++---- .../process/modules/ZyClothsTypeForm.vue | 40 ++++++---- .../modules/ZyClothsStyleForm.vue | 74 ++++++++++--------- .../modules/ZyClothsStyleListDetail.vue | 43 ++++++----- .../ZyStyleAccessoriesList.vue | 30 +++++--- .../modules/ZyStyleAccListDetail.vue | 35 +++++---- .../views/zystylefabric/ZyStyleFabricList.vue | 11 ++- .../modules/ZyStyleFabricListDetail.vue | 35 +++++---- .../modules/ZyStyleModelListDetails.vue | 44 ++++++----- .../zystylemodular/modules/ZyProcessList.vue | 4 +- .../modules/ZyStyleModularListDetails.vue | 37 ++++++---- .../views/zystylemodule/ZyStyleModuleList.vue | 9 ++- .../modules/ZyStyleModuleListDetail.vue | 35 +++++---- .../ZyStyleAccessoriesController.java | 33 ++++++++- .../entity/ZyStyleAccessories.java | 4 +- .../controller/ZyStyleFabricController.java | 29 ++++++++ .../mapper/ZyStyleFabricMapper.java | 6 ++ .../controller/ZyStyleModuleController.java | 25 ++++++- .../mapper/ZyStyleModuleMapper.java | 3 + 20 files changed, 355 insertions(+), 178 deletions(-) diff --git a/ant-design-vue-jeecg/src/mixins/JeecgListMixin.js b/ant-design-vue-jeecg/src/mixins/JeecgListMixin.js index 4c43d748..79a3249f 100644 --- a/ant-design-vue-jeecg/src/mixins/JeecgListMixin.js +++ b/ant-design-vue-jeecg/src/mixins/JeecgListMixin.js @@ -325,9 +325,9 @@ export const JeecgListMixin = { console.log("js层id的传递"+id); this.$refs.modalForm.disableSubmit = false; }, - styleModuleHandleAdd: function (id,typeId) { + styleModuleHandleAdd: function (id,typeId,styleNames) { this.$refs.modalForm.add(id,typeId); - this.$refs.modalForm.title = "新增"; + this.$refs.modalForm.title = "服装款式 "+styleNames+" 新增"; this.$refs.modalForm.disableSubmit = false; }, handleAdd1: function (id) { diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyClothsComponentForm.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyClothsComponentForm.vue index ecaaf4f2..f7253300 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyClothsComponentForm.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyClothsComponentForm.vue @@ -193,22 +193,24 @@ }, methods: { async getNumberClothsComponentList() { - const {data: res} = await this.$axios.get('/jeecg-boot/base/zyClothsComponent/sort?id=' + this.model.clothsTypeId) - if (res.code !== 200) { - this.$message({ - type: 'error', - message: '未查询到数据!' - }); - } - this.model.nums = res.result - //console.log('res.result') - //console.log(res.result) - //this.confirmLoading = false - // if (this.data.length === 0) { - // this.data.push(res.result) - // } + //const {data: res} = await this.$axios.get('/jeecg-boot/base/zyClothsComponent/sort?id=' + this.model.clothsTypeId) + getAction(this.url.sort, {id: this.model.clothsTypeId}).then((res) => { + if (res.code !== 200) { + this.$message({ + type: 'error', + message: '未查询到数据!' + }); + } + this.model.nums = res.result + //console.log('res.result') + //console.log(res.result) + //this.confirmLoading = false + // if (this.data.length === 0) { + // this.data.push(res.result) + // } - console.log("制衣部件 编号: "+this.model.nums); + console.log("制衣部件 编号: "+this.model.nums); + }) }, // bianHao() { // getAction(this.url.sort, {id: this.model.clothsTypeId}).then((res) => { 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 c2cd8e20..7d561953 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyClothsTypeForm.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyClothsTypeForm.vue @@ -85,7 +85,7 @@ { pattern: /^[0-9A-Za-z\u4e00-\u9fa5.,;,。;、!()?]{0,50}$/, message: '文本长度过长'}, ], enterpriseId: [ - { required: true, message: '请输入企业!'}, + { required: true, message: '请选择一个企业!'}, ], }, url: { @@ -106,26 +106,38 @@ this.modelDefault = JSON.parse(JSON.stringify(this.model)); }, methods: { - async bianHao(){ - const {data: res} = await this.$axios.get('/jeecg-boot/base/zyClothsType/weiyi?id=' + this.model.enterpriseId) - if (res.code !== 200) { - this.$message({ - type: 'error', - message: '未查询到数据!' - }); - } - this.model.nums = res.result - console.log('res.result') - console.log(res.result) + bianHao(){ + // const {data: res} = await this.$axios.get('/jeecg-boot/base/zyClothsType/weiyi?id=' + this.model.enterpriseId) + // if (res.code !== 200) { + // this.$message({ + // type: 'error', + // message: '未查询到数据!' + // }); + // } + // this.model.nums = res.result + // console.log('res.result') + // console.log(res.result) //this.confirmLoading = false // if (this.data.length === 0) { // this.data.push(res.result) // } - //console.log("制衣部件List 编号 "+this.model.nums); // var n=6 + getAction(this.url.weiyi,{id: this.model.enterpriseId}).then((res)=>{ + if (res.code !== 200) { + this.$message({ + type: 'error', + message: '未查询到数据!' + }); + } + let num = res.result; + console.log("res.result: "+num) + //num=num.toString() + + this.model.nums=res.result; + }) // getAction(this.url.weiyi,null).then((res)=>{ - // var num=parseInt(res.result,10)+1 + // let num = parseInt(res.result, 10) + 1; // console.log(num) // num=num.toString() // while(num.length - + @@ -399,21 +399,22 @@ export default { methods: { async bianHao() { if (this.model.id) { - const {data: res} = await this.$axios.get('/jeecg-boot/zyclothsstyle/zyClothsStyle/enterpriseNum?id=' + this.model.enterpriseId) - - if (res.code === 500){ - this.$message({ - type: 'error', - message: '只能选择一个企业!' - }); - }else if (res.code !== 200) { - this.$message({ - type: 'error', - message: '未查询到数据!' - }); - } - this.model.nums = res.result + this.model.nums.substring(4); - console.log('res.result '+this.model.nums) + //const {data: res} = await this.$axios.get('/jeecg-boot/zyclothsstyle/zyClothsStyle/enterpriseNum?id=' + this.model.enterpriseId) + getAction(this.url.enterpriseNum,{id: this.model.enterpriseId}).then((res)=>{ + if (res.code === 500) { + this.$message({ + type: 'error', + message: '只能选择一个企业!' + }); + } else if (res.code !== 200) { + this.$message({ + type: 'error', + message: '未查询到数据!' + }); + } + this.model.nums = res.result + this.model.nums.substring(4); + console.log('res.result ' + this.model.nums) + }) } }, add() { @@ -452,28 +453,35 @@ export default { }) }, - async popupCallback(value, row) { + popupCallback(value, row) { this.model = Object.assign(this.model, row); console.log("1222346584" + "++++++" + row) - const {data: res} = await this.$axios.get('/jeecg-boot/zyclothsstyle/zyClothsStyle/sort?id=' + this.model.typeId) - if (res.code !== 200) { - this.$message({ - type: 'error', - message: '未查询到数据!' - }); - } + getAction(this.url.sort, {id: this.model.typeId}).then((res) => { + if (res.code !== 200) { + this.$message({ + type: 'error', + message: '未查询到数据!' + }); + } + let num = res.result; + console.log("res.result: " + num) + //num=num.toString() + + this.model.nums = res.result; + }) + //const {data: res} = await this.$axios.get('/jeecg-boot/zyclothsstyle/zyClothsStyle/sort?id=' + this.model.typeId) // var n = 8; // this.model = Object.assign(this.model, row); // getAction(this.url.sort, {id: this.model.typeId}).then((res) => { - //console.log("aaaaaa" + res.result); - //var num = parseInt(res.result, 10) + 1; - // num = num.toString(); - // while (num.length < n) { - // num = "0" + num - // } - this.model.nums = res.result; - // console.log(this.model.processCode) - }, + //console.log("aaaaaa" + res.result); + //var num = parseInt(res.result, 10) + 1; + // num = num.toString(); + // while (num.length < n) { + // num = "0" + num + // } + //this.model.nums = res.result; + // console.log(this.model.processCode) + }, } } diff --git a/ant-design-vue-jeecg/src/views/zyclothsstyle/modules/ZyClothsStyleListDetail.vue b/ant-design-vue-jeecg/src/views/zyclothsstyle/modules/ZyClothsStyleListDetail.vue index 73a5a708..d88b9f72 100644 --- a/ant-design-vue-jeecg/src/views/zyclothsstyle/modules/ZyClothsStyleListDetail.vue +++ b/ant-design-vue-jeecg/src/views/zyclothsstyle/modules/ZyClothsStyleListDetail.vue @@ -85,6 +85,8 @@