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 @@