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 05222e9c
authored
May 23, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
22.0功能代码提交
1 parent
511e9788
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
291 additions
and
84 deletions
src/api/openshopProcess.js
src/api/purchaseShopping.js
src/router/modules/906_systemSettings.js
src/views/purchase/components/rejectDialog.vue
src/views/purchase/procurementReview.vue
src/views/systemConfig/OpenshopProcess/index.vue
src/api/openshopProcess.js
0 → 100644
View file @
05222e9
import
request
from
"./request"
const
path
=
"dj.api.smartcarlife."
// 分页查询开店审核记录
export
function
createMerchantReviewPage
(
data
)
{
data
.
method
=
`
${
path
}
createMerchant.review.page`
return
request
(
data
)
}
// 审核开店申请
export
function
createMerchantReviewApprove
(
data
)
{
data
.
method
=
`
${
path
}
createMerchant.review.approve`
return
request
(
data
)
}
// 驳回开店申请
export
function
createMerchantReviewReject
(
data
)
{
data
.
method
=
`
${
path
}
createMerchant.review.reject`
return
request
(
data
)
}
// // 修改购物车商品数量
// export function shoppingCarUpdateNumber(data) {
// data.method = `${path}purchaseShoppingCar.updateNumber`
// return request(data)
// }
// // 更新购物车商品选中标识
// export function updateSelectedFlag(data) {
// data.method = `${path}purchaseShoppingCar.updateSelectedFlag`
// return request(data)
// }
// // 获取当前登录园区店商户收货地址
// export function addressGet(data = {}) {
// // console.log(data)
// data.method = `${path}yqMerchantDeliveryAddress.get`
// return request(data)
// }
// // 保存园区店商户收货地址
// export function addressSave(data) {
// data.method = `${path}yqMerchantDeliveryAddress.save`
// return request(data)
// }
// // 分页查询采购商城素材信息
// export function listWithPagePurchaseInfo(data) {
// data.method = `${path2}listWithPage.purchaseInfo`
// return request(data)
// }
// // 添加采购订单
// export function purchaseOrderAdd(data) {
// data.method = `${path}purchaseOrder.add`
// return request(data, "post")
// }
// // 分页查询采购订单
// export function getPurchaseOrderList(data) {
// data.method = `${path}purchaseOrder.page`
// return request(data)
// }
// // 查看采购订单
// export function purchaseOrderDetail(data) {
// data.method = `${path}purchaseOrder.view`
// return request(data)
// }
// // 采购订单入库
// export function purchaseOrderPutIn(data) {
// data.method = `${path}purchaseOrder.putIn`
// return request(data)
// }
// // 获取下单/入库门店
// export function getMerchantList(data) {
// data.method = `${path3}permission.yqMerchant.list`
// return request(data, "post")
// }
// // 采购订单取消/审核
// export function purchaseOrderCancelOrCheck(data) {
// data.method = `${path}purchaseOrder.cancelOrCheck`
// return request(data)
// }
// // 确认发货
// // export function purchaseOrderConfirmDelivery(data) {
// // data.method = `${path}purchaseOrder.confirmDelivery`
// // return request(data)
// // }
// // 确认发货
// export function purchaseOrderDelivery(data) {
// data.method = "dj.api.smarcarlife.purchaseOrder.delivery"
// return request(data)
// } // 发货单分页查询
// export function purchaseOrderDeliveryPage(data) {
// data.method = `${path}purchaseOrder.delivery.page`
// return request(data)
// }
// // 发货单撤销
// export function purchaseOrderDeliveryWithdraw(data) {
// data.method = `${path}purchaseOrder.delivery.withdraw`
// return request(data)
// }
// // 发货单详情查看
// export function purchaseOrderDeliveryDetail(data) {
// data.method = `${path}purchaseOrder.delivery.detail`
// return request(data)
// }
// // 驳回
// export function purchaseOrderReject(data) {
// data.method = `${path}purchaseOrder.reject`
// return request(data)
// }
src/api/purchaseShopping.js
View file @
05222e9
...
@@ -96,9 +96,9 @@ export function purchaseOrderCancelOrCheck(data) {
...
@@ -96,9 +96,9 @@ export function purchaseOrderCancelOrCheck(data) {
// 确认发货
// 确认发货
export
function
purchaseOrderDelivery
(
data
)
{
export
function
purchaseOrderDelivery
(
data
)
{
data
.
method
=
'dj.api.smarcarlife.purchaseOrder.delivery'
data
.
method
=
"dj.api.smarcarlife.purchaseOrder.delivery"
return
request
(
data
)
return
request
(
data
)
}
// 发货单分页查询
}
// 发货单分页查询
export
function
purchaseOrderDeliveryPage
(
data
)
{
export
function
purchaseOrderDeliveryPage
(
data
)
{
data
.
method
=
`
${
path
}
purchaseOrder.delivery.page`
data
.
method
=
`
${
path
}
purchaseOrder.delivery.page`
return
request
(
data
)
return
request
(
data
)
...
@@ -122,3 +122,50 @@ export function purchaseOrderReject(data) {
...
@@ -122,3 +122,50 @@ export function purchaseOrderReject(data) {
return
request
(
data
)
return
request
(
data
)
}
}
// 运营审核分页查询
export
function
operatorreviewPage
(
data
)
{
data
.
method
=
`
${
path
}
operatorreview.page`
return
request
(
data
)
}
// 运营审核
export
function
operatorreviewOperatorAudit
(
data
)
{
data
.
method
=
`
${
path
}
operatorreview.operatorAudit`
return
request
(
data
)
}
// 运营驳回
export
function
operatorreviewOperatorReject
(
data
)
{
data
.
method
=
`
${
path
}
operatorreview.operatorReject`
return
request
(
data
)
}
// 运营查看
export
function
operatorreviewView
(
data
)
{
data
.
method
=
`
${
path
}
operatorreview.view`
return
request
(
data
)
}
// 商务审核分页查询
export
function
businessreviewPage
(
data
)
{
data
.
method
=
`
${
path
}
businessreview.page`
return
request
(
data
)
}
// 商务审核
export
function
businessreviewBusinessAudit
(
data
)
{
data
.
method
=
`
${
path
}
businessreview.businessAudit`
return
request
(
data
)
}
// 商务驳回
export
function
businessreviewBusinessReject
(
data
)
{
data
.
method
=
`
${
path
}
businessreview.businessReject`
return
request
(
data
)
}
// 商务查看
export
function
businessreviewView
(
data
)
{
data
.
method
=
`
${
path
}
businessreview.view`
return
request
(
data
)
}
src/router/modules/906_systemSettings.js
View file @
05222e9
...
@@ -596,7 +596,7 @@ export const routerName = {
...
@@ -596,7 +596,7 @@ export const routerName = {
parentId
:
"90618"
,
parentId
:
"90618"
,
label
:
"审核"
,
label
:
"审核"
,
ruleObj
:
{
ruleObj
:
{
attr
:
"
s
tatus"
,
attr
:
"
reviewS
tatus"
,
rule
:
{
rule
:
{
1
:
"审核"
1
:
"审核"
}
}
...
@@ -608,7 +608,7 @@ export const routerName = {
...
@@ -608,7 +608,7 @@ export const routerName = {
parentId
:
"90618"
,
parentId
:
"90618"
,
label
:
"驳回"
,
label
:
"驳回"
,
ruleObj
:
{
ruleObj
:
{
attr
:
"
s
tatus"
,
attr
:
"
reviewS
tatus"
,
rule
:
{
rule
:
{
1
:
"驳回"
1
:
"驳回"
}
}
...
...
src/views/purchase/components/rejectDialog.vue
View file @
05222e9
<!-- 驳回 -->
<!-- 驳回 -->
<
template
>
<
template
>
<baseDialog
:dialog-config=
"dialogConfig"
:is-show
.
sync=
"visible"
class=
"accountDailog"
@
handleClick=
"handleAddConfirm"
>
<baseDialog
:dialog-config=
"dialogConfig"
:is-show
.
sync=
"visible"
class=
"accountDailog"
@
handleClick=
"handleAddConfirm"
>
<div
class=
"reject-dialog"
>
<div
class=
"reject-dialog"
>
<el-form
ref=
"refundForm"
label-width=
"150px"
:model=
"infoForm"
:rules=
"formRules"
>
<el-form
ref=
"refundForm"
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
label-width=
"150px"
<el-input
type=
"textarea"
:row=
"4"
placeholder=
"请输入驳回原因"
maxlength=
"50"
show-word-limit
:model=
"infoForm"
v-model=
"infoForm.rejectCause"
class=
" reject-input"
/>
:rules=
"formRules"
>
<el-form-item
label=
"驳回原因:"
prop=
"rejectCause"
>
<el-input
type=
"textarea"
:row=
"4"
placeholder=
"请输入驳回原因"
maxlength=
"50"
show-word-limit
v-model=
"infoForm.rejectCause"
class=
" reject-input"
/>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -13,7 +25,7 @@
...
@@ -13,7 +25,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
purchaseOrderReject
}
from
'@/api/purchaseShopping.js'
import
{
purchaseOrderReject
,
operatorreviewOperatorReject
}
from
'@/api/purchaseShopping.js'
import
{
deepClone
}
from
'@/common/util'
import
{
deepClone
}
from
'@/common/util'
export
default
{
export
default
{
name
:
'RejectDialog'
,
name
:
'RejectDialog'
,
...
@@ -82,7 +94,8 @@ export default {
...
@@ -82,7 +94,8 @@ export default {
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 => {
operatorreviewOperatorReject
(
params
).
then
(
res
=>
{
this
.
notice
.
okTips
(
'操作成功'
)
this
.
notice
.
okTips
(
'操作成功'
)
// this.handleClose(true)
// this.handleClose(true)
this
.
visible
=
true
this
.
visible
=
true
...
...
src/views/purchase/procurementReview.vue
View file @
05222e9
<!-- 采购审核-运营审核 -->
<!-- 采购审核-运营审核 -->
<
template
>
<
template
>
<d2-container
class=
"container"
>
<d2-container
class=
"container"
>
<div
class=
"header"
slot=
"header"
>
<div
class=
"header"
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
@
handleChangeSelect=
"handleChangeSelect"
slot=
"header"
>
:form-data=
"showFormData"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
@
handleChangeSelect=
"handleChangeSelect"
:form-data=
"showFormData"
>
</d2-search>
</d2-search>
<div
class=
"up-btns"
>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
handle
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
handle
>
查询
查询
</el-button>
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
重置
</el-button>
</el-button>
</div>
</div>
...
@@ -21,18 +29,31 @@
...
@@ -21,18 +29,31 @@
<auth-button
category=
"Button"
/>
<auth-button
category=
"Button"
/>
</span>
</span>
<span>
<span>
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleExport"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"handleExport"
>
导出
导出
</el-button>
</el-button>
</span>
</span>
</d2-table-header>
</d2-table-header>
<d2-table
ref=
"purchasementReviewTable"
:search-form=
"tableSearchForm"
:table-params=
"tableParams"
<d2-table
ref=
"purchasementReviewTable"
:table-data=
"tableData"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
:search-form=
"tableSearchForm"
<auth-button
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
/>
:table-params=
"tableParams"
: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"
v-if=
"detailVisible"
:params-obj=
"paramsObj"
></orderDeatilDialog>
<orderDeatilDialog
:visible
.
sync=
"detailVisible"
<rejectDialog
:reject-visible=
"rejectVisible"
v-if=
"rejectVisible"
:params-obj=
"paramsObj"
@
dialogClose=
"dialogClose"
>
v-if=
"detailVisible"
:params-obj=
"paramsObj"
></orderDeatilDialog>
<rejectDialog
:reject-visible=
"rejectVisible"
v-if=
"rejectVisible"
:params-obj=
"paramsObj"
@
dialogClose=
"dialogClose"
>
</rejectDialog>
</rejectDialog>
</d2-container>
</d2-container>
</
template
>
</
template
>
...
@@ -41,7 +62,7 @@
...
@@ -41,7 +62,7 @@
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
operate_statusOptions
,
defaultDeliveryStatusOptions
,
defaultPutStatusOptions
,
purchasingPatternOptions
}
from
'./constant'
import
{
operate_statusOptions
,
defaultDeliveryStatusOptions
,
defaultPutStatusOptions
,
purchasingPatternOptions
}
from
'./constant'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
getPurchaseOrderList
,
getMerchantList
,
purchaseOrderCancelOrCheck
,
purchaseOrderExpor
t
}
from
'@/api/purchaseShopping.js'
import
{
getPurchaseOrderList
,
getMerchantList
,
purchaseOrderCancelOrCheck
,
operatorreviewPage
,
operatorreviewOperatorAudi
t
}
from
'@/api/purchaseShopping.js'
import
orderDeatilDialog
from
'./components/orderDetailDialog'
import
orderDeatilDialog
from
'./components/orderDetailDialog'
import
rejectDialog
from
'./components/rejectDialog'
import
rejectDialog
from
'./components/rejectDialog'
export
default
{
export
default
{
...
@@ -128,7 +149,8 @@ export default {
...
@@ -128,7 +149,8 @@ export default {
maxlength
:
50
maxlength
:
50
}
}
],
],
getListApi
:
getPurchaseOrderList
,
// getListApi: getPurchaseOrderList,
getListApi
:
operatorreviewPage
,
// 表格参数
// 表格参数
tableParams
:
{
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
...
@@ -312,11 +334,13 @@ export default {
...
@@ -312,11 +334,13 @@ export default {
delete
params
[
key
]
delete
params
[
key
]
}
}
}
}
params
.
method
=
'dj.api.smarcarlife.purchaseOrder.export.async'
// params.method = 'dj.api.smarcarlife.purchaseOrder.export.async'
params
.
method
=
'dj.api.life.operatorreview.exportExcel.async)'
const
list
=
[
const
list
=
[
...
this
.
dowloadList
,
...
this
.
dowloadList
,
{
{
name
:
'采购审核'
,
// name: '采购审核',
name
:
'运营审核'
,
exportParam
:
JSON
.
stringify
(
params
),
exportParam
:
JSON
.
stringify
(
params
),
status
:
'waiting'
,
status
:
'waiting'
,
timeid
:
new
Date
().
getTime
()
timeid
:
new
Date
().
getTime
()
...
@@ -332,7 +356,8 @@ export default {
...
@@ -332,7 +356,8 @@ export default {
type
:
'warning'
,
type
:
'warning'
,
dangerouslyUseHTMLString
:
true
dangerouslyUseHTMLString
:
true
}).
then
(()
=>
{
}).
then
(()
=>
{
purchaseOrderCancelOrCheck
({
// purchaseOrderCancelOrCheck({
operatorreviewOperatorAudit
({
orderCode
:
row
.
orderCode
,
orderCode
:
row
.
orderCode
,
operateType
:
1
operateType
:
1
}).
then
(()
=>
{
}).
then
(()
=>
{
...
...
src/views/systemConfig/OpenshopProcess/index.vue
View file @
05222e9
<!--
发货单
-->
<!--
开店审核
-->
<
template
>
<
template
>
<div>
<div>
<d2-container>
<d2-container>
...
@@ -36,34 +36,32 @@
...
@@ -36,34 +36,32 @@
:data=
"scope.scope"
/>
:data=
"scope.scope"
/>
</d2-table>
</d2-table>
</div>
</div>
<baseDialog
v-if=
"rejectVisible"
<baseDialog
:is-show
.
sync=
"rejectVisible"
:is-show
.
sync=
"rejectVisible"
:config=
"rejectConfig.setting"
:dialog-config=
"rejectConfig.config"
:dialog-config=
"rejectConfig.config"
@
closeDialog=
"handleRejectClose
"
>
@
handleClick=
"handleRejectConfirm
"
>
<div
class=
"reject-dialog"
>
<div
class=
"reject-dialog"
>
<el-form
:rules=
"rejectRules"
<el-form
:rules=
"rejectRules"
:model=
"rejectData"
:model=
"rejectData"
label-width=
"150px"
label-width=
"150px"
ref=
"delivery-dialog-form"
>
ref=
"delivery-dialog-form"
>
<el-form-item
label=
"驳回原因:"
<el-form-item
label=
"驳回原因:"
prop=
"reject
Cause
"
>
prop=
"reject
edReason
"
>
<el-input
type=
"textarea"
<el-input
type=
"textarea"
placeholder=
"请输入驳回原因"
placeholder=
"请输入驳回原因"
maxlength=
"50"
maxlength=
"50"
:rows=
"3"
show-word-limit
show-word-limit
v-model
.
trim=
"rejectData.reject
Cause
"
v-model
.
trim=
"rejectData.reject
edReason
"
class=
"dis-in-block reject-input"
/>
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"
:loading=
"$store.state.d2admin.loading.value"
>
确认
</el-button>
v-preventReClick
</div>
-->
:loading=
"$store.state.d2admin.loading.value"
>
确认
</el-button>
<!--
</d2-dialog>
-->
</div>
</baseDialog>
</baseDialog>
</d2-container>
</d2-container>
...
@@ -73,7 +71,7 @@
...
@@ -73,7 +71,7 @@
<
script
>
<
script
>
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
getPurchaseOrderList
}
from
'@/api/purchaseShopping
.js'
import
{
createMerchantReviewPage
,
createMerchantReviewApprove
,
createMerchantReviewReject
}
from
'@/api/openshopProcess
.js'
import
{
applyStatus
}
from
'@/common/constants.js'
import
{
applyStatus
}
from
'@/common/constants.js'
export
default
{
export
default
{
name
:
'OpenshopProcessIndex'
,
name
:
'OpenshopProcessIndex'
,
...
@@ -84,95 +82,98 @@ export default {
...
@@ -84,95 +82,98 @@ export default {
return
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
searchForm
:
{
searchForm
:
{
deliveryNumber
:
''
,
deliveryCompany
:
''
,
deliveryDate
:
''
,
orderCode
:
''
,
merchantName
:
''
,
merchantName
:
''
,
putStatus
:
''
partnerMerchantName
:
''
,
reviewStatus
:
''
},
},
searchFormSearch
:
{},
searchFormSearch
:
{},
showFormData
:
[{
showFormData
:
[{
label
:
'商户名称'
,
label
:
'商户名称'
,
name
:
'
deliveryNumber
'
,
name
:
'
merchantName
'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
'20'
,
maxlength
:
'20'
,
isClear
:
true
isClear
:
true
},
},
{
{
label
:
'所属服务商'
,
label
:
'所属服务商'
,
name
:
'
deliveryCompany
'
,
name
:
'
partnerMerchantName
'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
'20'
,
maxlength
:
'20'
,
isClear
:
true
isClear
:
true
},
{
},
{
label
:
'申请状态'
,
label
:
'申请状态'
,
name
:
'
put
Status'
,
name
:
'
review
Status'
,
type
:
'select'
,
type
:
'select'
,
optionList
:
[],
optionList
:
[],
optionId
:
'confId'
,
optionId
:
'confId'
,
optionLabel
:
'confName'
,
optionLabel
:
'confName'
,
optionsName
:
'applyStatus'
optionsName
:
'applyStatus'
}],
}],
getListApi
:
getPurchaseOrderList
,
getListApi
:
createMerchantReviewPage
,
tableParams
:
{
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[{
tableColumns
:
[{
label
:
'商户名称'
,
label
:
'商户名称'
,
prop
:
'
deliveryNumber
'
,
prop
:
'
merchantName
'
,
width
:
'200px'
width
:
'200px'
},
{
},
{
label
:
'联系人'
,
label
:
'联系人'
,
prop
:
'
deliveryCompany
'
,
prop
:
'
contactName
'
,
width
:
'150px'
width
:
'150px'
},
{
},
{
label
:
'联系电话'
,
label
:
'联系电话'
,
prop
:
'
deliveryDat
e'
,
prop
:
'
phon
e'
,
width
:
'1
5
0px'
width
:
'1
2
0px'
},
{
},
{
label
:
'商户类型'
,
label
:
'商户类型'
,
prop
:
'orderCode'
,
prop
:
'merchantType'
,
width
:
'200px'
width
:
'100px'
,
formatter
:
(
cellValue
)
=>
{
return
{
1
:
'服务中心'
,
2
:
'客户'
}[
cellValue
.
merchantType
]
}
},
{
},
{
label
:
'所属服务中心'
,
label
:
'所属服务中心'
,
prop
:
'
m
erchantName'
,
prop
:
'
yqM
erchantName'
,
width
:
'150px'
width
:
'150px'
},
{
},
{
label
:
'所属服务商'
,
label
:
'所属服务商'
,
prop
:
'
m
erchantName'
,
prop
:
'
partnerM
erchantName'
,
width
:
'150px'
width
:
'150px'
},
{
},
{
label
:
'申请时间'
,
label
:
'申请时间'
,
prop
:
'
orderTim
e'
,
prop
:
'
createdDat
e'
,
width
:
'150px'
,
width
:
'150px'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
orderTime
?
Util
.
dateFormate
(
cellValue
.
orderTim
e
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
return
cellValue
.
createdDate
?
Util
.
dateFormate
(
cellValue
.
createdDat
e
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
}
}
},
{
},
{
label
:
'申请状态'
,
label
:
'申请状态'
,
prop
:
'
put
Status'
,
prop
:
'
review
Status'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
this
.
baseData
.
applyStatus
.
find
(
item
=>
item
.
confId
===
cellValue
.
put
Status
)?.
confName
return
this
.
baseData
.
applyStatus
.
find
(
item
=>
item
.
confId
===
cellValue
.
review
Status
)?.
confName
},
},
className
:
(
cellValue
)
=>
{
className
:
(
cellValue
)
=>
{
return
{
return
{
1
:
'yellowSpot'
,
1
:
'yellowSpot'
,
2
:
'greenSpot'
,
2
:
'greenSpot'
,
3
:
'red'
3
:
'red
Spot
'
}[
cellValue
.
put
Status
]
}[
cellValue
.
review
Status
]
}
}
},
{
},
{
label
:
'审核人'
,
label
:
'审核人'
,
prop
:
'
merchantName
'
,
prop
:
'
reviewer
'
,
width
:
'150px'
width
:
'150px'
},
{
},
{
label
:
'审核时间'
,
label
:
'审核时间'
,
prop
:
'
orderTim
e'
,
prop
:
'
reviewDat
e'
,
width
:
'150px'
,
width
:
'150px'
,
formatter
:
(
cellValue
)
=>
{
formatter
:
(
cellValue
)
=>
{
return
cellValue
.
orderTime
?
Util
.
dateFormate
(
cellValue
.
orderTim
e
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
return
cellValue
.
reviewDate
?
Util
.
dateFormate
(
cellValue
.
reviewDat
e
,
'YYYY-MM-DD HH:mm:ss'
)
:
''
}
}
}
}
]
]
...
@@ -180,11 +181,11 @@ export default {
...
@@ -180,11 +181,11 @@ export default {
baseData
:
{
baseData
:
{
applyStatus
:
applyStatus
,
applyStatus
:
applyStatus
,
},
},
detailVisible
:
false
,
recordInfo
:
null
,
recordInfo
:
null
,
rejectVisible
:
false
,
rejectVisible
:
false
,
rejectData
:
{},
rejectData
:
{
rejectedReason
:
''
},
// 驳回
// 驳回
rejectConfig
:
{
rejectConfig
:
{
setting
:
{
setting
:
{
...
@@ -199,7 +200,7 @@ export default {
...
@@ -199,7 +200,7 @@ export default {
}
}
},
},
rejectRules
:
{
rejectRules
:
{
reject
Cause
:
[{
required
:
true
,
message
:
'请输入驳回原因'
,
trigger
:
'blur'
}]
reject
edReason
:
[{
required
:
true
,
message
:
'请输入驳回原因'
,
trigger
:
'blur'
}]
},
},
}
}
},
},
...
@@ -254,12 +255,9 @@ export default {
...
@@ -254,12 +255,9 @@ export default {
},
},
handleReset
()
{
handleReset
()
{
this
.
searchForm
=
{
this
.
searchForm
=
{
deliveryNumber
:
''
,
deliveryCompany
:
''
,
deliveryDate
:
''
,
orderCode
:
''
,
merchantName
:
''
,
merchantName
:
''
,
putStatus
:
''
partnerMerchantName
:
''
,
reviewStatus
:
''
}
}
this
.
$refs
.
recordTable
.
refreshTable
()
this
.
$refs
.
recordTable
.
refreshTable
()
},
},
...
@@ -272,12 +270,11 @@ export default {
...
@@ -272,12 +270,11 @@ export default {
type
:
'warning'
,
type
:
'warning'
,
dangerouslyUseHTMLString
:
true
dangerouslyUseHTMLString
:
true
}).
then
(()
=>
{
}).
then
(()
=>
{
purchaseOrderCancelOrCheck
({
createMerchantReviewApprove
({
orderCode
:
row
.
orderCode
,
id
:
row
.
id
operateType
:
1
}).
then
(()
=>
{
}).
then
(()
=>
{
this
.
notice
.
okTips
()
this
.
notice
.
okTips
()
this
.
$refs
.
purchasementReview
Table
.
refreshTable
()
this
.
$refs
.
record
Table
.
refreshTable
()
}).
catch
(()
=>
{
})
}).
catch
(()
=>
{
})
})
})
},
},
...
@@ -287,16 +284,17 @@ export default {
...
@@ -287,16 +284,17 @@ export default {
this
.
rejectVisible
=
!
this
.
rejectVisible
this
.
rejectVisible
=
!
this
.
rejectVisible
},
},
handleReject
(
row
)
{
handleReject
(
row
)
{
this
.
rejectData
.
orderCode
=
row
.
orderCode
this
.
rejectData
.
id
=
row
.
id
this
.
rejectData
.
rejectedReason
=
''
this
.
handleRejectClose
()
this
.
handleRejectClose
()
},
},
handleRejectConfirm
()
{
handleRejectConfirm
()
{
this
.
$refs
[
'delivery-dialog-form'
].
validate
(
valid
=>
{
this
.
$refs
[
'delivery-dialog-form'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
purchaseOrder
Reject
({
...
this
.
rejectData
}).
then
(
res
=>
{
createMerchantReview
Reject
({
...
this
.
rejectData
}).
then
(
res
=>
{
this
.
handleRejectClose
()
this
.
handleRejectClose
()
this
.
notice
.
okTips
()
this
.
notice
.
okTips
()
this
.
$refs
.
purchaseAndDelivery
Table
.
refreshTable
()
this
.
$refs
.
record
Table
.
refreshTable
()
}).
catch
(()
=>
{
}).
catch
(()
=>
{
this
.
handleRejectClose
()
this
.
handleRejectClose
()
})
})
...
@@ -310,16 +308,19 @@ export default {
...
@@ -310,16 +308,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
;
}
}
...
...
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