喻忠伟 2 years ago
commit bc247a59d0
  1. 19
      ant-design-vue-jeecg/src/views/process/ZyClothsTypeList.vue
  2. 42
      ant-design-vue-jeecg/src/views/productplan/ZyPlanProcessDataList.vue
  3. 816
      ant-design-vue-jeecg/src/views/productplan/ZyPlanProcessDataList_back1223.vue
  4. 329
      ant-design-vue-jeecg/src/views/productplan/ZyPlanTeamDataList.vue
  5. 20
      ant-design-vue-jeecg/src/views/starehouse/admin/StarehouseList.vue
  6. 28
      ant-design-vue-jeecg/src/views/starehouse/admin/modules/StarehouseForm.vue
  7. 3
      ant-design-vue-jeecg/src/views/zyclothsstyle/modules/ZyClothsStyleForm.vue
  8. 2
      jeecg-boot/jeecg-boot-module-erp/src/main/java/org/jeecg/modules/demo/zyStyleModular/controller/ZyStyleModularController.java
  9. 2
      jeecg-boot/jeecg-boot-module-erp/src/main/java/org/jeecg/modules/demo/zyStyleModular/mapper/ZyStyleModularMapper.java
  10. 3
      jeecg-boot/jeecg-boot-module-erp/src/main/java/org/jeecg/modules/demo/zyStyleModular/service/impl/ZyStyleModularServiceImpl.java
  11. 2
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/controller/ZyClothsTypeController.java
  12. 4
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/mapper/ZyClothsTypeMapper.java
  13. 5
      jeecg-boot/jeecg-boot-module-process/src/main/java/org/jeecg/modules/demo/base/service/impl/ZyClothsTypeServiceImpl.java
  14. 8
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/starehouse/entity/Starehouse.java
  15. 4
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zyaccessories/controller/ZyStyleAccessoriesController.java
  16. 4
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/zyaccessories/service/impl/ZyStyleAccessoriesServiceImpl.java
  17. 6
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/entity/ZyPlanProcess.java
  18. 7
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/entity/vo/ProcessDataVo.java
  19. 88
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/service/impl/ZyPlanProcessServiceImpl.java
  20. 2
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/team/entity/GroupxMember.java
  21. 16
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/team/vo/GroupxMemeberVo.java
  22. 16
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/team/vo/GroupxVo.java
  23. 19
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/zyclothsstyle/controller/ZyClothsStyleController.java
  24. 2
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/zystylefabric/controller/ZyStyleFabricController.java
  25. 2
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/zystylefabric/service/impl/ZyStyleFabricServiceImpl.java
  26. 2
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/zystylemodel/mapper/ZyStyleModelMapper.java
  27. 4
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/zystylemodel/service/impl/ZyStyleModelServiceImpl.java
  28. 13
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/zystylemodule/controller/ZyStyleModuleController.java
  29. 2
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/zystylemodule/mapper/ZyStyleModuleMapper.java
  30. 4
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/zystylemodule/service/impl/ZyStyleModuleServiceImpl.java

@ -4,12 +4,12 @@
<div class="table-page-search-wrapper"> <div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery"> <a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-col :xl="4" :lg="7" :md="8" :sm="24">
<a-form-item label="编号"> <a-form-item label="编号">
<a-input placeholder="请输入编号" v-model="queryParam.nums" ></a-input> <a-input placeholder="请输入编号" v-model="queryParam.nums" ></a-input>
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-col :xl="5" :lg="7" :md="8" :sm="24">
<a-form-item label="类型名称" > <a-form-item label="类型名称" >
<j-tree-select v-model="queryParam.id" <j-tree-select v-model="queryParam.id"
dict="zy_cloths_type,type_name,id" dict="zy_cloths_type,type_name,id"
@ -22,19 +22,24 @@
<!-- </a-form-item>--> <!-- </a-form-item>-->
</a-col> </a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-col :xl="5" :lg="7" :md="8" :sm="24">
<a-form-item label="上级类型" > <a-form-item label="上级类型" >
<j-dict-select-tag v-model="queryParam.typeId" dictCode="zy_cloths_type, type_name, id" <j-tree-select v-model="queryParam.typeId"
placeholder="上级类型"></j-dict-select-tag> dict="zy_cloths_type,type_name,id"
pidField="type_id"
placeholder="请选择上级类型" >
</j-tree-select>
<!-- <j-dict-select-tag v-model="queryParam.typeId" dictCode="zy_cloths_type, type_name, id"-->
<!-- placeholder="上级类型"></j-dict-select-tag>-->
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-col :xl="5" :lg="7" :md="8" :sm="24">
<a-form-item label="企业名称"> <a-form-item label="企业名称">
<j-select-depart placeholder="请输入企业名称" v-model="queryParam.enterpriseId" /> <j-select-depart placeholder="请输入企业名称" v-model="queryParam.enterpriseId" />
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-col :xl="5" :lg="7" :md="8" :sm="24">
<span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons">
<a-button type="primary" @click="searchQuery" icon="search">查询</a-button> <a-button type="primary" @click="searchQuery" icon="search">查询</a-button>
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button> <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>

@ -76,7 +76,8 @@ export default {
width: '200px', width: '200px',
options: [], options: [],
placeholder: '请选择${title}', placeholder: '请选择${title}',
}, { },
{
title: '设备列表', title: '设备列表',
key: 'machineIds', key: 'machineIds',
type: JVXETypes.selectMultiple, type: JVXETypes.selectMultiple,
@ -91,14 +92,43 @@ export default {
options: [], options: [],
placeholder: '请选择${title}', placeholder: '请选择${title}',
}, },
// {
// title: 'JPopup',
// key: 'popup',
// type: JVXETypes.popup,
// width: '180px',
// popupCode: 'demo',
// field: 'name,sex,age',
// orgFields: 'name,sex,age',
// destFields: 'popup,popup_sex,popup_age'
// },
{ {
key: 'proProcess',
title: '前导工序', title: '前导工序',
dictCode: 'zy_process,process_name,id,id in(select process_id from zy_product_process where product_id="1")', key: 'proProcess',
width: '150', type: JVXETypes.popup,
type: JVXETypes.select width: '180px',
popupCode: 'zy_process',
field: 'id,process_code,process_name,process_describe',
orgFields: 'id,process_code,process_name,process_describe',
destFields: 'popup,id,popup_process_name,popup_process_describe',
},
// {
// key: 'proProcess',
// title: '',
// dictCode: 'zy_process,process_name,id,id in(select process_id from zy_product_process where product_id="1")',
// width: '150',
// type: JVXETypes.select
// },
{
title: '后导工序',
key: 'postProcess',
type: JVXETypes.popup,
width: '180px',
popupCode: 'zy_process',
field: 'id,process_code,process_name,process_describe',
orgFields: 'id,process_code,process_name,process_describe',
destFields: 'popup,id,popup_process_name,popup_process_describe',
}, },
{key: 'postProcess', title: '后导工序', width: '150', type: JVXETypes.select},
{key: 'inputProduct', title: '输入产品', width: '150', type: JVXETypes.input}, {key: 'inputProduct', title: '输入产品', width: '150', type: JVXETypes.input},
{key: 'semiProduct', title: '成品/半成品', width: '150', type: JVXETypes.input}, {key: 'semiProduct', title: '成品/半成品', width: '150', type: JVXETypes.input},
], ],

@ -1,422 +1,422 @@
<template> <!--<template>-->
<a-card :bordered="false"> <!-- <a-card :bordered="false">-->
<div class="table-operator"> <!-- <div class="table-operator">-->
<a-button type="primary" icon="download" @click="handleExportXls('计划工序')">导出</a-button> <!-- <a-button type="primary" icon="download" @click="handleExportXls('计划工序')">导出</a-button>-->
<a-button type="primary" @click="fanHui()">保存</a-button> <!-- <a-button type="primary" @click="fanHui()">保存</a-button>-->
<a-button type="primary" @click="fanHui()">返回</a-button> <!-- <a-button type="primary" @click="fanHui()">返回</a-button>-->
</div> <!-- </div>-->
<!-- table区域-begin --> <!-- &lt;!&ndash; table区域-begin &ndash;&gt;-->
<div> <!-- <div>-->
<a-table <!-- <a-table-->
ref="table" <!-- ref="table"-->
size="middle" <!-- size="middle"-->
:scroll="{x:true}" <!-- :scroll="{x:true}"-->
bordered <!-- bordered-->
rowKey="id" <!-- rowKey="id"-->
:columns="columns" <!-- :columns="columns"-->
:dataSource="dataSource" <!-- :dataSource="dataSource"-->
:pagination="ipagination" <!-- :pagination="ipagination"-->
:loading="loading" <!-- :loading="loading"-->
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" <!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"-->
class="j-table-force-nowrap" <!-- class="j-table-force-nowrap"-->
@change="handleTableChange"> <!-- @change="handleTableChange">-->
<span slot="stationList" slot-scope="stationList"> <!-- <span slot="stationList" slot-scope="stationList">-->
<a-select @change="getToolAndMachine" style="width: 180px" placeholder="请选择"> <!-- <a-select @change="getToolAndMachine" style="width: 180px" placeholder="请选择">-->
<a-select-option v-for="item in stationList" :value="item.id"> <!-- <a-select-option v-for="item in stationList" :value="item.id">-->
{{ item.stationName }} <!-- {{ item.stationName }}-->
</a-select-option> <!-- </a-select-option>-->
</a-select> <!-- </a-select>-->
</span> <!-- </span>-->
<span slot="toolsList" slot-scope="toolsList"> <!-- <span slot="toolsList" slot-scope="toolsList">-->
<a-select style="width: 180px" placeholder="请选择"> <!-- <a-select style="width: 180px" placeholder="请选择">-->
<a-select-option v-for="item in toolsList" :value="item.id"> <!-- <a-select-option v-for="item in toolsList" :value="item.id">-->
{{ item.name }} <!-- {{ item.name }}-->
</a-select-option> <!-- </a-select-option>-->
</a-select> <!-- </a-select>-->
</span> <!-- </span>-->
<span slot="machineList" slot-scope="machineList"> <!-- <span slot="machineList" slot-scope="machineList">-->
<a-select style="width: 180px" placeholder="请选择"> <!-- <a-select style="width: 180px" placeholder="请选择">-->
<a-select-option v-for="item in machineList" :value="item.id"> <!-- <a-select-option v-for="item in machineList" :value="item.id">-->
{{ item.name }} <!-- {{ item.name }}-->
</a-select-option> <!-- </a-select-option>-->
</a-select> <!-- </a-select>-->
</span> <!-- </span>-->
<span slot="proProcess" slot-scope="proProcess"> <!-- <span slot="proProcess" slot-scope="proProcess">-->
<j-search-select-tag type="list" dict="zy_process,process_name,id,id in(select process_id from zy_product_process where product_id='1')" pidField="pid" <!-- <j-search-select-tag type="list" dict="zy_process,process_name,id,id in(select process_id from zy_product_process where product_id='1')" pidField="pid"-->
pidValue="" placeholder="前导工序"/> <!-- pidValue="" placeholder="前导工序"/>-->
</span> <!-- </span>-->
<span slot="postProcess" slot-scope="postProcess"> <!-- <span slot="postProcess" slot-scope="postProcess">-->
<j-search-select-tag type="list" dict="zy_process,process_name,id,id in(select process_id from zy_product_process where product_id='1')" pidField="pid" <!-- <j-search-select-tag type="list" dict="zy_process,process_name,id,id in(select process_id from zy_product_process where product_id='1')" pidField="pid"-->
pidValue="" placeholder="后导工序"/> <!-- pidValue="" placeholder="后导工序"/>-->
</span> <!-- </span>-->
<span slot="inputProduct" slot-scope="inputProduct"> <!-- <span slot="inputProduct" slot-scope="inputProduct">-->
<a-input v-model="processIds" placeholder="请输入产品"></a-input> <!-- <a-input v-model="processIds" placeholder="请输入产品"></a-input>-->
</span> <!-- </span>-->
<span slot="semiProduct" slot-scope="semiProduct"> <!-- <span slot="semiProduct" slot-scope="semiProduct">-->
<a-input v-model="semiProduct" placeholder="请输入成品/半成品"></a-input> <!-- <a-input v-model="semiProduct" placeholder="请输入成品/半成品"></a-input>-->
</span> <!-- </span>-->
<!-- <template <!-- &lt;!&ndash; <template-->
v-for="col in columns" <!-- v-for="col in columns"-->
:slot="col" <!-- :slot="col"-->
slot-scope="text, record, index" <!-- slot-scope="text, record, index"-->
> <!-- >-->
<div :key="col"> <!-- <div :key="col">-->
<a-input <!-- <a-input-->
v-if="record.editable" <!-- v-if="record.editable"-->
style="margin: -5px 0" <!-- style="margin: -5px 0"-->
:value="text" <!-- :value="text"-->
@change="e => handleChange(e.target.value, record.key, col)" <!-- @change="e => handleChange(e.target.value, record.key, col)"-->
/> <!-- />-->
<template v-else> <!-- <template v-else>-->
{{ text }} <!-- {{ text }}-->
</template> <!-- </template>-->
</div> <!-- </div>-->
</template> <!-- </template>-->
<template slot="operation" slot-scope="text, record, index"> <!-- <template slot="operation" slot-scope="text, record, index">-->
<div class="editable-row-operations"> <!-- <div class="editable-row-operations">-->
<span v-if="record.editable"> <!-- <span v-if="record.editable">-->
<a @click="() => save(record)">Save</a> <!-- <a @click="() => save(record)">Save</a>-->
<a-popconfirm title="Sure to cancel?" @confirm="() => cancel(record)"> <!-- <a-popconfirm title="Sure to cancel?" @confirm="() => cancel(record)">-->
<a>Cancel</a> <!-- <a>Cancel</a>-->
</a-popconfirm> <!-- </a-popconfirm>-->
</span> <!-- </span>-->
<span> <!-- <span>-->
<a :disabled="editingKey !== ''" @click="() => edit(index)">Edit66</a> <!-- <a :disabled="editingKey !== ''" @click="() => edit(index)">Edit66</a>-->
</span> b <!-- </span> b-->
</div> <!-- </div>-->
</template>--> <!-- </template>&ndash;&gt;-->
</a-table> <!-- </a-table>-->
</div> <!-- </div>-->
<div class="table-operator" style="text-align: right"> <!-- <div class="table-operator" style="text-align: right">-->
<a-button type="primary" @click="fanHui()">提交</a-button> <!-- <a-button type="primary" @click="fanHui()">提交</a-button>-->
</div> <!-- </div>-->
<!-- <zy-plan-process-modal @valueChange="valueChange" ref="modalForm" @ok="modalFormOk"></zy-plan-process-modal>--> <!-- &lt;!&ndash; <zy-plan-process-modal @valueChange="valueChange" ref="modalForm" @ok="modalFormOk"></zy-plan-process-modal>&ndash;&gt;-->
</a-card> <!-- </a-card>-->
</template> <!--</template>-->
<script> <!--<script>-->
import '@/assets/less/TableExpand.less' <!--import '@/assets/less/TableExpand.less'-->
import {mixinDevice} from '@/utils/mixin' <!--import {mixinDevice} from '@/utils/mixin'-->
import {JeecgListMixin} from '@/mixins/JeecgListMixin' <!--import {JeecgListMixin} from '@/mixins/JeecgListMixin'-->
import ZyPlanProcessModal from './modules/ZyPlanProcessModal2' <!--import ZyPlanProcessModal from './modules/ZyPlanProcessModal2'-->
import {getAction} from "@api/manage"; <!--import {getAction} from "@api/manage";-->
import {filterObj} from "@/utils/util"; <!--import {filterObj} from "@/utils/util";-->
export default { <!--export default {-->
name: 'ZyPlanProcessList', <!-- name: 'ZyPlanProcessList',-->
mixins: [JeecgListMixin, mixinDevice], <!-- mixins: [JeecgListMixin, mixinDevice],-->
components: { <!-- components: {-->
ZyPlanProcessModal <!-- ZyPlanProcessModal-->
}, <!-- },-->
data() { <!-- data() {-->
// this.cacheData = this.dataSource.map(item => ({ ...item })); <!-- // this.cacheData = this.dataSource.map(item => ({ ...item }));-->
this.cacheData = []; <!-- this.cacheData = [];-->
return { <!-- return {-->
description: '生产计划工序管理页面', <!-- description: '生产计划工序管理页面',-->
// columns, <!-- // columns,-->
// <!-- // -->
columns: [ <!-- columns: [-->
{ <!-- {-->
title: '#', <!-- title: '#',-->
dataIndex: 'productProcessId', <!-- dataIndex: 'productProcessId',-->
key: 'rowIndex', <!-- key: 'rowIndex',-->
width: 60, <!-- width: 60,-->
align: "center", <!-- align: "center",-->
customRender: function (t, r, index) { <!-- customRender: function (t, r, index) {-->
return parseInt(index) + 1; <!-- return parseInt(index) + 1;-->
} <!-- }-->
}, <!-- },-->
/* { <!-- /* {-->
title: '计划id', <!-- title: '计划id',-->
align: "center", <!-- align: "center",-->
dataIndex: 'planId' <!-- dataIndex: 'planId'-->
},*/ <!-- },*/-->
{ <!-- {-->
title: '工单编号', <!-- title: '工单编号',-->
align: "center", <!-- align: "center",-->
dataIndex: 'workOrderId', <!-- dataIndex: 'workOrderId',-->
scopedSlots: {customRender: 'workOrderId'} <!-- scopedSlots: {customRender: 'workOrderId'}-->
}, <!-- },-->
/*{ <!-- /*{-->
title: '产品id', <!-- title: '产品id',-->
align: "center", <!-- align: "center",-->
dataIndex: 'productId' <!-- dataIndex: 'productId'-->
}, <!-- },-->
{ <!-- {-->
title: '工序id', <!-- title: '工序id',-->
align: "center", <!-- align: "center",-->
dataIndex: 'productProcessId' <!-- dataIndex: 'productProcessId'-->
},*/ <!-- },*/-->
{ <!-- {-->
title: '产品', <!-- title: '产品',-->
align: "center", <!-- align: "center",-->
dataIndex: 'productName' <!-- dataIndex: 'productName'-->
}, <!-- },-->
{ <!-- {-->
title: '车间', <!-- title: '车间',-->
align: "center", <!-- align: "center",-->
dataIndex: 'departName' <!-- dataIndex: 'departName'-->
}, <!-- },-->
{ <!-- {-->
title: '工序', <!-- title: '工序',-->
align: "center", <!-- align: "center",-->
dataIndex: 'processName' <!-- dataIndex: 'processName'-->
}, <!-- },-->
{ <!-- {-->
title: '工位列表', <!-- title: '工位列表',-->
align: "center", <!-- align: "center",-->
dataIndex: 'stationList', <!-- dataIndex: 'stationList',-->
width: 150, <!-- width: 150,-->
scopedSlots: {customRender: 'stationList'} <!-- scopedSlots: {customRender: 'stationList'}-->
}, <!-- },-->
{ <!-- {-->
title: '工位工具列表', <!-- title: '工位工具列表',-->
align: "center", <!-- align: "center",-->
dataIndex: 'toolsList', <!-- dataIndex: 'toolsList',-->
width: 150, <!-- width: 150,-->
// scopedSlots: {customRender: this.toolsList} <!-- // scopedSlots: {customRender: this.toolsList}-->
scopedSlots: {customRender: 'toolsList'} <!-- scopedSlots: {customRender: 'toolsList'}-->
}, <!-- },-->
{ <!-- {-->
title: '工具设备列表', <!-- title: '工具设备列表',-->
align: "center", <!-- align: "center",-->
dataIndex: 'machineList', <!-- dataIndex: 'machineList',-->
width: 150, <!-- width: 150,-->
scopedSlots: {customRender: 'machineList'} <!-- scopedSlots: {customRender: 'machineList'}-->
}, <!-- },-->
{ <!-- {-->
title: '前导工序', <!-- title: '前导工序',-->
align: "center", <!-- align: "center",-->
dataIndex: 'proProcess', <!-- dataIndex: 'proProcess',-->
width: 150, <!-- width: 150,-->
scopedSlots: {customRender: 'proProcess'} <!-- scopedSlots: {customRender: 'proProcess'}-->
}, <!-- },-->
{ <!-- {-->
title: '后导工序', <!-- title: '后导工序',-->
align: "center", <!-- align: "center",-->
dataIndex: 'proProcess', <!-- dataIndex: 'proProcess',-->
width: 150, <!-- width: 150,-->
scopedSlots: {customRender: 'postProcess'} <!-- scopedSlots: {customRender: 'postProcess'}-->
}, <!-- },-->
{ <!-- {-->
title: '输入产品', <!-- title: '输入产品',-->
align: "center", <!-- align: "center",-->
dataIndex: 'inputProduct', <!-- dataIndex: 'inputProduct',-->
width: 150, <!-- width: 150,-->
scopedSlots: {customRender: 'inputProduct'} <!-- scopedSlots: {customRender: 'inputProduct'}-->
}, <!-- },-->
{ <!-- {-->
title: '成品/半成品', <!-- title: '成品/半成品',-->
align: "center", <!-- align: "center",-->
dataIndex: 'semiProduct', <!-- dataIndex: 'semiProduct',-->
width: 150, <!-- width: 150,-->
scopedSlots: {customRender: 'semiProduct'} <!-- scopedSlots: {customRender: 'semiProduct'}-->
}, <!-- },-->
// { <!-- // {-->
// title: 'operation', <!-- // title: 'operation',-->
// dataIndex: 'operation', <!-- // dataIndex: 'operation',-->
// scopedSlots: {customRender: 'operation'}, <!-- // scopedSlots: {customRender: 'operation'},-->
// }, <!-- // },-->
// { <!-- // {-->
// title: '', <!-- // title: '',-->
// dataIndex: 'action', <!-- // dataIndex: 'action',-->
// align: "center", <!-- // align: "center",-->
// fixed: "right", <!-- // fixed: "right",-->
// width: 147, <!-- // width: 147,-->
// scopedSlots: {customRender: 'action'} <!-- // scopedSlots: {customRender: 'action'}-->
// } <!-- // }-->
], <!-- ],-->
editingKey: '', <!-- editingKey: '',-->
url: { <!-- url: {-->
list: "/org.jeecg.modules.productplan/zyPlanProcess/getProcessDatalist", <!-- list: "/org.jeecg.modules.productplan/zyPlanProcess/getProcessDatalist",-->
stationToolslist: "/stationTool/list", <!-- stationToolslist: "/stationTool/list",-->
stationMachinelist: "/stationMachine/list", <!-- stationMachinelist: "/stationMachine/list",-->
// productPlanlist: "/org.jeecg.modules.productplan/zyProductPlan/list", <!-- // productPlanlist: "/org.jeecg.modules.productplan/zyProductPlan/list",-->
delete: "/org.jeecg.modules.productplan/zyPlanProcess/delete", <!-- delete: "/org.jeecg.modules.productplan/zyPlanProcess/delete",-->
// deleteBatch: "/org.jeecg.modules.productplan/zyPlanProcess/deleteBatch", <!-- // deleteBatch: "/org.jeecg.modules.productplan/zyPlanProcess/deleteBatch",-->
// exportXlsUrl: "/org.jeecg.modules.productplan/zyPlanProcess/exportXls", <!-- // exportXlsUrl: "/org.jeecg.modules.productplan/zyPlanProcess/exportXls",-->
// importExcelUrl: "org.jeecg.modules.productplan/zyPlanProcess/importExcel", <!-- // importExcelUrl: "org.jeecg.modules.productplan/zyPlanProcess/importExcel",-->
}, <!-- },-->
loadRouteType: false, <!-- loadRouteType: false,-->
planId: "", <!-- planId: "",-->
dictOptions: {}, <!-- dictOptions: {},-->
// superFieldList: [], <!-- // superFieldList: [],-->
toolsList: [], <!-- toolsList: [],-->
machineList: [], <!-- machineList: [],-->
} <!-- }-->
}, <!-- },-->
created() { <!-- created() {-->
this.getSuperFieldList(); <!-- this.getSuperFieldList();-->
}, <!-- },-->
computed: { <!-- computed: {-->
importExcelUrl: function () { <!-- importExcelUrl: function () {-->
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; <!-- return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;-->
}, <!-- },-->
}, <!-- },-->
methods: { <!-- methods: {-->
fanHui() { <!-- fanHui() {-->
this.$router.push({ <!-- this.$router.push({-->
path: '/productplan/ZyPlanProcessList', <!-- path: '/productplan/ZyPlanProcessList',-->
}); <!-- });-->
}, <!-- },-->
getToolAndMachine(stationId) { <!-- getToolAndMachine(stationId) {-->
// alert("stationId=" + stationId); <!-- // alert("stationId=" + stationId);-->
getAction(this.url.stationToolslist, {"stationId": stationId}).then((res) => { <!-- getAction(this.url.stationToolslist, {"stationId": stationId}).then((res) => {-->
if (res.success) { <!-- if (res.success) {-->
this.toolsList = res.result.records || res.result; <!-- this.toolsList = res.result.records || res.result;-->
console.log("toolsList", JSON.stringify(this.toolsList)) <!-- console.log("toolsList", JSON.stringify(this.toolsList))-->
} else { <!-- } else {-->
this.$message.warning(res.message) <!-- this.$message.warning(res.message)-->
} <!-- }-->
}); <!-- });-->
getAction(this.url.stationMachinelist, {"stationId": stationId}).then((res) => { <!-- getAction(this.url.stationMachinelist, {"stationId": stationId}).then((res) => {-->
if (res.success) { <!-- if (res.success) {-->
this.machineList = res.result.records || res.result; <!-- this.machineList = res.result.records || res.result;-->
console.log("machineList", JSON.stringify(this.toolsList)) <!-- console.log("machineList", JSON.stringify(this.toolsList))-->
} else { <!-- } else {-->
this.$message.warning(res.message) <!-- this.$message.warning(res.message)-->
} <!-- }-->
}); <!-- });-->
}, <!-- },-->
// <!-- //-->
loadParameter() { <!-- loadParameter() {-->
if (this.loadRouteType === false) { <!-- if (this.loadRouteType === false) {-->
this.planId = this.$route.query.planId; <!-- this.planId = this.$route.query.planId;-->
// this.biaoTi = this.$route.query.styleNames+""; <!-- // this.biaoTi = this.$route.query.styleNames+"";-->
console.log("*******传递的planId:" + this.planId) <!-- console.log("*******传递的planId:" + this.planId)-->
this.loadRouteType = true; <!-- this.loadRouteType = true;-->
} <!-- }-->
}, <!-- },-->
loadData(arg) { <!-- loadData(arg) {-->
if (!this.url.list) { <!-- if (!this.url.list) {-->
this.$message.error("请设置url.list属性!") <!-- this.$message.error("请设置url.list属性!")-->
return <!-- return-->
} <!-- }-->
// 1 <!-- // 1-->
if (arg === 1) { <!-- if (arg === 1) {-->
this.ipagination.current = 1; <!-- this.ipagination.current = 1;-->
} <!-- }-->
this.loadParameter(); <!-- this.loadParameter();-->
var params = this.getQueryParams();// <!-- var params = this.getQueryParams();//-->
this.loading = true; <!-- this.loading = true;-->
console.log("----------------the params:", params); <!-- console.log("&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;&#45;the params:", params);-->
getAction(this.url.list, params).then((res) => { <!-- getAction(this.url.list, params).then((res) => {-->
if (res.success) { <!-- if (res.success) {-->
this.dataSource = res.result.records || res.result; <!-- this.dataSource = res.result.records || res.result;-->
if (res.result.total) { <!-- if (res.result.total) {-->
this.ipagination.total = res.result.total; <!-- this.ipagination.total = res.result.total;-->
} else { <!-- } else {-->
this.ipagination.total = 0; <!-- this.ipagination.total = 0;-->
} <!-- }-->
} else { <!-- } else {-->
this.$message.warning(res.message) <!-- this.$message.warning(res.message)-->
} <!-- }-->
}).finally(() => { <!-- }).finally(() => {-->
// this.dataSource.forEach(item => { <!-- // this.dataSource.forEach(item => {-->
// item['stationName'] = this.stationName; <!-- // item['stationName'] = this.stationName;-->
// item['stationNum'] = this.stationNum; <!-- // item['stationNum'] = this.stationNum;-->
// }) <!-- // })-->
this.loading = false <!-- this.loading = false-->
}) <!-- })-->
}, <!-- },-->
getQueryParams() { <!-- getQueryParams() {-->
// <!-- //-->
let sqp = {} <!-- let sqp = {}-->
if (this.superQueryParams) { <!-- if (this.superQueryParams) {-->
sqp['superQueryParams'] = encodeURI(this.superQueryParams) <!-- sqp['superQueryParams'] = encodeURI(this.superQueryParams)-->
sqp['superQueryMatchType'] = this.superQueryMatchType <!-- sqp['superQueryMatchType'] = this.superQueryMatchType-->
} <!-- }-->
var param = Object.assign(sqp, this.queryParam, this.isorter, this.filters); <!-- var param = Object.assign(sqp, this.queryParam, this.isorter, this.filters);-->
param.field = this.getQueryField(); <!-- param.field = this.getQueryField();-->
param.pageNo = this.ipagination.current; <!-- param.pageNo = this.ipagination.current;-->
param.pageSize = this.ipagination.pageSize; <!-- param.pageSize = this.ipagination.pageSize;-->
param.planId = this.planId; <!-- param.planId = this.planId;-->
return filterObj(param); <!-- return filterObj(param);-->
}, <!-- },-->
// initDictConfig() { <!-- // initDictConfig() {-->
// }, <!-- // },-->
getSuperFieldList() { <!-- getSuperFieldList() {-->
// let fieldList = []; <!-- // let fieldList = [];-->
// fieldList.push({type: 'string', value: 'id', text: 'id', dictCode: ''}) <!-- // fieldList.push({type: 'string', value: 'id', text: 'id', dictCode: ''})-->
// fieldList.push({type: 'string', value: 'planId', text: 'id', dictCode: ''}) <!-- // fieldList.push({type: 'string', value: 'planId', text: 'id', dictCode: ''})-->
// fieldList.push({type: 'string', value: 'productName', text: 'id', dictCode: ''}) <!-- // fieldList.push({type: 'string', value: 'productName', text: 'id', dictCode: ''})-->
// fieldList.push({type: 'string', value: 'stationId', text: 'id', dictCode: ''}) <!-- // fieldList.push({type: 'string', value: 'stationId', text: 'id', dictCode: ''})-->
// fieldList.push({type: 'string', value: 'machineIds', text: 'id', dictCode: ''}) <!-- // fieldList.push({type: 'string', value: 'machineIds', text: 'id', dictCode: ''})-->
// fieldList.push({type: 'string', value: 'toolsIds', text: 'id', dictCode: ''}) <!-- // fieldList.push({type: 'string', value: 'toolsIds', text: 'id', dictCode: ''})-->
// fieldList.push({type: 'string', value: 'productProcessId', text: 'id', dictCode: ''}) <!-- // fieldList.push({type: 'string', value: 'productProcessId', text: 'id', dictCode: ''})-->
// fieldList.push({type: 'string', value: 'productProcessId', text: 'id', dictCode: ''}) <!-- // fieldList.push({type: 'string', value: 'productProcessId', text: 'id', dictCode: ''})-->
// fieldList.push({type: 'string', value: 'userIds', text: 'id', dictCode: ''}) <!-- // fieldList.push({type: 'string', value: 'userIds', text: 'id', dictCode: ''})-->
// this.superFieldList = fieldList <!-- // this.superFieldList = fieldList-->
}, <!-- },-->
// handleChange(value, key, column) { <!-- // handleChange(value, key, column) {-->
// const newData = [...this.data]; <!-- // const newData = [...this.data];-->
// const target = newData.find(item => key === item.key); <!-- // const target = newData.find(item => key === item.key);-->
// if (target) { <!-- // if (target) {-->
// target[column] = value; <!-- // target[column] = value;-->
// this.data = newData; <!-- // this.data = newData;-->
// } <!-- // }-->
// }, <!-- // },-->
edit(key) { <!-- edit(key) {-->
alert("the edit() record =" + JSON.stringify(key)) <!-- alert("the edit() record =" + JSON.stringify(key))-->
// const newData = [...this.data]; <!-- // const newData = [...this.data];-->
const newData = [...this.dataSource]; <!-- const newData = [...this.dataSource];-->
// const newData = record; <!-- // const newData = record;-->
console.log("the edit() newData =", JSON.stringify(newData)); <!-- console.log("the edit() newData =", JSON.stringify(newData));-->
// this.editingKey = '0'; <!-- // this.editingKey = '0';-->
// record.editable = true; <!-- // record.editable = true;-->
// const target = newData.find(item => key === item.key); <!-- // const target = newData.find(item => key === item.key);-->
const target = newData[0]; <!-- const target = newData[0];-->
console.log("the edit() target =", JSON.stringify(target)); <!-- console.log("the edit() target =", JSON.stringify(target));-->
this.editingKey = key; <!-- this.editingKey = key;-->
console.log("the edit() editingKey =", this.editingKey); <!-- console.log("the edit() editingKey =", this.editingKey);-->
if (target) { <!-- if (target) {-->
// debugger; <!-- // debugger;-->
target.editable = true; <!-- target.editable = true;-->
this.dataSource = newData; <!-- this.dataSource = newData;-->
} <!-- }-->
}, <!-- },-->
save(key) { <!-- save(key) {-->
// const newData = [...this.data]; <!-- // const newData = [...this.data];-->
const newData = this.dataSource; <!-- const newData = this.dataSource;-->
console.log("save() newData=", JSON.stringify(newData)) <!-- console.log("save() newData=", JSON.stringify(newData))-->
const newCacheData = [...this.cacheData]; <!-- const newCacheData = [...this.cacheData];-->
const target = newData.find(item => key === item.key); <!-- const target = newData.find(item => key === item.key);-->
const targetCache = newCacheData.find(item => key === item.key); <!-- const targetCache = newCacheData.find(item => key === item.key);-->
if (target && targetCache) { <!-- if (target && targetCache) {-->
delete target.editable; <!-- delete target.editable;-->
this.dataSource = newData; <!-- this.dataSource = newData;-->
Object.assign(targetCache, target); <!-- Object.assign(targetCache, target);-->
this.cacheData = newCacheData; <!-- this.cacheData = newCacheData;-->
} <!-- }-->
this.editingKey = ''; <!-- this.editingKey = '';-->
}, <!-- },-->
cancel(key) { <!-- cancel(key) {-->
const newData = this.dataSource; <!-- const newData = this.dataSource;-->
const target = newData.find(item => key === item.key); <!-- const target = newData.find(item => key === item.key);-->
this.editingKey = ''; <!-- this.editingKey = '';-->
if (target) { <!-- if (target) {-->
Object.assign(target, this.cacheData.find(item => key === item.key)); <!-- Object.assign(target, this.cacheData.find(item => key === item.key));-->
delete target.editable; <!-- delete target.editable;-->
this.dataSource = newData; <!-- this.dataSource = newData;-->
} <!-- }-->
}, <!-- },-->
}, <!-- },-->
}; <!--};-->
</script> <!--</script>-->
<style scoped> <!--<style scoped>-->
.editable-row-operations a { <!--.editable-row-operations a {-->
margin-right: 8px; <!-- margin-right: 8px;-->
} <!--}-->
</style> <!--</style>-->

@ -1,76 +1,27 @@
<template> <template>
<a-card :bordered="false"> <a-card :bordered="false">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
</a-row>
</a-form>
</div>
<!-- 查询区域-END -->
<div class="table-operator"> <div class="table-operator">
<!-- <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button>--> <a-button type="primary" icon="download" @click="handleExportXls('计划工序')">导出</a-button>
<!-- <a-button @click="zyStyleFabricHandleAdd(stationId)" type="primary" icon="plus">新增</a-button>--> <!-- <a-button type="primary" @click="handleTableSave($event)">保存</a-button>-->
<a-button type="primary" icon="download" @click="handleExportXls('1')">导出</a-button>
<a-button type="primary" @click="fanHui()">返回</a-button> <a-button type="primary" @click="fanHui()">返回</a-button>
</div> </div>
<!-- table区域-begin --> <!-- table区域-begin -->
<div> <div>
<!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">--> <j-vxe-table
<!-- <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a--> ref="xTable"
<!-- style="font-weight: 600">{{ selectedRowKeys.length }}</a>--> toolbar
<!-- <a style="margin-left: 24px" @click="onClearSelected">清空</a>--> :toolbarConfig="toolbarConfig"
<!-- </div>--> row-number
row-selection
<a-table keep-source
ref="table" :loading="loading"
size="middle"
:scroll="{x:true}"
bordered
rowKey="id"
:columns="columns" :columns="columns"
@selectRowChange="handleSelectRowChange"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="ipagination" @save="handleTableSave"
:loading="loading" />
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
class="j-table-force-nowrap"
@change="handleTableChange">
<!-- <span slot="machineIds_dictText" slot-scope="text, record">-->
<span slot="groupMemberList" slot-scope="record,text">
<a-select mode="multiple"
@select="selectData($event,text)"
style="width: 220px"
placeholder="请选择">
<a-select-option v-for="item in record" :value="item.id">
{{ item.userId }}
</a-select-option>
</a-select>
</span>
<!-- <span slot="toolsList" slot-scope="toolsList">-->
<!-- <a-select style="width: 180px" placeholder="请选择">-->
<!-- <a-select-option v-for="item in toolsList" :value="item.id">-->
<!-- {{ item.name }}-->
<!-- </a-select-option>-->
<!-- </a-select>-->
<!-- </span>-->
<!-- <span slot="machineList" slot-scope="machineList">-->
<!-- <a-select style="width: 180px" placeholder="请选择">-->
<!-- <a-select-option v-for="item in machineList" :value="item.id">-->
<!-- {{ item.name }}-->
<!-- </a-select-option>-->
<!-- </a-select>-->
<!-- </span>-->
</a-table>
</div>
<div class="table-operator" style="text-align: right">
<a-button type="primary" @click="saveBatch">提交</a-button>
</div> </div>
<!-- <zy-plan-process-modal @valueChange="valueChange" ref="modalForm" @ok="modalFormOk"></zy-plan-process-modal>-->
</a-card> </a-card>
</template> </template>
@ -79,136 +30,88 @@
import '@/assets/less/TableExpand.less' import '@/assets/less/TableExpand.less'
import {mixinDevice} from '@/utils/mixin' import {mixinDevice} from '@/utils/mixin'
import {JeecgListMixin} from '@/mixins/JeecgListMixin' import {JeecgListMixin} from '@/mixins/JeecgListMixin'
import ZyPlanProcessModal from './modules/ZyPlanProcessModal2' import {getAction, postAction} from "@api/manage";
import {getAction, httpAction, downFile, postAction} from "@api/manage"; import {filterObj, pushIfNotExist, randomNumber, randomUUID} from "@/utils/util";
import {filterObj} from "@/utils/util"; import {JVXETypes} from '@/components/jeecg/JVxeTable'
export default { export default {
name: 'ZyPlanProcessList', name: 'ZyPlanProcessDataList',
mixins: [JeecgListMixin, mixinDevice], mixins: [JeecgListMixin, mixinDevice],
components: {
ZyPlanProcessModal
},
data() { data() {
return { return {
description: '生产计划班组管理页面', toolbarConfig: {
// // add remove clearSelection
btn: ['save']
},
description: '生产计划工序管理页面',
loading: false,
//
// pagination: {
// //
// current: 1,
// //
// pageSize: 10,
// //
// pageSizeOptions: ['10', '20', '30', '50'],
// // 0
// total: 0,
// },
//
// selectedRows: [],
//
dataSource: [],
// columns,
columns: [ columns: [
{ {key: 'workOrderId', title: '工单编号', width: '180px'},
title: '#', {key: 'productName', title: '产品名称', width: '180px'},
dataIndex: '', {key: 'departName', title: '车间名称', width: '180px'},
key: 'rowIndex', {key: 'processName', title: '工序名称', width: '180px'},
width: 60, {key: 'groupName', title: '班组名称', width: '180px'},
align: "center",
customRender: function (t, r, index) {
return parseInt(index) + 1;
}
},
// {
// title: 'id',
// align: "center",
// dataIndex: 'planId'
// },
{
title: '工单编号',
align: "center",
dataIndex: 'workOrderId'
},
{
title: '产品id',
align: "center",
dataIndex: 'productId'
},
{
title: '产品',
align: "center",
dataIndex: 'productName'
},
{
title: '车间',
align: "center",
dataIndex: 'departName'
},
{
title: '工序',
align: "center",
dataIndex: 'processName'
},
{ {
title: '班组成员', title: '班组成员',
align: "center", key: 'userIds',
dataIndex: 'groupMemberList', type: JVXETypes.selectMultiple,
width: 150, width: '200px',
scopedSlots: {customRender: 'groupMemberList'} options: [],
placeholder: '请选择${title}',
}, },
// {
// title: '',
// align: "center",
// dataIndex: 'toolsList',
// width: 150,
// scopedSlots: {customRender: 'toolsList'}
// // scopedSlots: {customRender: this.toolsList}
// },
// {
// title: '',
// align: "center",
// dataIndex: 'machineList',
// width: 150,
// scopedSlots: {customRender: 'machineList'}
// },
{
title: '操作',
dataIndex: 'action',
align: "center",
fixed: "right",
width: 147,
scopedSlots: {customRender: 'action'}
}
], ],
url: { url: {
list: "/org.jeecg.modules.productplan/zyPlanProcess/getTeamDatalist", list: "/org.jeecg.modules.productplan/zyPlanProcess/getTeamDatalist",
// getTeamDatalistByPlanId: "/org.jeecg.modules.productplan/zyPlanProcess/getTeamDatalistByPlanId", // addProcessBatch: "/org.jeecg.modules.productplan/zyPlanProcess/addProcessBatch",
groupMemberlist: "/groupxMember/list", updateTeamBatch: "/org.jeecg.modules.productplan/zyPlanProcess/addTeamBatch",
addTeamBatch: "/org.jeecg.modules.productplan/zyPlanProcess/addTeamBatch",
// stationMachinelist: "/stationMachine/list",
// productPlanlist: "/org.jeecg.modules.productplan/zyProductPlan/list",
delete: "/org.jeecg.modules.productplan/zyPlanProcess/delete",
// deleteBatch: "/org.jeecg.modules.productplan/zyPlanProcess/deleteBatch",
// exportXlsUrl: "/org.jeecg.modules.productplan/zyPlanProcess/exportXls",
// importExcelUrl: "org.jeecg.modules.productplan/zyPlanProcess/importExcel",
}, },
loadRouteType: false, loadRouteType: false,
planId: "", planId: "",
dictOptions: {}, groupMemberList: [],
superFieldList: [], clickTrue: true,
toolsList: [],
machineList: [],
processIds: [],
memberIds: [],
} }
}, },
created() { created() {
this.getSuperFieldList();
// this.model = Object.assign({}, record);
},
computed: {
importExcelUrl: function () {
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
},
}, },
methods: { methods: {
saveBatch() { //
// alert("") handleTableSave({$table, target}) {
postAction(this.url.addTeamBatch, this.processIds).then((res) => { console.log("保存开始-----")
if (res.success) { //
this.$message.success(res.message) $table.validate().then((errMap) => {
this.$emit('ok') //
this.close() if (!errMap) {
} else { //
this.$message.warning(res.message) let tableData = target.getTableData()
console.log('当前保存的数据是:', tableData)
//
this.loading = true
postAction(this.url.updateTeamBatch, tableData).then(res => {
if (res.success) {
this.$message.success(`保存成功!`)
} else {
this.$message.warn(`保存失败:` + res.message)
}
}).finally(() => {
this.loading = false
})
} }
}).finally(() => {
this.confirmLoading = false
}) })
}, },
fanHui() { fanHui() {
@ -216,16 +119,7 @@ export default {
path: '/productplan/ZyPlanTeamList', path: '/productplan/ZyPlanTeamList',
}); });
}, },
//$eventkey
selectData($event, row) {
console.log("group_member key $event=" + $event);
// console.log("group_member key row=" + JSON.stringify(row));
console.log("productProcessId=" + JSON.stringify(row.productProcessId));
this.processIds.push({"processId": row.productProcessId, "userIds": $event});
// for (var i = 0; i < processIds.length; i++) {
console.log("the processIds length:" + this.processIds.length);
},
// //
loadParameter() { loadParameter() {
if (this.loadRouteType === false) { if (this.loadRouteType === false) {
@ -236,14 +130,16 @@ export default {
} }
}, },
loadData(arg) { loadData(arg) {
console.log("the loadData---------开始");
// var that = this;
if (!this.url.list) { if (!this.url.list) {
this.$message.error("请设置url.list属性!") this.$message.error("请设置url.list属性!")
return return
} }
// 1 // 1
if (arg === 1) { // if (arg === 1) {
this.ipagination.current = 1; // this.ipagination.current = 1;
} // }
this.loadParameter(); this.loadParameter();
var params = this.getQueryParams();// var params = this.getQueryParams();//
this.loading = true; this.loading = true;
@ -251,19 +147,12 @@ export default {
getAction(this.url.list, params).then((res) => { getAction(this.url.list, params).then((res) => {
if (res.success) { if (res.success) {
this.dataSource = res.result.records || res.result; this.dataSource = res.result.records || res.result;
if (res.result.total) { this.groupMemberList = this.dataSource[0].groupMemberList;
this.ipagination.total = res.result.total;
} else {
this.ipagination.total = 0;
}
} else { } else {
// this.stationIdCode = "station,station_name,id,depart_id in (select workshop_id from zy_product_plan where id='" + this.planId + "')";
this.$message.warning(res.message) this.$message.warning(res.message)
} }
}).finally(() => { }).finally(() => {
// this.dataSource.forEach(item => {
// item['stationName'] = this.stationName;
// item['stationNum'] = this.stationNum;
// })
this.loading = false this.loading = false
}) })
}, },
@ -281,51 +170,15 @@ export default {
param.planId = this.planId; param.planId = this.planId;
return filterObj(param); return filterObj(param);
}, },
// initDictConfig() {
// },
getSuperFieldList() {
let fieldList = [];
fieldList.push({type: 'string', value: 'planId', text: '生产计划id', dictCode: ''})
fieldList.push({type: 'string', value: 'stationId', text: '工位id', dictCode: ''})
fieldList.push({type: 'string', value: 'machineIds', text: '设备id列表', dictCode: ''})
fieldList.push({type: 'string', value: 'toolsIds', text: '工具id列表', dictCode: ''})
fieldList.push({type: 'string', value: 'processIds', text: '工序id列表', dictCode: ''})
fieldList.push({type: 'string', value: 'userIds', text: '成员id列表', dictCode: ''})
this.superFieldList = fieldList
},
// jumpPage1(record) {
// this.$router.push({
// // path: '/productplan/ZyProductPlanList',
// path: '/productplan/ZyPlanProcessDataList',
//
// // query: { //
// // 'stationId': record.id,
// // 'stationName': record.stationName,
// // },
// });
// },
// pf(record) {
// this.$router.push({
// path: '/productplan/ZyPlanProcessAddList',
// query: { //
// }
// });
// getAction("productPlanlist", {id: record.id}).then((res) => { //
// if (res.success) { handleSelectRowChange(event) {
// this.$router.push({ console.log("handleSelectRowChange-event:", event)
// path: '/src/views/processassessment/assessmentCourse/ClassOpeningTaskList', const {type, row, column, value, target, $table} = event
// query: { // console.log("groupMemberList-----------", JSON.stringify(this.groupMemberList));
// } // target.$refs.vxe.columns[6].dictCode = this.stationIdCode;
// }); target.$refs.vxe.columns[7].options = this.groupMemberList;
// } else { },
// this.$message.error(res.message) },
// } };
// });
// },
}
}
</script> </script>
<style scoped>
@import '~@assets/less/common.less';
</style>

@ -21,10 +21,15 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="电话">
<a-input placeholder="请输入电话" v-model="queryParam.phoe"></a-input>
</a-form-item>
</a-col>
<!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="仓库存储规则"> <a-form-item label="仓库存储规则">
<j-dict-select-tag placeholder="请选择仓库存储规则" v-model="queryParam.type" dictCode="goods_category"/> <j-dict-select-tag placeholder="请选择仓库存储规则" v-model="queryParam.type" dictCode="goods_category"/>
</a-form-item> </a-form-item>
</a-col> </a-col>-->
<a-col :xl="6" :lg="7" :md="8" :sm="24"> <a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="管理员"> <a-form-item label="管理员">
<j-search-select-tag placeholder="请选择管理员" v-model="queryParam.userId" dict="sys_user,realname,id"/> <j-search-select-tag placeholder="请选择管理员" v-model="queryParam.userId" dict="sys_user,realname,id"/>
@ -165,9 +170,9 @@
} }
}, },
{ {
title:'更新日期', title:'创建日期',
align:"center", align:"center",
dataIndex: 'updateTime' dataIndex: 'createTime'
}, },
{ {
title:'名称', title:'名称',
@ -184,16 +189,21 @@
align:"center", align:"center",
dataIndex: 'exclusive_dictText' dataIndex: 'exclusive_dictText'
}, },
{ /*{
title:'仓库存储规则', title:'仓库存储规则',
align:"center", align:"center",
dataIndex: 'type_dictText' dataIndex: 'type_dictText'
}, },*/
{ {
title:'地址', title:'地址',
align:"center", align:"center",
dataIndex: 'address' dataIndex: 'address'
}, },
{
title:'电话',
align:"center",
dataIndex: 'phoe'
},
{ {
title:'管理员', title:'管理员',
align:"center", align:"center",

@ -4,8 +4,8 @@
<a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail"> <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail">
<a-row> <a-row>
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="更新日期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="updateTime"> <a-form-model-item label="创建日期" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="updateTime">
<j-date placeholder="请选择更新日期" v-model="model.updateTime" :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" style="width: 100%" disabled/> <j-date placeholder="请选择创建日期" v-model="model.createTime" :show-time="true" date-format="YYYY-MM-DD HH:mm:ss" style="width: 100%" disabled/>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24"> <a-col :span="24">
@ -31,16 +31,24 @@
<j-dict-select-tag type="radio" v-model="model.exclusive" dictCode="yn" placeholder="请选择是否专属" /> <j-dict-select-tag type="radio" v-model="model.exclusive" dictCode="yn" placeholder="请选择是否专属" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24"> <!-- <a-col :span="24">
<a-form-model-item label="仓库存储规则" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="type"> <a-form-model-item label="仓库存储规则" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="type">
<j-dict-select-tag type="list" v-model="model.type" dictCode="goods_category" placeholder="请选择仓库存储规则" /> <j-dict-select-tag type="list" v-model="model.type" dictCode="goods_category" placeholder="请选择仓库存储规则" />
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>-->
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="地址" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="address"> <a-form-model-item label="地址" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="address">
<a-input v-model="model.address" placeholder="请输入地址" ></a-input> <a-input v-model="model.address" placeholder="请输入地址" ></a-input>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>
<a-col :span="24">
<a-form-model-item label="电话" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="phoe">
<a-input v-model="model.phoe" placeholder="请输入电话" ></a-input>
</a-form-model-item>
</a-col>
<a-col :span="24"> <a-col :span="24">
<a-form-model-item label="管理员" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="username"> <a-form-model-item label="管理员" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="username">
<j-popup <j-popup
@ -85,7 +93,7 @@
data () { data () {
return { return {
model:{ model:{
exclusive : "1", exclusive : "0",
state : "1" state : "1"
}, },
labelCol: { labelCol: {
@ -98,6 +106,16 @@
}, },
confirmLoading: false, confirmLoading: false,
validatorRules: { validatorRules: {
name: [
{ required: true, message: '请输入名称!'},
],
partmentnae: [
{ required: true, message: '请输入部门!'},
],
phoe: [
{ required: false},
{ pattern: /^1[3456789]\d{9}$/, message: '请输入正确的手机号码!'},
],
}, },
url: { url: {
add: "/starehouse/starehouse/add", add: "/starehouse/starehouse/add",

@ -7,7 +7,8 @@
<a-col :span="12"> <a-col :span="12">
<a-form-model-item label="企业" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="enterpriseId" <a-form-model-item label="企业" :labelCol="labelCol1" :wrapperCol="wrapperCol1" prop="enterpriseId"
class="label"> class="label">
<j-select-depart v-model="model.enterpriseId" multi @change="bianHao"/> <!-- <j-select-depart v-model="model.enterpriseId" multi @change="bianHao"/>-->
<j-select-depart v-model="model.enterpriseId" @change="bianHao"/>
</a-form-model-item> </a-form-model-item>
</a-col> </a-col>

@ -54,8 +54,6 @@ import org.jeecg.common.aspect.annotation.AutoLog;
public class ZyStyleModularController extends JeecgController<ZyStyleModular, IZyStyleModularService> { public class ZyStyleModularController extends JeecgController<ZyStyleModular, IZyStyleModularService> {
@Autowired @Autowired
private IZyStyleModularService zyStyleModularService; private IZyStyleModularService zyStyleModularService;
@Resource
private ZyStyleModularMapper zyStyleModularMapper;
/** /**
* 分页列表查询 * 分页列表查询
* *

@ -2,6 +2,7 @@ package org.jeecg.modules.demo.zyStyleModular.mapper;
import java.util.List; import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.zyStyleModular.entity.ZyStyleModular; import org.jeecg.modules.demo.zyStyleModular.entity.ZyStyleModular;
@ -13,6 +14,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* @Date: 2022-11-14 * @Date: 2022-11-14
* @Version: V1.0 * @Version: V1.0
*/ */
@Mapper
public interface ZyStyleModularMapper extends BaseMapper<ZyStyleModular> { public interface ZyStyleModularMapper extends BaseMapper<ZyStyleModular> {
List<ZyStyleModular> selectListByStyleId(String styleId); List<ZyStyleModular> selectListByStyleId(String styleId);

@ -21,8 +21,7 @@ import java.util.List;
@Service @Service
public class ZyStyleModularServiceImpl extends ServiceImpl<ZyStyleModularMapper, ZyStyleModular> implements IZyStyleModularService { public class ZyStyleModularServiceImpl extends ServiceImpl<ZyStyleModularMapper, ZyStyleModular> implements IZyStyleModularService {
@Autowired
@Resource
private ZyStyleModularMapper zyStyleModularMapper; private ZyStyleModularMapper zyStyleModularMapper;
@Override @Override

@ -38,7 +38,7 @@ import java.util.List;
public class ZyClothsTypeController extends JeecgController<ZyClothsType, IZyClothsTypeService> { public class ZyClothsTypeController extends JeecgController<ZyClothsType, IZyClothsTypeService> {
@Autowired @Autowired
private IZyClothsTypeService zyClothsTypeService; private IZyClothsTypeService zyClothsTypeService;
@Resource @Autowired
private ZyClothsTypeMapper zyClothsTypeMapper; private ZyClothsTypeMapper zyClothsTypeMapper;
/** /**

@ -2,6 +2,7 @@ package org.jeecg.modules.demo.base.mapper;
import java.util.List; import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.base.entity.ZyClothsType; import org.jeecg.modules.demo.base.entity.ZyClothsType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -12,6 +13,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* @Date: 2021-11-10 * @Date: 2021-11-10
* @Version: V1.0 * @Version: V1.0
*/ */
@Mapper
public interface ZyClothsTypeMapper extends BaseMapper<ZyClothsType> { public interface ZyClothsTypeMapper extends BaseMapper<ZyClothsType> {
List<String> selectNumsList(); List<String> selectNumsList();
@ -37,6 +39,6 @@ public interface ZyClothsTypeMapper extends BaseMapper<ZyClothsType> {
String selectNumOne(String id); String selectNumOne(String id);
/**根据type_id拿到类型名称*/ /**根据type_id拿到类型名称*/
@Select("select type_name from zy_cloths_type where type_id = #{id} ") @Select("select type_name from zy_cloths_type where id = #{id} ")
String getNameByTypeId(String id); String getNameByTypeId(String id);
} }

@ -50,6 +50,7 @@ public class ZyClothsTypeServiceImpl extends ServiceImpl<ZyClothsTypeMapper, ZyC
//String sort = zyClothsTypeMapper.sort(); //String sort = zyClothsTypeMapper.sort();
String sort = String.format("%06d", orderNumber()); String sort = String.format("%06d", orderNumber());
String enterpriseName = zyClothsTypeMapper.getEnterprisenameById(enterpriseId); String enterpriseName = zyClothsTypeMapper.getEnterprisenameById(enterpriseId);
//System.out.println("enterpriseName 企业名称: "+enterpriseName);
//根据企业名称拿到企业编号 //根据企业名称拿到企业编号
String enterpriseNums = getEnterpriseNums(enterpriseName); String enterpriseNums = getEnterpriseNums(enterpriseName);
return enterpriseNums+sort; return enterpriseNums+sort;
@ -85,8 +86,10 @@ public class ZyClothsTypeServiceImpl extends ServiceImpl<ZyClothsTypeMapper, ZyC
return "STKD"; return "STKD";
case "黄淮服装定制网": case "黄淮服装定制网":
return "HHDZ"; return "HHDZ";
default:
break;
} }
return enterpriseName; return "NONE";
} }
@Override @Override

@ -74,10 +74,10 @@ public class Starehouse implements Serializable {
@ApiModelProperty(value = "是否专属") @ApiModelProperty(value = "是否专属")
private Integer exclusive; private Integer exclusive;
/**仓库存储规则*/ /**仓库存储规则*/
@Excel(name = "仓库存储规则", width = 15, dicCode = "goods_category") /* @Excel(name = "仓库存储规则", width = 15, dicCode = "goods_category")
@Dict(dicCode = "goods_category") @Dict(dicCode = "goods_category")
@ApiModelProperty(value = "仓库存储规则") @ApiModelProperty(value = "仓库存储规则")
private java.lang.String type; private java.lang.String type;*/
/**地址*/ /**地址*/
@Excel(name = "地址", width = 15) @Excel(name = "地址", width = 15)
@ApiModelProperty(value = "地址") @ApiModelProperty(value = "地址")
@ -96,4 +96,8 @@ public class Starehouse implements Serializable {
@Dict(dicCode = "yn") @Dict(dicCode = "yn")
@ApiModelProperty(value = "库存预定") @ApiModelProperty(value = "库存预定")
private String state; private String state;
/**电话*/
@Excel(name = "电话", width = 15)
@ApiModelProperty(value = "电话")
private java.lang.String phoe;
} }

@ -56,9 +56,9 @@ public class ZyStyleAccessoriesController extends JeecgController<ZyStyleAccesso
@Autowired @Autowired
private IZyStyleAccessoriesService zyStyleAccessoriesService; private IZyStyleAccessoriesService zyStyleAccessoriesService;
@Resource @Autowired
private ZyStyleAccessoriesMapper zyStyleAccessoriesMapper; private ZyStyleAccessoriesMapper zyStyleAccessoriesMapper;
@Resource @Autowired
private ZyStyleFabricMapper zyStyleFabricMapper; private ZyStyleFabricMapper zyStyleFabricMapper;

@ -28,9 +28,9 @@ public class ZyStyleAccessoriesServiceImpl extends ServiceImpl<ZyStyleAccessorie
@Autowired @Autowired
private IZyClothsStyleService zyClothsStyleService; private IZyClothsStyleService zyClothsStyleService;
@Resource @Autowired
private ZyStyleAccessoriesMapper zyStyleAccessoriesMapper; private ZyStyleAccessoriesMapper zyStyleAccessoriesMapper;
@Resource @Autowired
private ZyStyleFabricMapper zyStyleFabricMapper; private ZyStyleFabricMapper zyStyleFabricMapper;

@ -86,7 +86,7 @@ public class ZyPlanProcess implements Serializable {
*/ */
@Excel(name = "设备id列表", width = 15) @Excel(name = "设备id列表", width = 15)
@ApiModelProperty(value = "设备id列表") @ApiModelProperty(value = "设备id列表")
@Dict(dictTable = "zy_devicetype", dicText = "name", dicCode = "id") @Dict(dictTable = "zy_device", dicText = "name", dicCode = "id")
private String machineIds; private String machineIds;
/** /**
* 工具id列表 * 工具id列表
@ -100,7 +100,7 @@ public class ZyPlanProcess implements Serializable {
*/ */
@Excel(name = "成员id列表", width = 15) @Excel(name = "成员id列表", width = 15)
@ApiModelProperty(value = "成员id列表") @ApiModelProperty(value = "成员id列表")
@Dict(dictTable = "groupx_member", dicText = "user_id", dicCode = "id") @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id")
private String userIds; private String userIds;
/** /**
@ -108,12 +108,14 @@ public class ZyPlanProcess implements Serializable {
*/ */
@Excel(name = "前导工序", width = 15) @Excel(name = "前导工序", width = 15)
@ApiModelProperty(value = "前导工序") @ApiModelProperty(value = "前导工序")
@Dict(dictTable = "zy_process", dicText = "process_name", dicCode = "id")
private String proProcess; private String proProcess;
/** /**
* 后导工序 * 后导工序
*/ */
@Excel(name = "后导工序", width = 15) @Excel(name = "后导工序", width = 15)
@ApiModelProperty(value = "后导工序") @ApiModelProperty(value = "后导工序")
@Dict(dictTable = "zy_process", dicText = "process_name", dicCode = "id")
private String postProcess; private String postProcess;
/** /**
* 输入产品 * 输入产品

@ -4,6 +4,7 @@ import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import org.jeecg.modules.team.entity.GroupxMember; import org.jeecg.modules.team.entity.GroupxMember;
import org.jeecg.modules.team.vo.GroupxMemeberVo;
import org.jeecg.modules.team.vo.StationVo; import org.jeecg.modules.team.vo.StationVo;
import java.io.Serializable; import java.io.Serializable;
@ -16,7 +17,7 @@ public class ProcessDataVo implements Serializable {
private static final long serialVersionUID = 1009888L; private static final long serialVersionUID = 1009888L;
// private String id; // private String id;
//工单id //工单id
private String workOrderId; private String workOrderId;
@ -34,8 +35,10 @@ public class ProcessDataVo implements Serializable {
//工位 //工位
private List<StationVo> stationList; private List<StationVo> stationList;
private String groupName;
//班组成员列表 //班组成员列表
private List<GroupxMember> groupMemberList; private List<GroupxMemeberVo> groupMemberList;
//产品工序id //产品工序id
// @Dict(dictTable ="zy_process",dicText = "process_name",dicCode = "id") // @Dict(dictTable ="zy_process",dicText = "process_name",dicCode = "id")

@ -3,6 +3,7 @@ package org.jeecg.modules.productplan.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.commons.lang3.StringUtils;
import org.jeecg.common.exception.JeecgBootException; import org.jeecg.common.exception.JeecgBootException;
import org.jeecg.modules.demo.base.service.IZyProcessService; import org.jeecg.modules.demo.base.service.IZyProcessService;
import org.jeecg.modules.product.zyproductprocess.entity.ZyProductProcess; import org.jeecg.modules.product.zyproductprocess.entity.ZyProductProcess;
@ -14,11 +15,15 @@ import org.jeecg.modules.productplan.mapper.ZyPlanProcessMapper;
import org.jeecg.modules.productplan.service.IZyPlanProcessService; import org.jeecg.modules.productplan.service.IZyPlanProcessService;
import org.jeecg.modules.productplan.service.IZyProductPlanService; import org.jeecg.modules.productplan.service.IZyProductPlanService;
import org.jeecg.modules.system.entity.SysDepart; import org.jeecg.modules.system.entity.SysDepart;
import org.jeecg.modules.system.entity.SysUser;
import org.jeecg.modules.system.service.ISysDepartService; import org.jeecg.modules.system.service.ISysDepartService;
import org.jeecg.modules.system.service.ISysUserService;
import org.jeecg.modules.team.entity.GroupxMember; import org.jeecg.modules.team.entity.GroupxMember;
import org.jeecg.modules.team.entity.Station; import org.jeecg.modules.team.entity.Station;
import org.jeecg.modules.team.service.IGroupxMemberService; import org.jeecg.modules.team.service.IGroupxMemberService;
import org.jeecg.modules.team.service.IGroupxService;
import org.jeecg.modules.team.service.IStationService; import org.jeecg.modules.team.service.IStationService;
import org.jeecg.modules.team.vo.GroupxMemeberVo;
import org.jeecg.modules.team.vo.StationVo; import org.jeecg.modules.team.vo.StationVo;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -27,6 +32,8 @@ import org.springframework.util.ObjectUtils;
import java.util.LinkedList; import java.util.LinkedList;
import java.util.List; import java.util.List;
import static com.sun.tools.internal.xjc.reader.Ring.add;
/** /**
* @Description: 生产计划工序 * @Description: 生产计划工序
* @Author: jeecg-boot * @Author: jeecg-boot
@ -47,10 +54,15 @@ public class ZyPlanProcessServiceImpl extends ServiceImpl<ZyPlanProcessMapper, Z
@Autowired @Autowired
private ISysDepartService iSysDepartService; private ISysDepartService iSysDepartService;
@Autowired @Autowired
private ISysUserService iSysUserService;
@Autowired
private IZyProcessService iZyProcessService; private IZyProcessService iZyProcessService;
@Autowired @Autowired
private IGroupxMemberService iGroupxMemberService; private IGroupxMemberService iGroupxMemberService;
@Autowired
private IGroupxService iGroupxService;
public List<ProcessDataVo> getProcessDatalist(ZyPlanProcess zyPlanProcess) { public List<ProcessDataVo> getProcessDatalist(ZyPlanProcess zyPlanProcess) {
//生产计划id //生产计划id
@ -59,35 +71,35 @@ public class ZyPlanProcessServiceImpl extends ServiceImpl<ZyPlanProcessMapper, Z
if (ObjectUtils.isEmpty(zyPlanProcess)) { if (ObjectUtils.isEmpty(zyPlanProcess)) {
throw new JeecgBootException("生产计划不存在!"); throw new JeecgBootException("生产计划不存在!");
} }
//工单id //工单id
String productCode = zyProductPlan.getProductCode(); String productCode = zyProductPlan.getProductCode();
String departId = zyProductPlan.getWorkshopId(); String departId = zyProductPlan.getWorkshopId();
// TODO zy_product产品表,根据工单id获取产品id, // TODO zy_product产品表,根据工单id获取产品id,
List<ProcessDataVo> result = new LinkedList<>(); List<ProcessDataVo> result = new LinkedList<>();
//根据产品id获取产品工序列表
// List<ZyProductProcess> productProcessesList = iZyProductProcessService.list(new LambdaQueryWrapper<ZyProductProcess>().eq(ZyProductProcess::getProductId, "产品id"));
List<ZyProductProcess> productProcessesList = iZyProductProcessService.list(new LambdaQueryWrapper<ZyProductProcess>().eq(ZyProductProcess::getProductId, "1"));
if (!ObjectUtils.isEmpty(productProcessesList)) {
SysDepart depart = iSysDepartService.getById(departId);
List<Station> stationList = iStationService.list(new LambdaQueryWrapper<Station>().eq(Station::getDepartId, departId));
List<StationVo> stationVoList = new LinkedList<>();
if (!ObjectUtils.isEmpty(stationList)) {
stationList.forEach(en -> {
StationVo stationVo = new StationVo();
stationVo.setId(en.getId());
stationVo.setValue(en.getId());
stationVo.setText(en.getStationName());
stationVo.setTitle(en.getStationName());
stationVoList.add(stationVo);
});
}
productProcessesList.forEach(e -> { SysDepart depart = iSysDepartService.getById(departId);
List<Station> stationList = iStationService.list(new LambdaQueryWrapper<Station>().eq(Station::getDepartId, departId));
List<StationVo> stationVoList = new LinkedList<>();
if (!ObjectUtils.isEmpty(stationList)) {
stationList.forEach(en -> {
StationVo stationVo = new StationVo();
stationVo.setId(en.getId());
stationVo.setValue(en.getId());
stationVo.setText(en.getStationName());
stationVo.setTitle(en.getStationName());
stationVoList.add(stationVo);
});
}
List<ZyPlanProcess> planProcessList = this.list(new LambdaQueryWrapper<ZyPlanProcess>().eq(ZyPlanProcess::getPlanId, planId));
//TODO暂定有一条数据时,查询产品工序记录,多条时说明已定制计划工序
if (!ObjectUtils.isEmpty(planProcessList) && planProcessList.size() > 1) {
planProcessList.forEach(e -> {
ProcessDataVo vo = new ProcessDataVo(); ProcessDataVo vo = new ProcessDataVo();
vo.setPlanId(planId); vo.setPlanId(planId);
vo.setProcessId(e.getProcessId()); vo.setProcessId(e.getProcessId());
vo.setProcessName(iZyProcessService.getById(e.getProcessId()).getProcessName()); vo.setProcessName(iZyProcessService.getById(e.getProcessId()).getProcessName());
vo.setProductId(e.getProductId());
vo.setProductName("产品名称"); vo.setProductName("产品名称");
vo.setWorkOrderId(productCode); vo.setWorkOrderId(productCode);
vo.setDepartId(departId); vo.setDepartId(departId);
@ -95,6 +107,25 @@ public class ZyPlanProcessServiceImpl extends ServiceImpl<ZyPlanProcessMapper, Z
vo.setStationList(stationVoList); vo.setStationList(stationVoList);
result.add(vo); result.add(vo);
}); });
} else {
//根据产品id获取产品工序列表
// List<ZyProductProcess> productProcessesList = iZyProductProcessService.list(new LambdaQueryWrapper<ZyProductProcess>().eq(ZyProductProcess::getProductId, "产品id"));
List<ZyProductProcess> productProcessesList = iZyProductProcessService.list(new LambdaQueryWrapper<ZyProductProcess>().eq(ZyProductProcess::getProductId, "1"));
if (!ObjectUtils.isEmpty(productProcessesList)) {
productProcessesList.forEach(e -> {
ProcessDataVo vo = new ProcessDataVo();
vo.setPlanId(planId);
vo.setProcessId(e.getProcessId());
vo.setProcessName(iZyProcessService.getById(e.getProcessId()).getProcessName());
vo.setProductId(e.getProductId());
vo.setProductName("产品名称");
vo.setWorkOrderId(productCode);
vo.setDepartId(departId);
vo.setDepartName(depart.getDepartName());
vo.setStationList(stationVoList);
result.add(vo);
});
}
} }
return result; return result;
} }
@ -118,18 +149,31 @@ public class ZyPlanProcessServiceImpl extends ServiceImpl<ZyPlanProcessMapper, Z
if (!ObjectUtils.isEmpty(productProcessesList)) { if (!ObjectUtils.isEmpty(productProcessesList)) {
SysDepart depart = iSysDepartService.getById(departId); SysDepart depart = iSysDepartService.getById(departId);
List<GroupxMember> groupxMemberList = iGroupxMemberService.list(new LambdaQueryWrapper<GroupxMember>().eq(GroupxMember::getGroupxId, zyProductPlan.getTeamId())); List<GroupxMember> groupxMemberList = iGroupxMemberService.list(new LambdaQueryWrapper<GroupxMember>().eq(GroupxMember::getGroupxId, zyProductPlan.getTeamId()));
List<GroupxMemeberVo> groupxMemberVoList = new LinkedList<>();
if (!ObjectUtils.isEmpty(groupxMemberList)) {
groupxMemberList.forEach(en -> {
GroupxMemeberVo memeberVo = new GroupxMemeberVo();
memeberVo.setId(en.getId());
memeberVo.setValue(en.getUserId());
SysUser sysUser = iSysUserService.getById(en.getUserId());
memeberVo.setText(StringUtils.isNotBlank(sysUser.getRealname()) ? sysUser.getRealname() : "");
memeberVo.setTitle(StringUtils.isNotBlank(sysUser.getRealname()) ? sysUser.getRealname() : "");
groupxMemberVoList.add(memeberVo);
});
}
productProcessesList.forEach(e -> { productProcessesList.forEach(e -> {
ProcessDataVo vo = new ProcessDataVo(); ProcessDataVo vo = new ProcessDataVo();
vo.setPlanId(planId); vo.setPlanId(planId);
vo.setProcessId(e.getProcessId()); vo.setProcessId(e.getProcessId());
vo.setProcessName(iZyProcessService.getById(e.getProcessId()).getProcessName()); vo.setProcessName(iZyProcessService.getById(e.getProcessId()).getProcessName());
vo.setProductId(e.getProductId()); vo.setProductId(e.getProductId());
// vo.setProductName("产品名称") vo.setProductName("产品名称");
vo.setWorkOrderId(productCode); vo.setWorkOrderId(productCode);
vo.setDepartId(departId); vo.setDepartId(departId);
vo.setDepartName(depart.getDepartName()); vo.setDepartName(depart.getDepartName());
// vo.setStationList(stationList); vo.setGroupMemberList(groupxMemberVoList);
vo.setGroupMemberList(groupxMemberList); vo.setGroupName(iGroupxService.getById(zyProductPlan.getTeamId()).getGroupName());
result.add(vo); result.add(vo);
}); });
} }

@ -46,7 +46,7 @@ public class GroupxMember {
*/ */
@Excel(name = "用户id FK 用户表", width = 15) @Excel(name = "用户id FK 用户表", width = 15)
@ApiModelProperty(value = "用户id FK 用户表") @ApiModelProperty(value = "用户id FK 用户表")
// @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id") @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id")
private String userId; private String userId;
@TableField(exist = false) @TableField(exist = false)

@ -0,0 +1,16 @@
package org.jeecg.modules.team.vo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class GroupxMemeberVo {
private String id;
private String value;
private String text;
private String title;
}

@ -0,0 +1,16 @@
package org.jeecg.modules.team.vo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class GroupxVo {
private String id;
private String value;
private String text;
private String title;
}

@ -159,14 +159,19 @@ public class ZyClothsStyleController extends JeecgController<ZyClothsStyle, IZyC
if (StringUtils.isEmpty(zyClothsStyle.getTypeName())) { if (StringUtils.isEmpty(zyClothsStyle.getTypeName())) {
return Result.error("添加失败!服装类型不能为空"); return Result.error("添加失败!服装类型不能为空");
} }
if (StringUtils.isEmpty(zyClothsStyle.getNums())) {
return Result.error("添加失败!编号不能为空");
}
LambdaQueryWrapper<ZyClothsStyle> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<ZyClothsStyle> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(ZyClothsStyle::getTypeName, zyClothsStyle.getTypeName()); queryWrapper.eq(ZyClothsStyle::getTypeName, zyClothsStyle.getTypeName());
List<ZyClothsStyle> zyClothsStyleList = zyClothsStyleService.list(queryWrapper); int a = zyClothsStyleService.count(queryWrapper);
for (ZyClothsStyle zy : zyClothsStyleList) { if (a >= 1)
if (zyClothsStyle.getStyleNames().equals(zy.getStyleNames())) { return Result.error("存在以添加过的数据!");
return Result.error("添加失败!数据已存在"); // for (ZyClothsStyle zy : zyClothsStyleList) {
} // if (zyClothsStyle.getStyleNames().equals(zy.getStyleNames())) {
} // return Result.error("添加失败!数据已存在");
// }
// }
zyClothsStyleService.save(zyClothsStyle); zyClothsStyleService.save(zyClothsStyle);
return Result.OK("添加成功!"); return Result.OK("添加成功!");
} }
@ -211,7 +216,7 @@ public class ZyClothsStyleController extends JeecgController<ZyClothsStyle, IZyC
@ApiOperation(value = "服装款式表-编辑", notes = "服装款式表-编辑") @ApiOperation(value = "服装款式表-编辑", notes = "服装款式表-编辑")
@PutMapping(value = "/edit") @PutMapping(value = "/edit")
public Result<?> edit(@RequestBody ZyClothsStyle zyClothsStyle) { public Result<?> edit(@RequestBody ZyClothsStyle zyClothsStyle) {
if (StringUtils.isEmpty(zyClothsStyle.getEnterpriseId())){ if (StringUtils.isEmpty(zyClothsStyle.getEnterpriseId())) {
return Result.error("企业不能为空"); return Result.error("企业不能为空");
} }
zyClothsStyleService.updateById(zyClothsStyle); zyClothsStyleService.updateById(zyClothsStyle);

@ -50,7 +50,7 @@ public class ZyStyleFabricController extends JeecgController<ZyStyleFabric, IZyS
@Autowired @Autowired
private IZyFabricService zyFabricService; private IZyFabricService zyFabricService;
@Resource @Autowired
private ZyStyleFabricMapper zyStyleFabricMapper; private ZyStyleFabricMapper zyStyleFabricMapper;
/** /**

@ -34,7 +34,7 @@ public class ZyStyleFabricServiceImpl extends ServiceImpl<ZyStyleFabricMapper, Z
@Autowired @Autowired
private IZyFabricService zyFabricService; private IZyFabricService zyFabricService;
@Resource @Autowired
private ZyStyleFabricMapper zyStyleFabricMapper; private ZyStyleFabricMapper zyStyleFabricMapper;
@Override @Override

@ -2,6 +2,7 @@ package org.jeecg.modules.zystylemodel.mapper;
import java.util.List; import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select; import org.apache.ibatis.annotations.Select;
@ -13,6 +14,7 @@ import org.jeecg.modules.zystylemodel.entity.ZyStyleModel;
* @Date: 2022-09-17 * @Date: 2022-09-17
* @Version: V1.0 * @Version: V1.0
*/ */
@Mapper
public interface ZyStyleModelMapper extends BaseMapper<ZyStyleModel> { public interface ZyStyleModelMapper extends BaseMapper<ZyStyleModel> {
@Select("SELECT * FROM zy_style_model WHERE style_id = #{id}") @Select("SELECT * FROM zy_style_model WHERE style_id = #{id}")

@ -33,9 +33,9 @@ public class ZyStyleModelServiceImpl extends ServiceImpl<ZyStyleModelMapper, ZyS
@Autowired @Autowired
private IZyClothsStyleService zyClothsStyleService; private IZyClothsStyleService zyClothsStyleService;
@Resource @Autowired
private ZyStyleModelMapper zyStyleModelMapper; private ZyStyleModelMapper zyStyleModelMapper;
@Resource @Autowired
private ZyStyleFabricMapper zyStyleFabricMapper; private ZyStyleFabricMapper zyStyleFabricMapper;
@Override @Override

@ -56,9 +56,9 @@ public class ZyStyleModuleController extends JeecgController<ZyStyleModule, IZyS
@Autowired @Autowired
private IZyClothsStyleService zyClothsStyleService; private IZyClothsStyleService zyClothsStyleService;
@Resource @Autowired
private ZyStyleFabricMapper zyStyleFabricMapper; private ZyStyleFabricMapper zyStyleFabricMapper;
@Resource @Autowired
private ZyStyleModuleMapper zyStyleModuleMapper; private ZyStyleModuleMapper zyStyleModuleMapper;
/** /**
@ -74,15 +74,16 @@ public class ZyStyleModuleController extends JeecgController<ZyStyleModule, IZyS
@ApiOperation(value = "款式模块表-分页列表查询", notes = "款式模块表-分页列表查询") @ApiOperation(value = "款式模块表-分页列表查询", notes = "款式模块表-分页列表查询")
@GetMapping(value = "/list") @GetMapping(value = "/list")
public Result<?> queryPageList(ZyStyleModule zyStyleModule2, public Result<?> queryPageList(ZyStyleModule zyStyleModule2,
@RequestParam(name = "id" )String id,String modularId, @RequestParam(name = "id", required = false) String id,
@RequestParam(name = "modularId", required = false) String modularId,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
HttpServletRequest req) { HttpServletRequest req) {
//System.err.println("ZyStyleModule 款式模块表 传来的 " + id); //System.err.println("ZyStyleModule 款式模块表 传来的 " + id);
QueryWrapper<ZyStyleModule> queryWrapper = new QueryWrapper<>(); QueryWrapper<ZyStyleModule> queryWrapper = new QueryWrapper<>();
queryWrapper.eq(StringUtils.hasText(id),"style_id", id); queryWrapper.eq(StringUtils.hasText(id), "style_id", id);
queryWrapper.eq(StringUtils.hasText(modularId),"modular_id", modularId); queryWrapper.eq(StringUtils.hasText(modularId), "modular_id", modularId);
Page<ZyStyleModule> page = new Page<>(pageNo, pageSize); Page<ZyStyleModule> page = new Page<>(pageNo, pageSize);
IPage<ZyStyleModule> pageList = zyStyleModuleService.page(page, queryWrapper); IPage<ZyStyleModule> pageList = zyStyleModuleService.page(page, queryWrapper);
@ -149,7 +150,7 @@ public class ZyStyleModuleController extends JeecgController<ZyStyleModule, IZyS
@ApiOperation(value = "款式模块表-详情", notes = "款式模块表-详情") @ApiOperation(value = "款式模块表-详情", notes = "款式模块表-详情")
@GetMapping(value = "/detail") @GetMapping(value = "/detail")
public Result<?> detail(@RequestParam(name = "id", required = true) String id) { public Result<?> detail(@RequestParam(name = "id", required = true) String id) {
System.out.println("款式模块表 /detail controller层接受到的id: : "+id); System.out.println("款式模块表 /detail controller层接受到的id: : " + id);
ZyStyleModuleDetailVO detailVO = zyStyleModuleService.queryDetail(id); ZyStyleModuleDetailVO detailVO = zyStyleModuleService.queryDetail(id);
return Result.OK(detailVO); return Result.OK(detailVO);
} }

@ -2,6 +2,7 @@ package org.jeecg.modules.zystylemodule.mapper;
import java.util.List; import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -14,6 +15,7 @@ import org.jeecg.modules.zystylemodule.entity.ZyStyleModule;
* @Date: 2022-09-08 * @Date: 2022-09-08
* @Version: V1.0 * @Version: V1.0
*/ */
@Mapper
public interface ZyStyleModuleMapper extends BaseMapper<ZyStyleModule> { public interface ZyStyleModuleMapper extends BaseMapper<ZyStyleModule> {
/**根据服装款式的id style_id 查询所有*/ /**根据服装款式的id style_id 查询所有*/

@ -38,9 +38,9 @@ public class ZyStyleModuleServiceImpl extends ServiceImpl<ZyStyleModuleMapper, Z
@Autowired @Autowired
private IZyClothsStyleService zyClothsStyleService; private IZyClothsStyleService zyClothsStyleService;
@Resource @Autowired
private ZyStyleFabricMapper zyStyleFabricMapper; private ZyStyleFabricMapper zyStyleFabricMapper;
@Resource @Autowired
private ZyStyleModuleMapper zyStyleModuleMapper; private ZyStyleModuleMapper zyStyleModuleMapper;
@Override @Override

Loading…
Cancel
Save