68 lines
1.8 KiB
Vue
68 lines
1.8 KiB
Vue
<template>
|
|
<el-form ref="form" label-width="80px">
|
|
<template>
|
|
<el-form-item label="选择服务公司">
|
|
{{ info.orderNo }}
|
|
</el-form-item>
|
|
</template>
|
|
<div class="mt-20 flex justify-center items-center text-center">
|
|
<el-button type="primary" size="small" plain @click.native="cancel">取消</el-button>
|
|
<el-button type="primary" size="small" @click.native="confirm">确定</el-button>
|
|
</div>
|
|
</el-form>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: "setSelfSupport",
|
|
props: {
|
|
info: Object
|
|
},
|
|
data() {
|
|
return {
|
|
sheet: null,
|
|
expressNo: null,
|
|
remark: null,
|
|
expressPhoto: [],
|
|
}
|
|
},
|
|
methods: {
|
|
async getInfo() {
|
|
const {data} = await vk.callFunction({
|
|
url: 'admin/selfProduct/order/sys/getDetail',
|
|
data: {
|
|
orderId: this.info.orderId
|
|
}
|
|
})
|
|
this.sheet = data
|
|
},
|
|
close() {
|
|
this.$emit('close')
|
|
},
|
|
cancel() {
|
|
this.close()
|
|
},
|
|
async confirm() {
|
|
|
|
await vk.callFunction({
|
|
url: 'admin/order/sys/setExpress',
|
|
data: {
|
|
id: this.info._id,
|
|
expressName: this.expressName,
|
|
expressNo: this.expressNo,
|
|
remark: this.remark,
|
|
expressPhoto: this.expressPhoto
|
|
}
|
|
})
|
|
this.$emit('close')
|
|
this.$message({
|
|
type: 'success',
|
|
message: '发货成功'
|
|
})
|
|
}
|
|
},
|
|
mounted() {
|
|
this.getInfo()
|
|
}
|
|
}
|
|
</script> |