diff --git a/ant-design-vue-jeecg/src/views/process/ZyClothsModularCompentList.vue b/ant-design-vue-jeecg/src/views/process/ZyClothsModularCompentList.vue index 272f403e..71f8345c 100644 --- a/ant-design-vue-jeecg/src/views/process/ZyClothsModularCompentList.vue +++ b/ant-design-vue-jeecg/src/views/process/ZyClothsModularCompentList.vue @@ -3,13 +3,14 @@ +

{{biaoTi}}

@@ -88,10 +89,9 @@ - 编辑 - - - 详情 + + + 详情 删除 @@ -103,6 +103,7 @@ +
@@ -113,12 +114,15 @@ import '@/assets/less/TableExpand.less' import {mixinDevice} from '@/utils/mixin' import {JeecgListMixin} from '@/mixins/JeecgListMixin' import ZyClothsModularCompentModal from './modules/ZyClothsModularCompentModal' +import ZyClothsComponentListDetail from "@views/process/modules/ZyClothsComponentListDetail"; +import ZyClothsModularCompentListDetails from "@views/process/modules/list/ZyClothsModularCompentListDetails"; export default { name: 'ZyClothsModularCompentList', mixins: [JeecgListMixin, mixinDevice], components: { + ZyClothsModularCompentListDetails, ZyClothsModularCompentModal }, data() { @@ -127,7 +131,7 @@ export default { visible: false, confirmLoading: false, yid: '', - biaoTi: "", + biaoTi: '', // 表头 columns: [ { @@ -193,6 +197,10 @@ export default { }, }, methods: { + viewDetails(id) { + this.$refs.ZyClothsModularCompentListDetails.showModal(id); + }, + edit1(record) { this.model = Object.assign({}, record); //this.ax= this.model.id; diff --git a/ant-design-vue-jeecg/src/views/process/ZyClothsModularList.vue b/ant-design-vue-jeecg/src/views/process/ZyClothsModularList.vue index 97506aa5..5628105c 100644 --- a/ant-design-vue-jeecg/src/views/process/ZyClothsModularList.vue +++ b/ant-design-vue-jeecg/src/views/process/ZyClothsModularList.vue @@ -192,11 +192,11 @@ export default { align: "center", dataIndex: 'modularName' }, - // { - // title: '模块部件名称', - // align: "center", - // dataIndex: 'modularType_dictText' - // }, + { + title: '模块类型', + align: "center", + dataIndex: 'modularType_dictText' + }, // { // title: '描述', // align: "center", @@ -270,13 +270,13 @@ export default { viewVid(record) { this.$refs.ZyClothsModularCompentList.showModal1(); this.$refs.ZyClothsModularCompentList.edit1(record); - console.log("制衣模块传给模块部件的id zyclothsMclist" + record.id); + //console.log("制衣模块传给模块部件的id zyclothsMclist" + record.id); this.$refs.ZyClothsModularCompentList.disableSubmit = false; }, viewVid2(record) { this.$refs.ZyProcessModularList.showModal1(); this.$refs.ZyProcessModularList.edit1(record); - console.log("父弹窗ID++++++:" + record.id); + //console.log("父弹窗ID++++++:" + record.id); this.$refs.ZyProcessModularList.disableSubmit = false; }, initDictConfig() { diff --git a/ant-design-vue-jeecg/src/views/process/ZyProcessComponentList.vue b/ant-design-vue-jeecg/src/views/process/ZyProcessComponentList.vue index 3394ba02..0f735a08 100644 --- a/ant-design-vue-jeecg/src/views/process/ZyProcessComponentList.vue +++ b/ant-design-vue-jeecg/src/views/process/ZyProcessComponentList.vue @@ -2,16 +2,30 @@ +

{{biaoTi}} 部件工序管理

+ + + + + + + + + + 查询 + 重置 + +
@@ -102,7 +116,7 @@ - +
@@ -115,6 +129,8 @@ import ZyProcessComponentModal from './modules/ZyProcessComponentModal' import ZyProcessComponentFormDetail from './modules/ZyProcessComponentFormDetail' import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' + import {filterObj} from "@/utils/util"; + import {getAction} from "@api/manage"; export default { name: 'ZyProcessComponentList', @@ -151,11 +167,11 @@ align:"center", dataIndex: 'processId_dictText' }, - { - title:'是否瓶颈工序', - align:"center", - dataIndex: 'bottleneck_dictText' - }, + // { + // title:'是否瓶颈工序', + // align:"center", + // dataIndex: 'bottleneck_dictText' + // }, { title:'创建时间', align:"center", @@ -178,6 +194,9 @@ importExcelUrl: "pro/zyProcessComponent/importExcel", }, + //参数 + loadRouteType: false, + biaoTi: '', dictOptions:{}, superFieldList:[], } @@ -194,12 +213,66 @@ edit2(record) { this.model = Object.assign({}, record); this.componentId1 = this.model.id; + this.biaoTi = this.model.partsName; //console.log(topicid); this.queryParam.componentId = this.model.id; //console.log( this.queryParam.topicid); this.loadData(); this.visible = true; }, + valueChange(value) { + if (value) this.loadData() + }, + //加载传递参数 + loadParameter() { + if (this.loadRouteType === false) { + this.loadRouteType = true; + } + }, + loadData(arg) { + if (!this.url.list) { + this.$message.error("请设置url.list属性!"); + return + } + //加载数据 若传入参数1则加载第一页的内容 + if (arg === 1) { + this.ipagination.current = 1; + } + this.loadParameter(); + const params = this.getQueryParams();//查询条件 + this.loading = true; + getAction(this.url.list, params).then((res) => { + if (res.success) { + //update-begin---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------ + this.dataSource = res.result.records || res.result; + if (res.result.total) { + this.ipagination.total = res.result.total; + } else { + this.ipagination.total = 0; + } + //update-end---author:zhangyafei Date:20201118 for:适配不分页的数据列表------------ + } else { + this.$message.warning(res.message) + } + }).finally(() => { + this.loading = false + }) + }, + getQueryParams() { + //获取查询条件 + let sqp = {} + if (this.superQueryParams) { + sqp['superQueryParams'] = encodeURI(this.superQueryParams) + sqp['superQueryMatchType'] = this.superQueryMatchType + } + const param = Object.assign(sqp, this.queryParam, this.isorter, this.filters); + param.field = this.getQueryField(); + param.pageNo = this.ipagination.current; + param.pageSize = this.ipagination.pageSize; + //param.id=this.id; + param.componentId = this.componentId1; + return filterObj(param); + }, showModal2() { this.visible = true; }, 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 92604697..a3a47ce6 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyClothsComponentForm.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyClothsComponentForm.vue @@ -24,26 +24,35 @@ + - - - + + + + - - + + + + + + + + + - + + placeholder="请选择模块类型"/> @@ -68,11 +77,7 @@ - - - - - + @@ -196,14 +201,14 @@ }); } this.model.nums = res.result - console.log('res.result') - console.log(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); + //console.log("制衣部件List 编号 "+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/ZyClothsModularForm.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyClothsModularForm.vue index 9192a4e7..2ecb5213 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyClothsModularForm.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyClothsModularForm.vue @@ -9,15 +9,7 @@ - - - - - - - - - + @@ -37,13 +29,31 @@ - + + + + + + + + + + + + + + + + + + + @@ -72,11 +82,7 @@ - - - - - + @@ -143,7 +149,7 @@ export default { modularName: [ {required: true, message: '请输入模块名称!'}, //{ pattern: /^[0-9A-Za-z\u4e00-\u9fa5.,;,。;、!()?]{0,50}$/, message: '文本长度过长'}, - {min: 1, max: 30, message: '最多输入30字!', trigger: 'blur'}, + {min: 1, max: 50, message: '最多输入50字!', trigger: 'blur'}, ], clothsTypeId: [ {required: true, message: '请选择衣服类型!'}, diff --git a/ant-design-vue-jeecg/src/views/process/modules/ZyProcessComponentForm.vue b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessComponentForm.vue index 4d3e3cf6..b9919d3f 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/ZyProcessComponentForm.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/ZyProcessComponentForm.vue @@ -13,11 +13,11 @@ - - - - - + + + + + diff --git a/ant-design-vue-jeecg/src/views/process/modules/list/ZyClothsComponentList.vue b/ant-design-vue-jeecg/src/views/process/modules/list/ZyClothsComponentList.vue index ad35b2e7..b8b57e6b 100644 --- a/ant-design-vue-jeecg/src/views/process/modules/list/ZyClothsComponentList.vue +++ b/ant-design-vue-jeecg/src/views/process/modules/list/ZyClothsComponentList.vue @@ -125,11 +125,11 @@ export default { align:"center", dataIndex: 'nums' }, - { - title:'模块类型', - align:"center", - dataIndex: 'modularType' - }, + // { + // title:'模块类型', + // align:"center", + // dataIndex: 'modularType' + // }, { title:'部件名称', align:"center", @@ -140,11 +140,11 @@ export default { // align:"center", // dataIndex: 'componentType' // }, - // { - // title: '服装类型', - // align: "center", - // dataIndex: 'clothsTypeId_dictText' - // }, + { + title: '服装类型', + align: "center", + dataIndex: 'clothsTypeId_dictText' + }, // { // title:'描述', // align:"center", @@ -161,11 +161,11 @@ export default { // align:"center", // dataIndex: 'modularId_dictText' // }, - // { - // title:'制衣模块类型', - // align:"center", - // dataIndex: 'modularType_dictText' - // }, + { + title:'模块类型', + align:"center", + dataIndex: 'modularType_dictText' + }, // { // title:'企业', // align:"center", diff --git a/ant-design-vue-jeecg/src/views/process/modules/list/ZyClothsModularCompentListDetails.vue b/ant-design-vue-jeecg/src/views/process/modules/list/ZyClothsModularCompentListDetails.vue new file mode 100644 index 00000000..48ae7129 --- /dev/null +++ b/ant-design-vue-jeecg/src/views/process/modules/list/ZyClothsModularCompentListDetails.vue @@ -0,0 +1,80 @@ + + + + diff --git a/ant-design-vue-jeecg/src/views/product/pdaccessories/ProductAccessoriesList.vue b/ant-design-vue-jeecg/src/views/product/pdaccessories/ProductAccessoriesList.vue index 6f94410e..0b68e93d 100644 --- a/ant-design-vue-jeecg/src/views/product/pdaccessories/ProductAccessoriesList.vue +++ b/ant-design-vue-jeecg/src/views/product/pdaccessories/ProductAccessoriesList.vue @@ -1,5 +1,6 @@