Commit 97019e5f authored by yaya's avatar yaya

feat:不通过操作

parent 62ccf888
......@@ -31,7 +31,7 @@
<script>
import { MessageBox } from 'element-ui'
import { shopManagerCheck} from '@/api/business/shop'
import { shopManagerCheck } from '@/api/business/shop'
export default {
name: 'NoPassIdentifyDialog',
props: {
......@@ -42,10 +42,6 @@ export default {
openShopApplyOrderId: {
type: String,
default: ''
},
identifyOrderId: {
type: String,
default: ''
}
},
data() {
......@@ -78,7 +74,7 @@ export default {
message: '操作成功'
})
this.cancelForm = {}
this.$emit('refreshItem', this.shopManagerCheck)
this.$emit('refreshItem', this.openShopApplyOrderId)
})
.catch(response => {
MessageBox.alert('业务错误:' + response.data.errmsg, '警告', {
......
......@@ -114,9 +114,8 @@
v-if="(scope.row.state === 10)"
type="danger"
size="mini"
@click="handleNoPass()">不通过
@click="handleNoPass(scope.row)">不通过
</el-button>
</template>
</el-table-column>
</el-table>
......@@ -128,7 +127,7 @@
:limit.sync="listQuery.limit"
@pagination="getList" />
<el-dialog :visible.sync="sendDialogVisible" title="发货">
<!-- <el-dialog :visible.sync="sendDialogVisible" title="发货">
<el-form
ref="sendFormRef"
:model="sendForm"
......@@ -156,10 +155,12 @@
<el-button @click="sendDialogVisible = false">取消</el-button>
<el-button type="primary" @click="handleShowSendDialog">确定</el-button>
</div>
</el-dialog>
</el-dialog>-->
<NoPassIdentifyDialog
:show-no-pass-identify-dialog-show="showNoPassIdentifyDialog"
:open-shop-apply-order-id="currentApplyId"
@cancelDialog="showNoPassIdentifyDialog = false"
@refreshItem="handleRefreshItem"
/>
</div>
</template>
......@@ -168,11 +169,11 @@
import Line2Hidden from '@/components/line2Hidden'
import Pagination from '@/components/Pagination'
import NoPassIdentifyDialog from './components/NoPassIdentifyDialog'
import { shopManagerList,shopManagerCheck} from '@/api/business/shop'
import { shopManagerList, shopManagerCheck } from '@/api/business/shop'
import { requestLogisticsList, requestDelivery } from '@/api/business/order'
export default {
name: 'shopManagerList',
name: 'ShopManagerList',
components: {
Pagination,
Line2Hidden,
......@@ -271,7 +272,8 @@ export default {
rules: {
waybill: [{ required: true, message: '请输入物流单号', trigger: 'blur' }],
logisticsCode: [{ required: true, message: '请选择快递公司', trigger: 'blur' }]
}
},
currentApplyId: ''
}
},
created() {
......@@ -313,6 +315,19 @@ export default {
})
})
},
handleRefreshItem(applyId) {
if (this.list) {
this.list = this.list.filter((item) => {
if (item.openShopApplyOrderId === applyId) {
item.state = 30
return item
}
return item
})
}
this.showNoPassIdentifyDialog = false
},
// handleNoPass(row) {
// this.$confirm('确定不通过藏家的开店申请?', '平台开店结果', {
// confirmButtonText: '确定',
......@@ -364,7 +379,6 @@ export default {
this.getList()
},
handlerGetList() {
this.listQuery.page = 1
this.getList()
......@@ -444,16 +458,10 @@ export default {
/**
* 不通过
*/
handleNoPass() {
handleNoPass(item) {
this.currentApplyId = item.openShopApplyOrderId
this.showNoPassIdentifyDialog = true
},
/**
* 不通过操作成功,刷新列表
*/
handleRefreshItem() {
this.handleGetDetail()
this.showNoPassIdentifyDialog = false
},
/**
* 发货
*/
......
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