Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d12a97b9
authored
May 19, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
线上代码合并
2 parents
8a83b2e2
772c2a47
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
405 additions
and
294 deletions
src/api/index.js
src/api/request.js
src/router/modules/904_orderManagement.js
src/router/modules/909_purchase.js
src/router/modules/910_rightsAndInterestsManage.js
src/router/modules/911_vehicleDamage.js
src/views/goods/grounding/components/groundingForm.vue
src/views/index/components/outputValueDialog.vue
src/views/orderManage/signRefundDialog.vue
src/views/purchase/components/EditOrderDialog.vue
src/views/purchase/components/orderDetailDialog.vue
src/views/purchase/components/rejectDialog.vue
src/views/purchase/constant/index.js
src/views/purchase/invoiceRecord.vue
src/views/purchase/procurementReview.vue
src/views/purchase/purchaseAndDelivery.vue
src/views/purchase/purchaseOrder.vue
src/views/rightsAndInterestsManage/components/ruleConfigurationDialog.vue
src/views/stockManage/warehousing/warehousingList.vue
src/views/systemConfig/merchant/setDetail.vue
src/views/systemConfig/serviceManage/serviceManage.vue
src/views/vehicleDamage/vehicleDamageList.vue
vue.config.js
src/api/index.js
View file @
d12a97b
...
@@ -66,7 +66,8 @@ export function getMerchantOutputValueTarget(data) {
...
@@ -66,7 +66,8 @@ export function getMerchantOutputValueTarget(data) {
export
function
setMerchantOutputValueTarget
(
data
)
{
export
function
setMerchantOutputValueTarget
(
data
)
{
data
.
method
=
`
${
path2
}
workbench.inputMerchantOutputValueTarget`
data
.
method
=
`
${
path2
}
workbench.inputMerchantOutputValueTarget`
return
request
(
data
)
return
request
(
data
,
"post"
)
// return request(data)
}
}
// 隐私协议标题查询
// 隐私协议标题查询
...
...
src/api/request.js
View file @
d12a97b
...
@@ -57,6 +57,7 @@ const request = (
...
@@ -57,6 +57,7 @@ const request = (
* 调后端接口 - url = ''
* 调后端接口 - url = ''
*/
*/
const
url
=
baseConfig
[
baseApiName
].
baseURL
const
url
=
baseConfig
[
baseApiName
].
baseURL
// const url = "/api"
/**
/**
* 调后端接口,请使用以下代码。
* 调后端接口,请使用以下代码。
*/
*/
...
...
src/router/modules/904_orderManagement.js
View file @
d12a97b
...
@@ -208,7 +208,15 @@ export const routerName = {
...
@@ -208,7 +208,15 @@ export const routerName = {
authId
:
"9040603"
,
authId
:
"9040603"
,
parentId
:
"90406"
,
parentId
:
"90406"
,
label
:
"打印"
,
label
:
"打印"
,
handle
:
"handlePrint"
handle
:
"handlePrint"
,
ruleObj
:
{
attr
:
"mode"
,
rule
:
{
0
:
"打印"
,
1
:
"打印"
},
disabledStatusList
:
[
1
]
}
},
},
{
{
authId
:
"9040605"
,
authId
:
"9040605"
,
...
...
src/router/modules/909_purchase.js
View file @
d12a97b
...
@@ -71,6 +71,12 @@ export const routerName = {
...
@@ -71,6 +71,12 @@ export const routerName = {
}
}
},
},
handle
:
"handleWarehousing"
handle
:
"handleWarehousing"
},
{
authId
:
"9090105"
,
parentId
:
"90901"
,
label
:
"发货单"
,
handle
:
"handleSendgoods"
}
}
],
],
component
:
_import
(
"purchase/purchaseOrder"
)
component
:
_import
(
"purchase/purchaseOrder"
)
...
...
src/router/modules/910_rightsAndInterestsManage.js
View file @
d12a97b
...
@@ -42,7 +42,7 @@ export const routerName = {
...
@@ -42,7 +42,7 @@ export const routerName = {
ruleObj
:
{
ruleObj
:
{
attr
:
"status"
,
attr
:
"status"
,
rule
:
{
rule
:
{
0
:
"待
编辑
"
,
0
:
"待
配置
"
,
1
:
"编辑"
1
:
"编辑"
}
}
// disabledStatusList: [0]
// disabledStatusList: [0]
...
...
src/router/modules/911_vehicleDamage.js
View file @
d12a97b
...
@@ -40,8 +40,8 @@ export const routerName = {
...
@@ -40,8 +40,8 @@ export const routerName = {
ruleObj
:
{
ruleObj
:
{
attr
:
"mode"
,
attr
:
"mode"
,
rule
:
{
rule
:
{
0
:
"
查看
"
,
0
:
"
打印
"
,
1
:
"
查看
"
1
:
"
打印
"
},
},
disabledStatusList
:
[
1
]
disabledStatusList
:
[
1
]
}
}
...
...
src/views/goods/grounding/components/groundingForm.vue
View file @
d12a97b
...
@@ -387,6 +387,9 @@ export default {
...
@@ -387,6 +387,9 @@ export default {
_formData
.
goodsTypeName
=
_valueObj
?.
goodsTypeName
_formData
.
goodsTypeName
=
_valueObj
?.
goodsTypeName
_formData
.
goodsType
=
_valueObj
?.
goodsType
_formData
.
goodsType
=
_valueObj
?.
goodsType
_formData
.
serviceItemNames
=
_valueObj
?.
serviceItemNames
_formData
.
serviceItemNames
=
_valueObj
?.
serviceItemNames
_formData
.
productType
=
[]
// 切换上架商品 将服务类型清空
_formData
.
baseSupplyMode
=
''
// 切换上架商品 将基础供货模式清空
_formData
.
upgradeSupplyMode
=
''
// 切换上架商品 将升级/产品供货模式清空
}
}
},
},
handleClose
()
{
handleClose
()
{
...
...
src/views/index/components/outputValueDialog.vue
View file @
d12a97b
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<div
class=
"searchWrap"
>
<div
class=
"searchWrap"
>
<el-col
:span=
"11"
>
<el-col
:span=
"11"
>
<el-date-picker
v-model=
"search.targetDate"
:clearable=
"false"
type=
"month"
format=
"yyyy 年 MM 月"
<el-date-picker
v-model=
"search.targetDate"
:clearable=
"false"
type=
"month"
format=
"yyyy 年 MM 月"
value-format=
"yyyy-MM"
:picker-options=
"pickerOptions"
placeholder=
"选择月"
/>
@
change=
"getList"
value-format=
"yyyy-MM"
:picker-options=
"pickerOptions"
placeholder=
"选择月"
/>
</el-col>
</el-col>
<el-col
:span=
"9"
>
<el-col
:span=
"9"
>
<el-input
v-model=
"search.keyword"
clearable
placeholder=
"输入门店名称搜索"
/>
<el-input
v-model=
"search.keyword"
clearable
placeholder=
"输入门店名称搜索"
/>
...
@@ -165,16 +165,31 @@ export default {
...
@@ -165,16 +165,31 @@ export default {
return
'background:#F4F6FC'
return
'background:#F4F6FC'
},
},
async
handleConfirmImport
()
{
async
handleConfirmImport
()
{
cons
t
filterList
=
this
.
tableData
.
filter
((
item
)
=>
{
le
t
filterList
=
this
.
tableData
.
filter
((
item
)
=>
{
// 删除无需字段 避免后台类型报错
// 删除无需字段 避免后台类型报错
delete
item
.
createdDate
// delete item.createdDate
delete
item
.
updatedDate
// delete item.updatedDate
// delete item.createdBy
// delete item.updatedBy
// delete item.deletedFlag
// delete item.targetDate
return
(
item
.
isEdit
&&
item
.
outputValue
)
||
item
.
deployScene
||
item
.
businessScene
return
(
item
.
isEdit
&&
item
.
outputValue
)
||
item
.
deployScene
||
item
.
businessScene
})
})
filterList
=
filterList
.
map
((
item
)
=>
{
return
{
merchantName
:
item
.
merchantName
,
merchantId
:
item
.
merchantId
,
outputValue
:
item
.
outputValue
,
deployScene
:
item
.
deployScene
,
businessScene
:
item
.
businessScene
,
dataMonth
:
item
.
dataMonth
}
})
if
(
filterList
.
length
)
{
if
(
filterList
.
length
)
{
// console.log('请求修改')
// console.log('请求修改')
// const result =
// const result =
await
setMerchantOutputValueTarget
({
list
:
filterList
})
// await setMerchantOutputValueTarget({ list: filterList })
await
setMerchantOutputValueTarget
({
dataString
:
JSON
.
stringify
(
filterList
)
})
// console.log(result)
// console.log(result)
}
}
// else {
// else {
...
...
src/views/orderManage/signRefundDialog.vue
View file @
d12a97b
<!-- 下载对账单 -->
<!-- 下载对账单 -->
<
template
>
<
template
>
<d2-dialog
title=
"退款备注"
<d2-dialog
title=
"退款备注"
:is-visible=
"signRefundVisible"
class=
"accountDailog"
@
closeDialog=
"handleClose"
:is-visible=
"signRefundVisible"
class=
"accountDailog"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleAddConfirm"
>
@
confirmDialog=
"handleAddConfirm"
>
<el-form
ref=
"refundForm"
<el-form
ref=
"refundForm"
:model=
"infoForm"
:rules=
"formRules"
>
:model=
"infoForm"
:rules=
"formRules"
>
<el-form-item
prop=
"remark"
>
<el-form-item
prop=
"remark"
>
<el-input
v-clear-emoij
<el-input
v-clear-emoij
type=
"textarea"
:rows=
"5"
placeholder=
"不超过100个字。"
maxlength=
"100"
show-word-limit
type=
"textarea"
:rows=
"5"
placeholder=
"不超过100个字。"
maxlength=
"100"
show-word-limit
v-model=
"infoForm.remark"
/>
v-model=
"infoForm.remark"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -85,11 +75,12 @@ export default {
...
@@ -85,11 +75,12 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
>
<
style
scoped
>
.accountDailog
.el-dialog
{
.accountDailog
.el-dialog
{
margin-top
:
20vh
!important
;
margin-top
:
20vh
!important
;
min-width
:
700px
;
min-width
:
700px
;
}
}
.accountDailog
.el-select-dropdown__item
{
.accountDailog
.el-select-dropdown__item
{
width
:
395px
!important
;
width
:
395px
!important
;
}
}
...
...
src/views/purchase/components/EditOrderDialog.vue
View file @
d12a97b
...
@@ -208,8 +208,7 @@ export default {
...
@@ -208,8 +208,7 @@ export default {
}
}
const
attrNameList
=
[
'upgradeGoodsId'
,
'type'
,
'upgradeGoodsName'
,
'conversionValue'
,
'goodsName'
,
'goodsCode'
,
'goodsType'
,
'goodsTypeName'
]
const
attrNameList
=
[
'upgradeGoodsId'
,
'type'
,
'upgradeGoodsName'
,
'conversionValue'
,
'goodsName'
,
'goodsCode'
,
'goodsType'
,
'goodsTypeName'
]
this
.
detailInfo
.
tableData
.
forEach
((
item
,
idx
)
=>
{
this
.
detailInfo
.
tableData
.
forEach
((
item
,
idx
)
=>
{
console
.
log
(
this
.
nowPurNumList
[
idx
])
if
(
this
.
nowPurNumList
[
idx
]
&&
this
.
nowPurNumList
[
idx
]
!=
0
)
{
if
(
this
.
nowPurNumList
[
idx
]
!=
0
)
{
params
.
deliveryDetailList
.
push
({
params
.
deliveryDetailList
.
push
({
...
_
.
pick
(
item
,
attrNameList
),
...
_
.
pick
(
item
,
attrNameList
),
purchaseNumber
:
this
.
nowPurNumList
[
idx
]
purchaseNumber
:
this
.
nowPurNumList
[
idx
]
...
...
src/views/purchase/components/orderDetailDialog.vue
View file @
d12a97b
...
@@ -66,6 +66,9 @@ export default {
...
@@ -66,6 +66,9 @@ export default {
}
}
}
}
},
},
mounted
()
{
this
.
dynamicParams
()
},
data
()
{
data
()
{
return
{
return
{
dialogConfig
:
{
dialogConfig
:
{
...
@@ -106,7 +109,17 @@ export default {
...
@@ -106,7 +109,17 @@ export default {
label
:
'采购数量'
,
label
:
'采购数量'
,
prop
:
'goodsNumber'
,
prop
:
'goodsNumber'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`
${
cellValue
.
goodsNumber
}
卷/
${
cellValue
.
conversionValue
?
cellValue
.
goodsNumber
*
cellValue
.
conversionValue
:
'-'
}
米`
:
`
${
cellValue
.
goodsNumber
}
件`
// return membraneTypeList.includes(cellValue.goodsType) ? `${cellValue.goodsNumber}卷/${cellValue.conversionValue ? cellValue.goodsNumber * cellValue.conversionValue : '-'}米` : `${cellValue.goodsNumber}件`
let
condition
=
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`
${
cellValue
.
goodsNumber
}
卷`
:
`
${
cellValue
.
goodsNumber
}
件`
return
this
.
paramsObj
.
purchaseType
==
1
?
condition
:
`
${
cellValue
.
goodsNumber
}
件`
}
},
{
label
:
'库存总量'
,
prop
:
'goodsTypeName'
,
formatter
:
cellValue
=>
{
let
condition
=
membraneTypeList
.
includes
(
cellValue
.
goodsType
)
?
`
${
cellValue
.
conversionValue
?
cellValue
.
goodsNumber
*
cellValue
.
conversionValue
:
'-'
}
米`
:
`
${
cellValue
.
goodsNumber
}
件`
return
this
.
paramsObj
.
purchaseType
==
1
?
condition
:
`
${
cellValue
.
goodsNumber
}
件`
}
}
},
},
{
{
...
@@ -122,6 +135,42 @@ export default {
...
@@ -122,6 +135,42 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
dynamicParams
()
{
console
.
log
(
this
.
paramsObj
.
purchaseType
);
if
(
this
.
paramsObj
.
purchaseType
==
1
)
{
this
.
tableParams
.
tableColumns
.
push
(
{
label
:
'已发货数量'
,
prop
:
'purchaseNumber'
,
width
:
110
,
line
:
1
},
{
label
:
'已入库数量'
,
prop
:
'inputNumber'
,
width
:
110
,
line
:
1
}
)
}
else
{
this
.
tableParams
.
tableColumns
.
push
(
{
label
:
'入库仓库'
,
prop
:
'putYqMerchantName'
,
width
:
100
,
line
:
1
},
{
label
:
'入库门店'
,
prop
:
'putMerchantName'
,
width
:
100
,
line
:
1
}
)
}
},
handleDetailClose
()
{
handleDetailClose
()
{
this
.
dialogShow
=
false
this
.
dialogShow
=
false
},
},
...
...
src/views/purchase/components/rejectDialog.vue
View file @
d12a97b
<!-- 驳回 -->
<!-- 驳回 -->
<
template
>
<
template
>
<d2-dialog
title=
"驳回提示"
<baseDialog
:dialog-config=
"dialogConfig"
:is-show
.
sync=
"visible"
class=
"accountDailog"
@
handleClick=
"handleAddConfirm"
>
:is-visible=
"rejectVisible"
class=
"accountDailog"
@
closeDialog=
"handleClose"
@
confirmDialog=
"handleAddConfirm"
>
<div
class=
"reject-dialog"
>
<div
class=
"reject-dialog"
>
<el-form
ref=
"refundForm"
<el-form
ref=
"refundForm"
label-width=
"150px"
:model=
"infoForm"
:rules=
"formRules"
>
label-width=
"150px"
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
:model=
"infoForm"
<el-input
type=
"textarea"
placeholder=
"请输入驳回原因"
maxlength=
"50"
show-word-limit
v-model=
"infoForm.rejectCause"
:rules=
"formRules"
>
:row=
"3"
class=
"dis-in-block reject-input"
/>
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
<el-input
type=
"textarea"
placeholder=
"请输入驳回原因"
maxlength=
"50"
show-word-limit
v-model=
"infoForm.rejectCause"
class=
"dis-in-block reject-input"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
</
d2-d
ialog>
</
baseD
ialog>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -35,7 +23,10 @@ export default {
...
@@ -35,7 +23,10 @@ export default {
infoForm
:
{
infoForm
:
{
rejectCause
:
''
rejectCause
:
''
},
},
dialogConfig
:
{
title
:
'驳回提示'
,
width
:
'750px'
},
formRules
:
{
formRules
:
{
rejectCause
:
[{
required
:
true
,
message
:
'请输入驳回原因'
,
trigger
:
'change'
}]
rejectCause
:
[{
required
:
true
,
message
:
'请输入驳回原因'
,
trigger
:
'change'
}]
}
}
...
@@ -52,6 +43,21 @@ export default {
...
@@ -52,6 +43,21 @@ export default {
default
:
{}
default
:
{}
}
}
},
},
computed
:
{
visible
:
{
get
()
{
// if (this.visible) {
// // 注册全局监听事件 [ 目前只考虑鼠标解除触发 ]
// window.addEventListener('mousedown', this.watchContextmenu)
// }
return
this
.
rejectVisible
},
set
(
newVal
)
{
this
.
$emit
(
'dialogClose'
,
newVal
)
// this.$emit('update:visible', newVal)
}
}
},
watch
:
{
watch
:
{
},
},
...
@@ -67,15 +73,19 @@ export default {
...
@@ -67,15 +73,19 @@ export default {
methods
:
{
methods
:
{
handleAddConfirm
()
{
handleAddConfirm
()
{
// return
this
.
$refs
.
refundForm
.
validate
(
valid
=>
{
this
.
$refs
.
refundForm
.
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
// console.log(valid)
// return
var
infoForm
=
deepClone
(
this
.
infoForm
)
var
infoForm
=
deepClone
(
this
.
infoForm
)
var
params
=
{}
var
params
=
{}
params
.
rejectCause
=
infoForm
.
rejectCause
params
.
rejectCause
=
infoForm
.
rejectCause
params
.
orderCode
=
this
.
paramsObj
.
orderCode
params
.
orderCode
=
this
.
paramsObj
.
orderCode
purchaseOrderReject
(
params
).
then
(
res
=>
{
purchaseOrderReject
(
params
).
then
(
res
=>
{
this
.
notice
.
okTips
(
'操作成功'
)
this
.
notice
.
okTips
(
'操作成功'
)
this
.
handleClose
(
true
)
// this.handleClose(true)
this
.
visible
=
true
})
})
}
}
})
})
...
@@ -90,16 +100,19 @@ export default {
...
@@ -90,16 +100,19 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.reject-dialog
{
.reject-dialog
{
margin
:
65px
0
;
margin
:
65px
0
;
.reject-input
.el-textarea__inner
{
.reject-input
.el-textarea__inner
{
height
:
79px
;
height
:
79px
;
width
:
432px
;
width
:
432px
;
}
}
.el-textarea
.el-input__count
{
.el-textarea
.el-input__count
{
right
:
90px
;
right
:
90px
;
bottom
:
-10px
;
bottom
:
-10px
;
font-size
:
12px
;
font-size
:
12px
;
color
:
#999999
;
color
:
#999999
;
}
}
.tips
{
.tips
{
color
:
#999999
;
color
:
#999999
;
}
}
...
...
src/views/purchase/constant/index.js
View file @
d12a97b
...
@@ -26,7 +26,7 @@ export const defaultDeliveryStatusOptions = [
...
@@ -26,7 +26,7 @@ export const defaultDeliveryStatusOptions = [
},
},
{
{
id
:
2
,
id
:
2
,
label
:
"
已
发货"
label
:
"
全部
发货"
},
},
{
{
id
:
3
,
id
:
3
,
...
@@ -42,7 +42,11 @@ export const defaultPutStatusOptions = [
...
@@ -42,7 +42,11 @@ export const defaultPutStatusOptions = [
},
},
{
{
id
:
2
,
id
:
2
,
label
:
"已入库"
label
:
"全部入库"
},
{
id
:
3
,
label
:
"部分入库"
}
}
]
]
...
@@ -69,3 +73,15 @@ export const purchasingPatternOptions = [
...
@@ -69,3 +73,15 @@ export const purchasingPatternOptions = [
// 5: "按(产值-流量成本-其他费用不包含产品成本))比例",
// 5: "按(产值-流量成本-其他费用不包含产品成本))比例",
// 6: "按(产值-流量成本-其他费用包含产品成本)比例"
// 6: "按(产值-流量成本-其他费用包含产品成本)比例"
// }
// }
//采购类型
export
const
purchaseTypeList
=
[
{
id
:
1
,
label
:
"商城采购"
},
{
id
:
2
,
label
:
"自采入库"
}
]
src/views/purchase/invoiceRecord.vue
View file @
d12a97b
...
@@ -62,7 +62,7 @@ export default {
...
@@ -62,7 +62,7 @@ export default {
deliveryNumber
:
''
,
deliveryNumber
:
''
,
deliveryCompany
:
''
,
deliveryCompany
:
''
,
deliveryDate
:
''
,
deliveryDate
:
''
,
orderCode
:
''
,
orderCode
:
this
.
$route
.
params
.
orderCode
||
''
,
merchantName
:
''
,
merchantName
:
''
,
putStatus
:
''
putStatus
:
''
},
},
...
...
src/views/purchase/procurementReview.vue
View file @
d12a97b
<!-- 采购审核 -->
<!-- 采购审核 -->
<
template
>
<
template
>
<d2-container
class=
"container"
>
<d2-container
class=
"container"
>
<div
class=
"header"
<div
class=
"header"
slot=
"header"
>
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
@
handleChangeSelect=
"handleChangeSelect"
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
@
handleChangeSelect=
"handleChangeSelect"
:form-data=
"showFormData"
>
:form-data=
"showFormData"
>
</d2-search>
</d2-search>
<div
class=
"up-btns"
>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
handle
>
size=
"small"
type=
"primary"
handle
>
查询
查询
</el-button>
</el-button>
<el-button
size=
"small"
<el-button
size=
"small"
@
click=
"handleReset"
>
@
click=
"handleReset"
>
重置
重置
</el-button>
</el-button>
</div>
</div>
...
@@ -29,30 +21,18 @@
...
@@ -29,30 +21,18 @@
<auth-button
category=
"Button"
/>
<auth-button
category=
"Button"
/>
</span>
</span>
<span>
<span>
<el-button
type=
"primary"
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleExport"
>
size=
"mini"
@
click=
"handleExport"
>
导出
导出
</el-button>
</el-button>
</span>
</span>
</d2-table-header>
</d2-table-header>
<d2-table
ref=
"purchasementReviewTable"
<d2-table
ref=
"purchasementReviewTable"
:search-form=
"tableSearchForm"
:table-params=
"tableParams"
:search-form=
"tableSearchForm"
:table-data=
"tableData"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
:table-params=
"tableParams"
<auth-button
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
/>
:table-data=
"tableData"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
<auth-button
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
/>
</d2-table>
</d2-table>
</div>
</div>
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
v-if=
"detailVisible"
:params-obj=
"paramsObj"
></orderDeatilDialog>
:params-obj=
"paramsObj"
></orderDeatilDialog>
<rejectDialog
:reject-visible=
"rejectVisible"
v-if=
"rejectVisible"
:params-obj=
"paramsObj"
@
dialogClose=
"dialogClose"
>
<rejectDialog
:reject-visible=
"rejectVisible"
v-if=
"rejectVisible"
:params-obj=
"paramsObj"
@
dialogClose=
"dialogClose"
>
</rejectDialog>
</rejectDialog>
</d2-container>
</d2-container>
</
template
>
</
template
>
...
@@ -139,7 +119,8 @@ export default {
...
@@ -139,7 +119,8 @@ export default {
optionId
:
'id'
,
optionId
:
'id'
,
optionLabel
:
'label'
,
optionLabel
:
'label'
,
optionsName
:
'purchasingPatternOptions'
optionsName
:
'purchasingPatternOptions'
},
{
},
{
label
:
'发货主体'
,
label
:
'发货主体'
,
name
:
'sendOutMerchantName'
,
name
:
'sendOutMerchantName'
,
type
:
'input'
,
type
:
'input'
,
...
@@ -198,7 +179,10 @@ export default {
...
@@ -198,7 +179,10 @@ export default {
},
},
{
{
label
:
'发货主体'
,
label
:
'发货主体'
,
prop
:
'sendOutMerchantName'
prop
:
'sendOutMerchantName'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
sendOutMerchantName
?
cellValue
.
sendOutMerchantName
:
'-'
}
},
},
{
{
label
:
'发货状态'
,
label
:
'发货状态'
,
...
@@ -208,8 +192,9 @@ export default {
...
@@ -208,8 +192,9 @@ export default {
},
},
className
:
(
cellValue
)
=>
{
className
:
(
cellValue
)
=>
{
return
{
return
{
1
:
'yellowSpot'
,
1
:
'ashSpot'
,
2
:
'greenSpot'
2
:
'greenSpot'
,
3
:
'yellowSpot'
}[
cellValue
.
deliveryStatus
]
}[
cellValue
.
deliveryStatus
]
}
}
},
},
...
@@ -360,11 +345,12 @@ export default {
...
@@ -360,11 +345,12 @@ export default {
handleDetail
(
row
)
{
handleDetail
(
row
)
{
this
.
paramsObj
=
{
this
.
paramsObj
=
{
orderCode
:
row
.
orderCode
,
orderCode
:
row
.
orderCode
,
merchantName
:
row
.
merchantName
merchantName
:
row
.
merchantName
,
purchaseType
:
row
.
purchaseType
}
}
this
.
detailVisible
=
true
this
.
detailVisible
=
true
},
},
//驳回
//
驳回
handleReject
(
row
)
{
handleReject
(
row
)
{
this
.
paramsObj
=
{
this
.
paramsObj
=
{
orderCode
:
row
.
orderCode
orderCode
:
row
.
orderCode
...
@@ -372,14 +358,14 @@ export default {
...
@@ -372,14 +358,14 @@ export default {
this
.
rejectVisible
=
true
this
.
rejectVisible
=
true
},
},
dialogClose
(
flag
)
{
dialogClose
(
flag
)
{
console
.
log
(
flag
)
this
.
rejectVisible
=
!
this
.
rejectVisible
this
.
rejectVisible
=
!
this
.
rejectVisible
if
(
flag
)
{
if
(
flag
)
{
this
.
$refs
.
purchasementReviewTable
.
refreshTable
()
this
.
$refs
.
purchasementReviewTable
.
refreshTable
()
}
}
}
,
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
></
style
>
</
style
>
src/views/purchase/purchaseAndDelivery.vue
View file @
d12a97b
<!-- 采购发货 -->
<!-- 采购发货 -->
<
template
>
<
template
>
<d2-container
class=
"container"
>
<d2-container
class=
"container"
>
<div
class=
"header"
<div
class=
"header"
slot=
"header"
>
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
>
</d2-search>
</d2-search>
<div
class=
"up-btns"
>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
handle
>
size=
"small"
type=
"primary"
handle
>
查询
查询
</el-button>
</el-button>
<el-button
size=
"small"
<el-button
size=
"small"
@
click=
"handleReset"
>
@
click=
"handleReset"
>
重置
重置
</el-button>
</el-button>
</div>
</div>
...
@@ -28,75 +20,51 @@
...
@@ -28,75 +20,51 @@
<auth-button
category=
"Button"
/>
<auth-button
category=
"Button"
/>
</span>
</span>
<span>
<span>
<el-button
type=
"primary"
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleExport"
>
size=
"mini"
@
click=
"handleExport"
>
导出
导出
</el-button>
</el-button>
</span>
</span>
</d2-table-header>
</d2-table-header>
<d2-table
ref=
"purchaseAndDeliveryTable"
<d2-table
ref=
"purchaseAndDeliveryTable"
:search-form=
"tableSearchForm"
:table-params=
"tableParams"
:search-form=
"tableSearchForm"
:table-data=
"tableData"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
:table-params=
"tableParams"
<div
slot=
"auth-button"
slot-scope=
"scope"
>
:table-data=
"tableData"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<!-- 查看 -->
<!-- 查看 -->
<span
style=
"margin-right: 10px;"
>
<span
style=
"margin-right: 10px;"
>
<auth-button
:data=
"scope.scope"
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090401']"
/>
:show-btn-ids=
"['9090401']"
/>
</span>
</span>
<!-- 确认发货 -->
<!-- 确认发货 -->
<span
v-show=
"scope.scope.status == 2"
<span
v-show=
"scope.scope.status == 2"
style=
"margin-right: 10px;"
>
style=
"margin-right: 10px;"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090402']"
/>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090402']"
/>
</span>
</span>
<!-- 驳回 -->
<!-- 驳回 -->
<span
v-show=
"scope.scope.deliveryStatus == 1"
>
<span
v-show=
"scope.scope.deliveryStatus == 1"
>
<!--
<el-button
:data=
"scope.scope"
type=
"text"
@
click=
"handleReject(scope.scope)"
>
驳回
</el-button>
-->
<!--
<el-button
:data=
"scope.scope"
type=
"text"
@
click=
"handleReject(scope.scope)"
>
驳回
</el-button>
-->
<auth-button
:data=
"scope.scope"
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090403']"
/>
:show-btn-ids=
"['9090403']"
/>
</span>
</span>
</div>
</div>
</d2-table>
</d2-table>
</div>
</div>
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
v-if=
"detailVisible"
:params-obj=
"paramsObj"
></orderDeatilDialog>
:params-obj=
"paramsObj"
></orderDeatilDialog>
<EditOrderDialog
v-if=
"editVisible"
:visible
.
sync=
"editVisible"
:params-obj=
"dialogData"
@
editClose=
"editClose"
>
<EditOrderDialog
v-if=
"editVisible"
</EditOrderDialog>
:visible
.
sync=
"editVisible"
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"-->
:params-obj=
"dialogData"
<baseDialog
:is-show
.
sync=
"rejectVisible"
:dialog-config=
"rejectConfig.config"
@
handleClick=
"handleRejectConfirm"
>
@
editClose=
"editClose"
></EditOrderDialog>
<!--
<d2-dialog
v-if=
"rejectVisible"
:is-visible=
"rejectVisible"
title=
"驳回提2"
@
confirmDialog=
"handleRejectConfirm"
<baseDialog
v-if=
"rejectVisible"
@
closeDialog=
"handleRejectClose"
>
-->
:is-show
.
sync=
"rejectVisible"
:config=
"rejectConfig.setting"
:dialog-config=
"rejectConfig.config"
@
closeDialog=
"handleRejectClose"
>
<div
class=
"reject-dialog"
>
<div
class=
"reject-dialog"
>
<el-form
:rules=
"rejectRules"
<el-form
:rules=
"rejectRules"
:model=
"rejectData"
label-width=
"150px"
ref=
"delivery-dialog-form"
>
:model=
"rejectData"
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
label-width=
"150px"
<el-input
type=
"textarea"
placeholder=
"请输入驳回原因"
maxlength=
"50"
:rows=
"3"
show-word-limit
ref=
"delivery-dialog-form"
>
v-model
.
trim=
"rejectData.rejectCause"
class=
"dis-in-block reject-input"
/>
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
<el-input
type=
"textarea"
placeholder=
"请输入驳回原因"
maxlength=
"50"
show-word-limit
v-model
.
trim=
"rejectData.rejectCause"
class=
"dis-in-block reject-input"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
<div
class=
"footer"
>
<
!--
<
div
class=
"footer"
>
<el-button
@
click=
"handleRejectClose"
>
取消
</el-button>
<el-button
@
click=
"handleRejectClose"
>
取消
</el-button>
<el-button
@
click=
"handleRejectConfirm"
<el-button
@
click=
"handleRejectConfirm"
type=
"primary"
v-preventReClick
type=
"primary"
v-preventReClick
:loading=
"$store.state.d2admin.loading.value"
>
确认
</el-button>
:loading=
"$store.state.d2admin.loading.value"
>
确认
</el-button>
</div>
</div>
-->
<!--
</d2-dialog>
-->
</baseDialog>
</baseDialog>
</d2-container>
</d2-container>
</
template
>
</
template
>
...
@@ -125,9 +93,10 @@ export default {
...
@@ -125,9 +93,10 @@ export default {
rejectConfig
:
{
rejectConfig
:
{
setting
:
{
setting
:
{
showClose
:
true
,
showClose
:
true
,
appendToBody
:
true
,
// appendToBody: true,
btnList
:
[
isShowFooter
:
true
]
// btnList: [
// ]
},
},
config
:
{
config
:
{
title
:
'驳回提示'
,
title
:
'驳回提示'
,
...
@@ -259,7 +228,10 @@ export default {
...
@@ -259,7 +228,10 @@ export default {
},
},
{
{
label
:
'发货主体'
,
label
:
'发货主体'
,
prop
:
'sendOutMerchantName'
prop
:
'sendOutMerchantName'
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
sendOutMerchantName
?
cellValue
.
sendOutMerchantName
:
'-'
}
},
},
{
{
label
:
'发货状态'
,
label
:
'发货状态'
,
...
@@ -269,9 +241,9 @@ export default {
...
@@ -269,9 +241,9 @@ export default {
},
},
className
:
(
cellValue
)
=>
{
className
:
(
cellValue
)
=>
{
return
{
return
{
1
:
'
yellow
Spot'
,
1
:
'
ash
Spot'
,
2
:
'greenSpot'
,
2
:
'greenSpot'
,
3
:
'
ash
Spot'
3
:
'
yellow
Spot'
}[
cellValue
.
deliveryStatus
]
}[
cellValue
.
deliveryStatus
]
}
}
},
},
...
@@ -430,6 +402,8 @@ export default {
...
@@ -430,6 +402,8 @@ export default {
handleRejectConfirm
()
{
handleRejectConfirm
()
{
this
.
$refs
[
'delivery-dialog-form'
].
validate
(
valid
=>
{
this
.
$refs
[
'delivery-dialog-form'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
// console.log(valid)
// return
purchaseOrderReject
({
...
this
.
rejectData
}).
then
(
res
=>
{
purchaseOrderReject
({
...
this
.
rejectData
}).
then
(
res
=>
{
this
.
handleRejectClose
()
this
.
handleRejectClose
()
this
.
notice
.
okTips
()
this
.
notice
.
okTips
()
...
@@ -452,26 +426,30 @@ export default {
...
@@ -452,26 +426,30 @@ export default {
handleDetail
(
row
)
{
handleDetail
(
row
)
{
this
.
paramsObj
=
{
this
.
paramsObj
=
{
orderCode
:
row
.
orderCode
,
orderCode
:
row
.
orderCode
,
merchantName
:
row
.
merchantName
merchantName
:
row
.
merchantName
,
purchaseType
:
row
.
purchaseType
}
}
this
.
detailVisible
=
true
this
.
detailVisible
=
true
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
.reject-dialog
{
.reject-dialog
{
margin
:
65px
0
;
margin
:
65px
0
;
.reject-input
.el-textarea__inner
{
.reject-input
.el-textarea__inner
{
height
:
79px
;
height
:
79px
;
width
:
432px
;
width
:
432px
;
}
}
.el-textarea
.el-input__count
{
.el-textarea
.el-input__count
{
right
:
90px
;
right
:
90px
;
bottom
:
-10px
;
bottom
:
-10px
;
font-size
:
12px
;
font-size
:
12px
;
color
:
#999999
;
color
:
#999999
;
}
}
.tips
{
.tips
{
color
:
#999999
;
color
:
#999999
;
}
}
...
...
src/views/purchase/purchaseOrder.vue
View file @
d12a97b
...
@@ -56,21 +56,28 @@
...
@@ -56,21 +56,28 @@
:show-btn-ids=
"['9090103']"
/>
:show-btn-ids=
"['9090103']"
/>
</span>
</span>
<!-- 入库 -->
<!-- 入库 -->
<span
v-show=
"scope.scope.putStatus == 1 && !userInfo.beSuper && userInfo.beYQMerchant"
>
<span
style=
"margin-right: 10px;"
v-show=
"scope.scope.putStatus == 1 && !userInfo.beSuper && userInfo.beYQMerchant"
>
<auth-button
:data=
"scope.scope"
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090104']"
/>
:show-btn-ids=
"['9090104']"
/>
</span>
</span>
<span
style=
"margin-right: 10px;"
v-show=
"(scope.scope.purchaseType == 1 && scope.scope.deliveryStatus == 2) || (scope.scope.purchaseType == 1 && scope.scope.deliveryStatus == 3)"
>
<auth-button
:data=
"scope.scope"
:show-btn-ids=
"['9090105']"
/>
</span>
</div>
</div>
</d2-table>
</d2-table>
</div>
</div>
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
v-if=
"detailVisible"
:params-obj=
"paramsObj"
></orderDeatilDialog>
:params-obj=
"paramsObj"
></orderDeatilDialog>
</d2-container>
</d2-container>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
defaultStatusOptions
,
defaultDeliveryStatusOptions
,
defaultPutStatusOptions
}
from
'./constant'
import
{
defaultStatusOptions
,
defaultDeliveryStatusOptions
,
defaultPutStatusOptions
,
purchaseTypeList
}
from
'./constant'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
getPurchaseOrderList
,
getMerchantList
,
purchaseOrderCancelOrCheck
,
purchaseOrderPutIn
}
from
'@/api/purchaseShopping.js'
import
{
getPurchaseOrderList
,
getMerchantList
,
purchaseOrderCancelOrCheck
,
purchaseOrderPutIn
}
from
'@/api/purchaseShopping.js'
import
orderDeatilDialog
from
'./components/orderDetailDialog'
import
orderDeatilDialog
from
'./components/orderDetailDialog'
...
@@ -92,7 +99,8 @@ export default {
...
@@ -92,7 +99,8 @@ export default {
putMerchantName
:
''
,
putMerchantName
:
''
,
sortType
:
1
,
sortType
:
1
,
orderTimeStr
:
[],
orderTimeStr
:
[],
putTimeStr
:
[]
// putTimeStr: [],
purchaseType
:
''
},
},
tableSearchForm
:
{},
tableSearchForm
:
{},
tableData
:
[],
tableData
:
[],
...
@@ -104,6 +112,19 @@ export default {
...
@@ -104,6 +112,19 @@ export default {
isClear
:
true
isClear
:
true
},
},
{
{
label
:
'下单时间'
,
name
:
'placeOrderTimeStr'
,
type
:
'datePicker'
,
isClear
:
true
,
pickerOptions
:
'rangePickerOptions'
},
{
label
:
'下单商户'
,
name
:
'merchantName'
,
type
:
'input'
,
isClear
:
true
},
{
label
:
'订单状态'
,
label
:
'订单状态'
,
name
:
'status'
,
name
:
'status'
,
type
:
'select'
,
type
:
'select'
,
...
@@ -131,19 +152,21 @@ export default {
...
@@ -131,19 +152,21 @@ export default {
optionsName
:
'defaultPutStatusOptions'
optionsName
:
'defaultPutStatusOptions'
},
},
{
{
label
:
'下单时间'
,
label
:
'采购类型'
,
name
:
'placeOrderTimeStr'
,
name
:
'purchaseType'
,
type
:
'datePicker'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
pickerOptions
:
'rangePickerOptions'
optionId
:
'id'
,
},
optionLabel
:
'label'
,
{
optionsName
:
'purchaseTypeList'
label
:
'入库时间'
,
}
name
:
'warehousingTimeStr'
,
// {
type
:
'datePicker'
,
// label: '入库时间',
isClear
:
true
,
// name: 'warehousingTimeStr',
pickerOptions
:
'rangePickerOptions'
// type: 'datePicker',
},
// isClear: true,
// pickerOptions: 'rangePickerOptions'
// },
// {
// {
// label: '下单门店',
// label: '下单门店',
// name: 'merchantId',
// name: 'merchantId',
...
@@ -153,12 +176,6 @@ export default {
...
@@ -153,12 +176,6 @@ export default {
// optionLabel: 'merchantName',
// optionLabel: 'merchantName',
// optionsName: 'merchantName'
// optionsName: 'merchantName'
// },
// },
{
label
:
'下单门店'
,
name
:
'merchantName'
,
type
:
'input'
,
isClear
:
true
},
// {
// {
// label: '入库门店',
// label: '入库门店',
// name: 'putMerchantId',
// name: 'putMerchantId',
...
@@ -168,12 +185,12 @@ export default {
...
@@ -168,12 +185,12 @@ export default {
// optionLabel: 'merchantName',
// optionLabel: 'merchantName',
// optionsName: 'merchantName'
// optionsName: 'merchantName'
// }
// }
{
//
{
label
:
'入库门店'
,
//
label: '入库门店',
name
:
'putMerchantName'
,
//
name: 'putMerchantName',
type
:
'input'
,
//
type: 'input',
isClear
:
true
//
isClear: true
},
//
},
],
],
getListApi
:
getPurchaseOrderList
,
getListApi
:
getPurchaseOrderList
,
// 表格参数
// 表格参数
...
@@ -202,10 +219,17 @@ export default {
...
@@ -202,10 +219,17 @@ export default {
width
:
150
width
:
150
},
},
{
{
label
:
'下单
门店
'
,
label
:
'下单
商户
'
,
prop
:
'merchantName'
prop
:
'merchantName'
},
},
{
{
label
:
'采购类型'
,
prop
:
'purchaseType'
,
formatter
:
(
cellValue
)
=>
{
return
purchaseTypeList
.
find
(
item
=>
item
.
id
==
cellValue
.
purchaseType
)?.
label
||
'-'
}
},
{
label
:
'发货状态'
,
label
:
'发货状态'
,
prop
:
'deliveryStatus'
,
prop
:
'deliveryStatus'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
...
@@ -213,25 +237,26 @@ export default {
...
@@ -213,25 +237,26 @@ export default {
},
},
className
:
(
cellValue
)
=>
{
className
:
(
cellValue
)
=>
{
return
{
return
{
1
:
'yellowSpot'
,
1
:
'ashSpot'
,
2
:
'greenSpot'
2
:
'greenSpot'
,
3
:
'yellowSpot'
}[
cellValue
.
deliveryStatus
]
}[
cellValue
.
deliveryStatus
]
}
}
},
},
{
//
{
label
:
'承运公司'
,
//
label: '承运公司',
prop
:
'deliveryCompany'
,
//
prop: 'deliveryCompany',
formatter
:
(
cellValue
)
=>
{
//
formatter: (cellValue) => {
return
cellValue
.
deliveryCompany
||
'--'
//
return cellValue.deliveryCompany || '--'
}
//
}
},
//
},
{
//
{
label
:
'承运单号'
,
//
label: '承运单号',
prop
:
'deliveryNumber'
,
//
prop: 'deliveryNumber',
formatter
:
(
cellValue
)
=>
{
//
formatter: (cellValue) => {
return
cellValue
.
deliveryNumber
||
'--'
//
return cellValue.deliveryNumber || '--'
}
//
}
},
//
},
{
{
label
:
'入库状态'
,
label
:
'入库状态'
,
prop
:
'putStatus'
,
prop
:
'putStatus'
,
...
@@ -240,26 +265,27 @@ export default {
...
@@ -240,26 +265,27 @@ export default {
},
},
className
:
(
cellValue
)
=>
{
className
:
(
cellValue
)
=>
{
return
{
return
{
1
:
'yellowSpot'
,
1
:
'ashSpot'
,
2
:
'greenSpot'
2
:
'greenSpot'
,
3
:
'yellowSpot'
}[
cellValue
.
putStatus
]
}[
cellValue
.
putStatus
]
}
}
},
},
{
//
{
label
:
'入库时间'
,
//
label: '入库时间',
prop
:
'putTime'
,
//
prop: 'putTime',
formatter
:
(
cellValue
)
=>
{
//
formatter: (cellValue) => {
return
cellValue
.
putTime
?
Util
.
dateFormate
(
cellValue
.
putTime
,
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
//
return cellValue.putTime ? Util.dateFormate(cellValue.putTime, 'YYYY-MM-DD HH:mm:ss') : '--'
},
//
},
width
:
150
//
width: 150
},
//
},
{
//
{
label
:
'入库门店'
,
//
label: '入库门店',
prop
:
'putMerchantName'
,
//
prop: 'putMerchantName',
formatter
:
(
cellValue
)
=>
{
//
formatter: (cellValue) => {
return
cellValue
.
putMerchantName
||
'--'
//
return cellValue.putMerchantName || '--'
}
//
}
},
//
},
{
{
label
:
'订单状态'
,
label
:
'订单状态'
,
prop
:
'status'
,
prop
:
'status'
,
...
@@ -283,7 +309,8 @@ export default {
...
@@ -283,7 +309,8 @@ export default {
baseData
:
{
baseData
:
{
defaultStatusOptions
:
[],
defaultStatusOptions
:
[],
defaultDeliveryStatusOptions
:
[],
defaultDeliveryStatusOptions
:
[],
defaultPutStatusOptions
:
[]
defaultPutStatusOptions
:
[],
purchaseTypeList
:
[]
},
},
paramsObj
:
{}
paramsObj
:
{}
}
}
...
@@ -315,7 +342,8 @@ export default {
...
@@ -315,7 +342,8 @@ export default {
this
.
baseData
=
{
this
.
baseData
=
{
defaultStatusOptions
:
deepClone
(
defaultStatusOptions
),
defaultStatusOptions
:
deepClone
(
defaultStatusOptions
),
defaultDeliveryStatusOptions
:
deepClone
(
defaultDeliveryStatusOptions
),
defaultDeliveryStatusOptions
:
deepClone
(
defaultDeliveryStatusOptions
),
defaultPutStatusOptions
:
deepClone
(
defaultPutStatusOptions
)
defaultPutStatusOptions
:
deepClone
(
defaultPutStatusOptions
),
purchaseTypeList
:
deepClone
(
purchaseTypeList
)
}
}
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
])
{
if
(
item
.
type
===
'select'
&&
this
.
baseData
[
item
.
optionsName
])
{
...
@@ -341,11 +369,11 @@ export default {
...
@@ -341,11 +369,11 @@ export default {
this
.
tableSearchForm
.
orderTimeStr
[
1
]
=
new
Date
(
this
.
tableSearchForm
.
placeOrderTimeStr
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
this
.
tableSearchForm
.
orderTimeStr
[
1
]
=
new
Date
(
this
.
tableSearchForm
.
placeOrderTimeStr
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
delete
this
.
tableSearchForm
.
placeOrderTimeStr
delete
this
.
tableSearchForm
.
placeOrderTimeStr
}
}
if
(
this
.
tableSearchForm
.
warehousingTimeStr
)
{
//
if (this.tableSearchForm.warehousingTimeStr) {
this
.
tableSearchForm
.
putTimeStr
[
0
]
=
new
Date
(
this
.
tableSearchForm
.
warehousingTimeStr
[
0
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 00:00:00'
//
this.tableSearchForm.putTimeStr[0] = new Date(this.tableSearchForm.warehousingTimeStr[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
this
.
tableSearchForm
.
putTimeStr
[
1
]
=
new
Date
(
this
.
tableSearchForm
.
warehousingTimeStr
[
1
]).
toLocaleDateString
().
replace
(
/
\/
/g
,
'-'
)
+
' 23:59:59'
//
this.tableSearchForm.putTimeStr[1] = new Date(this.tableSearchForm.warehousingTimeStr[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
delete
this
.
tableSearchForm
.
warehousingTimeStr
//
delete this.tableSearchForm.warehousingTimeStr
}
//
}
},
},
handleReset
()
{
handleReset
()
{
for
(
const
key
in
this
.
searchForm
)
{
for
(
const
key
in
this
.
searchForm
)
{
...
@@ -353,7 +381,7 @@ export default {
...
@@ -353,7 +381,7 @@ export default {
}
}
this
.
searchForm
.
sortType
=
1
this
.
searchForm
.
sortType
=
1
this
.
searchForm
.
orderTimeStr
=
[]
this
.
searchForm
.
orderTimeStr
=
[]
this
.
searchForm
.
putTimeStr
=
[]
//
this.searchForm.putTimeStr = []
this
.
$refs
.
purchaseOrderTable
.
refreshTable
()
this
.
$refs
.
purchaseOrderTable
.
refreshTable
()
},
},
// 创建采购
// 创建采购
...
@@ -422,9 +450,19 @@ export default {
...
@@ -422,9 +450,19 @@ export default {
handleDetail
(
row
)
{
handleDetail
(
row
)
{
this
.
paramsObj
=
{
this
.
paramsObj
=
{
orderCode
:
row
.
orderCode
,
orderCode
:
row
.
orderCode
,
merchantName
:
row
.
merchantName
merchantName
:
row
.
merchantName
,
purchaseType
:
row
.
purchaseType
}
}
this
.
detailVisible
=
true
this
.
detailVisible
=
true
},
//发货单
handleSendgoods
(
row
)
{
this
.
$router
.
push
({
name
:
'invoiceRecord'
,
params
:
{
orderCode
:
row
.
orderCode
}
})
}
}
}
}
}
}
...
...
src/views/rightsAndInterestsManage/components/ruleConfigurationDialog.vue
View file @
d12a97b
...
@@ -323,8 +323,10 @@ export default {
...
@@ -323,8 +323,10 @@ export default {
},
},
methods
:
{
methods
:
{
validateAccount
(
rule
,
value
,
callback
,
item
)
{
validateAccount
(
rule
,
value
,
callback
,
item
)
{
console
.
log
(
item
)
// console.log(item)
value
<
item
.
low
// console.log(value)
// 避免字符串转换问题
Number
(
value
)
<
Number
(
item
.
low
)
?
callback
(
new
Error
(
`价格不能小于
${
item
.
low
}
万元`
))
?
callback
(
new
Error
(
`价格不能小于
${
item
.
low
}
万元`
))
:
callback
()
:
callback
()
},
},
...
...
src/views/stockManage/warehousing/warehousingList.vue
View file @
d12a97b
...
@@ -2,21 +2,13 @@
...
@@ -2,21 +2,13 @@
<
template
>
<
template
>
<div>
<div>
<d2-container>
<d2-container>
<div
class=
"header"
<div
class=
"header"
slot=
"header"
style=
"padding: 10px 20px;"
>
slot=
"header"
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
/>
style=
"padding: 10px 20px;"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
/>
<div
class=
"up-btns"
>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
>
size=
"small"
type=
"primary"
>
查询
查询
</el-button>
</el-button>
<el-button
size=
"small"
<el-button
size=
"small"
@
click=
"handleReset"
>
@
click=
"handleReset"
>
重置
重置
</el-button>
</el-button>
</div>
</div>
...
@@ -25,14 +17,9 @@
...
@@ -25,14 +17,9 @@
<d2-table-header>
<d2-table-header>
<auth-button
category=
"Button"
/>
<auth-button
category=
"Button"
/>
</d2-table-header>
</d2-table-header>
<d2-table
ref=
"recordTable"
<d2-table
ref=
"recordTable"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
>
:before-search-fn=
"beforeSearchFn"
>
<auth-button
slot=
"auth-button"
<auth-button
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
/>
slot-scope=
"scope"
:data=
"scope.scope"
/>
</d2-table>
</d2-table>
</div>
</div>
</d2-container>
</d2-container>
...
@@ -231,6 +218,10 @@ export default {
...
@@ -231,6 +218,10 @@ export default {
{
{
confId
:
'3'
,
confId
:
'3'
,
confLabel
:
'调拨入库'
confLabel
:
'调拨入库'
},
{
confId
:
'4'
,
confLabel
:
'订单入库'
}
}
],
],
productTypeList
:
[],
productTypeList
:
[],
...
@@ -276,10 +267,10 @@ export default {
...
@@ -276,10 +267,10 @@ export default {
yqMerchantId
:
merchantId
yqMerchantId
:
merchantId
}).
then
(
res
=>
{
}).
then
(
res
=>
{
this
.
baseData
.
merchantIdList
=
res
||
[]
this
.
baseData
.
merchantIdList
=
res
||
[]
//总店
//
总店
le
t
_headOffice
=
this
.
baseData
.
yqMerchantList
.
find
(
item
=>
item
.
merchantNo
===
merchantId
)
cons
t
_headOffice
=
this
.
baseData
.
yqMerchantList
.
find
(
item
=>
item
.
merchantNo
===
merchantId
)
_headOffice
.
merchantId
=
_headOffice
.
merchantNo
_headOffice
.
merchantId
=
_headOffice
.
merchantNo
//门店选项中加入总店
//
门店选项中加入总店
this
.
baseData
.
merchantIdList
.
push
(
_headOffice
)
this
.
baseData
.
merchantIdList
.
push
(
_headOffice
)
this
.
getOptionsList
()
this
.
getOptionsList
()
})
})
...
...
src/views/systemConfig/merchant/setDetail.vue
View file @
d12a97b
This diff is collapsed.
Click to expand it.
src/views/systemConfig/serviceManage/serviceManage.vue
View file @
d12a97b
...
@@ -73,12 +73,15 @@ export default {
...
@@ -73,12 +73,15 @@ export default {
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[{
tableColumns
:
[{
label
:
'服务商名称'
,
label
:
'服务商名称'
,
width
:
180
,
prop
:
'partnerMerchantName'
prop
:
'partnerMerchantName'
},
{
},
{
label
:
'商户号'
,
label
:
'商户号'
,
width
:
150
,
prop
:
'partnerMerchantId'
prop
:
'partnerMerchantId'
},
{
},
{
label
:
'登录账号'
,
label
:
'登录账号'
,
width
:
150
,
prop
:
'accountName'
prop
:
'accountName'
},
{
},
{
label
:
'采购模式'
,
label
:
'采购模式'
,
...
@@ -95,21 +98,41 @@ export default {
...
@@ -95,21 +98,41 @@ export default {
}
}
},
{
},
{
label
:
'下级园区店'
,
label
:
'下级园区店'
,
prop
:
'subMerchantName'
,
prop
:
''
,
html
:
true
,
width
:
200
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
cellValue
?.
subMerchantName
||
'-'
var
html
=
'-'
var
list
=
[]
if
(
cellValue
.
subMerchantsInfo
&&
cellValue
.
subMerchantsInfo
.
length
>
0
)
{
cellValue
.
subMerchantsInfo
.
map
(
item
=>
{
list
.
push
(
item
.
merchantName
)
})
html
=
list
.
join
(
'<br>'
)
}
return
html
}
}
},
{
},
{
label
:
'下级园区店商户号'
,
label
:
'下级园区店商户号'
,
width
:
'180'
,
width
:
'180'
,
prop
:
'subMerchantName'
,
prop
:
''
,
html
:
true
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
cellValue
?.
subMerchantId
||
'-'
var
html
=
'-'
var
list
=
[]
if
(
cellValue
.
subMerchantsInfo
&&
cellValue
.
subMerchantsInfo
.
length
>
0
)
{
cellValue
.
subMerchantsInfo
.
map
(
item
=>
{
list
.
push
(
item
.
merchantId
)
})
html
=
list
.
join
(
'<br>'
)
}
return
html
}
}
},
{
},
{
label
:
'关联园区店'
,
label
:
'关联园区店'
,
prop
:
'yqMerchantId'
,
prop
:
'yqMerchantId'
,
html
:
true
,
html
:
true
,
width
:
200
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
var
html
=
''
var
html
=
''
var
list
=
[]
var
list
=
[]
...
...
src/views/vehicleDamage/vehicleDamageList.vue
View file @
d12a97b
...
@@ -2,52 +2,34 @@
...
@@ -2,52 +2,34 @@
<
template
>
<
template
>
<div>
<div>
<d2-container>
<d2-container>
<div
class=
"header"
<div
class=
"header"
slot=
"header"
style=
"padding: 10px 20px"
>
slot=
"header"
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
/>
style=
"padding: 10px 20px"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
/>
<div
class=
"up-btns"
>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
>
size=
"small"
type=
"primary"
>
查询
查询
</el-button>
</el-button>
<el-button
size=
"small"
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
@
click=
"handleReset"
>
重置
</el-button>
</div>
</div>
</div>
</div>
<div
class=
"d2-container-content"
>
<div
class=
"d2-container-content"
>
<d2-table-header>
<d2-table-header>
<el-button
class=
"default-blue-btn"
<el-button
class=
"default-blue-btn"
plain
@
click=
"handleExport"
size=
"small"
>
导出
</el-button>
plain
@
click=
"handleExport"
size=
"small"
>
导出
</el-button>
</d2-table-header>
</d2-table-header>
<d2-table
ref=
"damageTable"
<d2-table
ref=
"damageTable"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
>
:before-search-fn=
"beforeSearchFn"
>
<div
slot-scope=
"scope"
<div
slot-scope=
"scope"
slot=
"auth-button"
class=
"btnClass"
>
slot=
"auth-button"
class=
"btnClass"
>
<!-- 查看 -->
<!-- 查看 -->
<!--
<auth-button
<!--
<auth-button
v-if=
"[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)"
v-if=
"[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)"
:show-btn-ids=
"['9040601']"
:data=
"scope.scope"
/>
-->
:show-btn-ids=
"['9040601']"
:data=
"scope.scope"
/>
-->
<!-- 打印报价单 -->
<!-- 打印报价单 -->
<auth-button
v-if=
"[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)"
<auth-button
:show-btn-ids=
"['9040603']
"
v-if=
"[1, 2, 3, -1, 5].includes(scope.scope.orderStatus) || [2].includes(scope.scope.equityOrderStatus)
"
:data=
"scope.scope"
/>
:show-btn-ids=
"['9040603']"
:data=
"scope.scope"
/>
<!-- 打印合同 -->
<!-- 打印合同 -->
<auth-button
v-if=
"[2].includes(scope.scope.equityOrderStatus) && [3, 5].includes(scope.scope.orderStatus)"
<auth-button
v-if=
"[2].includes(scope.scope.equityOrderStatus) && [3, 5].includes(scope.scope.orderStatus)"
:show-btn-ids=
"['9040605']"
:show-btn-ids=
"['9040605']"
:data=
"scope.scope"
/>
:data=
"scope.scope"
/>
<auth-button
:show-btn-ids=
"['9040602']"
:data=
"scope.scope"
/>
<auth-button
:show-btn-ids=
"['9040602']"
:data=
"scope.scope"
/>
</div>
</div>
</d2-table>
</d2-table>
</div>
</div>
...
@@ -175,17 +157,26 @@ export default {
...
@@ -175,17 +157,26 @@ export default {
{
{
label
:
"报价金额/元"
,
label
:
"报价金额/元"
,
prop
:
"quotedPrice"
,
prop
:
"quotedPrice"
,
width
:
"200px"
width
:
"200px"
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
quotedPrice
?
(
cellValue
.
quotedPrice
/
100
).
toFixed
(
2
)
:
"-"
}
},
},
{
{
label
:
"预计权益金额/元"
,
label
:
"预计权益金额/元"
,
prop
:
"estEquityPrice"
,
prop
:
"estEquityPrice"
,
width
:
"250px"
width
:
"250px"
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
estEquityPrice
?
(
cellValue
.
estEquityPrice
/
100
).
toFixed
(
2
)
:
"-"
}
},
},
{
{
label
:
"实际权益金额/元"
,
label
:
"实际权益金额/元"
,
prop
:
"equityPrice"
,
prop
:
"equityPrice"
,
width
:
"250px"
width
:
"250px"
,
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
equityPrice
?
(
cellValue
.
equityPrice
/
100
).
toFixed
(
2
)
:
"-"
}
},
},
{
{
label
:
"商户名称"
,
label
:
"商户名称"
,
...
...
vue.config.js
View file @
d12a97b
...
@@ -74,19 +74,19 @@ module.exports = {
...
@@ -74,19 +74,19 @@ module.exports = {
// lintOnSave: true,
// lintOnSave: true,
lintOnSave
:
false
,
lintOnSave
:
false
,
devServer
:
{
devServer
:
{
// port: 8082,
// publicPath, // 和 publicPath 保持一致
// publicPath, // 和 publicPath 保持一致
// port: 8082,
// proxy: {
// proxy: {
// "/
dj-carlife-web
": {
// "/
api
": {
// //
拦截链接中有/musicApi
// //
target: "http://192.168.3.102:9203/rop-dj-smartcarlife/router", // API服务器的地址
// target: "http://
192.168.3.226:9203
/rop-dj-smartcarlife/router", // API服务器的地址
// target: "http://
dj.glsx.com.cn
/rop-dj-smartcarlife/router", // API服务器的地址
// changeOrigin: true,
// changeOrigin: true,
// pathRewrite: {
// pathRewrite: {
//
// "^/dev-api/vue-admin-template/user/login": "/user
"
//
"^/api": "
"
// }
// }
// }
// }
// },
// },
https
:
fals
e
,
// https: tru
e,
host
:
getIpAddress
()
host
:
getIpAddress
()
},
},
css
:
{
css
:
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment