喻忠伟 2 years ago
commit 42734f7996
  1. 4
      ant-design-vue-jeecg/src/config/router.config.js
  2. 33
      ant-design-vue-jeecg/src/views/customerinvoice/admin/CustomerInvoiceList.vue
  3. 300
      ant-design-vue-jeecg/src/views/customerinvoice/admin/modules/CustomerInvoiceList1.vue
  4. 60
      ant-design-vue-jeecg/src/views/customerinvoice/admin/modules/CustomerInvoiceModal1.vue
  5. 3
      ant-design-vue-jeecg/src/views/customerpayment/admin/CustomerPaymentList.vue
  6. 5
      ant-design-vue-jeecg/src/views/customerpayment/admin/modules/CustomerPaymentList1.vue
  7. 13
      ant-design-vue-jeecg/src/views/customerreceivingaddress/admin/CustomerReceivingAddressList.vue
  8. 5
      ant-design-vue-jeecg/src/views/customerreceivingaddress/admin/modules/CustomerReceivingAddressForm.vue
  9. 279
      ant-design-vue-jeecg/src/views/customerreceivingaddress/admin/modules/CustomerReceivingAddressList1.vue
  10. 61
      ant-design-vue-jeecg/src/views/customerreceivingaddress/admin/modules/CustomerReceivingAddressModal1.vue
  11. 57
      ant-design-vue-jeecg/src/views/ordergoods/OrderGoodsList.vue
  12. 45
      ant-design-vue-jeecg/src/views/ordergoodsaccessories/OrderGoodsAccessoriesList.vue
  13. 45
      ant-design-vue-jeecg/src/views/ordergoodsfabric/OrderGoodsFabricList.vue
  14. 49
      ant-design-vue-jeecg/src/views/ordergoodsmodule/OrderGoodsModuleList.vue
  15. 16
      ant-design-vue-jeecg/src/views/productplan/ProductplanManage.vue
  16. 42
      ant-design-vue-jeecg/src/views/productplan/ZyPlanWuLiaoDataDetail.vue
  17. 208
      ant-design-vue-jeecg/src/views/shopping/pages/gerenzhongxin.vue
  18. 48
      ant-design-vue-jeecg/src/views/shopping/pages/orderDetails.vue
  19. 27
      ant-design-vue-jeecg/src/views/zyorders/ZyOrdersList.vue
  20. 45
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerinvoice/controller/CustomerInvoiceController.java
  21. 18
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerinvoice/mapper/CustomerInvoiceMapper.java
  22. 5
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerinvoice/service/ICustomerInvoiceService.java
  23. 34
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerinvoice/service/impl/CustomerInvoiceServiceImpl.java
  24. 61
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerreceivingaddress/controller/CustomerReceivingAddressController.java
  25. 18
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerreceivingaddress/mapper/CustomerReceivingAddressMapper.java
  26. 5
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerreceivingaddress/service/ICustomerReceivingAddressService.java
  27. 35
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/customerreceivingaddress/service/impl/CustomerReceivingAddressServiceImpl.java
  28. 3
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/delivery/service/IDeliveryService.java
  29. 81
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/delivery/service/impl/DeliveryServiceImpl.java
  30. 37
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/ordergoods/controller/OrderGoodsController.java
  31. 3
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/ordergoodsaccessories/controller/OrderGoodsAccessoriesController.java
  32. 3
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/ordergoodsfabric/controller/OrderGoodsFabricController.java
  33. 3
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/demo/ordergoodsmodule/controller/OrderGoodsModuleController.java
  34. 8
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/controller/ZyPlanProcessController.java
  35. 2
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/service/IZyPlanProcessService.java
  36. 56
      jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/productplan/service/impl/ZyPlanProcessServiceImpl.java

@ -659,4 +659,8 @@ export const constantRouterMap = [
]
},
{
path: '/shopping/views/order',//这里是你需要设置新窗口打开的页面的路径s
component: () => import('@/views/shopping/pages/orderDetails'),
},
]

@ -105,28 +105,22 @@
</template>
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a>
<a @click="paixu(record)">排序</a>
<a-divider type="vertical" />
<a @click="handleEdit(record)">编辑</a>
<a-divider type="vertical" />
<!-- <a-dropdown>
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
<a-menu slot="overlay">
<a-menu-item>-->
<a @click="handleDetail(record)">详情</a>
<a-divider type="vertical" />
<!-- </a-menu-item>
<a-menu-item>-->
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>
<!-- </a-menu-item>
</a-menu>
</a-dropdown>-->
<a @click="handleDetail(record)">详情</a>
<a-divider type="vertical" />
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>
</span>
</a-table>
</div>
<customer-invoice-modal1 ref="modalFormpaixu" @ok="modalFormOk"></customer-invoice-modal1>
<customer-invoice-modal ref="modalForm" @ok="modalFormOk"></customer-invoice-modal>
</a-card>
</template>
@ -137,13 +131,15 @@
import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import CustomerInvoiceModal from './modules/CustomerInvoiceModal'
import CustomerInvoiceModal1 from './modules/CustomerInvoiceModal1'
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
export default {
name: 'CustomerInvoiceList',
mixins:[JeecgListMixin, mixinDevice],
components: {
CustomerInvoiceModal
CustomerInvoiceModal,
CustomerInvoiceModal1
},
data () {
return {
@ -248,6 +244,11 @@
},
},
methods: {
paixu: function (record) {
this.$refs.modalFormpaixu.edit(record.userId);
this.$refs.modalFormpaixu.title = record.userId_dictText+"测体管理";
this.$refs.modalFormpaixu.disableSubmit = false;
},
initDictConfig(){
},
getSuperFieldList(){

@ -0,0 +1,300 @@
<template>
<a-card :bordered="false">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<!-- <a-row :gutter="24">
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="用户">
<j-search-select-tag placeholder="请选择用户" v-model="queryParam.userId" dict="sys_user,realname,id"/>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="客户类型">
<j-dict-select-tag placeholder="请选择客户类型" v-model="queryParam.customerType" dictCode="khlx"/>
</a-form-item>
</a-col>
<template v-if="toggleSearchStatus">
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="发票类型">
<j-dict-select-tag placeholder="请选择发票类型" v-model="queryParam.invoiceType" dictCode="fplx"/>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="名称/姓名">
<a-input placeholder="请输入名称/姓名" v-model="queryParam.name"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="开户行">
<j-search-select-tag placeholder="请选择开户行" v-model="queryParam.bankDeposit" dict="zybank,bankname,id"/>
</a-form-item>
</a-col>
</template>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<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="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
<a @click="handleToggleSearch" style="margin-left: 8px">
{{ toggleSearchStatus ? '收起' : '展开' }}
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
</a>
</span>
</a-col>
</a-row>-->
</a-form>
</div>
<!-- 查询区域-END -->
<!-- 操作按钮区域 -->
<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-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>
&lt;!&ndash; 高级查询区域 &ndash;&gt;
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
</a-dropdown>-->
</div>
<!-- table区域-begin -->
<div>
<!--<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>
<a style="margin-left: 24px" @click="onClearSelected">清空</a>
</div>-->
<a-table
ref="table"
size="middle"
:scroll="{x:true}"
bordered
rowKey="id"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
class="j-table-force-nowrap"
@change="handleTableChange">
<template slot="htmlSlot" slot-scope="text">
<div v-html="text"></div>
</template>
<template slot="imgSlot" slot-scope="text">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
<img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
</template>
<template slot="fileSlot" slot-scope="text">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
<a-button
v-else
:ghost="true"
type="primary"
icon="download"
size="small"
@click="downloadFile(text)">
下载
</a-button>
</template>
<span slot="action" slot-scope="text, record">
<a @click="up(record.id)">升序</a>
<a-divider type="vertical" />
<a @click="down(record.id)">降序</a>
<a-divider type="vertical" />
<a @click="handleDetail(record)">详情</a>
<a-divider type="vertical" />
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>
</span>
</a-table>
</div>
<customer-invoice-modal ref="modalForm" @ok="modalFormOk"></customer-invoice-modal>
</a-card>
</template>
<script>
import '@/assets/less/TableExpand.less'
import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import CustomerInvoiceModal from './CustomerInvoiceModal'
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
import { getAction } from '@/api/manage'
export default {
name: 'CustomerInvoiceList1',
mixins:[JeecgListMixin, mixinDevice],
components: {
CustomerInvoiceModal
},
data () {
return {
description: '客户发票信息管理页面',
//
columns: [
{
title: '#',
dataIndex: '',
key:'rowIndex',
width:60,
align:"center",
customRender:function (t,r,index) {
return parseInt(index)+1;
}
},
{
title:'用户',
align:"center",
dataIndex: 'userId_dictText'
},
{
title:'客户类型',
align:"center",
dataIndex: 'customerType_dictText'
},
{
title:'发票类型',
align:"center",
dataIndex: 'invoiceType_dictText'
},
{
title:'名称/姓名',
align:"center",
dataIndex: 'name'
},
{
title:'纳税人识别号',
align:"center",
dataIndex: 'taxIdentificationNumber'
},
/* {
title:'地址',
align:"center",
dataIndex: 'address'
},*/
{
title:'电话',
align:"center",
dataIndex: 'telephone'
},
{
title:'账号',
align:"center",
dataIndex: 'accountNumber'
},
{
title:'开户行',
align:"center",
dataIndex: 'bankDeposit_dictText'
},
{
title:'创建日期',
align:"center",
dataIndex: 'createTime'
},
{
title:'排序',
align:"center",
sorter: true,
dataIndex: 'sort'
},
{
title: '操作',
dataIndex: 'action',
align:"center",
fixed:"right",
width:147,
scopedSlots: { customRender: 'action' }
}
],
url: {
up: "/customerinvoice/customerInvoice/up",
down: "/customerinvoice/customerInvoice/down",
list: "/customerinvoice/customerInvoice/list1",
delete: "/customerinvoice/customerInvoice/delete",
deleteBatch: "/customerinvoice/customerInvoice/deleteBatch",
exportXlsUrl: "/customerinvoice/customerInvoice/exportXls",
importExcelUrl: "customerinvoice/customerInvoice/importExcel",
},
dictOptions:{},
superFieldList:[],
}
},
created() {
this.getSuperFieldList();
},
computed: {
importExcelUrl: function(){
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
},
},
methods: {
up(id){
getAction(this.url.up,{id:id}).then((res)=>{
if(res.success){
this.loadData();
this.$message.success(res.message);
}else{
this.$message.warning(res.message);
}
})},
down(id){
getAction(this.url.down,{id:id}).then((res)=>{
if(res.success){
this.loadData();
this.$message.success(res.message);
}else{
this.$message.warning(res.message);
}
})},
edit (id) {
/*this.queryParam.userId=this.id;*/
this.queryParam.userId=id,
this.url.list='/customerinvoice/customerInvoice/list1'
this.loadData();
this.visible = true;
},
initDictConfig(){
},
getSuperFieldList(){
let fieldList=[];
fieldList.push({type:'datetime',value:'createTime',text:'创建日期'})
fieldList.push({type:'sel_search',value:'userId',text:'用户',dictTable:'sys_user', dictText:'realname', dictCode:'id'})
fieldList.push({type:'popup',value:'username',text:'用户', popup:{code:'findcust',field:'id',orgFields:'id',destFields:'user_id'}})
fieldList.push({type:'string',value:'customerType',text:'客户类型',dictCode:'khlx'})
fieldList.push({type:'string',value:'invoiceType',text:'发票类型',dictCode:'fplx'})
fieldList.push({type:'string',value:'name',text:'名称/姓名',dictCode:''})
fieldList.push({type:'string',value:'taxIdentificationNumber',text:'纳税人识别号',dictCode:''})
fieldList.push({type:'string',value:'address',text:'地址',dictCode:''})
fieldList.push({type:'string',value:'telephone',text:'电话',dictCode:''})
fieldList.push({type:'string',value:'bankDeposit',text:'开户行',dictCode:''})
fieldList.push({type:'string',value:'accountNumber',text:'账号',dictCode:''})
fieldList.push({type:'int',value:'sort',text:'排序',dictCode:''})
this.superFieldList = fieldList
}
}
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>

@ -0,0 +1,60 @@
<template>
<j-modal
:title="title"
:width="width"
:visible="visible"
switchFullscreen
@ok="handleOk"
:okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
@cancel="handleCancel"
cancelText="关闭">
<customer-invoice-list1 ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></customer-invoice-list1>
</j-modal>
</template>
<script>
import CustomerInvoiceList1 from "./CustomerInvoiceList1";
export default {
name: 'CustomerInvoiceModal1',
components: {
CustomerInvoiceList1
},
data () {
return {
title:'',
width:800,
visible: false,
disableSubmit: false
}
},
methods: {
add () {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.add();
})
},
edit (record) {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.edit(record);
})
},
close () {
this.$emit('close');
this.visible = false;
},
handleOk () {
this.$refs.realForm.submitForm();
},
submitCallback(){
this.$emit('ok');
this.visible = false;
},
handleCancel () {
this.close()
}
}
}
</script>

@ -203,8 +203,7 @@
}
],
url: {
up: "/customerpayment/customerPayment/up",
down: "/customerpayment/customerPayment/down",
list: "/customerpayment/customerPayment/list",
delete: "/customerpayment/customerPayment/delete",
deleteBatch: "/customerpayment/customerPayment/deleteBatch",

@ -123,7 +123,7 @@
import '@/assets/less/TableExpand.less'
import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import { getAction } from '@/api/manage'
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
export default {
@ -194,12 +194,15 @@
}
],
url: {
up: "/customerpayment/customerPayment/up",
down: "/customerpayment/customerPayment/down",
list: "/customerpayment/customerPayment/list1",
delete: "/customerpayment/customerPayment/delete",
deleteBatch: "/customerpayment/customerPayment/deleteBatch",
exportXlsUrl: "/customerpayment/customerPayment/exportXls",
importExcelUrl: "customerpayment/customerPayment/importExcel",
},
dictOptions:{},
superFieldList:[],

@ -98,6 +98,8 @@
</template>
<span slot="action" slot-scope="text, record">
<a @click="paixu(record)">排序</a>
<a-divider type="vertical" />
<a @click="handleEdit(record)">编辑</a>
<a-divider type="vertical" />
@ -119,7 +121,7 @@
</a-table>
</div>
<customer-receiving-address-modal1 ref="modalFormpaixu" @ok="modalFormOk"></customer-receiving-address-modal1>
<customer-receiving-address-modal ref="modalForm" @ok="modalFormOk"></customer-receiving-address-modal>
</a-card>
</template>
@ -130,6 +132,7 @@
import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import CustomerReceivingAddressModal from './modules/CustomerReceivingAddressModal'
import CustomerReceivingAddressModal1 from './modules/CustomerReceivingAddressModal1'
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
import Area from '@/components/_util/Area'
@ -137,7 +140,8 @@
name: 'CustomerReceivingAddressList',
mixins:[JeecgListMixin, mixinDevice],
components: {
CustomerReceivingAddressModal
CustomerReceivingAddressModal,
CustomerReceivingAddressModal1
},
data () {
return {
@ -227,6 +231,11 @@
},
},
methods: {
paixu: function (record) {
this.$refs.modalFormpaixu.edit(record.userId);
this.$refs.modalFormpaixu.title = record.userId_dictText+"测体管理";
this.$refs.modalFormpaixu.disableSubmit = false;
},
getPcaText(code){
return this.pcaData.getText(code);
},

@ -121,10 +121,7 @@
{ required: false},
{ validator: (rule, value, callback) => validateDuplicateValue('customer_receiving_address', 'sort', value, this.model.id, callback)},
],
labelcl: [
{ required: false},
{ validator: (rule, value, callback) => validateDuplicateValue('customer_receiving_address', 'labelcl', value, this.model.id, callback)},
],
},
url: {
add: "/customerreceivingaddress/customerReceivingAddress/add",

@ -0,0 +1,279 @@
<template>
<a-card :bordered="false">
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
<!-- <a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="用户">
<j-search-select-tag placeholder="请选择用户" v-model="queryParam.userId" dict="sys_user,realname,id"/>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="收货人">
<a-input placeholder="请输入收货人" v-model="queryParam.receiver"></a-input>
</a-form-item>
</a-col>
<template v-if="toggleSearchStatus">
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="联系电话">
<a-input placeholder="请输入联系电话" v-model="queryParam.mobile"></a-input>
</a-form-item>
</a-col>
</template>-->
<!--<a-col :xl="6" :lg="7" :md="8" :sm="24">
<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="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
<a @click="handleToggleSearch" style="margin-left: 8px">
{{ toggleSearchStatus ? '收起' : '展开' }}
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
</a>
</span>
</a-col>-->
</a-row>
</a-form>
</div>
<!-- 查询区域-END -->
<!-- 操作按钮区域 -->
<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-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>
&lt;!&ndash; 高级查询区域 &ndash;&gt;
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
</a-dropdown>-->
</div>
<!-- table区域-begin -->
<div>
<div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">
<i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>
<a style="margin-left: 24px" @click="onClearSelected">清空</a>
</div>
<a-table
ref="table"
size="middle"
:scroll="{x:true}"
bordered
rowKey="id"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
class="j-table-force-nowrap"
@change="handleTableChange">
<template slot="htmlSlot" slot-scope="text">
<div v-html="text"></div>
</template>
<template slot="imgSlot" slot-scope="text">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无图片</span>
<img v-else :src="getImgView(text)" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/>
</template>
<template slot="pcaSlot" slot-scope="text">
<div>{{ getPcaText(text) }}</div>
</template>
<template slot="fileSlot" slot-scope="text">
<span v-if="!text" style="font-size: 12px;font-style: italic;">无文件</span>
<a-button
v-else
:ghost="true"
type="primary"
icon="download"
size="small"
@click="downloadFile(text)">
下载
</a-button>
</template>
<span slot="action" slot-scope="text, record">
<a @click="up(record.id)">升序</a>
<a-divider type="vertical" />
<a @click="down(record.id)">降序</a>
<a-divider type="vertical" />
<a @click="handleDetail(record)">详情</a>
<a-divider type="vertical" />
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>
</span>
</a-table>
</div>
<customer-receiving-address-modal ref="modalForm" @ok="modalFormOk"></customer-receiving-address-modal>
</a-card>
</template>
<script>
import '@/assets/less/TableExpand.less'
import { mixinDevice } from '@/utils/mixin'
import { JeecgListMixin } from '@/mixins/JeecgListMixin'
import CustomerReceivingAddressModal from './CustomerReceivingAddressModal'
import {filterMultiDictText} from '@/components/dict/JDictSelectUtil'
import Area from '@/components/_util/Area'
export default {
name: 'CustomerReceivingAddressList1',
mixins:[JeecgListMixin, mixinDevice],
components: {
CustomerReceivingAddressModal
},
data () {
return {
description: '顾客地址表管理页面',
//
columns: [
{
title: '#',
dataIndex: '',
key:'rowIndex',
width:60,
align:"center",
customRender:function (t,r,index) {
return parseInt(index)+1;
}
},
{
title:'用户',
align:"center",
dataIndex: 'userId_dictText'
},
{
title:'城市',
align:"center",
dataIndex: 'cityId',
scopedSlots: {customRender: 'pcaSlot'}
},
{
title:'地址',
align:"center",
dataIndex: 'address'
},
{
title:'邮编',
align:"center",
dataIndex: 'zipCode'
},
{
title:'收货人',
align:"center",
dataIndex: 'receiver'
},
{
title:'联系电话',
align:"center",
dataIndex: 'mobile'
},
{
title:'排序',
align:"center",
dataIndex: 'sort'
},
{
title:'标识',
align:"center",
dataIndex: 'labelcl_dictText'
},
{
title: '操作',
dataIndex: 'action',
align:"center",
fixed:"right",
width:147,
scopedSlots: { customRender: 'action' }
}
],
url: {
up: "/customerreceivingaddress/customerReceivingAddress/up",
down: "/customerreceivingaddress/customerReceivingAddress/down",
list: "/customerreceivingaddress/customerReceivingAddress/list1",
delete: "/customerreceivingaddress/customerReceivingAddress/delete",
deleteBatch: "/customerreceivingaddress/customerReceivingAddress/deleteBatch",
exportXlsUrl: "/customerreceivingaddress/customerReceivingAddress/exportXls",
importExcelUrl: "customerreceivingaddress/customerReceivingAddress/importExcel",
},
dictOptions:{},
pcaData:'',
superFieldList:[],
}
},
created() {
this.pcaData = new Area()
this.getSuperFieldList();
},
computed: {
importExcelUrl: function(){
return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`;
},
},
methods: {
edit (id) {
console.log("+++++++++")
console.log("========================================")
/*this.queryParam.userId=this.id;*/
this.queryParam.userId=id,
this.url.list='/customerreceivingaddress/customerReceivingAddress/list1'
this.loadData();
this.visible = true;
},
up(id){
getAction(this.url.up,{id:id}).then((res)=>{
if(res.success){
this.loadData();
this.$message.success(res.message);
}else{
this.$message.warning(res.message);
}
})},
down(id){
getAction(this.url.down,{id:id}).then((res)=>{
if(res.success){
this.loadData();
this.$message.success(res.message);
}else{
this.$message.warning(res.message);
}
})},
getPcaText(code){
return this.pcaData.getText(code);
},
initDictConfig(){
},
getSuperFieldList(){
let fieldList=[];
fieldList.push({type:'sel_search',value:'userId',text:'用户',dictTable:'sys_user', dictText:'realname', dictCode:'id'})
fieldList.push({type:'popup',value:'usernamme',text:'用户', popup:{code:'findcust',field:'id',orgFields:'id',destFields:'user_id'}})
fieldList.push({type:'pca',value:'cityId',text:'城市'})
fieldList.push({type:'string',value:'address',text:'地址',dictCode:''})
fieldList.push({type:'string',value:'zipCode',text:'邮编',dictCode:''})
fieldList.push({type:'string',value:'receiver',text:'收货人',dictCode:''})
fieldList.push({type:'string',value:'mobile',text:'联系电话',dictCode:''})
fieldList.push({type:'int',value:'sort',text:'排序',dictCode:''})
fieldList.push({type:'string',value:'labelcl',text:'标识',dictCode:'shdzbs'})
this.superFieldList = fieldList
}
}
}
</script>
<style scoped>
@import '~@assets/less/common.less';
</style>

@ -0,0 +1,61 @@
<template>
<j-modal
:title="title"
:width="width"
:visible="visible"
switchFullscreen
@ok="handleOk"
:okButtonProps="{ class:{'jee-hidden': disableSubmit} }"
@cancel="handleCancel"
cancelText="关闭">
<customer-receiving-address-list1 ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></customer-receiving-address-list1>
</j-modal>
</template>
<script>
import CustomerReceivingAddressList1 from './CustomerReceivingAddressList1'
export default {
name: 'CustomerReceivingAddressModal1',
components: {
CustomerReceivingAddressList1
},
data () {
return {
title:'',
width:800,
visible: false,
disableSubmit: false
}
},
methods: {
add () {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.add();
})
},
edit (record) {
this.visible=true
this.$nextTick(()=>{
this.$refs.realForm.edit(record);
})
},
close () {
this.$emit('close');
this.visible = false;
},
handleOk () {
this.$refs.realForm.submitForm();
},
submitCallback(){
this.$emit('ok');
this.visible = false;
},
handleCancel () {
this.close()
}
}
}
</script>

@ -112,7 +112,15 @@
下载
</a-button>
</template>
<template slot="mk" slot-scope="text, record">
<a @click="goodsModule(record)">管理</a>
</template>
<template slot="ml" slot-scope="text, record">
<a @click="goodsModule2(record)">管理</a>
</template>
<template slot="fl" slot-scope="text, record">
<a @click="goodsModule3(record)">管理</a>
</template>
<span slot="action" slot-scope="text, record">
<!--<a @click="handleEdit(record)">编辑</a>-->
<a @click="handleDetail(record)">详情</a>
@ -279,6 +287,21 @@
align:"center",
dataIndex: 'payTotalPrice'
},
{
title: '订单商品模块',
align: "center",
scopedSlots: {customRender: 'mk'}
},
{
title: '订单商品面料',
align: "center",
scopedSlots: {customRender: 'ml'}
},
{
title: '订单商品辅料',
align: "center",
scopedSlots: {customRender: 'fl'}
},
{
title: '操作',
dataIndex: 'action',
@ -289,7 +312,7 @@
}
],
url: {
list: "/ordergoods/orderGoods/list",
list: "/ordergoods/orderGoods/list?orderid="+this.$route.query.orderid+"&ischild="+this.$route.query.ischild,
delete: "/ordergoods/orderGoods/delete",
deleteBatch: "/ordergoods/orderGoods/deleteBatch",
exportXlsUrl: "/ordergoods/orderGoods/exportXls",
@ -309,6 +332,36 @@
},
},
methods: {
goodsModule(record)
{
this.$router.push({
path: '/ordergoodsmodule/OrderGoodsModuleList',
query: { //
'ordergoodsid': record.id,
'goodsname':record.goodsName,
}
});
},
goodsModule2(record)
{
this.$router.push({
path: '/ordergoodsfabric/OrderGoodsFabricList',
query: { //
'ordergoodsid': record.id,
'goodsname':record.goodsName,
}
});
},
goodsModule3(record)
{
this.$router.push({
path: '/ordergoodsaccessories/OrderGoodsAccessoriesList',
query: { //
'ordergoodsid': record.id,
'goodsname':record.goodsName,
}
});
},
initDictConfig(){
},
getSuperFieldList(){

@ -1,34 +1,19 @@
<template>
<a-card :bordered="false">
<p style="font-size: 30px;color:#333;padding-left: 40%">{{biaoTi}}</p>
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="订单商品">
<j-dict-select-tag placeholder="请选择订单商品" v-model="queryParam.orderGoodsId" dictCode="order_goods,goods_name,id"/>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="商品">
<j-dict-select-tag placeholder="请选择商品" v-model="queryParam.goodsId" dictCode="zy_goods,goods_name,id"/>
</a-form-item>
</a-col>
<template v-if="toggleSearchStatus">
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="辅料">
<j-dict-select-tag placeholder="请选择辅料" v-model="queryParam.accessoriesId" dictCode="zy_accessories,contents,id"/>
</a-form-item>
</a-col>
</template>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<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="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
<a @click="handleToggleSearch" style="margin-left: 8px">
{{ toggleSearchStatus ? '收起' : '展开' }}
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
</a>
</span>
</a-col>
</a-row>
@ -38,18 +23,12 @@
<!-- 操作按钮区域 -->
<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-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>
<!-- 高级查询区域 -->
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
</a-dropdown>
</div>
@ -95,22 +74,7 @@
</template>
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a>
<a-divider type="vertical" />
<a-dropdown>
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
<a-menu slot="overlay">
<a-menu-item>
<a @click="handleDetail(record)">详情</a>
</a-menu-item>
<a-menu-item>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>
</a-menu-item>
</a-menu>
</a-dropdown>
<a @click="handleDetail(record)">详情</a>
</span>
</a-table>
@ -174,12 +138,12 @@
}
],
url: {
list: "/ordergoodsaccessories/orderGoodsAccessories/list",
list: "/ordergoodsaccessories/orderGoodsAccessories/list?ordergoodsid="+this.$route.query.ordergoodsid,
delete: "/ordergoodsaccessories/orderGoodsAccessories/delete",
deleteBatch: "/ordergoodsaccessories/orderGoodsAccessories/deleteBatch",
exportXlsUrl: "/ordergoodsaccessories/orderGoodsAccessories/exportXls",
importExcelUrl: "ordergoodsaccessories/orderGoodsAccessories/importExcel",
},
dictOptions:{},
superFieldList:[],
@ -187,6 +151,7 @@
},
created() {
this.getSuperFieldList();
this.biaoTi = this.$route.query.goodsname+"订单商品辅料管理";
},
computed: {
importExcelUrl: function(){

@ -1,34 +1,19 @@
<template>
<a-card :bordered="false">
<p style="font-size: 30px;color:#333;padding-left: 40%">{{biaoTi}}</p>
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="订单商品">
<j-dict-select-tag placeholder="请选择订单商品" v-model="queryParam.orderGoodsId" dictCode="order_goods,goods_name,id"/>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="商品">
<j-dict-select-tag placeholder="请选择商品" v-model="queryParam.goodsId" dictCode="zy_goods,goods_name,id"/>
</a-form-item>
</a-col>
<template v-if="toggleSearchStatus">
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="面料">
<j-dict-select-tag placeholder="请选择面料" v-model="queryParam.fabricId" dictCode="zy_fabric,name,id"/>
</a-form-item>
</a-col>
</template>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<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="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
<a @click="handleToggleSearch" style="margin-left: 8px">
{{ toggleSearchStatus ? '收起' : '展开' }}
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
</a>
</span>
</a-col>
</a-row>
@ -38,18 +23,12 @@
<!-- 操作按钮区域 -->
<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-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>
<!-- 高级查询区域 -->
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
</a-dropdown>
</div>
@ -95,22 +74,7 @@
</template>
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a>
<a-divider type="vertical" />
<a-dropdown>
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
<a-menu slot="overlay">
<a-menu-item>
<a @click="handleDetail(record)">详情</a>
</a-menu-item>
<a-menu-item>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>
</a-menu-item>
</a-menu>
</a-dropdown>
<a @click="handleDetail(record)">详情</a>
</span>
</a-table>
@ -174,12 +138,12 @@
}
],
url: {
list: "/ordergoodsfabric/orderGoodsFabric/list",
list: "/ordergoodsfabric/orderGoodsFabric/list?ordergoodsid="+this.$route.query.ordergoodsid,
delete: "/ordergoodsfabric/orderGoodsFabric/delete",
deleteBatch: "/ordergoodsfabric/orderGoodsFabric/deleteBatch",
exportXlsUrl: "/ordergoodsfabric/orderGoodsFabric/exportXls",
importExcelUrl: "ordergoodsfabric/orderGoodsFabric/importExcel",
},
dictOptions:{},
superFieldList:[],
@ -187,6 +151,7 @@
},
created() {
this.getSuperFieldList();
this.biaoTi = this.$route.query.goodsname+"订单商品面料管理";
},
computed: {
importExcelUrl: function(){

@ -1,44 +1,24 @@
<template>
<a-card :bordered="false">
<p style="font-size: 30px;color:#333;padding-left: 40%">{{biaoTi}}</p>
<!-- 查询区域 -->
<div class="table-page-search-wrapper">
<a-form layout="inline" @keyup.enter.native="searchQuery">
<a-row :gutter="24">
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="订单商品">
<j-dict-select-tag placeholder="请选择订单商品" v-model="queryParam.orderGoodsId" dictCode="order_goods,goods_name,id"/>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="商品">
<j-dict-select-tag placeholder="请选择商品" v-model="queryParam.goodsId" dictCode="zy_goods,goods_name,id"/>
</a-form-item>
</a-col>
<template v-if="toggleSearchStatus">
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="款式">
<j-dict-select-tag placeholder="请选择款式" v-model="queryParam.styleId" dictCode="zy_cloths_style,style_names,id"/>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="款式模块">
<a-input placeholder="请输入款式模块" v-model="queryParam.styleModuleId"></a-input>
</a-form-item>
</a-col>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<a-form-item label="模块">
<j-dict-select-tag placeholder="请选择模块" v-model="queryParam.moduleId" dictCode="zy_cloths_modular ,modular_name,id"/>
</a-form-item>
</a-col>
</template>
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<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="searchReset" icon="reload" style="margin-left: 8px">重置</a-button>
<a @click="handleToggleSearch" style="margin-left: 8px">
{{ toggleSearchStatus ? '收起' : '展开' }}
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
</a>
</span>
</a-col>
</a-row>
@ -48,18 +28,12 @@
<!-- 操作按钮区域 -->
<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-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">
<a-button type="primary" icon="import">导入</a-button>
</a-upload>
<!-- 高级查询区域 -->
<j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query>
<a-dropdown v-if="selectedRowKeys.length > 0">
<a-menu slot="overlay">
<a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item>
</a-menu>
<a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button>
</a-dropdown>
</div>
@ -105,22 +79,7 @@
</template>
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">编辑</a>
<a-divider type="vertical" />
<a-dropdown>
<a class="ant-dropdown-link">更多 <a-icon type="down" /></a>
<a-menu slot="overlay">
<a-menu-item>
<a @click="handleDetail(record)">详情</a>
</a-menu-item>
<a-menu-item>
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a>
</a-popconfirm>
</a-menu-item>
</a-menu>
</a-dropdown>
<a @click="handleDetail(record)">详情</a>
</span>
</a-table>
@ -148,6 +107,7 @@
return {
description: '订单商品模块表管理页面',
//
biaoTi: '',
columns: [
{
title: '#',
@ -189,7 +149,7 @@
}
],
url: {
list: "/ordergoodsmodule/orderGoodsModule/list",
list: "/ordergoodsmodule/orderGoodsModule/list?ordergoodsid="+this.$route.query.ordergoodsid,
delete: "/ordergoodsmodule/orderGoodsModule/delete",
deleteBatch: "/ordergoodsmodule/orderGoodsModule/deleteBatch",
exportXlsUrl: "/ordergoodsmodule/orderGoodsModule/exportXls",
@ -202,6 +162,7 @@
},
created() {
this.getSuperFieldList();
this.biaoTi = this.$route.query.goodsname+"订单商品模块管理";
},
computed: {
importExcelUrl: function(){

@ -53,7 +53,7 @@
</a-button>
<a-button type="primary" icon="unordered-list" @click="viewMaterialBill()">查看物料单
</a-button>
<a-button type="primary" icon="unordered-list" @click="sendToRepository()">发送到仓库
<a-button type="primary" icon="redo" @click="sendToRepository()">发送到仓库
</a-button>
<a-button type="primary" icon="download" @click="handleExportXls('计划工序')">导出</a-button>
<a-button type="primary" icon="rollback" @click="fanHui()">返回</a-button>
@ -205,6 +205,7 @@ export default {
syncProductProcess: "/org.jeecg.modules.productplan/zyPlanProcess/syncProductProcess",
autoFilling: "/org.jeecg.modules.productplan/zyPlanProcess/autoFilling",
createMaterialBill: "/org.jeecg.modules.productplan/zyPlanProcess/createMaterialBill",
sendToRepository: "/org.jeecg.modules.productplan/zyPlanProcess/sendToRepository",
stationToolslist: "/stationTool/list2",
stationMachinelist: "/stationMachine/list2",
addProcessBatch: "/org.jeecg.modules.productplan/zyPlanProcess/addProcessBatch",
@ -364,7 +365,17 @@ export default {
//
sendToRepository(){
this.loading = true;
getAction(this.url.sendToRepository, {"planId": this.planId}).then((res) => {
if (res.success) {
this.$message.success("操作成功");
this.loadData();
} else {
this.$message.warning(res.message)
}
}).finally(() => {
this.loading = false
})
},
//
@ -372,7 +383,6 @@ export default {
// debugger;
if (this.loadRouteType === false) {
this.planId = this.$route.query.planId;
// this.biaoTi = this.$route.query.styleNames+"";
console.log("*******传递的planId:" + this.planId)
this.loadRouteType = true;
}

@ -38,8 +38,8 @@
<a-spin :spinning="confirmLoading">
<h3 style="width: 98%;;margin:20px auto 0">计划面料清单</h3>
<a-table style="width: 98%;font-size:14px;margin:10px auto" :columns="columns1" :data-source="data1" bordered
rowKey="nums" :pagination="false">
<a-table style="width: 98%;font-size:14px;margin:10px auto 0" :columns="columns1" :data-source="data1" bordered
rowKey="id" :pagination="false">
</a-table>
<h3 style="width: 98%;;margin:20px auto 0">计划辅料清单</h3>
@ -71,11 +71,11 @@ import {mixinDevice} from '@/utils/mixin'
import {JeecgListMixin} from '@/mixins/JeecgListMixin'
import {filterObj} from "@/utils/util";
const columns1 = [
{
title: '计划ID',
align: "center",
dataIndex: 'planId'
},
// {
// title: 'ID',
// align: "center",
// dataIndex: 'planId'
// },
{
title: '面料',
align: "center",
@ -89,11 +89,11 @@ const columns1 = [
];
const columns2 = [
{
title: '计划ID',
align: "center",
dataIndex: 'planId'
},
// {
// title: 'ID',
// align: "center",
// dataIndex: 'planId'
// },
{
title: '辅料',
align: "center",
@ -244,23 +244,7 @@ export default {
this.loadRouteType = true;
}
},
// showModal(id) {
// this.visible = true;
// this.id = id
// this.getDetailData()
// },
// getDetailData() {
// getAction(this.url.detail, {id: this.id}).then((res) => {
// if (res.success) {
// this.data = res.result.records || res.result.records;
// console.log("data------------:" + JSON.stringify(this.data));
// } else {
// this.$message.warning(res.message)
// }
// }).finally(() => {
// this.confirmLoading = false
// })
// },
handleOk(e) {
this.confirmLoading = true;
setTimeout(() => {

@ -8,28 +8,75 @@
<a>量体数据</a>
</div>
<div class="jz">
<a-tabs default-active-key="1" :tabBarGutter="200" @change="callback">
<a-tab-pane key="1" tab="我的账户">
我的账户
</a-tab-pane>
<a-tab-pane key="2" tab="我的收藏" force-render>
我的收藏
</a-tab-pane>
<a-tab-pane key="3" tab="地址管理">
地址管理
</a-tab-pane>
<a-tab-pane key="4" tab="发票管理" force-render>
发票管理
</a-tab-pane>
<a-tab-pane key="5">
<span slot="tab">
全部订单
<a-icon type="down" />
</span>
全部订单
</a-tab-pane>
</a-tabs>
<a-menu class="menu" v-model="current" mode="horizontal" @click="menuChange">
<a-menu-item key="mail"> 我的账户 </a-menu-item>
<a-menu-item key="collect"> 我的收藏 </a-menu-item>
<a-menu-item key="addr"> 地址管理 </a-menu-item>
<a-sub-menu>
<span slot="title" class="submenu-title-wrapper">发票管理<a-icon type="down" /></span>
<a-menu-item key="invoice:1">
Option 1
</a-menu-item>
<a-menu-item key="invoice:2">
Option 2
</a-menu-item>
<a-menu-item key="invoice:3">
Option 3
</a-menu-item>
<a-menu-item key="invoice:4">
Option 4
</a-menu-item>
</a-sub-menu>
<a-sub-menu>
<span slot="title" class="submenu-title-wrapper">全部订单<a-icon type="down" /></span>
<a-menu-item key="daizhifu">
待支付
</a-menu-item>
<a-menu-item key="daishouhuo">
待收货
</a-menu-item>
<a-menu-item key="yiwancheng">
已完成
</a-menu-item>
<a-menu-item key="tuihuan">
退换服务
</a-menu-item>
</a-sub-menu>
</a-menu>
<div class="orderList">
<div class="item" v-for="(item,index) in allOrders" :key="index">
<div class="top d-flex">
<span>订单编号{{item.orderNum}}</span>
<span>
<a class="delete">删除</a>
<a class="pay" v-if="!item.pay">未支付</a>
<a class="pay" v-if="item.pay">已支付</a>
</span>
</div>
<div class="bottom d-flex">
<div class="l">
<img :src="item.url">
</div>
<div class="r">
<p class="name f_18 c_333">{{item.name}}</p>
<p class="kuanshi f_16 c_666 d-flex">
<span>款式{{item.type}}<span class="line">|</span>尺码{{item.size}}<span class="line">|</span>数量{{item.num}}</span>
<span class="f_20 c_333">¥ {{item.price}}</span>
</p>
<p><span class="c_666 f_16">主辅料{{item.material}}</span><span class="c_333 f_14"></span></p>
<p class="heji d-flex">
<span class="f_20 c_1B">总计¥ {{item.total}}</span>
<span class="f_16 c_333 ">
<a class="btn ljzf" v-if="!item.pay">立即支付</a>
<router-link to="/shopping/views/order" class="btn ckxq">查看详情</router-link>
</span>
</p>
</div>
</div>
</div>
</div>
</div>
<Footer></Footer>
</div>
@ -42,6 +89,35 @@
components: { Header,Footer },
data() {
return {
current: ['mail'],
allOrders:[
{
id:1,
orderNum:'CN172839729',
pay:false,
url:require("../assets/cloth001.png"),
name:'商品名商品名商品名商品名商品',
type:'衬衫',
size:'XXL',
num:2,
price:2456,
material:'主料1,辅料2,辅料3,辅料4,辅料5,辅料6',
total:5912
},
{
id:2,
orderNum:'CN172839730',
pay:true,
url:require("../assets/cloth002.png"),
name:'商品名商品名商品名商品名商品',
type:'衬衫',
size:'XXL',
num:3,
price:2456,
material:'主料1,辅料2,辅料3,辅料4,辅料5,辅料6',
total:5912
}
],
};
},
@ -49,6 +125,11 @@
callback(key) {
console.log(key);
},
menuChange(key){
if(key == daizhifu){
// this.allOrders.forEach()
}
}
},
};
</script>
@ -82,12 +163,83 @@
margin-bottom: 60px;
}
}
/*/deep/ .ant-tabs-nav{*/
/* width: 100%;*/
/* & >div{*/
/* display: flex;*/
/* justify-content: space-around;*/
/* }*/
/*}*/
.menu{width: 1114px;margin:0 auto}
/deep/ .ant-menu{
display: flex;
justify-content: space-between;
}
.orderList{
/*margin-top: 60px;*/
width: 1114px;margin:0 auto;
padding: 20px;
.item{
border-bottom: 1px solid #DADADA;
padding-top: 30px;
.top{
justify-content: space-between;
color: #333;
.delete{
text-decoration: underline;
color: #1B1B1B;
margin-right: 20px;
}
.pay{
color: #E53E41;
}
}
.bottom{
justify-content: space-between;
.l{
img{
width: 230px;
height: 230px;
}
}
.r{
min-width: 800px;
padding-top: 30px;
.name{
font-weight: 500;
}
.kuanshi{
justify-content: space-between;
}
.line{
margin-left: 30px;
margin-right: 30px;
}
.heji{
justify-content: space-between;
.btn{
display: inline-block;
width: 145px;
height: 40px;
line-height: 40px;
text-align: center;
}
.ljzf{
background: #333333;
color: #fff;
margin-right: 20px;
border: 1px solid #333333;
&:hover{
background: rgba(0,0,0,0.7);
/*color: #333;*/
}
}
.ckxq{
color: #333;
border: 1px solid #333333;
&:hover{
background: #333;
color: #fff;
}
}
}
}
}
}
}
</style>

@ -0,0 +1,48 @@
<template>
<div class="orderDetails">
<Header fontColor="#000"></Header>
<div style="padding-top: 88px"></div>
<div class="orderMain">
<div class="jz">
<el-breadcrumb class="breadcrumb" separator="/">
<el-breadcrumb-item :to="{ path: '/shopping/views/clothType' }">上级页面</el-breadcrumb-item>
<el-breadcrumb-item :to="{ path: '/shopping/views/clothType' }">上级页面</el-breadcrumb-item>
<el-breadcrumb-item :to="{ path: '/shopping/views/clothType' }">上级页面</el-breadcrumb-item>
<!-- <el-breadcrumb-item>{{this.$route.query.title }}</el-breadcrumb-item>-->
</el-breadcrumb>
</div>
</div>
<Footer></Footer>
</div>
</template>
<script>
import Header from "../components/Header/HeaderView";
import Footer from "../components/Footer/FooterView"
export default {
name: "orderDetails",
components: { Header,Footer },
data() {
return {
};
},
methods: {
},
};
</script>
<style>
.orderDetails .top .middle .router-link-exact-active.router-link-active {
border-bottom: 2px solid #000;
}
</style>
<style lang="less" scoped>
@import '../assets/common.css';
.orderMain{
background: #F6F6F6;
.breadcrumb{
padding-top: 50px;
padding-bottom: 50px;
}
}
</style>

@ -141,6 +141,8 @@
<a-divider type="vertical" />
<a @click="shengchan(record)">生产</a>
<a-divider type="vertical" />
<a @click="shangpin(record)">商品</a>
<a-divider type="vertical" />
<!-- <a @click="handleEdit(record)">编辑</a>
<a-divider type="vertical" />-->
<a @click="handleDetail(record)">详情</a>
@ -188,6 +190,14 @@
return parseInt(index)+1;
}
},
{
title:'下单时间',
align:"center",
dataIndex: 'orderTime',
customRender:function (text) {
return !text?"":(text.length>10?text.substr(0,10):text)
}
},
{
title:'是否子单',
align:"center",
@ -198,14 +208,6 @@
align:"center",
dataIndex: 'orderId_dictText'
},
{
title:'下单时间',
align:"center",
dataIndex: 'orderTime',
customRender:function (text) {
return !text?"":(text.length>10?text.substr(0,10):text)
}
},
{
title:'订单编号',
align:"center",
@ -424,6 +426,15 @@
}
},
shangpin(record){
this.$router.push({
path: '/ordergoods/OrderGoodsList',
query: { //
'orderid': record.id,
'ischild':record.ischild,
}
});
},
getPcaText(code){
return this.pcaData.getText(code);
},

@ -74,6 +74,29 @@ public class CustomerInvoiceController extends JeecgController<CustomerInvoice,
return Result.OK(pageList);
}
/**
* 分页列表查询
*
* @param customerInvoice
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "客户发票信息-分页列表查询")
@ApiOperation(value="客户发票信息-分页列表查询", notes="客户发票信息-分页列表查询")
@GetMapping(value = "/list1")
public Result<?> queryPageList1(CustomerInvoice customerInvoice,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<CustomerInvoice> queryWrapper = QueryGenerator.initQueryWrapper(customerInvoice, req.getParameterMap());
queryWrapper.eq("user_id",customerInvoice.getUserId());
Page<CustomerInvoice> page = new Page<CustomerInvoice>(pageNo, pageSize);
IPage<CustomerInvoice> pageList = customerInvoiceService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
@ -243,7 +266,27 @@ public class CustomerInvoiceController extends JeecgController<CustomerInvoice,
}
@AutoLog(value = "排序")
@ApiOperation(value="排序", notes="排序")
@GetMapping(value = "/up")
public Result<?> shang(@RequestParam(name="id",required=true) String id) {
System.out.println(id);
customerInvoiceService.up(id);
return Result.ok("升序成功");
}
@AutoLog(value = "排序")
@ApiOperation(value="排序", notes="排序")
@GetMapping(value = "/down")
public Result<?> xia(@RequestParam(name="id",required=true) String id) {
int a=customerInvoiceService.findSort(id);
if(a==0){
return Result.error("当前已经是最低级别!!!");}else {
customerInvoiceService.down(id);
return Result.ok("降序成功");
}
}
}

@ -3,6 +3,8 @@ package org.jeecg.modules.demo.customerinvoice.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.jeecg.modules.demo.customerinvoice.entity.CustomerInvoice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -14,4 +16,20 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public interface CustomerInvoiceMapper extends BaseMapper<CustomerInvoice> {
@Select("select sort from customer_invoice where id=#{id} ")
Integer upfindsort(String id);
@Select("select id from customer_invoice where sort=#{i} ")
String findproid(int i);
@Update("update customer_invoice set sort =#{i} where id = #{id} ")
void innew(String id, int i);
@Update("update customer_invoice set sort =#{sort} where id = #{proid} ")
void innewpro(String proid, Integer sort);
@Select("select sort from customer_invoice where id=#{id} ")
int findSort(String id);
}

@ -11,4 +11,9 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
public interface ICustomerInvoiceService extends IService<CustomerInvoice> {
void down(String id);
int findSort(String id);
void up(String id);
}

@ -3,6 +3,7 @@ package org.jeecg.modules.demo.customerinvoice.service.impl;
import org.jeecg.modules.demo.customerinvoice.entity.CustomerInvoice;
import org.jeecg.modules.demo.customerinvoice.mapper.CustomerInvoiceMapper;
import org.jeecg.modules.demo.customerinvoice.service.ICustomerInvoiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@ -16,4 +17,37 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@Service
public class CustomerInvoiceServiceImpl extends ServiceImpl<CustomerInvoiceMapper, CustomerInvoice> implements ICustomerInvoiceService {
@Autowired
CustomerInvoiceMapper customerInvoiceMapper;
@Override
public void up(String id) {
Integer sort = customerInvoiceMapper.upfindsort(id);
if (sort>0) {
//升序前找到后一个排序
String proid = customerInvoiceMapper.findproid(sort + 1);
if (proid!="") {
//调换排序
customerInvoiceMapper.innew(id,sort+1);
customerInvoiceMapper.innewpro(proid,sort);
}
}
}
@Override
public int findSort(String id) {
return customerInvoiceMapper.findSort(id);
}
@Override
public void down(String id) {
Integer sort = customerInvoiceMapper.upfindsort(id);
if (sort>0) {
String proid = customerInvoiceMapper.findproid(sort - 1);
if (proid!="") {
customerInvoiceMapper.innew(id,sort-1);
customerInvoiceMapper.innewpro(proid,sort);
}
}
}
}

@ -49,7 +49,7 @@ import org.jeecg.common.aspect.annotation.AutoLog;
public class CustomerReceivingAddressController extends JeecgController<CustomerReceivingAddress, ICustomerReceivingAddressService> {
@Autowired
private ICustomerReceivingAddressService customerReceivingAddressService;
/**
* 分页列表查询
*
@ -71,7 +71,33 @@ public class CustomerReceivingAddressController extends JeecgController<Customer
IPage<CustomerReceivingAddress> pageList = customerReceivingAddressService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 分页列表查询
*
* @param customerReceivingAddress
* @param pageNo
* @param pageSize
* @param req
* @return
*/
@AutoLog(value = "顾客地址表-分页列表查询")
@ApiOperation(value="顾客地址表-分页列表查询", notes="顾客地址表-分页列表查询")
@GetMapping(value = "/list1")
public Result<?> queryPageList1(CustomerReceivingAddress customerReceivingAddress,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<CustomerReceivingAddress> queryWrapper = QueryGenerator.initQueryWrapper(customerReceivingAddress, req.getParameterMap());
System.out.println(customerReceivingAddress.getUserId());
queryWrapper.eq("user_id",customerReceivingAddress.getUserId());
Page<CustomerReceivingAddress> page = new Page<CustomerReceivingAddress>(pageNo, pageSize);
IPage<CustomerReceivingAddress> pageList = customerReceivingAddressService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*
@ -89,7 +115,7 @@ public class CustomerReceivingAddressController extends JeecgController<Customer
return Result.OK("添加成功!");
}
}
/**
* 编辑
*
@ -107,7 +133,7 @@ public class CustomerReceivingAddressController extends JeecgController<Customer
return Result.OK("编辑成功!");
}
}
/**
* 通过id删除
*
@ -121,7 +147,7 @@ public class CustomerReceivingAddressController extends JeecgController<Customer
customerReceivingAddressService.removeById(id);
return Result.OK("删除成功!");
}
/**
* 批量删除
*
@ -135,7 +161,7 @@ public class CustomerReceivingAddressController extends JeecgController<Customer
this.customerReceivingAddressService.removeByIds(Arrays.asList(ids.split(",")));
return Result.OK("批量删除成功!");
}
/**
* 通过id查询
*
@ -176,4 +202,27 @@ public class CustomerReceivingAddressController extends JeecgController<Customer
return super.importExcel(request, response, CustomerReceivingAddress.class);
}
@AutoLog(value = "排序")
@ApiOperation(value="排序", notes="排序")
@GetMapping(value = "/up")
public Result<?> shang(@RequestParam(name="id",required=true) String id) {
customerReceivingAddressService.up(id);
return Result.ok("升序成功");
}
@AutoLog(value = "排序")
@ApiOperation(value="排序", notes="排序")
@GetMapping(value = "/down")
public Result<?> xia(@RequestParam(name="id",required=true) String id) {
int a=customerReceivingAddressService.findSort(id);
if(a==0){
return Result.error("当前已经是最低级别!!!");}else {
customerReceivingAddressService.down(id);
return Result.ok("降序成功");
}
}
}

@ -3,6 +3,8 @@ package org.jeecg.modules.demo.customerreceivingaddress.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.jeecg.modules.demo.customerreceivingaddress.entity.CustomerReceivingAddress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -14,4 +16,20 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public interface CustomerReceivingAddressMapper extends BaseMapper<CustomerReceivingAddress> {
@Select("select sort from customer_receiving_address where id=#{id} ")
Integer upfindsort(String id);
@Select("select id from customer_receiving_address where sort=#{i} ")
String findproid(int i);
@Update("update customer_receiving_address set sort =#{i} where id = #{id} ")
void innew(String id, int i);
@Update("update customer_receiving_address set sort =#{sort} where id = #{proid} ")
void innewpro(String proid, Integer sort);
@Select("select sort from customer_receiving_address where id=#{id} ")
int findSort(String id);
}

@ -11,4 +11,9 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
public interface ICustomerReceivingAddressService extends IService<CustomerReceivingAddress> {
void up(String id);
int findSort(String id);
void down(String id);
}

@ -3,6 +3,7 @@ package org.jeecg.modules.demo.customerreceivingaddress.service.impl;
import org.jeecg.modules.demo.customerreceivingaddress.entity.CustomerReceivingAddress;
import org.jeecg.modules.demo.customerreceivingaddress.mapper.CustomerReceivingAddressMapper;
import org.jeecg.modules.demo.customerreceivingaddress.service.ICustomerReceivingAddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@ -16,4 +17,38 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@Service
public class CustomerReceivingAddressServiceImpl extends ServiceImpl<CustomerReceivingAddressMapper, CustomerReceivingAddress> implements ICustomerReceivingAddressService {
@Autowired
CustomerReceivingAddressMapper customerReceivingAddressMapper;
@Override
public void up(String id) {
Integer sort = customerReceivingAddressMapper.upfindsort(id);
if (sort>0) {
//升序前找到后一个排序
String proid = customerReceivingAddressMapper.findproid(sort + 1);
if (proid!="") {
//调换排序
customerReceivingAddressMapper.innew(id,sort+1);
customerReceivingAddressMapper.innewpro(proid,sort);
}
}
}
@Override
public int findSort(String id) {
return customerReceivingAddressMapper.findSort(id);
}
@Override
public void down(String id) {
Integer sort = customerReceivingAddressMapper.upfindsort(id);
if (sort>0) {
String proid = customerReceivingAddressMapper.findproid(sort - 1);
if (proid!="") {
customerReceivingAddressMapper.innew(id,sort-1);
customerReceivingAddressMapper.innewpro(proid,sort);
}
}
}
}

@ -3,6 +3,7 @@ package org.jeecg.modules.demo.delivery.service;
import org.jeecg.modules.demo.delivery.entity.Delivery;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.productplan.entity.ZyPlanProcess;
/**
* @Description: 出库表
@ -12,4 +13,6 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
public interface IDeliveryService extends IService<Delivery> {
void sendToRepository(String planId);
}

@ -1,20 +1,97 @@
package org.jeecg.modules.demo.delivery.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.common.exception.JeecgBootException;
import org.jeecg.modules.demo.accessories.entity.ZyAccessories;
import org.jeecg.modules.demo.accessories.service.IZyAccessoriesService;
import org.jeecg.modules.demo.delivery.entity.Delivery;
import org.jeecg.modules.demo.delivery.mapper.DeliveryMapper;
import org.jeecg.modules.demo.delivery.service.IDeliveryService;
import org.jeecg.modules.demo.fabric.entity.ZyFabric;
import org.jeecg.modules.demo.fabric.service.IZyFabricService;
import org.jeecg.modules.productplan.entity.ZyPlanAccessories;
import org.jeecg.modules.productplan.entity.ZyPlanFabric;
import org.jeecg.modules.productplan.entity.ZyProductPlan;
import org.jeecg.modules.productplan.service.IZyPlanAccessoriesService;
import org.jeecg.modules.productplan.service.IZyPlanFabricService;
import org.jeecg.modules.productplan.service.IZyProductPlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.ObjectUtils;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.LinkedList;
import java.util.List;
import java.util.Optional;
/**
* @Description: 出库表
* @Author: jeecg-boot
* @Date: 2023-01-10
* @Date: 2023-01-10
* @Version: V1.0
*/
@Service
public class DeliveryServiceImpl extends ServiceImpl<DeliveryMapper, Delivery> implements IDeliveryService {
@Autowired
private IZyProductPlanService iZyProductPlanService;
@Autowired
private IZyPlanFabricService iZyPlanFabricService;
@Autowired
private IZyPlanAccessoriesService iZyPlanAccessoriesService;
@Autowired
IZyFabricService iZyFabricService;
@Autowired
private IZyAccessoriesService iZyAccessoriesService;
@Override
public void sendToRepository(String planId) {
ZyProductPlan zyProductPlan = iZyProductPlanService.getById(planId);
Optional.ofNullable(zyProductPlan).orElseThrow(() -> new JeecgBootException("生产计划不存在!"));
List<ZyPlanFabric> fabricList = iZyPlanFabricService.list(new LambdaQueryWrapper<ZyPlanFabric>()
.eq(ZyPlanFabric::getPlanId, planId));
List<Delivery> deliveryList4Fabric = new LinkedList<>();
Optional.ofNullable(fabricList).orElse(new LinkedList<>()).forEach(e -> {
Delivery delivery = new Delivery();
delivery.setDeliveryReason("0");
delivery.setItemType("0");
delivery.setAmount(e.getAmount().doubleValue());
// delivery.setDeliveryTime(new Date());
// delivery.setCarrierId("TODO");
// delivery.setAdminId("TODO");
// delivery.setStorehouseId("TODO");
ZyFabric zyFabric = iZyFabricService.getById(e.getFabricId());
if (!ObjectUtils.isEmpty(zyFabric)) {
delivery.setItemCode(zyFabric.getFabricNumber());
}
deliveryList4Fabric.add(delivery);
});
this.saveBatch(deliveryList4Fabric);
List<ZyPlanAccessories> accessoriesList = iZyPlanAccessoriesService.list(new LambdaQueryWrapper<ZyPlanAccessories>()
.eq(ZyPlanAccessories::getPlanId, planId));
List<Delivery> deliveryList4accessories = new LinkedList<>();
Optional.ofNullable(accessoriesList).orElse(new LinkedList<>()).forEach(e -> {
Delivery delivery2 = new Delivery();
delivery2.setDeliveryReason("0");
delivery2.setItemType("1");
delivery2.setAmount(e.getAmount().doubleValue());
// delivery2.setDeliveryTime(new Date());
// delivery2.setCarrierId("TODO");
// delivery2.setAdminId("TODO");
// delivery2.setStorehouseId("TODO");
ZyAccessories zyAccessories = iZyAccessoriesService.getById(e.getAccessoriesId());
if (!ObjectUtils.isEmpty(zyAccessories)) {
delivery2.setItemCode(zyAccessories.getNums());
}
deliveryList4accessories.add(delivery2);
});
this.saveBatch(deliveryList4accessories);
}
}

@ -20,6 +20,8 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.demo.zyorders.entity.ZyOrders;
import org.jeecg.modules.demo.zyorders.service.IZyOrdersService;
import org.jeecgframework.poi.excel.ExcelImportUtil;
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
import org.jeecgframework.poi.excel.entity.ExportParams;
@ -49,6 +51,8 @@ import org.jeecg.common.aspect.annotation.AutoLog;
public class OrderGoodsController extends JeecgController<OrderGoods, IOrderGoodsService> {
@Autowired
private IOrderGoodsService orderGoodsService;
@Autowired
private IZyOrdersService zyOrdersService;
/**
* 分页列表查询
@ -65,11 +69,34 @@ public class OrderGoodsController extends JeecgController<OrderGoods, IOrderGood
public Result<?> queryPageList(OrderGoods orderGoods,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<OrderGoods> queryWrapper = QueryGenerator.initQueryWrapper(orderGoods, req.getParameterMap());
Page<OrderGoods> page = new Page<OrderGoods>(pageNo, pageSize);
IPage<OrderGoods> pageList = orderGoodsService.page(page, queryWrapper);
return Result.OK(pageList);
HttpServletRequest req,@RequestParam(name="orderid",required=true)String orderid,@RequestParam(name="ischild",required=true)String ischild) {
if(orderid.equals("undefined")&&ischild.equals("undefined")){
QueryWrapper<OrderGoods> queryWrapper = QueryGenerator.initQueryWrapper(orderGoods, req.getParameterMap());
Page<OrderGoods> page = new Page<OrderGoods>(pageNo, pageSize);
IPage<OrderGoods> pageList = orderGoodsService.page(page, queryWrapper);
return Result.OK(pageList);
}else if(ischild.equals("0")){
ZyOrders zyOrders = new ZyOrders();
QueryWrapper<ZyOrders> queryWrapper1 = QueryGenerator.initQueryWrapper(zyOrders, req.getParameterMap());
queryWrapper1.eq("order_id",orderid);
List<ZyOrders> list = zyOrdersService.list(queryWrapper1);
String ids = "";
for (int i = 0 ; i < list.size() ; i++){
ids = ids + list.get(i).getId()+",";
}
QueryWrapper<OrderGoods> queryWrapper2 = QueryGenerator.initQueryWrapper(orderGoods, req.getParameterMap());
queryWrapper2.in("orders_id",ids.substring(0,ids.length()-1).split(","));
Page<OrderGoods> page = new Page<OrderGoods>(pageNo, pageSize);
IPage<OrderGoods> pageList = orderGoodsService.page(page, queryWrapper2);
return Result.OK(pageList);
}else {
QueryWrapper<OrderGoods> queryWrapper3 = QueryGenerator.initQueryWrapper(orderGoods, req.getParameterMap());
queryWrapper3.eq("orders_id",orderid);
Page<OrderGoods> page = new Page<OrderGoods>(pageNo, pageSize);
IPage<OrderGoods> pageList = orderGoodsService.page(page, queryWrapper3);
return Result.OK(pageList);
}
}
/**

@ -65,8 +65,9 @@ public class OrderGoodsAccessoriesController extends JeecgController<OrderGoodsA
public Result<?> queryPageList(OrderGoodsAccessories orderGoodsAccessories,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
HttpServletRequest req,String ordergoodsid) {
QueryWrapper<OrderGoodsAccessories> queryWrapper = QueryGenerator.initQueryWrapper(orderGoodsAccessories, req.getParameterMap());
queryWrapper.eq("order_goods_id",ordergoodsid);
Page<OrderGoodsAccessories> page = new Page<OrderGoodsAccessories>(pageNo, pageSize);
IPage<OrderGoodsAccessories> pageList = orderGoodsAccessoriesService.page(page, queryWrapper);
return Result.OK(pageList);

@ -65,8 +65,9 @@ public class OrderGoodsFabricController extends JeecgController<OrderGoodsFabric
public Result<?> queryPageList(OrderGoodsFabric orderGoodsFabric,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
HttpServletRequest req,String ordergoodsid) {
QueryWrapper<OrderGoodsFabric> queryWrapper = QueryGenerator.initQueryWrapper(orderGoodsFabric, req.getParameterMap());
queryWrapper.eq("order_goods_id",ordergoodsid);
Page<OrderGoodsFabric> page = new Page<OrderGoodsFabric>(pageNo, pageSize);
IPage<OrderGoodsFabric> pageList = orderGoodsFabricService.page(page, queryWrapper);
return Result.OK(pageList);

@ -65,8 +65,9 @@ public class OrderGoodsModuleController extends JeecgController<OrderGoodsModule
public Result<?> queryPageList(OrderGoodsModule orderGoodsModule,
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
HttpServletRequest req) {
HttpServletRequest req,String ordergoodsid) {
QueryWrapper<OrderGoodsModule> queryWrapper = QueryGenerator.initQueryWrapper(orderGoodsModule, req.getParameterMap());
queryWrapper.eq("order_goods_id",ordergoodsid);
Page<OrderGoodsModule> page = new Page<OrderGoodsModule>(pageNo, pageSize);
IPage<OrderGoodsModule> pageList = orderGoodsModuleService.page(page, queryWrapper);
return Result.OK(pageList);

@ -146,6 +146,14 @@ public class ZyPlanProcessController extends JeecgController<ZyPlanProcess, IZyP
return Result.OK();
}
@ApiOperation(value = "发送到仓库", notes = "发送到仓库")
@GetMapping(value = "/sendToRepository")
public Result<?> sendToRepository(ZyPlanProcess zyPlanProcess,
HttpServletRequest req) {
zyPlanProcessService.sendToRepository(zyPlanProcess);
return Result.OK();
}
@ApiOperation(value = "计划班组管理-查询产品工序&班组", notes = "计划班组管理-查询产品工序&班组")
@GetMapping(value = "/getTeamDatalist")
public Result<?> getTeamDatalist(ZyPlanProcess zyPlanProcess,

@ -28,4 +28,6 @@ public interface IZyPlanProcessService extends IService<ZyPlanProcess> {
void createMaterialBill(ZyPlanProcess zyPlanProcess);
Map<String, Object> getWuLiaoDetail(ZyPlanProcess zyPlanProcess);
void sendToRepository(ZyPlanProcess zyPlanProcess);
}

@ -11,6 +11,8 @@ import org.jeecg.modules.demo.accessories.entity.ZyAccessories;
import org.jeecg.modules.demo.accessories.service.IZyAccessoriesService;
import org.jeecg.modules.demo.base.entity.ZyProcess;
import org.jeecg.modules.demo.base.service.IZyProcessService;
import org.jeecg.modules.demo.delivery.entity.Delivery;
import org.jeecg.modules.demo.delivery.service.IDeliveryService;
import org.jeecg.modules.demo.fabric.entity.ZyFabric;
import org.jeecg.modules.demo.fabric.service.IZyFabricService;
import org.jeecg.modules.demo.ordergoods.entity.OrderGoods;
@ -146,6 +148,9 @@ public class ZyPlanProcessServiceImpl extends ServiceImpl<ZyPlanProcessMapper, Z
@Autowired
private IZyPlanAccessoriesService iZyPlanAccessoriesService;
@Autowired
private IDeliveryService iDeliveryService;
public List<ZyPlanProcess> getProcessDatalist(ZyPlanProcess zyPlanProcess) {
//生产计划id
String planId = zyPlanProcess.getPlanId();
@ -508,6 +513,57 @@ public class ZyPlanProcessServiceImpl extends ServiceImpl<ZyPlanProcessMapper, Z
return result;
}
@Override
public void sendToRepository(ZyPlanProcess zyPlanProcess) {
// String planId = zyPlanProcess.getPlanId();
// ZyProductPlan zyProductPlan = iZyProductPlanService.getById(planId);
// if (ObjectUtils.isEmpty(zyProductPlan)) {
// throw new JeecgBootException("生产计划不存在!");
// }
// List<ZyPlanFabric> fabricList = iZyPlanFabricService.list(new LambdaQueryWrapper<ZyPlanFabric>()
// .eq(ZyPlanFabric::getPlanId, zyPlanProcess.getPlanId()));
// List<Delivery> deliveryList4Fabric = new LinkedList<>();
// Optional.ofNullable(fabricList).orElse(new LinkedList<>()).forEach(e -> {
// Delivery delivery = new Delivery();
// delivery.setDeliveryReason("0");
// delivery.setDeliveryTime(new Date());
// delivery.setItemType("0");
// delivery.setAmount(e.getAmount().doubleValue());
// delivery.setCarrierId("admin");
// delivery.setAdminId("admin");
// delivery.setStorehouseId("TODO");
// ZyFabric zyFabric = iZyFabricService.getById(e.getFabricId());
// if (!ObjectUtils.isEmpty(zyFabric)) {
// delivery.setItemCode(zyFabric.getFabricNumber());
// }
// deliveryList4Fabric.add(delivery);
// });
// iDeliveryService.saveBatch(deliveryList4Fabric);
//
// List<ZyPlanAccessories> accessoriesList = iZyPlanAccessoriesService.list(new LambdaQueryWrapper<ZyPlanAccessories>()
// .eq(ZyPlanAccessories::getPlanId, zyPlanProcess.getPlanId()));
// List<Delivery> deliveryList4accessories = new LinkedList<>();
// Optional.ofNullable(accessoriesList).orElse(new LinkedList<>()).forEach(e -> {
// Delivery delivery2 = new Delivery();
// delivery2.setDeliveryReason("0");
// delivery2.setDeliveryTime(new Date());
// delivery2.setItemType("1");
// delivery2.setAmount(e.getAmount().doubleValue());
// delivery2.setCarrierId("admin");
// delivery2.setAdminId("admin");
// delivery2.setStorehouseId("TODO");
// ZyAccessories zyAccessories = iZyAccessoriesService.getById(e.getAccessoriesId());
// if (!ObjectUtils.isEmpty(zyAccessories)) {
// delivery2.setItemCode(zyAccessories.getNums());
// }
// deliveryList4accessories.add(delivery2);
// });
// iDeliveryService.saveBatch(deliveryList4accessories);
iDeliveryService.sendToRepository(zyPlanProcess.getPlanId());
}
@Override
public Map<String, Object> getWuLiaoDetail(ZyPlanProcess zyPlanProcess) {
String planId = zyPlanProcess.getPlanId();

Loading…
Cancel
Save