Commit ebb594d5 by 前端

Merge branch 'wangzh_dev_v4.19' into 'master'

Wangzh dev v4.19

See merge request !1
2 parents 395aa1e9 67291d18
...@@ -6443,9 +6443,9 @@ ...@@ -6443,9 +6443,9 @@
} }
}, },
"glsx-common": { "glsx-common": {
"version": "1.4.9", "version": "2.0.8",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.9.tgz", "resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-2.0.8.tgz",
"integrity": "sha512-RQWGOGEXUPNmHkZn7n+eukkXp6L/mOfsgMo4gFtrt80ZDxGaznHMg7Isi4+IrEdvVdzp8Cju0eiCTddnZfdsJg==", "integrity": "sha512-hKt/SNFu+NslOHWvDLxmRwUkINBrnATTYIkOj+jmcx5RqfXIbMgEipzFGbCICWMlYYoecwRiJ6341sstPCCHLQ==",
"requires": { "requires": {
"axios": "^0.21.3", "axios": "^0.21.3",
"md5": "^2.3.0", "md5": "^2.3.0",
...@@ -6465,6 +6465,19 @@ ...@@ -6465,6 +6465,19 @@
"vue": "^2.6.11", "vue": "^2.6.11",
"vue-amap": "^0.5.10", "vue-amap": "^0.5.10",
"vuedraggable": "^2.24.3" "vuedraggable": "^2.24.3"
},
"dependencies": {
"glsx-common": {
"version": "1.4.9",
"resolved": "https://registry.npmjs.org/glsx-common/-/glsx-common-1.4.9.tgz",
"integrity": "sha512-RQWGOGEXUPNmHkZn7n+eukkXp6L/mOfsgMo4gFtrt80ZDxGaznHMg7Isi4+IrEdvVdzp8Cju0eiCTddnZfdsJg==",
"requires": {
"axios": "^0.21.3",
"md5": "^2.3.0",
"qs": "^6.10.1",
"sha1": "^1.1.1"
}
}
} }
}, },
"gopd": { "gopd": {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
"dayjs": "^1.10.7", "dayjs": "^1.10.7",
"el-tree-transfer": "^2.2.6", "el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5", "element-ui": "^2.4.5",
"glsx-common": "^1.4.6", "glsx-common": "^2.0.8",
"glsx-components": "^1.2.5", "glsx-components": "^1.2.5",
"vue": "^2.6.10", "vue": "^2.6.10",
"vue-router": "^3.1.3", "vue-router": "^3.1.3",
......
import { http } from '@/main'
const defaultPath = 'scrm.api.shopmall.'
const getListApi = params => {
params.method = `${defaultPath}orderGoodsComment.page`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const deleteZoneApi = params => {
params.method = `${defaultPath}zoneInfo.delete`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
const getZoneInfoApi = params => {
params.method = `${defaultPath}zoneInfo.getById`
return http({
url: 'rop-scrm-shopmall/router',
method: 'GET',
data: params,
sign: true
})
}
const insertZoneApi = params => {
params.method = `${defaultPath}zoneInfo.insertOrUpdate`
return http({
url: 'rop-scrm-shopmall/router',
method: 'POST',
data: params,
sign: true,
returnAll: true
})
}
export default { getListApi, deleteZoneApi, getZoneInfoApi, insertZoneApi }
...@@ -2,72 +2,40 @@ import { http } from '@/main' ...@@ -2,72 +2,40 @@ import { http } from '@/main'
const path = 'dj.api.' const path = 'dj.api.'
const path2 = 'dj.smartcarlife.api.' const path2 = 'dj.smartcarlife.api.'
// 获取素材详情
export function getList(data) { const getProductInfo = (params) => {
data.method = `${path}goodsinfo.page` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
return http(data) params.routerMethod = `${path}goodsinfo.get.byId`
} return http({
url: 'rop-scrm-boutiquecoupon/router',
export function getType(data) { method: 'POST',
data.method = `${path}goods.type.list` data: params,
return http(data) sign: true
} })
// 添加产品
export function addGoods(data) {
data.method = `${path}goodsinfo.add`
return http(data, "post")
}
// 编辑产品
export function editGoods(data) {
data.method = `${path}goodsinfo.update`
return http(data, "post")
}
// 判断产品是否可删除
export function checkDeleteGoods(data) {
data.method = `${path2}goodsinfo.checkDeleteable`
return http(data, "post")
}
// 删除产品
export function deleteGoods(data) {
data.method = `${path2}goodsinfo.delete`
return http(data, "post")
}
// 导出产品
export function exportGoodsList(data) {
data.method = `${path}goodsinfo.export`
return http(data, "post")
} }
// 获取场景下类目 // 获取场景下类目
export function getProductTypeBySceneId(data) { const getProductTypeBySceneId = (params) => {
data.method = `${path}goodsCategoryConfiguration.queryGoodsCategoryBySceneId` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
return http(data, "post") params.routerMethod = `${path}goodsCategoryConfiguration.queryGoodsCategoryBySceneId`
} return http({
url: 'rop-scrm-boutiquecoupon/router',
// 获取品牌方/供应方 method: 'POST',
export function getBrandSupplyMerchant(data) { data: params,
data.method = `${path}goods.type.queryGoodsRelatedParty` sign: true
return http(data, "post") })
} }
// 新增供应方 // 查询产品列表
export function addBrandSupplyMerchant(data) { const getGoodsList = (params) => {
data.method = `${path}goods.type.addGoodsRelatedParty` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
return http(data, "post") params.routerMethod = `${path}goodsinfo.list`
} return http({
url: 'rop-scrm-boutiquecoupon/router',
// 编辑/删除供应方 method: 'POST',
export function editBrandSupplyMerchant(data) { data: params,
data.method = `${path}goods.type.editGoodsRelatedParty` sign: true
return http(data, "post") })
} }
// 获取素材详情 export default { getGoodsList,getProductInfo, getProductTypeBySceneId }
export function getProductInfo(data) {
data.method = `${path}goodsinfo.get.byId`
return http(data, "post")
}
...@@ -5,9 +5,10 @@ const path2 = 'dj.api.goodsInfo.' ...@@ -5,9 +5,10 @@ const path2 = 'dj.api.goodsInfo.'
const path3 = 'dj.api.smartcarlife.' const path3 = 'dj.api.smartcarlife.'
// 分页查询采购订单 // 分页查询采购订单
const getPurchaseOrderList = (params) => { const getPurchaseOrderList = (params) => {
params.method = `${path}purchaseOrder.page` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}purchaseOrder.page`
return http({ return http({
url: 'rop-dj-smartcarlife/router', url: 'rop-scrm-boutiquecoupon/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -15,30 +16,33 @@ const getPurchaseOrderList = (params) => { ...@@ -15,30 +16,33 @@ const getPurchaseOrderList = (params) => {
} }
// 采购订单取消/审核 // 采购订单取消/审核
const purchaseOrderCancelOrCheck = (params) => { const purchaseOrderCancelOrCheck = (params) => {
params.method = `${path}purchaseOrder.cancelOrCheck` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}purchaseOrder.cancelOrCheck`
return http({ return http({
url: 'rop-dj-smartcarlife/router', url: 'rop-scrm-boutiquecoupon/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true, sign: true,
returnAll:true returnAll: true
}) })
} }
// 查看采购订单 // 查看采购订单
const purchaseOrderDetail=(params)=> { const purchaseOrderDetail = (params) => {
params.method = `${path}purchaseOrder.view` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}purchaseOrder.view`
return http({ return http({
url: 'rop-dj-smartcarlife/router', url: 'rop-scrm-boutiquecoupon/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
// 分页查询采购商城素材信息 // 分页查询采购商城素材信息
const listWithPagePurchaseInfo=(params)=> { const listWithPagePurchaseInfo = (params) => {
params.method = `${path2}listWithPage.purchaseInfo` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path2}listWithPage.purchaseInfo`
return http({ return http({
url: 'rop-dj-smartcarlife/router', url: 'rop-scrm-boutiquecoupon/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -46,10 +50,11 @@ const listWithPagePurchaseInfo=(params)=> { ...@@ -46,10 +50,11 @@ const listWithPagePurchaseInfo=(params)=> {
} }
// 获取当前登录园区店商户收货地址 // 获取当前登录园区店商户收货地址
const addressGet=(params = {}) =>{ const addressGet = (params = {}) => {
params.method = `${path}yqMerchantDeliveryAddress.get` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}yqMerchantDeliveryAddress.get`
return http({ return http({
url: 'rop-dj-smartcarlife/router', url: 'rop-scrm-boutiquecoupon/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -58,10 +63,11 @@ const addressGet=(params = {}) =>{ ...@@ -58,10 +63,11 @@ const addressGet=(params = {}) =>{
// 保存园区店商户收货地址 // 保存园区店商户收货地址
const addressSave=(params)=> { const addressSave = (params) => {
params.method = `${path}yqMerchantDeliveryAddress.save` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}yqMerchantDeliveryAddress.save`
return http({ return http({
url: 'rop-dj-smartcarlife/router', url: 'rop-scrm-boutiquecoupon/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
...@@ -69,33 +75,64 @@ const addressSave=(params)=> { ...@@ -69,33 +75,64 @@ const addressSave=(params)=> {
} }
// 按商品类目分组获取购物车列表 // 按商品类目分组获取购物车列表
export function listGroupByGoodsType(data) { const listGroupByGoodsType = (params) => {
data.method = `${path}purchaseShoppingCar.listGroupByGoodsType` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
return http(data) params.routerMethod = `${path}purchaseShoppingCar.listGroupByGoodsType`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
} }
// 添加到购物车
export function shoppingCarAdd(data) {
data.method = `${path}purchaseShoppingCar.add`
return http(data)
}
// 更新购物车商品选中标识
const updateSelectedFlag = (params) => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}purchaseShoppingCar.updateSelectedFlag`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 移除购物车商品 // 移除购物车商品
export function shoppingCarRemove(data) { const shoppingCarRemove = (params) => {
data.method = `${path}purchaseShoppingCar.remove` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
return http(data) params.routerMethod = `${path}purchaseShoppingCar.remove`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
} }
// 修改购物车商品数量 // 添加到购物车
export function shoppingCarUpdateNumber(data) { const shoppingCarAdd = (params) => {
data.method = `${path}purchaseShoppingCar.updateNumber` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
return http(data) params.routerMethod = `${path}purchaseShoppingCar.add`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
} }
// 更新购物车商品选中标识
export function updateSelectedFlag(data) {
data.method = `${path}purchaseShoppingCar.updateSelectedFlag` // 修改购物车商品数量
return http(data) export function shoppingCarUpdateNumber(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `${path}purchaseShoppingCar.updateNumber`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params
})
} }
...@@ -103,33 +140,62 @@ export function updateSelectedFlag(data) { ...@@ -103,33 +140,62 @@ export function updateSelectedFlag(data) {
// 添加采购订单 // 添加采购订单
export function purchaseOrderAdd(data) { export function purchaseOrderAdd(params) {
data.method = `${path}purchaseOrder.add` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
return http(data, "post") params.routerMethod = `${path}purchaseOrder.add`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
} }
export function exportExcel(params) {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.routerMethod = `dj.api.smarcarlife.purchaseOrder.export`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
}
// 采购订单入库 // 采购订单入库
export function purchaseOrderPutIn(data) { export function purchaseOrderPutIn(params) {
data.method = `${path}purchaseOrder.putIn` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
return http(data) params.routerMethod = `${path}purchaseOrder.putIn`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
} }
// 获取下单/入库门店 // 获取下单/入库门店
export function getMerchantList(data) { export function getMerchantList(params) {
data.method = `${path3}permission.yqMerchant.list` params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
return http(data, "post") params.routerMethod = `${path3}permission.yqMerchant.list`
return http({
url: 'rop-scrm-boutiquecoupon/router',
method: 'POST',
data: params,
sign: true
})
} }
// 确认发货 // 确认发货
export function purchaseOrderConfirmDelivery(data) { // export function purchaseOrderConfirmDelivery(data) {
data.method = `${path}purchaseOrder.confirmDelivery` // params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
return http(data) // data.routerMethod = `${path}purchaseOrder.confirmDelivery`
} // return http(data)
// }
export default { getPurchaseOrderList,purchaseOrderCancelOrCheck,purchaseOrderDetail ,listWithPagePurchaseInfo,addressGet,addressSave}
\ No newline at end of file \ No newline at end of file
export default { getMerchantList,purchaseOrderPutIn, exportExcel, shoppingCarUpdateNumber, purchaseOrderAdd, shoppingCarAdd, shoppingCarRemove, updateSelectedFlag, listGroupByGoodsType, getPurchaseOrderList, purchaseOrderCancelOrCheck, purchaseOrderDetail, listWithPagePurchaseInfo, addressGet, addressSave }
\ No newline at end of file \ No newline at end of file
/*
* @Author: limin
* @Date: 2019-08-26 18:02:55
* @Last Modified by: chenwq
* @Last Modified time: 2021-06-07 16:30:53
*/
import { http } from '@/main'
// import RequestMethods from "./request.methods"
// export const BASE_DATA_URL = "fims.configuration.from.conftype"
import { http,http_common } from '@/main'
const path = "dj.api." const path = "dj.api."
const defaultPath = 'scrm.api.carlife.'
// // 获取商品分类列表
// export function getProductType(data) {
// data.method = `${path}goods.type.list`
// return request(data)
// }
// 获取不同场景的商品分类 // 获取不同场景的商品分类
const getGoodsCategoryConfiguration = (params) => { const getGoodsCategoryConfiguration = (params) => {
params.method = `scrm.api.boutiquecoupon.rop.router.twoCityTale`
params.currentPage = 1 params.currentPage = 1
params.pageSize = 999999 params.pageSize = 999999
params.method = `${path}goodsCategoryConfiguration.page` params.routerMethod = `${path}goodsCategoryConfiguration.page`
return http({ return http({
url: 'rop-dj-smartcarlife/router', url: 'rop-scrm-boutiquecoupon/router',
method: 'POST', method: 'POST',
data: params, data: params,
sign: true sign: true
}) })
} }
// // 获取渠道列表 // 视频上传
// export function getChannelType(data) { const uploadVideo = params => {
// data.method = `${path}channel.type.list` params.method = `${defaultPath}common.uploadVideo`
// return request(data) return http({
// } url: 'rop-scrm-carlife/router',
method: 'POST',
// // 图片上传 data: params,
// export function uploadImg(data) { sign: true,
// data.method = `${path}common.uploadImg` noSignAttr: ['file']
// return request(data, RequestMethods.POST, ["file"]) })
// } }
// // 图片识别
// export function imgRecognitionApi(data) {
// data.method = `${path}common.ocr.recognition`
// return request(data, RequestMethods.POST)
// }
// // 银行列表
// export function getBankListApi(data) {
// data.method = `${path}yseBankInfo.bankList`
// return request(data, RequestMethods.POST)
// }
// // 银行列表-支行
// export function getYseBankListApi(data) {
// data.method = `${path}yseBankInfo.listWithPage`
// return request(data, RequestMethods.POST)
// }
// // 给指定号码发送验证码
// export function sendToSmsCodeApi(data) {
// data.method = `${path}smartcarlife.sms.sendSmsCode`
// return request(data, RequestMethods.POST)
// }
// // 获取配置列表
// export function commonConfigApi(data) {
// data.method = `${path}common.config.list`
// return request(data, RequestMethods.POST)
// }
// // Excel异步导出
// export function asyncExportExcel(data) {
// data.method = `${path}common.async.exportExcel`
// return request(data, RequestMethods.POST)
// }
// // 获取Excel异步导出查询导出结果
// export function exportExcel(data) {
// data.method = `${path}common.query.async.exportExcel`
// return request(data, RequestMethods.POST)
// }
// // 视频上传
// export function uploadVideo(data) {
// data.method = `${path}smartcarlife.common.uploadVideo`
// return request(data, RequestMethods.POST, ["file"])
// }
// // 类目列表获取 const uploadImg = params => {
// export function queryFeeCategoryByType(data) { params.method = 'glsx.accounts.biz.common.pictureUpload'
// data.method = `${path}smartcarlife.feeCategory.queryFeeCategoryByType` return http_common({
// return request(data, RequestMethods.POST) url: '/router?method=glsx.accounts.biz.common.pictureUpload',
// } method: 'POST',
data: params,
sign: true,
noSignAttr: ['file']
})
}
// // 2.0场景 素材可选的服务项目 export default { getGoodsCategoryConfiguration, uploadImg, uploadVideo }
// export function getProductServiceItems(data) {
// data.method = `dj.api.smartcarlife.vd.item.list.single`
// return request(data)
// }
export default { getGoodsCategoryConfiguration }
...@@ -23,4 +23,12 @@ html { ...@@ -23,4 +23,12 @@ html {
} }
.pointer{ .pointer{
cursor: pointer; cursor: pointer;
}
.carIcon {
display: inline-block;
width: 22px;
height: 22px;
background: url(../../images/shoppingCarIcon.webp) no-repeat;
background-size: 100% 100%;
margin-right: 4px;
} }
\ No newline at end of file \ No newline at end of file
...@@ -9,22 +9,21 @@ ...@@ -9,22 +9,21 @@
// 根据环境引入不同配置 process.env.VUE_APP_ENV // 根据环境引入不同配置 process.env.VUE_APP_ENV
// let request = require('@/http/request.js') // let request = require('@/http/request.js')
let cfg = require('./conf.js') let cfg = require('./conf.js')
import { Http } from 'glsx-common' import { Http, utils } from 'glsx-common'
let timeout = 30000 //超时时间 let timeout = 30000 //超时时间
export const fetchConfig = function (isEnv = true) { export const fetchConfig = function (isEnv = true) {
// console.log(1111111)
// if (isEnv) { // if (isEnv) {
// let { request } = cfg // let { request } = cfg
// Object.assign(request, { timeout }) // Object.assign(request, { timeout })
// return Promise.resolve(cfg) // return Promise.resolve(cfg)
// } // }
//return window.fetch('https://', {}).then(res => res.json()) let params = { moduleName: 'purchase', mockUrl: 'https://oss-config.glsx.com.cn/mock/643e06c7ea3da3a974f54357/purchase/config', httpOptions: { Headers: { refererurl: location.href }, request: { timeout: 30000 } } }
// request({ url: 'https://oss-config.test.glsx.com.cn/mock/5be17454f31545347559d499/config/oss_commodity_center', method: 'get' }) return utils.getConfig(params)
// return new Http().get('https://oss-config.test.glsx.com.cn/mock/616d28231072f92988f059fb/home/config')
return new Http().get('http://192.168.3.171:7300/mock/6423df03079be3540abbb69e/purchase/config') // return new Http({ Headers: { refererurl: location.href }, request: { timeout: 30000 } }).get('http://config-center-backend.test.glsx.com/glsxAdmin/config?moduleUrl=home').then(res => res)
} }
export const config = { export const config = {
install(vue, cfg) { install(vue, cfg) {
vue.prototype.$config = cfg vue.prototype.$config = cfg
} }
} }
\ No newline at end of file \ No newline at end of file
...@@ -20,6 +20,7 @@ Vue.config.productionTip = false ...@@ -20,6 +20,7 @@ Vue.config.productionTip = false
Vue.prototype.$apis = apis Vue.prototype.$apis = apis
Vue.prototype.$$ = optionalChaining Vue.prototype.$$ = optionalChaining
Vue.prototype.size = 'small' Vue.prototype.size = 'small'
Vue.prototype.$EventBus = new Vue()
start() start()
export { bootstrap, mount, unmount } from '@/setup' export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params) export const http = params => Vue.prototype.$http(params)
......
...@@ -11,7 +11,7 @@ let router = null ...@@ -11,7 +11,7 @@ let router = null
let instance = null let instance = null
Vue.use(ElementUI) Vue.use(ElementUI)
Vue.use(GLTable) Vue.use(GLTable)
export async function bootstrap({ history, common, messenger, globalState }) { export async function bootstrap({ history, common, messenger, globalState ,routerBase}) {
const { response, request, sign, secret, sign_common, request_common } = await fetchConfig() const { response, request, sign, secret, sign_common, request_common } = await fetchConfig()
Vue.prototype.$history = history Vue.prototype.$history = history
Vue.prototype.$messenger = messenger Vue.prototype.$messenger = messenger
...@@ -19,13 +19,13 @@ export async function bootstrap({ history, common, messenger, globalState }) { ...@@ -19,13 +19,13 @@ export async function bootstrap({ history, common, messenger, globalState }) {
Vue.prototype.$common = common Vue.prototype.$common = common
Vue.prototype.$message = message Vue.prototype.$message = message
Vue.prototype.$messageBox = messageBox Vue.prototype.$messageBox = messageBox
Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token: 'b9f2cc80-19f7-4b55-bf90-3b32214aaff1' } }) Vue.prototype.$http = new common.Http({ response, request, sign, secret, alert: message.error, headers: { token:globalState.session.token } })
Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } }) Vue.prototype.$http_common = new common.Http({ response, signWay: "md5", request: request_common, sign: sign_common, secret, alert: ElementUI.Message.error, headers: { TGT: globalState.session.token } })
// Vue.prototype.$setGlobalState = globalState.actions.setGlobalState // Vue.prototype.$setGlobalState = globalState.actions.setGlobalState
Vue.use(GLButton, { permissions: globalState.permissions || ['1-1-1-1', '2-1-1-1', '3-1-1-1'] })
const routesData = common.utils.deepClone(globalState.routers) const routesData = common.utils.deepClone(globalState.routers)
routes = getRoutes(routesData) routes = getRoutes(routesData)
subscribe({ messenger }) subscribe({ messenger })
Vue.use(GLButton, { routes, routerBase })
} }
export async function mount(props) { export async function mount(props) {
const insts = render(props.routerBase, routes) const insts = render(props.routerBase, routes)
......
...@@ -34,10 +34,10 @@ ...@@ -34,10 +34,10 @@
</el-tabs> </el-tabs>
</div> </div>
<div class="searchCon"> <div class="searchCon">
<GLCombiForm ref="showSearch" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" ></GLCombiForm> <GLCombiForm ref="showSearch" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleRest"></GLCombiForm>
</div> </div>
<div class="goodsCon"> <div class="goodsCon">
<div class="goodsItemCon" v-for="(item, index) in purchaseList" :class="[{ active: item.active }, { last: index === purchaseList.length - 1 }]" :key="index"> <div class="goodsItemCon" v-for="(item, index) in purchaseList" :class="[{ active: item.active }, { last: index === purchaseList.length - 1 }]" :key="index" >
<!-- 图片{{ item.thumbUrl }} --> <!-- 图片{{ item.thumbUrl }} -->
<img :src="item.thumbUrl" class="img" alt="" /> <img :src="item.thumbUrl" class="img" alt="" />
<span class="goodsName one-line-ellipsis">{{ item.goodsName }}</span> <span class="goodsName one-line-ellipsis">{{ item.goodsName }}</span>
...@@ -56,23 +56,23 @@ ...@@ -56,23 +56,23 @@
</div> </div>
</div> </div>
<!-- 购物车组件 --> <!-- 购物车组件 -->
<!-- <shoppingCartCom ref="shoppingCartCom" :address-info="addressInfo" @editAddress="orderFrom" /> --> <shoppingCartCom ref="shoppingCartCom" :address-info="addressInfo" @editAddress="orderFrom" />
<addressCom :visible.sync="addressComVisible" @handleConfirmAddress="addressGet" :address-info="addressInfo" /> <addressCom :visible.sync="addressComVisible" @handleConfirmAddress="addressGet" :address-info="addressInfo" />
<!-- <goodsDetailCom :visible.sync="goodsDetailComVisible" :goods-id="selectItem.id" /> --> <goodsDetailCom :visible.sync="goodsDetailComVisible" :goods-id="selectItem.id" />
</div> </div>
</template> </template>
<script> <script>
// import shoppingCartCom from './components/shoppingCartCom' import shoppingCartCom from './components/shoppingCartCom'
import addressCom from './components/addressCom' import addressCom from './components/addressCom'
// import goodsDetailCom from './components/goodsDetailCom' import goodsDetailCom from './components/goodsDetailCom'
export default { export default {
name: 'PurchasingMall', name: 'PurchasingMall',
components: { components: {
// shoppingCartCom, shoppingCartCom,
addressCom, addressCom,
// goodsDetailCom goodsDetailCom
}, },
data() { data() {
return { return {
...@@ -82,7 +82,6 @@ export default { ...@@ -82,7 +82,6 @@ export default {
emptyImgUrl: require('@/assets/empty.png'), emptyImgUrl: require('@/assets/empty.png'),
showFormData: [ showFormData: [
{ {
name: 'goodsName', name: 'goodsName',
type: 'input', type: 'input',
placeholder: '商品名称/系列', placeholder: '商品名称/系列',
...@@ -127,19 +126,19 @@ export default { ...@@ -127,19 +126,19 @@ export default {
this.page.pageNum = 1 this.page.pageNum = 1
this.listWithPagePurchaseInfo() this.listWithPagePurchaseInfo()
}, },
handleRest() {
this.searchForm.goodsName = ''
this.page.pageNum = 1
this.listWithPagePurchaseInfo()
},
handleDetail(item, index) { handleDetail(item, index) {
console.log('index', index)
this.selectItem = item this.selectItem = item
this.goodsDetailComVisible = true this.goodsDetailComVisible = true
const list = this.$common.utils.deepClone(this.purchaseList) const list = this.$common.utils.deepClone(this.purchaseList)
this.purchaseList = list.map((item, itemIndex) => { this.purchaseList = list.map((item, itemIndex) => {
console.log('itemIndex', itemIndex == index)
item.active = itemIndex == index item.active = itemIndex == index
// item.active = true
return item return item
}) })
console.log(this.purchaseList)
}, },
listWithPagePurchaseInfo() { listWithPagePurchaseInfo() {
...@@ -178,25 +177,13 @@ export default { ...@@ -178,25 +177,13 @@ export default {
this.$apis.purchaseShopping this.$apis.purchaseShopping
.addressGet() .addressGet()
.then(result => { .then(result => {
// this.addressInfo = result if (result) {
this.addressInfo = { this.addressInfo = result
id: 1,
yqMerchantId: 44211025,
yqMerchantName: '流程测试园区门店',
contactName: '宋司机',
contactPhone: '13750523252',
contactAddress: '111111111111111111111111111111111111111111111111',
createdBy: 'aa123456',
createdDate: 1676619043000,
updatedBy: 'aa123456',
updatedDate: 1678093448000,
deletedFlag: 'N'
} }
console.log(this.addressInfo, ' this.addressInfo')
console.log(this.$$(this.addressInfo, 'contactPhone'))
if (this.showOrderCom) { if (this.showOrderCom) {
this.showOrderCom = false this.showOrderCom = false
// this.$refs.shoppingCartCom.validateGoodsNumber() this.$refs.shoppingCartCom.validateGoodsNumber()
} }
}) })
.catch(err => { .catch(err => {
...@@ -231,19 +218,19 @@ export default { ...@@ -231,19 +218,19 @@ export default {
.d2-header-switch { .d2-header-switch {
display: none; display: none;
} }
.d2-container-content{ .d2-container-content {
margin:20px auto; margin: 20px auto;
background: #fff; background: #fff;
} }
.shopMallCon { .shopMallCon {
padding: 0 0 20px !important; padding: 0 0 20px !important;
} }
.goodsCon { .goodsCon {
box-sizing: border-box; box-sizing: border-box;
padding: 0 20px; padding: 0 40px;
display: flex; display: flex;
justify-content: space-between; // justify-content: space-between;
flex-wrap: wrap; flex-wrap: wrap;
.goodsItemCon { .goodsItemCon {
...@@ -258,9 +245,11 @@ export default { ...@@ -258,9 +245,11 @@ export default {
margin: 0 16px 16px; margin: 0 16px 16px;
overflow: hidden; overflow: hidden;
padding: 8px 8px 16px; padding: 8px 8px 16px;
&:hover{
border: 1px solid #5850ff;
}
&.active { &.active {
border: 1px solid #185efe; border: 1px solid #5850ff;
} }
.img { .img {
...@@ -282,9 +271,8 @@ export default { ...@@ -282,9 +271,8 @@ export default {
} }
.viewPurchase { .viewPurchase {
// font-weight: 500; font-size: 14px;
// font-size: 14px; color: #5850ff;
color: #185efe;
} }
} }
...@@ -330,7 +318,7 @@ export default { ...@@ -330,7 +318,7 @@ export default {
align-items: center; align-items: center;
margin-left: auto; margin-left: auto;
font-size: 14px; font-size: 14px;
color: #185efe; color: #5850ff;
} }
.editIcon { .editIcon {
...@@ -383,6 +371,9 @@ export default { ...@@ -383,6 +371,9 @@ export default {
width: 670px !important; width: 670px !important;
min-width: 670px; min-width: 670px;
} }
/deep/ .name {
width: 20px !important;
}
} }
::v-deep.classifyContainer { ::v-deep.classifyContainer {
......
...@@ -99,7 +99,7 @@ export default { ...@@ -99,7 +99,7 @@ export default {
}, },
handleOkFn() { handleOkFn() {
console.log('您点击了确定') // console.log('您点击了确定')
}, },
handleRestFn() { handleRestFn() {
console.log('您点击了取消') console.log('您点击了取消')
......
<template>
<!-- <div>商品详情</div> -->
<GLDialog destroy-on-close="true" :visible.sync="dialogShow" :hasFooter="false" mode="big" bigTitle="产品详情" :close-on-click-modal="false" @onOk="handleSubmit" @onCancel="handleDetailClose">
<div class="detail-content">
<!-- 商品详情 -->
<div class="goodsInfoCom">
<div class="goodsInfoCom__left">
<img :src="goodsInfo.thumbUrl" alt="" />
</div>
<div class="goodsInfoCom__right">
<p class="title two-line-ellipsis">{{ goodsInfo.goodsName }}</p>
<div class="priceCon">
<span class="price">
价格:
<span class="priceNum">¥{{ handleItemInfo.purchasePrice }}</span>
</span>
<span class="turnover">
成交量:
<span class="num">{{ goodsInfo.purchaseOrderCount || 0 }}笔</span>
</span>
</div>
<div class="skuCon">
<div class="label">规格:</div>
<div class="itemCon">
<div
class="skuItem one-line-ellipsis pointer"
:class="{ active: index === selectIndex }"
v-for="(item, index) in goodsInfo.upgradeGoodsList"
:key="index"
@click="
selectIndex = index
setHandleItemInfo(item)
"
>
{{ item.upgradeGoodsName }}
</div>
</div>
</div>
<div class="munCom">
<div class="label">数量:</div>
<div class="munItem">
<el-input-number v-model="handleItemInfo.goodsNumber" :min="1" :max="9999"></el-input-number>
</div>
<div class="tips">
<!-- goodsItem.goodsType == 1 -->
{{ membraneTypeList.includes(goodsInfo.goodsType) ? `卷(1卷=${goodsInfo.convertedValue || 30}米)` : '件' }}
</div>
</div>
<el-button class="carBtn" icon="carIcon" type="primary" @click="updateCarShopping">加入购物车</el-button>
</div>
<!-- <i class="carIcon"></i> -->
</div>
<h3 style="margin-top:20px;">产品详情</h3>
<div class="goodsDescList">
<div class="goodsDescItem" v-for="(item, index) in goodsInfo.goodsDescList" :key="index">
<img :src="item.content" v-if="item.resType == 1" class="productDetailsImg" alt="" />
<!-- <div class="goodsDescItem__title">{{ item.title }}</div> -->
<div v-if="item.resType == 2" class="goodsDescItem__content" v-html="item.content"></div>
</div>
</div>
</div>
</GLDialog>
</template>
<script>
import { membraneTypeList } from '@/utils/constants.js'
export default {
name: 'GoodsDetailCom',
props: {
visible: {
type: Boolean,
default: false
},
selectItemInfo: {
type: Object,
default: () => {}
},
goodsId: {
type: [String, Number]
// required: true
// default: '24'
}
},
data() {
return {
// dialogShow: false,
membraneTypeList,
goodsInfo: {},
selectIndex: 0,
handleItemInfo: {
goodsNumber: 1,
upgradeGoodsId: '',
purchasePrice: 0
}
}
},
computed: {
dialogShow: {
get() {
return this.visible
},
set(val) {
this.$emit('update:visible', val)
}
}
// selectItemInfo(){
// // this.goodsInfo[]
// if (this.goodsInfo.upgradeGoodsList.length) {
// let item = this.goodsInfo.upgradeGoodsList[this.selectIndex]
// return {
// goodsNumber: this.goodsInfo.num,
// upgradeGoodsId: item.id
// }
// }
// // return this.selectItemInfo
// }
},
watch: {
visible(val) {
if (val) {
this.handleItemInfo.goodsNumber = 1
this.getGoodsDetail()
}
}
},
methods: {
getGoodsDetail() {
this.$apis.product.getProductInfo({ id: this.goodsId }).then(res => {
this.goodsInfo = res
// 调试用
// for (let index = 0; index < 12; index++) {
// this.goodsInfo.upgradeGoodsList[index] = this.goodsInfo.upgradeGoodsList[0]
// }
// 默认选中第一个
const item = this.goodsInfo.upgradeGoodsList[0]
// console.log(item)
item && this.setHandleItemInfo(item)
})
},
setHandleItemInfo(item) {
console.log(item)
const { id, purchasePrice } = item
this.handleItemInfo = Object.assign(this.handleItemInfo, {
upgradeGoodsId: id,
purchasePrice
})
},
handleDetailClose() {
this.dialogShow = false
},
updateCarShopping() {
const params = {
goodsNumber: this.handleItemInfo.goodsNumber,
upgradeGoodsId: this.handleItemInfo.upgradeGoodsId
}
// 判断是否有值
params.upgradeGoodsId &&
this.$apis.purchaseShopping.shoppingCarAdd(params).then(res => {
// console.log(res)
this.$message.success('加入购物车成功')
this.$EventBus.$emit('updateCarShopping')
this.dialogShow = false
})
// this.$message.success('加入购物车成功')
// this.$EventBus.$emit('updateCarShopping')
}
}
}
</script>
<style lang="scss" scoped>
.goodsInfoCom {
display: flex;
.goodsInfoCom__left {
width: 400px;
height: 400px;
img {
width: 100%;
height: 100%;
}
}
.goodsInfoCom__right {
flex: 1;
margin-left: 20px;
.title {
margin: 0;
font-weight: 600;
font-size: 20px;
color: #333333;
}
.priceCon {
box-sizing: border-box;
width: 100%;
height: 65px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 10px;
margin: 16px 0 20px;
background: #f2f5fb;
border-radius: 2px;
color: #666666;
.price {
display: flex;
align-items: center;
margin-left: 8px;
}
.num {
margin-left: 8px;
}
.priceNum {
font-weight: 600;
font-size: 30px;
color: #ee3040;
margin-left:8px;
}
}
.skuCon {
display: flex;
// flex-wrap: wrap;
// align-items: center;
.itemCon {
flex: 1;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
.skuItem {
box-sizing: border-box;
width: 234px;
height: 36px;
background: #ffffff;
border: 1px solid #e7edf9;
border-radius: 2px;
color: #333333;
text-align: center;
line-height: 36px;
padding: 0 10px;
margin-bottom: 16px;
&.active {
border: 1px solid #5850ff;
}
}
}
.label {
box-sizing: border-box;
width: 60px;
height: 36px;
text-align: center;
padding-left: 18px;
line-height: 36px;
color: #666666;
}
}
}
.productDetailsImg {
max-width: fit-content;
}
.munCom {
display: flex;
margin-bottom: 20px;
.tips {
height: 36px;
line-height: 36px;
margin-left: 8px;
font-size: 12px;
color: #666666;
}
}
.carBtn {
display: flex;
align-items: center;
width: 168px;
height: 40px;
margin-left:18px;
background: #5850ff;
border-radius: 4px;
}
</style>
...@@ -23,6 +23,9 @@ ...@@ -23,6 +23,9 @@
<GLTable ref="purchaseOrderDetailTable" :tableParams="tableParams" @refreshTable="refreshTable" :tableData="detailInfo.tableData" :pageConf="pageConf" :tableTotal="detailInfo.tableTotal"></GLTable> <GLTable ref="purchaseOrderDetailTable" :tableParams="tableParams" @refreshTable="refreshTable" :tableData="detailInfo.tableData" :pageConf="pageConf" :tableTotal="detailInfo.tableTotal"></GLTable>
</div> </div>
</div> </div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" size="small" @click="dialogShow = false">关闭</el-button>
</span>
</GLDialog> </GLDialog>
</template> </template>
...@@ -44,7 +47,7 @@ export default { ...@@ -44,7 +47,7 @@ export default {
dialogShow: { dialogShow: {
get() { get() {
if (this.visible) { if (this.visible) {
this.getDetail({ currentPage: 1, pageSize: 20 }) this.getDetail({ currentPage: 1, pageSize: 20 })
} }
return this.visible return this.visible
}, },
...@@ -97,7 +100,7 @@ export default { ...@@ -97,7 +100,7 @@ export default {
this.dialogShow = false this.dialogShow = false
}, },
refreshTable(pageObj) { refreshTable(pageObj) {
this.getDetail(pageObj) this.getDetail(pageObj)
}, },
getDetail(pageObj) { getDetail(pageObj) {
this.$apis.purchaseShopping.purchaseOrderDetail({ orderCode: this.paramsObj.orderCode, pageSize: pageObj.pageSize, currentPage: pageObj.currentPage }).then(res => { this.$apis.purchaseShopping.purchaseOrderDetail({ orderCode: this.paramsObj.orderCode, pageSize: pageObj.pageSize, currentPage: pageObj.currentPage }).then(res => {
......
...@@ -4,8 +4,9 @@ ...@@ -4,8 +4,9 @@
<div class="container"> <div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm> <GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header"> <div class="table-header">
<el-button type="primary" size="small" @click="handleCreatePurchase">创建采购</el-button> <GLButton type="primary" class="glbtn" size="small" @click="handleCreatePurchase" fn="创建采购">创建采购</GLButton>
<el-button type="primary" size="small" @click="exportExcel">导出</el-button> <!-- <el-button type="primary" size="small" @click="handleCreatePurchase">创建采购</el-button> -->
<el-button type="primary" class="btn" size="small" @click="exportExcel">导出</el-button>
</div> </div>
<!-- 表格区域 开始 --> <!-- 表格区域 开始 -->
...@@ -30,7 +31,9 @@ ...@@ -30,7 +31,9 @@
</template> </template>
<div class="table-btns" slot="auth-button" slot-scope="scope"> <div class="table-btns" slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleDetail(scope.scope)">查看</el-button> <el-button type="text" @click="handleDetail(scope.scope)">查看</el-button>
<el-button type="text" @click="handleCancel(scope.scope)">取消</el-button> <GLButton type="text" size="small" v-show="scope.scope.status == 1" @click="handleCancel(scope.scope)" fn="取消">取消</GLButton>
<GLButton type="text" size="small" v-show="scope.scope.putStatus == 1 && scope.scope.deliveryStatus == 2" @click="handleWarehousing(scope.scope)" fn="入库">入库</GLButton>
<!-- <el-button type="text" v-show="scope.scope.status == 1" @click="handleCancel(scope.scope)">取消</el-button> -->
</div> </div>
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
...@@ -117,31 +120,31 @@ export default { ...@@ -117,31 +120,31 @@ export default {
type: 'datePicker', type: 'datePicker',
isClear: true, isClear: true,
pickerOptions: 'beforeRangePickerOptions' pickerOptions: 'beforeRangePickerOptions'
},
{
label: '下单门店',
name: 'merchantId',
type: 'select',
optionList: [],
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'merchantName'
},
{
label: '入库门店',
name: 'putMerchantId',
type: 'select',
optionList: [],
optionId: 'merchantNo',
optionLabel: 'merchantName',
optionsName: 'merchantName'
} }
// {
// label: '下单门店',
// name: 'merchantId',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'merchantName'
// },
// {
// label: '入库门店',
// name: 'putMerchantId',
// type: 'select',
// optionList: [],
// optionId: 'merchantNo',
// optionLabel: 'merchantName',
// optionsName: 'merchantName'
// }
], ],
// 表格 // 表格
getListApi: this.$apis.purchaseShopping.getPurchaseOrderList, getListApi: this.$apis.purchaseShopping.getPurchaseOrderList,
tableParams: { tableParams: {
listName: 'list', listName: 'list',
tableOption: true, tableOption: false,
tableColumns: [ tableColumns: [
{ {
label: '订单编号', label: '订单编号',
...@@ -153,7 +156,8 @@ export default { ...@@ -153,7 +156,8 @@ export default {
prop: 'totalPrice', prop: 'totalPrice',
formatter: cellValue => { formatter: cellValue => {
return '¥' + cellValue.totalPrice return '¥' + cellValue.totalPrice
} },
width: 100
}, },
{ {
label: '下单时间', label: '下单时间',
...@@ -161,35 +165,41 @@ export default { ...@@ -161,35 +165,41 @@ export default {
formatter: cellValue => { formatter: cellValue => {
return dayjs(cellValue.orderTime).format('YYYY-MM-DD HH:mm:ss') return dayjs(cellValue.orderTime).format('YYYY-MM-DD HH:mm:ss')
}, },
width: 150 width: 180
}, },
{ {
label: '下单门店', label: '下单门店',
prop: 'merchantName' prop: 'merchantName',
minWidth: 150
}, },
{ {
label: '发货状态', label: '发货状态',
prop: 'deliveryStatus', prop: 'deliveryStatus',
addHtml: 'deliveryStatus' addHtml: 'deliveryStatus',
width: 120
}, },
{ {
label: '承运公司', label: '承运公司',
prop: 'deliveryCompany', prop: 'deliveryCompany',
formatter: cellValue => { formatter: cellValue => {
return cellValue.deliveryCompany || '--' return cellValue.deliveryCompany || '--'
} },
minWidth: 120
}, },
{ {
label: '承运单号', label: '承运单号',
prop: 'deliveryNumber', prop: 'deliveryNumber',
formatter: cellValue => { formatter: cellValue => {
return cellValue.deliveryNumber || '--' return cellValue.deliveryNumber || '--'
} },
width: 120,
line: 1
}, },
{ {
label: '入库状态', label: '入库状态',
prop: 'putStatus', prop: 'putStatus',
addHtml: 'putStatus' addHtml: 'putStatus',
width: 120
}, },
{ {
label: '入库时间', label: '入库时间',
...@@ -197,11 +207,13 @@ export default { ...@@ -197,11 +207,13 @@ export default {
formatter: cellValue => { formatter: cellValue => {
return cellValue.putTime ? dayjs(cellValue.putTime).format('YYYY-MM-DD HH:mm:ss') : '--' return cellValue.putTime ? dayjs(cellValue.putTime).format('YYYY-MM-DD HH:mm:ss') : '--'
}, },
width: 150 width: 180
}, },
{ {
label: '入库门店', label: '入库门店',
prop: 'putMerchantName', prop: 'putMerchantName',
line: 1,
width: 150,
formatter: cellValue => { formatter: cellValue => {
return cellValue.putMerchantName || '--' return cellValue.putMerchantName || '--'
} }
...@@ -209,7 +221,13 @@ export default { ...@@ -209,7 +221,13 @@ export default {
{ {
label: '订单状态', label: '订单状态',
prop: 'status', prop: 'status',
addHtml: 'status' addHtml: 'status',
width: 120
},
{
label: '操作',
width: '180px',
addHtml: 'auth-button'
} }
] ]
}, },
...@@ -218,13 +236,17 @@ export default { ...@@ -218,13 +236,17 @@ export default {
baseData: { baseData: {
defaultStatusOptions: defaultStatusOptions, defaultStatusOptions: defaultStatusOptions,
defaultDeliveryStatusOptions: defaultDeliveryStatusOptions, defaultDeliveryStatusOptions: defaultDeliveryStatusOptions,
defaultPutStatusOptions: defaultPutStatusOptions defaultPutStatusOptions: defaultPutStatusOptions,
merchantName: []
} }
} }
}, },
mounted() { mounted() {
this.getOptionsList('showFormData') this.$apis.purchaseShopping.getMerchantList({}).then(res => {
this.baseData.merchantName = res
this.getOptionsList('showFormData')
})
}, },
methods: { methods: {
...@@ -251,7 +273,27 @@ export default { ...@@ -251,7 +273,27 @@ export default {
resolve() resolve()
}) })
}, },
// 入库
handleWarehousing(row) {
this.$confirm('订单入库后自动更新对应的库存,可在入库管理中查看记录。是否确定入库?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$apis.purchaseShopping
.purchaseOrderPutIn({
orderCode: row.orderCode
})
.then(res => {
this.$notify({
type: 'success',
title: '操作成功'
})
this.$refs.orderRef.refreshTable()
})
.catch(() => {})
})
},
secondConfirm(title, txt, apiModule, apiName, apiParams, fn) { secondConfirm(title, txt, apiModule, apiName, apiParams, fn) {
this.$confirm(txt, title, { this.$confirm(txt, title, {
confirmButtonText: '确定', confirmButtonText: '确定',
...@@ -320,12 +362,10 @@ export default { ...@@ -320,12 +362,10 @@ export default {
this.$router.push('/purchaseOrder/add') this.$router.push('/purchaseOrder/add')
}, },
exportExcel() { exportExcel() {
this.exportLoading = true
var params = this.getParams() var params = this.getParams()
// this.$apis.couponManage.exportReceiveRecordApi(params).then(res => { this.$apis.purchaseShopping.exportExcel(params).then(res => {
// this.exportLoading = false window.location.href = res
// window.location.href = res })
// })
}, },
handleSearch() { handleSearch() {
this.$refs.orderRef.refreshTable() this.$refs.orderRef.refreshTable()
...@@ -354,8 +394,23 @@ export default { ...@@ -354,8 +394,23 @@ export default {
@import '@/assets/css/mixin.scss'; @import '@/assets/css/mixin.scss';
.purchase { .purchase {
.table-header { .table-header {
@include space-between_center; display: flex;
margin-bottom: 10px; align-items: center;
margin-bottom: 25px;
margin-top:20px;
h2 {
font-weight: 600;
font-size: 16px;
color: #333;
}
.glbtn{
left: 46px;
position: absolute;
}
.btn {
right: 47px;
position: absolute;
}
} }
.greenSpot { .greenSpot {
@include dot; @include dot;
...@@ -369,5 +424,9 @@ export default { ...@@ -369,5 +424,9 @@ export default {
@include dot; @include dot;
background: $color-gray; background: $color-gray;
} }
.table-btns /deep/.el-button--text {
min-width: 0 !important;
padding: 0;
}
} }
</style> </style>
...@@ -9,7 +9,7 @@ const cdn = { ...@@ -9,7 +9,7 @@ const cdn = {
js: [`${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`, `${CDN_DOMAIN}ajax/libs/vue-router/3.2.0/vue-router.min.js`, `${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/index.js`, `${CDN_DOMAIN}ajax/libs/vuex/3.6.2/vuex.min.js`, `${CDN_DOMAIN}ajax/libs/echarts/5.1.2/echarts.min.js`, 'https://webapi.amap.com/loader.js'] js: [`${CDN_DOMAIN}ajax/libs/vue/2.6.11/vue.min.js`, `${CDN_DOMAIN}ajax/libs/vue-router/3.2.0/vue-router.min.js`, `${CDN_DOMAIN}ajax/libs/element-ui/2.11.1/index.js`, `${CDN_DOMAIN}ajax/libs/vuex/3.6.2/vuex.min.js`, `${CDN_DOMAIN}ajax/libs/echarts/5.1.2/echarts.min.js`, 'https://webapi.amap.com/loader.js']
} }
module.exports = { module.exports = {
outputDir: `../dist/${packageName}`, outputDir: `dist`,
publicPath, publicPath,
assetsDir: 'static', assetsDir: 'static',
productionSourceMap: false, productionSourceMap: false,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!