{"remainingRequest":"/data/jenkins/workspace/mer.mall2.baibaodun.cn/node_modules/vue-loader/lib/index.js??vue-loader-options!/data/jenkins/workspace/mer.mall2.baibaodun.cn/src/components/orderDetail/index.vue?vue&type=script&lang=js","dependencies":[{"path":"/data/jenkins/workspace/mer.mall2.baibaodun.cn/src/components/orderDetail/index.vue","mtime":1720764823951},{"path":"/data/jenkins/workspace/mer.mall2.baibaodun.cn/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/data/jenkins/workspace/mer.mall2.baibaodun.cn/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/data/jenkins/workspace/mer.mall2.baibaodun.cn/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n// +----------------------------------------------------------------------\n// | CRMEB [ CRMEB赋能开发者,助力企业发展 ]\n// +----------------------------------------------------------------------\n// | Copyright (c) 2016~2023 https://www.crmeb.com All rights reserved.\n// +----------------------------------------------------------------------\n// | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权\n// +----------------------------------------------------------------------\n// | Author: CRMEB Team \n// +----------------------------------------------------------------------\n\nimport {\n getLogisticsInfoApi,\n orderInvoiceListApi,\n orderDetailApi,\n refundOrderDetailApi,\n proactiveRefundApi,\n} from '@/api/order';\nimport detailsFrom from '@/components/orderDetail';\nimport proactiveRefundDialog from '@/components/proactiveRefundDialog';\nimport uploadFilePicMul from '@/components/base/uploadFilePicMul';\n\nexport default {\n name: 'OrderDetail',\n props: {\n orderNo: {\n type: String,\n default: 0,\n },\n },\n components: {\n detailsFrom,\n proactiveRefundDialog,\n uploadFilePicMul\n },\n\n data() {\n return {\n activeNames: ['1'],\n direction: 'rtl',\n reverse: true,\n showProactiveRefundDialog: false,\n dialogVisible: false,\n orderDatalist: {},\n loading: false,\n modal2: false,\n result: [],\n resultInfo: {},\n InvoiceList: [],\n refundInfo: {},\n relationList: [],\n refundInfo: {},\n };\n },\n watch: {\n // orderData: {\n // handler(newVal, oldVal) {\n // this.orderDatalist = newVal;\n // },\n // deep: true, // 对象内部属性的监听,关键。\n // },\n },\n mounted() {},\n methods: {\n handleClose() {\n this.dialogVisible = false;\n },\n openLogistics(id) {\n this.getOrderData(id);\n this.modal2 = true;\n },\n // 获取订单退款信息\n getRefundOrderDetail(id) {\n refundOrderDetailApi(id).then(async (res) => {\n this.refundInfo = res;\n });\n },\n // 获取订单物流信息\n getOrderData(id) {\n getLogisticsInfoApi(id).then(async (res) => {\n this.resultInfo = res;\n this.result = res.list;\n });\n },\n // 获取订单发货单列表\n getOrderInvoiceList(id) {\n orderInvoiceListApi(id)\n .then((res) => {\n this.InvoiceList = res;\n })\n .catch(() => {});\n },\n getDetail(id) {\n this.loading = true;\n orderDetailApi(id)\n .then((res) => {\n this.orderDatalist = res;\n if (res.relations) {\n let arr = res.relations.filter((el) => el !== null);\n this.relationList = arr;\n }\n this.loading = false;\n })\n .catch(() => {\n this.orderDatalist = null;\n this.loading = false;\n });\n },\n\n // 详情\n onOrderDetails(id) {\n this.getDetail(id);\n this.getOrderInvoiceList(id);\n this.$refs.orderDetail.dialogVisible = true;\n },\n\n openProactiveRefundDialog() {\n this.showProactiveRefundDialog = true;\n this.refundInfo = {\n orderNo: this.orderDatalist.orderNo,\n payPrice: this.orderDatalist.payPrice,\n payNum: this.orderDatalist.payNum,\n };\n },\n\n closeProactiveRefundDialog() {\n this.showProactiveRefundDialog = false;\n },\n },\n};\n",null]}