浏览代码

订单查询bug修复

master
梁超 1周前
父节点
当前提交
81861cc12c

+ 31
- 37
src/views/onlineBusinessHall/orderManagement/orderReview/index.vue 查看文件

<template #search> <template #search>
<el-input maxlength="60" v-trim clearable v-model="searchForm.orderNo" style="width: 200px" <el-input maxlength="60" v-trim clearable v-model="searchForm.orderNo" style="width: 200px"
placeholder="请输入单号" /> placeholder="请输入单号" />
<el-input maxlength="60" v-trim clearable v-model="searchForm.customerIdnum" style="width: 200px"
<el-input maxlength="60" v-trim clearable v-model="searchForm.customerIdNum" style="width: 200px"
placeholder="请输入证件号" /> placeholder="请输入证件号" />
<el-input maxlength="60" v-trim clearable v-model="searchForm.customerTel" style="width: 200px" <el-input maxlength="60" v-trim clearable v-model="searchForm.customerTel" style="width: 200px"
placeholder="请输入用户手机号" /> placeholder="请输入用户手机号" />
</template> </template>
<template #CustomButton> <template #CustomButton>
<el-button v-if="IsPermission(route, 'GET_ORDER_LIST')" type="primary" @click="getOrderFn(1)"> <el-button v-if="IsPermission(route, 'GET_ORDER_LIST')" type="primary" @click="getOrderFn(1)">
<span style="font-family: '楷体', 'KaiTi', serif;">批量领取订单</span>
<span style="font-family: '微软雅黑', 'KaiTi', serif;">批量领取订单</span>
</el-button> </el-button>
</template> </template>
<template #tableOperation> <template #tableOperation>
<el-button :loading="scope.row.btnLoading" <el-button :loading="scope.row.btnLoading"
v-if="pass=='1' && IsPermission(route, 'GET_ORDER_LIST')" v-if="pass=='1' && IsPermission(route, 'GET_ORDER_LIST')"
type="primary" size="small" @click="getOrderFn(2, scope.row)"> type="primary" size="small" @click="getOrderFn(2, scope.row)">
<span style="font-family: '楷体', 'KaiTi', serif;">领取订单</span>
<span style="font-family: '微软雅黑', 'KaiTi', serif;">领取订单</span>
</el-button> </el-button>
</template> </template>
</crud-template> </crud-template>
审核 审核
</el-button> </el-button>
</el-affix> </el-affix>
<orderInfo :infoData="visiinfoDatable"></orderInfo>
<orderInfo :infoData="rowData"></orderInfo>
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
time: '', time: '',
vehiclePlateColor: '', vehiclePlateColor: '',
promotionModes: '', promotionModes: '',
customerIdnum: '',
customerIdNum: '',
customerTel: '' customerTel: ''
}) })


] ]
//订单阶段 //订单阶段
const ORDER_STAGE_TYPE = computed(() => { const ORDER_STAGE_TYPE = computed(() => {
return $storeinitData.state.dictData['ORDER_STAGE_TYPE'] || []
return $storeinitData.state.dictData['ISSUE_ORDER_STEP'] || []
}) })


//订单状态 //订单状态
return $storeinitData.state.dictData['VAN_TYPE'] || [] return $storeinitData.state.dictData['VAN_TYPE'] || []
}) })


//产品类型
const PRODUCT_TYPE = computed(() => {
return $storeinitData.state.dictData['PRODUCT_TYPE_NEW'] || []
})

//办理模式 //办理模式
const PATTERN_TYPE = computed(() => { const PATTERN_TYPE = computed(() => {
return $storeinitData.state.dictData['PATTERN_TYPE'] || [] return $storeinitData.state.dictData['PATTERN_TYPE'] || []


//订单状态 //订单状态
const ORDER_STATUS = computed(() => { const ORDER_STATUS = computed(() => {
return $storeinitData.state.dictData['ORDER_STATUS'] || []
return $storeinitData.state.dictData['ISSUE_ORDER_STATUS'] || []
}) })


const CERTIFICATE_TYPE = computed(() => {
return $storeinitData.state.dictData["CERTIFICATE_TYPE"] ?? [];
const ID_TYPE = computed(() => {
return $storeinitData.state.dictData["ID_TYPE"] ?? [];
}); //用户证件类型 }); //用户证件类型


const NEW_CSMSN_APPLY_REASON = computed(() => { const NEW_CSMSN_APPLY_REASON = computed(() => {
// type: 'selection', // type: 'selection',
// }, // },
{ {
prop: 'orderId',
prop: 'orderNo',
label: '单号', label: '单号',
}, },
{ {
label: '产品名称', label: '产品名称',
}, },
{ {
prop: 'productType',
prop: 'productTypes',
label: '产品类型', label: '产品类型',
listData: PRODUCT_TYPE
funRuleStarts: true,
funRule: (value: any) => {
return value == "1" ? "自营产品" : value == "0" ? "非自营产品" : "---";
},
}, },
{ {
prop: 'promotionModes', prop: 'promotionModes',
label: '办理方式',
label: '办理方式',
listData: PATTERN_TYPE listData: PATTERN_TYPE
}, },
{ {
}, },
}, },
{ {
prop: 'type',
prop: 'vehicleType',
label: '车辆类型', label: '车辆类型',
listData: vehicleTypes
// listData: vehicleTypes
}, },
{ {
prop: 'userType', prop: 'userType',
label: '手机号', label: '手机号',
}, },
{ {
prop: 'customerIdtype',
prop: 'customerIdType',
label: '证件类型', label: '证件类型',
listData: CERTIFICATE_TYPE,
listData: ID_TYPE,
}, },
{ {
prop: 'cusotmerIdnum',
prop: 'customerIdNum',
label: '证件号', label: '证件号',
}, },
{ {
// }, // },
}, },
{ {
width: '180px',
prop: 'orderStep', //
label: '订单阶段',
width: "180px",
prop: "orderStep", //
label: "订单阶段",
funRuleStarts: true, funRuleStarts: true,
funRule: (money: any) => { funRule: (money: any) => {
return getLabel(ORDER_STAGE_TYPE, money)
return getLabel(ORDER_STAGE_TYPE, money);
}, },
}, },
{ {
width: '180px', width: '180px',
prop: 'orderType', // prop: 'orderType', //
label: '订单类型', label: '订单类型',
funRuleStarts: true,
funRule: (money: any) => {
return getLabel(ORDER_TYPE, money)
},
listData: ORDER_TYPE
}, },
// { // {
// width: '180px', // width: '180px',
time: '', time: '',
vehiclePlateColor: '', vehiclePlateColor: '',
promotionModes: '', promotionModes: '',
customerIdnum: '',
customerIdNum: '',
customerTel: '' customerTel: ''
} }
value1.value = null value1.value = null
const autdisButton = ref(false) const autdisButton = ref(false)
const offset = ref(150) const offset = ref(150)
let visible = ref(false) let visible = ref(false)
let visiinfoDatable: any = reactive({})
const rowData = ref()
function audit(idx: number, data: any, type) { function audit(idx: number, data: any, type) {
// console.log(type, 'type') // console.log(type, 'type')
beanData = data beanData = data
detailDialogTitle.value = '订单详情' detailDialogTitle.value = '订单详情'
autdisButton.value = type autdisButton.value = type
visiinfoDatable = {}
BaseService.postN('/managew/api/issue/orderQuery/detail', { orderNo: data.orderNo }).then((res: any) => { BaseService.postN('/managew/api/issue/orderQuery/detail', { orderNo: data.orderNo }).then((res: any) => {
if (res && res.code === 0) { if (res && res.code === 0) {
try { try {
visiinfoDatable = res.data
rowData.value = res.data
} catch (e) { } catch (e) {
console.log(e) console.log(e)
ElMessage.error('未知错误') ElMessage.error('未知错误')
} //渲详情数据 } //渲详情数据
if (visiinfoDatable) {
if (rowData) {
// if (type) { // if (type) {
autdis.orderNo = visiinfoDatable.orderInfo.orderNo
// autdis.orderNo = rowData.orderInfo.orderNo
visible.value = true visible.value = true
// } // }
} else { } else {

+ 8
- 11
src/views/onlineBusinessHall/orderManagement/orderReview/orderInfo.vue 查看文件

infoData: { infoData: {
//表单配置 //表单配置
type: Object, type: Object,
default: function () {
return {};
}
default: {}
} }
}); });


function init(data) { function init(data) {
if (data && data.userType) IsUnit.value = data.userType != 'PERSONAL_USER' if (data && data.userType) IsUnit.value = data.userType != 'PERSONAL_USER'
if (data) IsSelf.value = data.agentName ? true : false if (data) IsSelf.value = data.agentName ? true : false
console.log(data, 'datadatadata')
// if (!data) return // if (!data) return
//订单基础信息 //订单基础信息
orderList = [ orderList = [
//用户信息 //用户信息
userInfoList = [ userInfoList = [
// { label: '是否本人车辆', value: data?.test1 }, // { label: '是否本人车辆', value: data?.test1 },
{ label: '身份证人像面', value: data.orderInfoExt?.customerPositiveImageUrl, type: 'image', index: 0 },
{ label: '身份证国徽面', value: data.orderInfoExt?.customerNegativeImageUrl, type: 'image', index: 1 },
{ label: '姓名', value: data.orderInfoExt?.customerName },
{ label: '身份证人像面', value: data.customerInfo?.customerPositiveImageUrl, type: 'image', index: 0 },
{ label: '身份证国徽面', value: data.customerInfo?.customerNegativeImageUrl, type: 'image', index: 1 },
{ label: '姓名', value: data.customerInfo?.customerName },
// { label: '性别', value: data?.customerGender }, // { label: '性别', value: data?.customerGender },
{ label: '身份证号', value: data.orderInfoExt?.customerIdNum },
{ label: '证件有效期', value: data.orderInfoExt?.customerIdVld ? moment(data.orderInfoExt?.customerIdVld).format('YYYY-MM-DD') : '---' },
{ label: '地址', value: data.orderInfoExt?.customerAddress },
{ label: '联系方式', value: data.orderInfoExt?.customerTel }
{ label: '身份证号', value: data.customerInfo?.customerIdNum },
{ label: '证件有效期', value: data.customerInfo?.customerIdVld ? moment(data.customerInfo?.customerIdVld).format('YYYY-MM-DD') : '---' },
{ label: '地址', value: data.customerInfo?.customerAddress },
{ label: '联系方式', value: data.customerInfo?.customerTel }
] ]


//经办人信息 //经办人信息

正在加载...
取消
保存