Commit 6a8f520c authored by yaya's avatar yaya

feat:商品管理详情处理不通过操作

parent 97019e5f
...@@ -8,10 +8,7 @@ ...@@ -8,10 +8,7 @@
height="600px" height="600px"
title="审核结果"> title="审核结果">
<el-form ref="cancel" :model="cancelForm" :rules="cancelRules"> <el-form ref="cancel" :model="cancelForm" :rules="cancelRules">
<el-form-item label="" label-width="80px" prop="content"> <el-form-item label="原因:" label-width="80px" prop="remark">
<div>该商家不通过原因:</div>
</el-form-item>
<el-form-item label="" label-width="80px" prop="remark">
<el-input <el-input
v-model="cancelForm.remark" v-model="cancelForm.remark"
:autosize="{ minRows: 8, maxRows: 8}" :autosize="{ minRows: 8, maxRows: 8}"
......
...@@ -63,20 +63,20 @@ ...@@ -63,20 +63,20 @@
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <img v-if="scope.row.homePageImage && scope.row.homePageImage.url" :src="scope.row.idCardFrontImage.url" width="60px" height="60px"> --> <!-- <img v-if="scope.row.homePageImage && scope.row.homePageImage.url" :src="scope.row.idCardFrontImage.url" width="60px" height="60px"> -->
<el-image <el-image
:preview-src-list="[scope.row.idCardFrontImage]" :preview-src-list="[scope.row.idCardFrontImage]"
:src="scope.row.idCardFrontImage" :src="scope.row.idCardFrontImage"
class="table-td-thumb" class="table-td-thumb"
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="身份证反面" prop="idCardBackImage"> <el-table-column align="center" label="身份证反面" prop="idCardBackImage">
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <img v-if="scope.row.homePageImage && scope.row.homePageImage.url" :src="scope.row.homePageImage.url" width="60px" height="60px"> --> <!-- <img v-if="scope.row.homePageImage && scope.row.homePageImage.url" :src="scope.row.homePageImage.url" width="60px" height="60px"> -->
<el-image <el-image
:preview-src-list="[scope.row.idCardBackImage ]" :preview-src-list="[scope.row.idCardBackImage ]"
:src="scope.row.idCardBackImage" :src="scope.row.idCardBackImage"
class="table-td-thumb" class="table-td-thumb"
/> />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="开户行" prop="cardId" /> <el-table-column align="center" label="开户行" prop="cardId" />
...@@ -87,22 +87,25 @@ ...@@ -87,22 +87,25 @@
</el-table> </el-table>
</div> </div>
</el-card> </el-card>
<el-card class="box-card" style="margin: 0 16px">
<div class="title">
<div class="title_content">备注</div>
</div>
<div class="user_info flex">
<el-form ref="addInviteRef" label-width="100px" style="width: 30%">
<el-form-item label="备注:">
<div>{{ itemContent.remark || '-' }}</div>
</el-form-item>
</el-form>
</div>
</el-card>
<NoPassIdentifyDialog <NoPassIdentifyDialog
:show-no-pass-identify-dialog-show="showNoPassIdentifyDialog" :show-no-pass-identify-dialog-show="showNoPassIdentifyDialog"
:distribution-order-id="itemContent.distributionOrderId" :open-shop-apply-order-id="itemContent.openShopApplyOrderId"
:identify-order-id="itemContent.identifyOrderId"
@refreshItem="handleRefreshItem" @refreshItem="handleRefreshItem"
@cancelDialog="showNoPassIdentifyDialog = false" @cancelDialog="showNoPassIdentifyDialog = false"
/> />
<ReturnLogisticIdentifyDialog
v-if="logisticDialogShow"
:logistic-dialog-show="logisticDialogShow"
:distribution-order-id="itemContent.distributionOrderId"
:identify-order-id="itemContent.identifyOrderId"
:type="logisticType"
@cancelDialog="handleCancelLogisticDialog"
@refreshDelivery="handleRefreshLogisticItem"
@refreshSendBack="handleRefreshLogisticItem"/>
</div> </div>
</template> </template>
...@@ -110,15 +113,13 @@ ...@@ -110,15 +113,13 @@
import Line2Hidden from '@/components/line2Hidden' import Line2Hidden from '@/components/line2Hidden'
import NoPassIdentifyDialog from './components/NoPassIdentifyDialog' import NoPassIdentifyDialog from './components/NoPassIdentifyDialog'
import ReturnLogisticIdentifyDialog from './components/ReturnLogisticIdentifyDialog' import ReturnLogisticIdentifyDialog from './components/ReturnLogisticIdentifyDialog'
import { requestSigned, requestIdentify, requestTransferDetail } from '@/api/business/order' import { shopManagerDetail, shopManagerCheck } from '@/api/business/shop'
import { shopManagerDetail,shopManagerCheck} from '@/api/business/shop'
export default { export default {
name: 'shopManagerDetail', name: 'ShopManagerDetail',
components: { ReturnLogisticIdentifyDialog, NoPassIdentifyDialog, Line2Hidden }, components: { ReturnLogisticIdentifyDialog, NoPassIdentifyDialog, Line2Hidden },
data() { data() {
return { return {
itemContent: {}, itemContent: {},
distributionOrderId: '',
showNoPassIdentifyDialog: false, showNoPassIdentifyDialog: false,
logisticDialogShow: false, logisticDialogShow: false,
logisticType: 1, logisticType: 1,
...@@ -142,7 +143,7 @@ export default { ...@@ -142,7 +143,7 @@ export default {
openShopApplyOrderId: this.openShopApplyOrderId openShopApplyOrderId: this.openShopApplyOrderId
} }
shopManagerDetail(params).then(response => { shopManagerDetail(params).then(response => {
console.log('===response=', response) console.log('===response=', response.data.data)
this.itemContent = response.data.data || {} this.itemContent = response.data.data || {}
const model = { const model = {
cardId: this.itemContent.cardId, cardId: this.itemContent.cardId,
...@@ -150,7 +151,7 @@ export default { ...@@ -150,7 +151,7 @@ export default {
name: this.itemContent.name, name: this.itemContent.name,
openShopAmount: this.itemContent.openShopAmount, openShopAmount: this.itemContent.openShopAmount,
idCardFrontImage: this.itemContent.idCardFrontImage, idCardFrontImage: this.itemContent.idCardFrontImage,
idCardBackImage: this.itemContent.idCardBackImage, idCardBackImage: this.itemContent.idCardBackImage
} }
this.list = [model] this.list = [model]
}).catch((e) => { }).catch((e) => {
...@@ -158,53 +159,22 @@ export default { ...@@ -158,53 +159,22 @@ export default {
this.$message.error(e.data && e.data.errmsg || '请求失败, 请重试') this.$message.error(e.data && e.data.errmsg || '请求失败, 请重试')
}) })
}, },
/**
* 收货
* @param item
*/
handleReceive() {
this.$confirm('请确认包裹的物流信息是否正确?', '确认收货', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'message'
}).then(() => {
const params = {
identifyOrderId: this.itemContent.identifyOrderId
}
requestSigned(params).then(response => {
this.handleGetDetail()
this.$notify.success({
message: '确认收货成功'
})
}).catch((e) => {
console.log('===报错=', e)
this.$message.error(e.data && e.data.errmsg || '请求失败, 请重试')
})
})
},
/** /**
* 通过 * 通过
* @param item * @param item
*/ */
handlePass(row) { handlePass(row) {
this.$confirm('确定通过该藏家的开店申请?', '平台开店结果', { this.$confirm('确定通过该藏家的开店申请?', '平台开店结果', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'message' type: 'message'
}).then(() => { }).then(() => {
const params = { const params = {
openShopApplyOrderId:this.openShopApplyOrderId, openShopApplyOrderId: this.openShopApplyOrderId,
state: 20 state: 20
} }
shopManagerCheck(params).then(response => { shopManagerCheck(params).then(response => {
this.list = this.list.filter((itemContent) => { this.handleGetDetail()
if (itemContent.openShopApplyOrderId === row.openShopApplyOrderId) {
itemContent.stateName = '审核通过'
itemContent.state = 20
return itemContent
}
return itemContent
})
this.$notify.success({ this.$notify.success({
message: '操作成功' message: '操作成功'
}) })
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment