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 bc989bd5
authored
May 19, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
db6c0eca
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
74 additions
and
28 deletions
src/api/index.js
src/api/request.js
src/views/index/components/outputValueDialog.vue
src/views/purchase/components/rejectDialog.vue
src/views/purchase/procurementReview.vue
src/views/purchase/purchaseAndDelivery.vue
src/views/rightsAndInterestsManage/components/ruleConfigurationDialog.vue
vue.config.js
src/api/index.js
View file @
bc989bd
...
@@ -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 @
bc989bd
...
@@ -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/views/index/components/outputValueDialog.vue
View file @
bc989bd
...
@@ -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/purchase/components/rejectDialog.vue
View file @
bc989bd
<!-- 驳回 -->
<!-- 驳回 -->
<
template
>
<
template
>
<d2-dialog
title=
"驳回提示"
:is-visible=
"rejectVisible"
class=
"accountDailog"
@
closeDialog=
"handleClose"
<baseDialog
:dialog-config=
"dialogConfig"
:is-show
.
sync=
"visible"
class=
"accountDailog"
@
handleClick=
"handleAddConfirm"
>
@
confirmDialog=
"handleAddConfirm"
>
<div
class=
"reject-dialog"
>
<div
class=
"reject-dialog"
>
<el-form
ref=
"refundForm"
label-width=
"150px"
:model=
"infoForm"
:rules=
"formRules"
>
<el-form
ref=
"refundForm"
label-width=
"150px"
:model=
"infoForm"
:rules=
"formRules"
>
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
<el-input
type=
"textarea"
placeholder=
"请输入驳回原因"
maxlength=
"50"
show-word-limit
v-model=
"infoForm.rejectCause"
<el-input
type=
"textarea"
placeholder=
"请输入驳回原因"
maxlength=
"50"
show-word-limit
v-model=
"infoForm.rejectCause"
class=
"dis-in-block reject-input"
/>
:row=
"3"
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
>
...
@@ -24,7 +23,10 @@ export default {
...
@@ -24,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'
}]
}
}
...
@@ -41,6 +43,21 @@ export default {
...
@@ -41,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
:
{
},
},
...
@@ -56,15 +73,19 @@ export default {
...
@@ -56,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
})
})
}
}
})
})
...
...
src/views/purchase/procurementReview.vue
View file @
bc989bd
...
@@ -357,6 +357,7 @@ export default {
...
@@ -357,6 +357,7 @@ 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
()
...
...
src/views/purchase/purchaseAndDelivery.vue
View file @
bc989bd
...
@@ -47,13 +47,14 @@
...
@@ -47,13 +47,14 @@
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
v-if=
"detailVisible"
:params-obj=
"paramsObj"
></orderDeatilDialog>
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
v-if=
"detailVisible"
:params-obj=
"paramsObj"
></orderDeatilDialog>
<EditOrderDialog
v-if=
"editVisible"
:visible
.
sync=
"editVisible"
:params-obj=
"dialogData"
@
editClose=
"editClose"
>
<EditOrderDialog
v-if=
"editVisible"
:visible
.
sync=
"editVisible"
:params-obj=
"dialogData"
@
editClose=
"editClose"
>
</EditOrderDialog>
</EditOrderDialog>
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config"-->
<!-- :config="rejectConfig.setting" :dialog-config="rejectConfig.config" :config="rejectConfig.setting"-->
<d2-dialog
v-if=
"rejectVisible"
:is-visible=
"rejectVisible"
title=
"驳回提示"
@
confirmDialog=
"handleRejectConfirm"
<baseDialog
:is-show
.
sync=
"rejectVisible"
:dialog-config=
"rejectConfig.config"
@
handleClick=
"handleRejectConfirm"
>
@
closeDialog=
"handleRejectClose"
>
<!--
<d2-dialog
v-if=
"rejectVisible"
:is-visible=
"rejectVisible"
title=
"驳回提2"
@
confirmDialog=
"handleRejectConfirm"
@
closeDialog=
"handleRejectClose"
>
-->
<div
class=
"reject-dialog"
>
<div
class=
"reject-dialog"
>
<el-form
:rules=
"rejectRules"
:model=
"rejectData"
label-width=
"150px"
ref=
"delivery-dialog-form"
>
<el-form
:rules=
"rejectRules"
:model=
"rejectData"
label-width=
"150px"
ref=
"delivery-dialog-form"
>
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
<el-input
type=
"textarea"
placeholder=
"请输入驳回原因"
maxlength=
"50"
show-word-limit
<el-input
type=
"textarea"
placeholder=
"请输入驳回原因"
maxlength=
"50"
:rows=
"3"
show-word-limit
v-model
.
trim=
"rejectData.rejectCause"
class=
"dis-in-block reject-input"
/>
v-model
.
trim=
"rejectData.rejectCause"
class=
"dis-in-block reject-input"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -63,7 +64,8 @@
...
@@ -63,7 +64,8 @@
<el-button
@
click=
"handleRejectConfirm"
type=
"primary"
v-preventReClick
<el-button
@
click=
"handleRejectConfirm"
type=
"primary"
v-preventReClick
:loading=
"$store.state.d2admin.loading.value"
>
确认
</el-button>
:loading=
"$store.state.d2admin.loading.value"
>
确认
</el-button>
</div>
-->
</div>
-->
</d2-dialog>
<!--
</d2-dialog>
-->
</baseDialog>
</d2-container>
</d2-container>
</
template
>
</
template
>
...
@@ -91,9 +93,10 @@ export default {
...
@@ -91,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
:
'驳回提示'
,
...
@@ -399,6 +402,8 @@ export default {
...
@@ -399,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
()
...
...
src/views/rightsAndInterestsManage/components/ruleConfigurationDialog.vue
View file @
bc989bd
...
@@ -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
()
},
},
...
...
vue.config.js
View file @
bc989bd
...
@@ -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