Browse Source

新增营销活动厂家沟通

master
myTest383 6 months ago
parent
commit
f6b56957f0
  1. 253
      anrui-scm/anrui-scm-ui/src/api/Common/dictcommons.js
  2. 62
      anrui-scm/anrui-scm-ui/src/api/manufactorInteract/manufactorInteract.js
  3. 62
      anrui-scm/anrui-scm-ui/src/api/marketingActivities/marketingActivities.js
  4. 423
      anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js
  5. 344
      anrui-scm/anrui-scm-ui/src/views/manufactorInteract/manufactorInteract.vue
  6. 249
      anrui-scm/anrui-scm-ui/src/views/manufactorInteract/manufactorInteractAdd.vue
  7. 112
      anrui-scm/anrui-scm-ui/src/views/manufactorInteract/manufactorInteractInfo.vue
  8. 346
      anrui-scm/anrui-scm-ui/src/views/marketingActivities/marketingActivities.vue
  9. 255
      anrui-scm/anrui-scm-ui/src/views/marketingActivities/marketingActivitiesAdd.vue
  10. 118
      anrui-scm/anrui-scm-ui/src/views/marketingActivities/marketingActivitiesInfo.vue

253
anrui-scm/anrui-scm-ui/src/api/Common/dictcommons.js

@ -0,0 +1,253 @@
import request from '@/utils/request'
export function typeValues(data) {
return request({
url: '/portal/v1/dictcommons/typeValues',
method: 'get',
params: data
})
}
// 获取所有分公司
export function selectOrgSidList(data) {
return request({
url: '/portal/v1/sysorganization/selectOrgSidList',
method: 'get',
params: data
})
}
// 根据当前登录人orgSidPath(全路径sid)查询分公司
export function getOrgSidByPath(data) {
return request({
url: '/portal/v1/sysstafforg/getOrgSidByPath',
method: 'get',
params: data
})
}
// 根据分公司sid查询分公司名称
export function fetchBySid(sid) {
return request({
url: 'portal/v1/sysorganization/fetchBySid/' + sid,
method: 'get'
})
}
// 根据当前登录用户sid获取本分公司下的销售部门和销售专员
export function selectOrgList(data) {
return request({
url: '/portal/v1/sysorganization/selectOrgList',
method: 'get',
params: data
})
}
// 根据当前登录用户全路径sidPath获取本分公司下的资方信息
export function selectListByOrgPath(data) {
return request({
url: '/riskcenter/v1/loanfinbank/selectListByOrgPath',
method: 'get',
params: data
})
}
// 根据当前登录用户的分公司sid获取本分公司下的车型信息
export function selModelByUseOrgSid(data) {
return request({
url: '/base/basevehmodelconfig/selModelByUseOrgSid',
method: 'post',
params: data
})
}
// 根据当前登录用户的全路径sidPath、用户sid、客户类型(01个人、02企业)等获取当前登录用户下的客户信息
export function selectCustomerList(data) {
return request({
url: '/crm/v1/crmcustomertemp/selectCustomerList',
method: 'get',
params: data
})
}
// 根据当前登录用户的全路径sidPath获取分公司下的客户信息
export function pickCustomer(data) {
return request({
url: '/riskcenter/v1/loansubletapply/pickCustomer',
method: 'get',
params: data
})
}
// 当前用户创建申请时判断该用户是否有该菜单的操作权限
export function selectHaveMessage(data) {
return request({
url: '/portal/v1/sysuser/selectHaveMessage ',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 根据当前登录用户的角色获取菜单分页列表页面右上角按钮的隐藏
export function getButtonPermissions(data) {
return request({
url: '/portal/v1/sysfunction/getButtonPermissions',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 根据分公司sid获取该分公司下的所有供应商
export function getGysByOrgSid(data) {
return request({
url: '/base/v1/basemanufacturer/getGysByOrgSid',
method: 'post',
params: data
})
}
// 根据分公司sid获取该分公司下的所有供应商
export function getGysTypeByOrgSid(data) {
return request({
url: '/base/v1/basemanufacturer/getGysTypeByOrgSid',
method: 'post',
params: data
})
}
// 根据分公司全路径sid和车型sid获取合格证公告型号
export function getAnnounceList(data) {
return request({
url: '/base/v1/basevehmodelannouncementmodel/getAnnounceList',
method: 'get',
params: data
})
}
// 根据分公司全路径sid、当前登录用户sid、是否打包获取已备案(有效期内)的产品政策信息
export function selectList(data) {
return request({
url: '/riskcenter/v1/LoanFinPolicy/selectList',
method: 'get',
params: data
})
}
// 获取产品政策下的其它融信息,或分公司下备案通过的其它融
export function selectListByOther(data) {
return request({
url: '/riskcenter/v1/LoanFinOtherPolicy/selectList',
method: 'get',
params: data
})
}
// 销售订单--编辑、详情初始化
export function fetchDetails(data) {
return request({
url: '/buscenter/v1/bussalesorder/fetchDetailsBySid/' + data,
method: 'get'
})
}
// 根据部门sid获取该部门主管人员
export function selectMangerByDeptSid(data) {
return request({
url: '/base/v1/basedistributorapply/selectMangerByDeptSid',
method: 'get',
params: data
})
}
// 根据分公司全路径Sid获取
export function selectInvoingByOrgPath(data) {
return request({
url: '/riskcenter/v1/loancustomerrecord/selectInvoingByOrgPath',
method: 'get',
params: data
})
}
// 获取集团所有在职人员
export function selectStaffListss() {
return request({
url: '/portal/v1/sysstaffinfo/selectStaffListss',
method: 'get'
})
}
// 根据分公司orgPath和账号类型(对公或个人,必传)获取银行账号信息
export function listByPayment(data) {
return request({
url: '/fin/v1/finmanufacturerbank/listByPayment',
method: 'get',
params: data
})
}
// 根据用户sid、分公司orgPath、账号类型(可不传)获取本分公司下的银行账号
export function selAccountByOrgSid(data) {
return request({
url: '/fin/v1/finmanufacturerbank/selAccountByOrgSid',
method: 'get',
params: data
})
}
// 根据当前登录用户的全路径查询相应部门下的所有人
export function selAllByOrgSidPath(data) {
return request({
url: '/portal/v1/sysstafforg/selAllByOrgSidPath',
method: 'post',
params: data
})
}
// 根据当前登录用户分公司sid获取本分公司下所有用户(一个用户若兼职多个部门则会多次出现)
export function getGressionUserList(data) {
return request({
url: '/portal/v1/sysstaffinfo/getGressionUserList',
method: 'get',
params: data
})
}
// 车型配置详细信息
export function selectExiCarConfig(data) {
return request({
url: '/base/v1/basevehicle/selectExiCarConfig',
method: 'post',
params: {
modelSid: data.modelSid,
configSid: data.configSid,
vehModelConfigSid: data.vehModelConfigSid
}
})
}
// 获取集团法务部所有人员
export function getLegalStaffS(data) {
return request({
url: '/riskcenter/v1/LoanCaseProgress/getLegalStaffS',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
}
// 根据资方sid获取开户行信息
export function fetchListByBankSid(data) {
return request({
url: '/riskcenter/v1/loanfinopenbank/fetchListByBankSid',
method: 'get',
params: data
})
}

62
anrui-scm/anrui-scm-ui/src/api/manufactorInteract/manufactorInteract.js

@ -0,0 +1,62 @@
import request from '@/utils/request'
// 厂家沟通
export default {
// 查询分页列表
listPage: function(params) {
return request({
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/scm/v1/manufactorInteract/listPage',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
},
saveOrUpdate: function(data) {
return request({
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/scm/v1/manufactorInteract/saveOrUpdate',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
},
saveResult: function(data) {
return request({
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/scm/v1/manufactorInteract/saveResult',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
},
init: function(data) {
return request({
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/scm/v1/manufactorInteract/gteInitBySid/' + data,
method: 'get',
})
},
deleteBySids: function(data) {
return request({
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/scm/v1/manufactorInteract/delBySids',
method: 'DELETE',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
},
}

62
anrui-scm/anrui-scm-ui/src/api/marketingActivities/marketingActivities.js

@ -0,0 +1,62 @@
import request from '@/utils/request'
// 营销活动
export default {
// 查询分页列表
listPage: function(params) {
return request({
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/scm/v1/marketingActivities/listPage',
method: 'post',
data: params,
headers: {
'Content-Type': 'application/json'
}
})
},
saveOrUpdate: function(data) {
return request({
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/scm/v1/marketingActivities/saveOrUpdate',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
},
saveResult: function(data) {
return request({
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/scm/v1/marketingActivities/saveResult',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
},
init: function(data) {
return request({
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/scm/v1/marketingActivities/gteInitBySid/' + data,
method: 'get',
})
},
deleteBySids: function(data) {
return request({
// baseURL: "http://127.0.0.1:4523/m1/613533-0-default",
url: '/scm/v1/marketingActivities/delBySids',
method: 'DELETE',
data: data,
headers: {
'Content-Type': 'application/json'
}
})
},
}

423
anrui-scm/anrui-scm-ui/src/router/modules/codemenu.js

@ -1,7 +1,6 @@
import Layout from '@/layout'
const codemenu = [
{
const codemenu = [{
path: '/scminbound',
component: Layout,
redirect: '/scminbound/index',
@ -12,7 +11,10 @@ const codemenu = [
path: '/scminbound/index',
component: () => import('@/views/anruiscm/scminbound/scminbound.vue'),
name: 'ScmInboundIndex',
meta: { title: '销售入库单', noCache: true }
meta: {
title: '销售入库单',
noCache: true
}
}]
},
{
@ -26,7 +28,10 @@ const codemenu = [
path: '/scmotherinbound/index',
component: () => import('@/views/anruiscm/scmotherinbound/scmotherinbound.vue'),
name: 'ScmOtherInboundIndex',
meta: { title: '其他入库单', noCache: true }
meta: {
title: '其他入库单',
noCache: true
}
}]
},
{
@ -40,7 +45,10 @@ const codemenu = [
path: '/scmotheroutbound/index',
component: () => import('@/views/anruiscm/scmotheroutbound/scmotheroutbound.vue'),
name: 'ScmOtherOutboundIndex',
meta: { title: '其他出库单', noCache: true }
meta: {
title: '其他出库单',
noCache: true
}
}]
},
{
@ -54,7 +62,10 @@ const codemenu = [
path: '/scmoutbound/index',
component: () => import('@/views/anruiscm/scmoutbound/scmoutbound.vue'),
name: 'ScmOutboundIndex',
meta: { title: '销售出库单', noCache: true }
meta: {
title: '销售出库单',
noCache: true
}
}]
},
{
@ -68,7 +79,10 @@ const codemenu = [
path: '/scmrealtimeinventory/index',
component: () => import('@/views/anruiscm/scmrealtimeinventory/scmrealtimeinventory.vue'),
name: 'ScmRealTimeInventoryIndex',
meta: { title: '即时库存表', noCache: true }
meta: {
title: '即时库存表',
noCache: true
}
}]
},
{
@ -82,7 +96,10 @@ const codemenu = [
path: '/scmrejected/index',
component: () => import('@/views/anruiscm/scmrejected/scmrejected.vue'),
name: 'ScmRejectedIndex',
meta: { title: '采购退料单', noCache: true }
meta: {
title: '采购退料单',
noCache: true
}
}]
},
{
@ -96,7 +113,10 @@ const codemenu = [
path: '/scmreturn/index',
component: () => import('@/views/anruiscm/scmreturn/scmreturn.vue'),
name: 'ScmReturnIndex',
meta: { title: '销售退货单', noCache: true }
meta: {
title: '销售退货单',
noCache: true
}
}]
},
@ -111,7 +131,10 @@ const codemenu = [
path: '/scmmaterial/index',
component: () => import('@/views/anruiscm/scmmaterial/scmmaterial.vue'),
name: 'ScmMaterialIndex',
meta: { title: '物料管理', noCache: true }
meta: {
title: '物料管理',
noCache: true
}
}]
},
// 存放地点
@ -126,7 +149,10 @@ const codemenu = [
path: '/scmwarehouse/index',
component: () => import('@/views/anruiscm/scmwarehouse/scmwarehouse.vue'),
name: 'ScmWarehouseIndex',
meta: { title: '存放地点', noCache: true }
meta: {
title: '存放地点',
noCache: true
}
}]
},
{
@ -140,7 +166,10 @@ const codemenu = [
path: '/shangzhuang/shangzhuangguanli',
component: () => import('@/views/shangzhuang/shangzhuangguanli/shangzhuangguanli.vue'),
name: 'ShangZhuangGuanLi',
meta: { title: '上装配置管理', noCache: true }
meta: {
title: '上装配置管理',
noCache: true
}
}]
},
{
@ -154,7 +183,10 @@ const codemenu = [
path: '/shangzhuang/shangzhuangtaizhangguanli',
component: () => import('@/views/shangzhuang/shangzhuangtaizhangguanli/shangzhuangtaizhangguanli.vue'),
name: 'shangzhuangtaizhangguanli',
meta: { title: '上装台账管理', noCache: true }
meta: {
title: '上装台账管理',
noCache: true
}
}]
},
// 合格证台账
@ -169,7 +201,10 @@ const codemenu = [
path: '/hegezheng/hegezhengtaizhang',
component: () => import('@/views/cheliang/hegezhengtaizhang/hegezhengtaizhang.vue'),
name: 'hegezhengtaizhang',
meta: { title: '合格证管理', noCache: true }
meta: {
title: '合格证管理',
noCache: true
}
}]
},
@ -185,7 +220,10 @@ const codemenu = [
path: '/caigoudingdan/index',
component: () => import('@/views/cheliang/cheliangcaigou/cheliangcaigou.vue'),
name: 'cheliangcaigou',
meta: { title: '采购订单管理', noCache: true }
meta: {
title: '采购订单管理',
noCache: true
}
}]
},
@ -196,36 +234,50 @@ const codemenu = [
meta: {
title: '挂车信息管理'
},
children: [
{
children: [{
path: '/guache/guacheguanli',
component: () => import('@/views/guache/guacheguanli/guacheguanli.vue'),
name: 'GuaCheJianSuoGuanLi',
meta: { title: '挂车管理', noCache: true }
meta: {
title: '挂车管理',
noCache: true
}
},
{
path: '/guache/guachejiansuo',
component: () => import('@/views/guache/guachejiansuo/guachejiansuoguanli.vue'),
name: 'guachejiansuoguanli',
meta: { title: '挂车管理', noCache: true }
meta: {
title: '挂车管理',
noCache: true
}
},
{
path: '/guache/guachechexing',
component: () => import('@/views/guache/guachechexing/guachechexingguanli'),
name: 'guachechexingguanli',
meta: { title: '挂车车型管理', noCache: true }
meta: {
title: '挂车车型管理',
noCache: true
}
},
{
path: '/guache/guachetaizhang',
component: () => import('@/views/guache/guachetaizhang/guachetaizhangguanli'),
name: 'GuaCheTaiZhangGuanLi',
meta: { title: '挂车台账管理', noCache: true }
meta: {
title: '挂车台账管理',
noCache: true
}
},
{
path: '/guache/guachechuku',
component: () => import('@/views/guache/guachechuku/trailerout'),
name: 'GuaCheChuKu',
meta: { title: '挂车出库管理', noCache: true }
meta: {
title: '挂车出库管理',
noCache: true
}
},
]
},
@ -238,20 +290,25 @@ const codemenu = [
meta: {
title: '车辆管理'
},
children: [
{
children: [{
path: '/cheliang/chexing',
component: () =>
import('@/views/cheliang/chexing/chexing.vue'),
name: 'chexing',
meta: { title: '车型管理', noCache: true }
meta: {
title: '车型管理',
noCache: true
}
},
{
path: '/cheliang/changyongpeizhi',
component: () =>
import('@/views/cheliang/chexingpeizhi/changyongpeizhi.vue'),
name: 'chexingpeizhi',
meta: { title: '常用配置管理', noCache: true }
meta: {
title: '常用配置管理',
noCache: true
}
},
// 车辆台账
{
@ -259,7 +316,10 @@ const codemenu = [
component: () =>
import('@/views/cheliang/cheliangtaizhang/cheliangtaizhang.vue'),
name: 'cheliangtaizhang',
meta: { title: '车辆台账', noCache: false }
meta: {
title: '车辆台账',
noCache: false
}
},
// 车辆台账查询
{
@ -267,14 +327,20 @@ const codemenu = [
component: () =>
import('@/views/cheliang/cheliangtaizhangchaxun/chaliangtaizhangselect.vue'),
name: 'chaliangtaizhangselect',
meta: { title: '车辆台账查询', noCache: true }
meta: {
title: '车辆台账查询',
noCache: true
}
},
{
path: '/cheliang/chexingbaojia',
component: () =>
import('@/views/cheliang/chexingbaojia/daibaojiaguanli/daibaojia.vue'),
name: 'daibaojia',
meta: { title: '车型报价', noCache: true }
meta: {
title: '车型报价',
noCache: true
}
},
// 车辆信息
@ -283,7 +349,10 @@ const codemenu = [
component: () =>
import('@/views/cheliang/cheliangtaizhang/cheliangtaizhangInfo.vue'),
name: 'CheliangtaizhangInfo',
meta: { title: '车辆信息', noCache: true }
meta: {
title: '车辆信息',
noCache: true
}
},
// 车辆销售(旧版)
{
@ -291,7 +360,10 @@ const codemenu = [
component: () =>
import('@/views/cheliang/cheliangxiaoshou/cheliangxiaoshouguanli.vue'),
name: 'cheliangxiaoshou',
meta: { title: '车辆销售台账', noCache: true }
meta: {
title: '车辆销售台账',
noCache: true
}
},
// 车辆销售(新版)
{
@ -299,7 +371,10 @@ const codemenu = [
component: () =>
import('@/views/cheliang/cheliangxiaoshou/cheliangxiaoshoutaizhang.vue'),
name: 'cheliangxiaoshoutaizhang',
meta: { title: '销售台账', noCache: true }
meta: {
title: '销售台账',
noCache: true
}
}
]
},
@ -315,7 +390,10 @@ const codemenu = [
path: '/supplychain/caigoutuiku',
component: () => import('@/views/supplychain/caigoutuiku/caigoutuiku.vue'),
name: 'caigoutuiku',
meta: { title: '采购退库', noCache: true }
meta: {
title: '采购退库',
noCache: true
}
}]
},
{
@ -325,18 +403,23 @@ const codemenu = [
meta: {
title: '车辆采购'
},
children: [
{
children: [{
path: '/vehicle/cheliangpaichan',
component: () => import('@/views/supplychain/cheliangpaichan/cheliangpaichan.vue'),
name: 'cheliangpaichan',
meta: { title: '厂家采购', noCache: false }
meta: {
title: '厂家采购',
noCache: false
}
},
{
path: '/vehicle/paichandingjintobeconfirmed',
component: () => import('@/views/supplychain/paichandingjin/paichandingjintobeconfirmed.vue'),
name: 'paichandingjindaiqueren',
meta: { title: '排产订金申请确认', noCache: false }
meta: {
title: '排产订金申请确认',
noCache: false
}
}
]
},
@ -347,14 +430,15 @@ const codemenu = [
meta: {
title: '车辆采购'
},
children: [
{
path: '/supplychain/changjiaxitong',
component: () => import('@/views/supplychain/changjiaxitong/manufacturers.vue'),
name: 'changjiaxitongrenkuan',
meta: { title: '厂家系统认款', noCache: false }
children: [{
path: '/supplychain/changjiaxitong',
component: () => import('@/views/supplychain/changjiaxitong/manufacturers.vue'),
name: 'changjiaxitongrenkuan',
meta: {
title: '厂家系统认款',
noCache: false
}
]
}]
},
{
path: '/supplychain',
@ -363,14 +447,15 @@ const codemenu = [
meta: {
title: '调车申请管理'
},
children: [
{
path: '/supplychain/cheliangneigou',
component: () => import('@/views/supplychain/cheliangneigou/cheliangneigouguanli.vue'),
name: 'cheliangneigouguanli',
meta: { title: '调车申请管理', noCache: true }
children: [{
path: '/supplychain/cheliangneigou',
component: () => import('@/views/supplychain/cheliangneigou/cheliangneigouguanli.vue'),
name: 'cheliangneigouguanli',
meta: {
title: '调车申请管理',
noCache: true
}
]
}]
},
{
path: '/baseoutsourcingapplication',
@ -379,14 +464,15 @@ const codemenu = [
meta: {
title: '车辆外采'
},
children: [
{
path: '/baseoutsourcingapplication/index',
component: () => import('@/views/baseoutsourcingapplication/baseoutsourcingapplication.vue'),
name: 'baseoutsourcingapplication',
meta: { title: '车辆外采', noCache: true }
children: [{
path: '/baseoutsourcingapplication/index',
component: () => import('@/views/baseoutsourcingapplication/baseoutsourcingapplication.vue'),
name: 'baseoutsourcingapplication',
meta: {
title: '车辆外采',
noCache: true
}
]
}]
},
{
path: '/examine',
@ -395,14 +481,15 @@ const codemenu = [
meta: {
title: '出库审核'
},
children: [
{
path: '/examine/chukushenhe',
component: () => import('@/views/examinePage/chukushenhe/chukushenhe.vue'),
name: 'chukushenhe',
meta: { title: '出库审核', noCache: true }
children: [{
path: '/examine/chukushenhe',
component: () => import('@/views/examinePage/chukushenhe/chukushenhe.vue'),
name: 'chukushenhe',
meta: {
title: '出库审核',
noCache: true
}
]
}]
},
{
path: '/kucunguanli',
@ -411,42 +498,59 @@ const codemenu = [
meta: {
title: '库存管理'
},
children: [
{
children: [{
path: '/kucunguanli/tiaojiaguanli',
component: () => import('@/views/kucunguanli/tiaojiaguanli/priceguanli.vue'),
name: 'priceguanli',
meta: { title: '调价申请管理', noCache: true }
meta: {
title: '调价申请管理',
noCache: true
}
},
{
path: '/kucunguanli/changjiatuiku',
component: () => import('@/views/kucunguanli/changjiatuiku/changjiatuikuguanli/changjiatuikuguanli.vue'),
name: 'changjiatuikuguanli',
meta: { title: '厂家退库办理', noCache: true }
meta: {
title: '厂家退库办理',
noCache: true
}
},
{
path: '/kucunguanli/panku',
component: () => import('@/views/kucunguanli/panku/pankuguanli.vue'),
name: 'pankuguanli',
meta: { title: '盘库管理', noCache: true }
meta: {
title: '盘库管理',
noCache: true
}
},
{
path: '/kucunguanli/cheliangweihu/richangxunjian',
component: () => import('@/views/kucunguanli/cheliangweihu/richangxunjian/cheliangxunjian.vue'),
name: 'cheliangxunjianjiluchaxun',
meta: { title: '日常巡检', noCache: true }
meta: {
title: '日常巡检',
noCache: true
}
},
{
path: '/kucunguanli/yancheguanli',
component: () => import('@/views/supplychain/yancheguanli/yancheguanli.vue'),
name: 'yancheguanli',
meta: { title: '验车管理', noCache: true }
meta: {
title: '验车管理',
noCache: true
}
},
{
path: '/kucunguanli/rukuguanli',
component: () => import('@/views/supplychain/rukuguanli/rukuguanliAwait.vue'),
name: 'rukuguanliawait',
meta: { title: '收车管理', noCache: true }
meta: {
title: '收车管理',
noCache: true
}
}
]
},
@ -457,24 +561,32 @@ const codemenu = [
meta: {
title: '其他菜单'
},
children: [
{
children: [{
path: '/othermenu/affichetype',
component: () => import('@/views/othermenu/affichetype/gonggaoguanli.vue'),
name: 'gonggaoxinghaoguanli',
meta: { title: '公告型号管理', noCache: true }
meta: {
title: '公告型号管理',
noCache: true
}
},
{
path: '/othermenu/cartags',
component: () => import('@/views/othermenu/cartags/chexingbiaoqianguanli.vue'),
name: 'chexingbiaoqianguanli',
meta: { title: '车型标签管理', noCache: true }
meta: {
title: '车型标签管理',
noCache: true
}
},
{
path: '/othermenu/shangzhuangtiaojia',
component: () => import('@/views/othermenu/shangzhuangtiaojia/shangzhuangtiaojiaguanli.vue'),
name: 'shangzhuangtiaojiaguanli',
meta: { title: '上装调价管理', noCache: true }
meta: {
title: '上装调价管理',
noCache: true
}
}
]
},
@ -485,24 +597,32 @@ const codemenu = [
meta: {
title: '单车返利'
},
children: [
{
children: [{
path: '/bikerebate/bikerebatemanagement',
component: () => import('@/views/bikerebate/bikerebatemanagement/bicyclerebatemanagement.vue'),
name: 'BicycleRebateManagement',
meta: { title: '单车返利管理', noCache: true }
meta: {
title: '单车返利管理',
noCache: true
}
},
{
path: '/bikerebate/bicyclerebatewithholding',
component: () => import('@/views/bikerebate/bicyclerebatewithholding/bicyclerebatewithholding.vue'),
name: 'BicycleRebateWithholding',
meta: { title: '单车返利预提', noCache: true }
meta: {
title: '单车返利预提',
noCache: true
}
},
{
path: '/bikerebate/bicyclerebatecheck',
component: () => import('@/views/bikerebate/bicyclerebatecheck/bicyclerebatetobechecked.vue'),
name: 'BicycleRebateToBeChecked',
meta: { title: '单车返利核对', noCache: true }
meta: {
title: '单车返利核对',
noCache: true
}
}
]
},
@ -513,30 +633,41 @@ const codemenu = [
meta: {
title: '专项返利'
},
children: [
{
children: [{
path: '/specialrebate/specialrebatemanagement',
component: () => import('@/views/specialrebate/specialrebatemanagement/specialrebatemanagement.vue'),
name: 'ZhuanXiangFanLiGuanLi',
meta: { title: '专项返利管理', noCache: true }
meta: {
title: '专项返利管理',
noCache: true
}
},
{
path: '/specialrebate/specialrebatewithholding',
component: () => import('@/views/specialrebate/specialrebatewithholding/specialrebatewithholding.vue'),
name: 'ZhuanXiangFanLiYuTi',
meta: { title: '专项返利预提', noCache: true }
meta: {
title: '专项返利预提',
noCache: true
}
},
{
path: '/specialrebate/specialrebatecheck',
component: () => import('@/views/specialrebate/specialrebatecheck/specialrebatetobechecked.vue'),
name: 'SpecialRebateToBeChecked',
meta: { title: '专项返利核对', noCache: true }
meta: {
title: '专项返利核对',
noCache: true
}
},
{
path: '/specialrebate/specialrebatedistribution',
component: () => import('@/views/specialrebate/specialrebatedistribution/specialrebatetobeallocated.vue'),
name: 'SpecialRebateToBeAllocated',
meta: { title: '专项返利分配', noCache: true }
meta: {
title: '专项返利分配',
noCache: true
}
}
]
},
@ -547,30 +678,41 @@ const codemenu = [
meta: {
title: '厂家回款返利'
},
children: [
{
children: [{
path: '/huikuanguanli/collectionrebatemanagement',
component: () => import('@/views/manufacturerrebates/huikuanguanli/collectionrebatemanagement.vue'),
name: 'HuiKuanFanLiGuanLi',
meta: { title: '厂家回款返利管理', noCache: true }
meta: {
title: '厂家回款返利管理',
noCache: true
}
},
{
path: '/huikuanyuti/collectionrebatewithholding',
component: () => import('@/views/manufacturerrebates/huikuanyuti/collectionrebatewithholding.vue'),
name: 'HuiKuanFanLiYuYiGuanLi',
meta: { title: '厂家回款返利预提', noCache: true }
meta: {
title: '厂家回款返利预提',
noCache: true
}
},
{
path: '/huikuanhedui/collectionrebatetobechecked',
component: () => import('@/views/manufacturerrebates/huikuanhedui/collectionrebatetobechecked.vue'),
name: 'HuiKuanFanLiDaiHeDui',
meta: { title: '厂家回款返利核对', noCache: true }
meta: {
title: '厂家回款返利核对',
noCache: true
}
},
{
path: '/huikuanfenpei/collectionrebateallot',
component: () => import('@/views/manufacturerrebates/huikuanfenpei/collectionrebateallot.vue'),
name: 'HuiKuanFanliFenPei',
meta: { title: '厂家回款返利分配', noCache: true }
meta: {
title: '厂家回款返利分配',
noCache: true
}
}
]
},
@ -586,7 +728,10 @@ const codemenu = [
path: '/ruzhang/ruzhangguanli',
component: () => import('@/views/ruzhang/ruzhangguanli/ruzhangguanli.vue'),
name: 'ruzhangguanli',
meta: { title: '入库管理', noCache: true }
meta: {
title: '入库管理',
noCache: true
}
}]
},
// 未售买断管理
@ -601,7 +746,10 @@ const codemenu = [
path: '/weishoumaiduan/weishoumaiduanguanli',
component: () => import('@/views/weishoumaiduan/weishoumaiduanguanli/unsoldguanli.vue'),
name: 'unsoldguanli',
meta: { title: '未售买断申请管理', noCache: true }
meta: {
title: '未售买断申请管理',
noCache: true
}
}]
},
// 出库管理
@ -616,7 +764,10 @@ const codemenu = [
path: '/chuku/chukuguanli',
component: () => import('@/views/chuku/chukuguanli/chukuguanli.vue'),
name: 'chukuguanli',
meta: { title: '出库管理', noCache: true }
meta: {
title: '出库管理',
noCache: true
}
}]
},
// 合格证盘点记录
@ -631,7 +782,10 @@ const codemenu = [
path: '/hegezhengpandian/pandianjilu',
component: () => import('@/views/supplychain/hegezhengpandianjilu/hegezhengpandianjilu.vue'),
name: 'hegezhengpandianjilu',
meta: { title: '合格证盘点', noCache: true }
meta: {
title: '合格证盘点',
noCache: true
}
}]
},
// 验车管理
@ -676,7 +830,10 @@ const codemenu = [
path: '/cunfangdidianbiangengguanli/cunfangdidianbiangeng',
component: () => import('@/views/supplychain/cunfangdidianbiangeng/cunfangdidianbiangeng.vue'),
name: 'cunfangdidianbiangeng',
meta: { title: '存放地点变更申请管理', noCache: true }
meta: {
title: '存放地点变更申请管理',
noCache: true
}
}]
},
// 调车开票申请管理
@ -691,7 +848,10 @@ const codemenu = [
path: '/diaochekaipiaoshenqingguanli/diaocheshenqing',
component: () => import('@/views/supplychain/diaochekaipiaoshenqingguanli/diaocheshenqing.vue'),
name: 'diaocheshenqing',
meta: { title: '调车开票申请管理', noCache: true }
meta: {
title: '调车开票申请管理',
noCache: true
}
}]
},
// 调账申请管理
@ -706,7 +866,10 @@ const codemenu = [
path: '/tiaozhangshenqingguanli/tiaozhangshenqing',
component: () => import('@/views/supplychain/tiaozhangshenqingguanli/tiaozhangshenqingguanli.vue'),
name: 'tiaozhangshenqingguanli',
meta: { title: '调账申请管理', noCache: true }
meta: {
title: '调账申请管理',
noCache: true
}
}]
},
// 车辆检查
@ -721,7 +884,10 @@ const codemenu = [
path: '/yanchejianchaxiangmu/yanchejiancha',
component: () => import('@/views/supplychain/yanchejianchaxiangmu/yanchejiancha.vue'),
name: 'yanchejianchaxiangmu',
meta: { title: '验车检查项目管理', noCache: true }
meta: {
title: '验车检查项目管理',
noCache: true
}
}]
},
// 供应商管理
@ -736,7 +902,10 @@ const codemenu = [
path: '/gongyingshang',
component: () => import('@/views/gongyingshang/gongyingshanggaunli.vue'),
name: 'gongyingshanggaunli',
meta: { title: '供应商管理', noCache: true }
meta: {
title: '供应商管理',
noCache: true
}
}]
},
// 采购渠道
@ -751,7 +920,10 @@ const codemenu = [
path: '/purchasingchannels/caigouqudaotobeselected',
component: () => import('@/views/purchasingchannels/caigouqudaotobeselected.vue'),
name: 'caigouqudaotobeselected',
meta: { title: '采购渠道', noCache: true }
meta: {
title: '采购渠道',
noCache: true
}
}]
},
// 采购入库单
@ -766,7 +938,46 @@ const codemenu = [
path: '/purchasereceipt',
component: () => import('@/views/purchasereceipt/purchasereceipt.vue'),
name: 'PurchaseReceipt',
meta: { title: '采购入库单', noCache: true }
meta: {
title: '采购入库单',
noCache: true
}
}]
},
{
path: '/marketingActivities',
component: Layout,
redirect: '/marketingActivities',
meta: {
title: '营销活动管理'
},
children: [{
path: '/marketingActivities/marketingActivities',
component: () => import('@/views/marketingActivities/marketingActivities.vue'),
name: 'MarketingActivities',
meta: {
title: '营销活动管理',
noCache: true
}
}]
},
{
path: '/manufactorInteract',
component: Layout,
redirect: '/manufactorInteract',
meta: {
title: '厂家沟通管理'
},
children: [{
path: '/manufactorInteract/manufactorInteract',
component: () => import('@/views/manufactorInteract/manufactorInteract.vue'),
name: 'ManufactorInteract',
meta: {
title: '厂家沟通管理',
noCache: true
}
}]
},

344
anrui-scm/anrui-scm-ui/src/views/manufactorInteract/manufactorInteract.vue

@ -0,0 +1,344 @@
<template>
<div class="app-container">
<!--列表页面-->
<div v-show="viewState == 1">
<button-bar view-title="厂家沟通管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle" />
<!--Start查询列表部分-->
<div class="main-content">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header">
<el-form-item label="分公司">
<el-input v-model="listQuery.params.orgName" placeholder="" clearable />
</el-form-item>
<el-form-item label="厂家名称">
<el-input v-model="listQuery.params.manufactorName" placeholder="" clearable />
</el-form-item>
<el-form-item label="沟通日期">
<el-date-picker v-model="listQuery.params.interactDateStartDate" value-format="yyyy-MM-dd"
format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.interactDateEndDate" value-format="yyyy-MM-dd"
format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button>
</div>
</div>
</div>
<!--End查询列表部分-->
<div class="listtop">
<div class="tit">厂家沟通列表</div>
</div>
<!--Start 主页面主要部分 -->
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;"
@selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="50" />
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center" />
<el-table-column label="操作" width="80" align="center">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="toInfo(scope.row)">详情</el-button>
</template>
</el-table-column>
<el-table-column prop="createOrgName" label="分公司" align="center" />
<el-table-column prop="manufactorName" label="厂家名称" align="center" />
<el-table-column prop="interactDate" label="沟通日期" align="center" />
<el-table-column prop="contacts" label="对接人" align="center" />
<el-table-column prop="interactContent" label="沟通事宜" align="center" />
</el-table>
</div>
<!--End 主页面主要部分-->
<div class="pages">
<div class="tit" />
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current"
:limit.sync="listQuery.size" class="pagination" @pagination="getList" />
</div>
<!--End查询列表部分-->
</div>
</div>
<!--新增及修改 -->
<manufactorInteractAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState"
@reloadlist="getList" />
<!--详情-->
<manufactorInteractInfo v-show="viewState == 4" ref="divInfo" @doback="resetState" />
</div>
</template>
<script>
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import req from '@/api/manufactorInteract/manufactorInteract'
import manufactorInteractAdd from './manufactorInteractAdd'
import manufactorInteractInfo from './manufactorInteractInfo'
export default {
name: 'ManufactorInteract',
components: {
Pagination,
pageye,
ButtonBar,
manufactorInteractAdd,
manufactorInteractInfo
},
data() {
return {
btndisabled: false,
btnList: [{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toAdd',
btnLabel: '新增'
},
{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toEdit',
btnLabel: '编辑'
},
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
isSearchShow: false,
searchxianshitit: '显示查询条件',
viewState: 1, // 1 2 3 4
tableKey: 0,
listLoading: false,
list: [],
//
listQuery: {
current: 1,
size: 10,
total: 0,
params: {
"userSid": "",
"menuUrl": "",
"orgPath": "",
"orgName": "",
"manufactorName": "",
"interactDateStartDate": "",
"interactDateEndDate": ""
}
},
sids: [],
}
},
created() {
//
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'toEdit':
this.toEdit()
break
case 'doDel':
this.doDel()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
handleSelectionChange(row) {
const aa = []
row.forEach(element => {
aa.push(element.sid)
})
this.sids = aa
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
//
getList() {
this.listLoading = true
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.listQuery.params.menuUrl = this.$route.path
req.listPage(this.listQuery).then(response => {
this.listLoading = false
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
this.list = []
this.listQuery.total = 0
}
})
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
//
handleReset() {
this.listQuery = {
current: 1,
size: 10,
total: 0,
params: {
"userSid": "",
"menuUrl": "",
"orgPath": "",
"orgName": "",
"manufactorName": "",
"interactDateStartDate": "",
"interactDateEndDate": ""
}
}
this.getList()
},
toAdd() {
this.viewState = 2
this.$refs['divAdd'].showAdd()
},
toEdit() {
if (this.sids.length != 1) {
this.$message({
showClose: true,
type: 'error',
message: '请选择一条记录进行操作'
})
return
}
this.viewState = 3
this.$refs['divAdd'].showEdit(this.sids[0])
},
doDel() {
if (this.sids.length === 0) {
this.$message({
showClose: true,
type: 'error',
message: '请选择至少一条记录进行删除操作'
})
return
}
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
req.deleteBySids(this.sids).then(resp => {
if (resp.success) {
this.$message({
type: 'success',
message: resp.msg,
showClose: true
})
}
this.getList()
loading.close()
}).catch(e => {
loading.close()
})
}).catch(() => {})
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
},
toInfo(row) {
this.viewState = 4
this.$refs['divInfo'].showDetail(row.sid)
},
resetState() {
this.viewState = 1
},
}
}
</script>
<style scoped>
/deep/ .el-form-item__error {
margin-left: 120px !important;
}
.must {
color: #f00;
}
.span-sty {
width: 130px !important;
align-items: center;
}
.addinputInfo {
margin-left: 120px !important;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw {
margin-left: 120px !important;
width: calc(100% - 115px);
}
.first_row {
border-top: 1px solid #E0E3EB;
}
.titleOne {
padding: 7px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group {
display: inline;
line-height: 1px;
vertical-align: middle;
}
</style>

249
anrui-scm/anrui-scm-ui/src/views/manufactorInteract/manufactorInteractAdd.vue

@ -0,0 +1,249 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="8">
<div class="span-sty"><span class="must">*</span> 厂家名称</div>
<el-form-item prop="manufactorName"><el-input v-model="formobj.manufactorName" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">沟通日期</div>
<el-form-item> <el-date-picker v-model="formobj.interactDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd"
type="date" class="addinputInfo addinputw" placeholder="选择日期"></el-date-picker></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty"><span class="must">*</span> 对接人</div>
<el-form-item prop="contacts"><el-input v-model="formobj.contacts" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">沟通事宜</div>
<el-form-item><el-input v-model="formobj.interactContent" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">沟通结果</div>
<el-form-item><el-input v-model="formobj.interactResult" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><el-input v-model="formobj.remarks" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">附件</div>
<el-form-item>
<upload-img ref="uploadImg" class="addinputw addinputInfo" v-model="imgList" :limit="1" bucket="map"
:upload-data="{ type: '0001' }" @change="backData" />
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</template>
<script>
import req from '@/api/manufactorInteract/manufactorInteract'
import uploadImg from '@/components/uploadFile/uploadImg'
import {
getOrgSidByPath,
fetchBySid
} from '@/api/Common/dictcommons'
export default {
name: 'ManufactorInteractAdd',
components: {
uploadImg
},
data() {
return {
viewTitle: '',
submitdisabled: false,
formobj: {
"sid": "",
"manufactorName": "",
"interactDate": "",
"contacts": "",
"interactContent": "",
"interactResult": "",
"remarks": "",
"urls": [],
"createBySid": window.sessionStorage.getItem('userSid'),
"createByName": window.sessionStorage.getItem('name'),
"createOrgSid": "",
"createOrgName": ""
},
rules: {
manufactorName: [{
required: true,
message: '厂家名称不能为空',
trigger: 'blur'
}],
contacts: [{
required: true,
message: '对接人不能为空',
trigger: 'blur'
}],
},
imgList: []
}
},
methods: {
init() {
getOrgSidByPath({
orgPath: window.sessionStorage.getItem('defaultOrgPath')
}).then((resp) => {
if (resp.success) {
this.formobj.createOrgSid = resp.data
fetchBySid(resp.data).then((respsone) => {
if (respsone.success) {
this.formobj.createOrgName = respsone.data.name
}
})
}
})
},
backData(value) {
console.log('backData》》》》', value)
this.formobj.urls = []
for (var i = 0; i < value.length; i++) {
this.formobj.urls.push(value[i].url)
}
},
showAdd() {
this.viewTitle = '【新增】厂家沟通'
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
this.init()
},
showEdit(sid) {
this.viewTitle = '【编辑】厂家沟通'
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
this.init()
req.init(sid).then((res) => {
if (res.success) {
this.formobj = res.data
this.imgList = []
for (var i = 0; i < this.formobj.urls.length; i++) {
this.imgList.push({
url: this.formobj.urls[i]
})
}
}
})
},
saveOrUpdate() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
req.saveOrUpdate(this.formobj).then((res) => {
if (res.success) {
this.$message({
showClose: true,
type: 'success',
message: '保存成功'
})
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
"sid": "",
"manufactorName": "",
"interactDate": "",
"contacts": "",
"interactContent": "",
"interactResult": "",
"remarks": "",
"urls": [],
"createBySid": window.sessionStorage.getItem('userSid'),
"createByName": window.sessionStorage.getItem('name'),
"createOrgSid": "",
"createOrgName": ""
}
this.submitdisabled = false
this.imgList = []
this.$emit('doback')
},
}
}
</script>
<style scoped>
/deep/ .el-form-item__error {
margin-left: 120px !important;
}
.must {
color: #f00;
}
.span-sty {
width: 130px !important;
align-items: center;
}
.addinputInfo {
margin-left: 120px !important;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw {
margin-left: 120px !important;
width: calc(100% - 115px);
}
.first_row {
border-top: 1px solid #E0E3EB;
}
.titleOne {
padding: 7px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group {
display: inline;
line-height: 1px;
vertical-align: middle;
}
</style>

112
anrui-scm/anrui-scm-ui/src/views/manufactorInteract/manufactorInteractInfo.vue

@ -0,0 +1,112 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="form_obj" :model="formobj" class="formaddcopy02">
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="8">
<div class="span-sty">厂家名称</div>
<el-form-item><span class="addinputInfo">{{ formobj.manufactorName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">沟通日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.interactDate }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">对接人</div>
<el-form-item><span class="addinputInfo">{{ formobj.contacts }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">沟通事宜</div>
<el-form-item><span class="addinputInfo">{{ formobj.interactContent }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">沟通结果</div>
<el-form-item><span class="addinputInfo">{{ formobj.interactResult }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">附件</div>
<el-form-item>
<template slot-scope="scope">
<span v-for="(item,index) in formobj.urls" :key="index" class="addinputInfo">
<el-popover placement="left" trigger="click" width="300">
<img :src="item" width="100%" />
<img slot="reference" :src="item" :alt="item"
style="max-height: 70px;max-width: 70px; padding: 5px" />
</el-popover>
</span>
</template>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</template>
<script>
import req from '@/api/manufactorInteract/manufactorInteract'
export default {
name: 'ManufactorInteractInfo',
components: {},
data() {
return {
viewTitle: '',
submitdisabled: false,
formobj: {},
}
},
methods: {
showDetail(sid) {
this.viewTitle = '厂家沟通详情'
req.init(sid).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
}
this.submitdisabled = false
this.$emit('doback')
},
}
}
</script>
<style scoped>
.span-sty {
width: 160px !important;
}
.addinputInfo {
margin-left: 150px !important;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw {
margin-left: 150px !important;
width: calc(100% - 145px);
}
</style>

346
anrui-scm/anrui-scm-ui/src/views/marketingActivities/marketingActivities.vue

@ -0,0 +1,346 @@
<template>
<div class="app-container">
<!--列表页面-->
<div v-show="viewState == 1">
<button-bar view-title="营销活动管理" ref="btnbar" :btndisabled="btndisabled" @btnhandle="btnHandle" />
<!--Start查询列表部分-->
<div class="main-content">
<div class="searchcon">
<el-button size="small" class="searchbtn" @click="clicksearchShow">{{ searchxianshitit }}</el-button>
<div v-show="isSearchShow" class="search">
<el-form ref="listQueryform" :inline="true" :model="listQuery" class="tab-header">
<el-form-item label="分公司">
<el-input v-model="listQuery.params.orgName" placeholder="" clearable />
</el-form-item>
<el-form-item label="活动名称">
<el-input v-model="listQuery.params.activityName" placeholder="" clearable />
</el-form-item>
<el-form-item label="活动日期">
<el-date-picker v-model="listQuery.params.activityStartDate" value-format="yyyy-MM-dd"
format="yyyy-MM-dd" type="date" placeholder="选择日期"></el-date-picker>
<span style="padding: 0 8px"></span>
<el-date-picker v-model="listQuery.params.activityEndDate" value-format="yyyy-MM-dd" format="yyyy-MM-dd"
type="date" placeholder="选择日期"></el-date-picker>
</el-form-item>
</el-form>
<div class="btn" style="text-align: center;">
<el-button type="primary" icon="el-icon-search" size="small" @click="handleFilter">查询</el-button>
<el-button type="primary" icon="el-icon-refresh" size="small" @click="handleReset">重置</el-button>
</div>
</div>
</div>
<!--End查询列表部分-->
<div class="listtop">
<div class="tit">营销活动列表</div>
<!-- <pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current"
:limit.sync="listQuery.size" class="pagination" @pagination="getList" /> -->
</div>
<!--Start 主页面主要部分 -->
<div class="">
<el-table :key="tableKey" v-loading="listLoading" :data="list" :border="true" style="width: 100%;"
@selection-change="handleSelectionChange">
<el-table-column type="selection" align="center" width="50" />
<el-table-column label="序号" type="index" width="80" :index="indexMethod" align="center" />
<el-table-column label="操作" width="80" align="center">
<template slot-scope="scope">
<el-button type="primary" size="mini" @click="toInfo(scope.row)">详情</el-button>
</template>
</el-table-column>
<el-table-column prop="createOrgName" label="分公司" align="center" />
<el-table-column prop="activityName" label="活动名称" align="center" />
<el-table-column prop="activityStartDate" label="开始日期" align="center" />
<el-table-column prop="activityEndDate" label="结束日期" align="center" />
<el-table-column prop="activityAddress" label="地点" align="center" />
</el-table>
</div>
<!--End 主页面主要部分-->
<div class="pages">
<div class="tit" />
<!-- 翻页 -->
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current"
:limit.sync="listQuery.size" class="pagination" @pagination="getList" />
</div>
<!--End查询列表部分-->
</div>
</div>
<!--新增及修改 -->
<marketingActivitiesAdd v-show="viewState == 2 || viewState == 3" ref="divAdd" @doback="resetState"
@reloadlist="getList" />
<!--详情-->
<marketingActivitiesInfo v-show="viewState == 4" ref="divInfo" @doback="resetState" />
</div>
</template>
<script>
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import req from '@/api/marketingActivities/marketingActivities'
import marketingActivitiesAdd from './marketingActivitiesAdd'
import marketingActivitiesInfo from './marketingActivitiesInfo'
export default {
name: 'MarketingActivities',
components: {
Pagination,
pageye,
ButtonBar,
marketingActivitiesAdd,
marketingActivitiesInfo
},
data() {
return {
btndisabled: false,
btnList: [{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toAdd',
btnLabel: '新增'
},
{
type: 'primary',
size: 'small',
icon: 'plus',
btnKey: 'toEdit',
btnLabel: '编辑'
},
{
type: 'danger',
size: 'small',
icon: 'del',
btnKey: 'doDel',
btnLabel: '删除'
},
{
type: 'info',
size: 'small',
icon: 'cross',
btnKey: 'doClose',
btnLabel: '关闭'
}
],
isSearchShow: false,
searchxianshitit: '显示查询条件',
viewState: 1, // 1 2 3 4
tableKey: 0,
listLoading: false,
list: [],
//
listQuery: {
current: 1,
size: 10,
total: 0,
params: {
"userSid": "",
"menuUrl": "",
"orgPath": "",
"orgName": "",
"activityName": "",
"activityStartDate": "",
"activityEndDate": ""
}
},
sids: [],
}
},
created() {
//
this.getList()
},
mounted() {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
//
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
if (this.isSearchShow) {
this.searchxianshitit = '隐藏查询条件'
} else {
this.searchxianshitit = '显示查询条件'
}
},
btnHandle(btnKey) {
console.log('XXXXXXXXXXXXXXX ' + btnKey)
switch (btnKey) {
case 'toAdd':
this.toAdd()
break
case 'toEdit':
this.toEdit()
break
case 'doDel':
this.doDel()
break
case 'doClose':
this.doClose()
break
default:
break
}
},
handleSelectionChange(row) {
const aa = []
row.forEach(element => {
aa.push(element.sid)
})
this.sids = aa
},
//
indexMethod(index) {
var pagestart = (this.listQuery.current - 1) * this.listQuery.size
var pageindex = index + 1 + pagestart
return pageindex
},
//
getList() {
this.listLoading = true
this.listQuery.params.userSid = window.sessionStorage.getItem('userSid')
this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
this.listQuery.params.menuUrl = this.$route.path
req.listPage(this.listQuery).then(response => {
this.listLoading = false
if (response.success) {
this.list = response.data.records
this.listQuery.total = response.data.total
} else {
this.list = []
this.listQuery.total = 0
}
})
},
//
handleFilter() {
this.listQuery.current = 1
this.getList()
},
//
handleReset() {
this.listQuery = {
current: 1,
size: 10,
total: 0,
params: {
"userSid": "",
"menuUrl": "",
"orgPath": "",
"orgName": "",
"activityName": "",
"activityStartDate": "",
"activityEndDate": ""
}
}
this.getList()
},
toAdd() {
this.viewState = 2
this.$refs['divAdd'].showAdd()
},
toEdit() {
if (this.sids.length != 1) {
this.$message({
showClose: true,
type: 'error',
message: '请选择一条记录进行操作'
})
return
}
this.viewState = 3
this.$refs['divAdd'].showEdit(this.sids[0])
},
doDel() {
if (this.sids.length === 0) {
this.$message({
showClose: true,
type: 'error',
message: '请选择至少一条记录进行删除操作'
})
return
}
const tip = '请确认是否删除所选 ' + this.sids.length + ' 条记录?'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
req.deleteBySids(this.sids).then(resp => {
if (resp.success) {
this.$message({
type: 'success',
message: resp.msg,
showClose: true
})
}
this.getList()
loading.close()
}).catch(e => {
loading.close()
})
}).catch(() => {})
},
doClose() {
this.$store.dispatch('tagsView/delView', this.$route)
this.$router.go(-1)
},
toInfo(row) {
this.viewState = 4
this.$refs['divInfo'].showDetail(row.sid)
},
resetState() {
this.viewState = 1
},
}
}
</script>
<style scoped>
/deep/ .el-form-item__error {
margin-left: 120px !important;
}
.must {
color: #f00;
}
.span-sty {
width: 130px !important;
align-items: center;
}
.addinputInfo {
margin-left: 120px !important;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw {
margin-left: 120px !important;
width: calc(100% - 115px);
}
.first_row {
border-top: 1px solid #E0E3EB;
}
.titleOne {
padding: 7px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group {
display: inline;
line-height: 1px;
vertical-align: middle;
}
</style>

255
anrui-scm/anrui-scm-ui/src/views/marketingActivities/marketingActivitiesAdd.vue

@ -0,0 +1,255 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="primary" size="small" :disabled="submitdisabled" @click="saveOrUpdate()">保存</el-button>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="form_obj" :model="formobj" :rules="rules" class="formaddcopy02">
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="8">
<div class="span-sty"><span class="must">*</span> 活动名称</div>
<el-form-item prop="activityName"><el-input v-model="formobj.activityName" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">活动开始日期</div>
<el-form-item> <el-date-picker v-model="formobj.activityStartDate" value-format="yyyy-MM-dd"
format="yyyy-MM-dd" type="date" class="addinputInfo addinputw"
placeholder="选择日期"></el-date-picker></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">活动结束日期</div>
<el-form-item> <el-date-picker v-model="formobj.activityEndDate" value-format="yyyy-MM-dd"
format="yyyy-MM-dd" type="date" class="addinputInfo addinputw"
placeholder="选择日期"></el-date-picker></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">活动地点</div>
<el-form-item><el-input v-model="formobj.activityAddress" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">活动内容</div>
<el-form-item><el-input v-model="formobj.activityContent" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">活动总结</div>
<el-form-item><el-input v-model="formobj.activitySummary" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><el-input v-model="formobj.remarks" clearable placeholder=""
class="addinputInfo addinputw" /></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">附件</div>
<el-form-item>
<upload-img ref="uploadImg" class="addinputw addinputInfo" v-model="imgList" :limit="1" bucket="map"
:upload-data="{ type: '0001' }" @change="backData" />
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</template>
<script>
import req from '@/api/marketingActivities/marketingActivities'
import uploadImg from '@/components/uploadFile/uploadImg'
import {
getOrgSidByPath,
fetchBySid
} from '@/api/Common/dictcommons'
export default {
name: 'MarketingActivitiesAdd',
components: {
uploadImg
},
data() {
return {
viewTitle: '',
submitdisabled: false,
formobj: {
"sid": "",
"activityName": "",
"activityStartDate": "",
"activityEndDate": "",
"activityAddress": "",
"activityContent": "",
"activitySummary": "",
"remarks": "",
"urls": [],
"createBySid": window.sessionStorage.getItem('userSid'),
"createByName": window.sessionStorage.getItem('name'),
"createOrgSid": "",
"createOrgName": ""
},
rules: {
activityName: [{
required: true,
message: '活动名称不能为空',
trigger: 'blur'
}],
},
imgList: []
}
},
methods: {
init() {
getOrgSidByPath({
orgPath: window.sessionStorage.getItem('defaultOrgPath')
}).then((resp) => {
if (resp.success) {
this.formobj.createOrgSid = resp.data
fetchBySid(resp.data).then((respsone) => {
if (respsone.success) {
this.formobj.createOrgName = respsone.data.name
}
})
}
})
},
backData(value) {
console.log('backData》》》》', value)
this.formobj.urls = []
for (var i = 0; i < value.length; i++) {
this.formobj.urls.push(value[i].url)
}
},
showAdd() {
this.viewTitle = '【新增】营销活动'
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
this.init()
},
showEdit(sid) {
this.viewTitle = '【编辑】营销活动'
this.$nextTick(() => {
this.$refs['form_obj'].clearValidate()
})
this.init()
req.init(sid).then((res) => {
if (res.success) {
this.formobj = res.data
this.imgList = []
for (var i = 0; i < this.formobj.urls.length; i++) {
this.imgList.push({
url: this.formobj.urls[i]
})
}
}
})
},
saveOrUpdate() {
this.$refs['form_obj'].validate((valid) => {
if (valid) {
this.submitdisabled = true
req.saveOrUpdate(this.formobj).then((res) => {
if (res.success) {
this.$message({
showClose: true,
type: 'success',
message: '保存成功'
})
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
"sid": "",
"activityName": "",
"activityStartDate": "",
"activityEndDate": "",
"activityAddress": "",
"activityContent": "",
"activitySummary": "",
"remarks": "",
"urls": [],
"createBySid": window.sessionStorage.getItem('userSid'),
"createByName": window.sessionStorage.getItem('name'),
"createOrgSid": "",
"createOrgName": ""
}
this.submitdisabled = false
this.imgList = []
this.$emit('doback')
},
}
}
</script>
<style scoped>
/deep/ .el-form-item__error {
margin-left: 120px !important;
}
.must {
color: #f00;
}
.span-sty {
width: 130px !important;
align-items: center;
}
.addinputInfo {
margin-left: 120px !important;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw {
margin-left: 120px !important;
width: calc(100% - 115px);
}
.first_row {
border-top: 1px solid #E0E3EB;
}
.titleOne {
padding: 7px;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .el-radio-group {
display: inline;
line-height: 1px;
vertical-align: middle;
}
</style>

118
anrui-scm/anrui-scm-ui/src/views/marketingActivities/marketingActivitiesInfo.vue

@ -0,0 +1,118 @@
<template>
<div class="app-container">
<div class="tab-header webtop">
<div>{{ viewTitle }}</div>
<div>
<el-button type="info" size="small" @click="handleReturn()">关闭</el-button>
</div>
</div>
<div class="listconadd">
<el-form ref="form_obj" :model="formobj" class="formaddcopy02">
<el-row style="border-top: 1px solid #e0e3eb">
<el-col :span="8">
<div class="span-sty">活动名称</div>
<el-form-item><span class="addinputInfo">{{ formobj.activityName }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">活动开始日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.activityStartDate }}</span></el-form-item>
</el-col>
<el-col :span="8">
<div class="span-sty">活动结束日期</div>
<el-form-item><span class="addinputInfo">{{ formobj.activityEndDate }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">活动地点</div>
<el-form-item><span class="addinputInfo">{{ formobj.activityAddress }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">活动内容</div>
<el-form-item><span class="addinputInfo">{{ formobj.activityContent }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">活动总结</div>
<el-form-item><span class="addinputInfo">{{ formobj.activitySummary }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">备注</div>
<el-form-item><span class="addinputInfo">{{ formobj.remarks }}</span></el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
<div class="span-sty">附件</div>
<el-form-item>
<template slot-scope="scope">
<span v-for="(item,index) in formobj.urls" :key="index" class="addinputInfo">
<el-popover placement="left" trigger="click" width="300">
<img :src="item" width="100%" />
<img slot="reference" :src="item" :alt="item"
style="max-height: 70px;max-width: 70px; padding: 5px" />
</el-popover>
</span>
</template>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
</div>
</template>
<script>
import req from '@/api/marketingActivities/marketingActivities'
export default {
name: 'MarketingActivitiesInfo',
components: {},
data() {
return {
viewTitle: '',
submitdisabled: false,
formobj: {},
}
},
methods: {
showDetail(sid) {
this.viewTitle = '营销活动详情'
req.init(sid).then((res) => {
if (res.success) {
this.formobj = res.data
}
})
},
handleReturn(isreload) {
if (isreload === 'true') this.$emit('reloadlist')
this.formobj = {
}
this.submitdisabled = false
this.$emit('doback')
},
}
}
</script>
<style scoped>
.span-sty {
width: 160px !important;
}
.addinputInfo {
margin-left: 150px !important;
}
.formaddcopy02 .el-row .el-col /deep/ .el-form-item .addinputw {
margin-left: 150px !important;
width: calc(100% - 145px);
}
</style>
Loading…
Cancel
Save