import { u as useStatusStore, _ as __nuxt_component_0, a as __nuxt_component_3$1 } from './status-B7jmHhdv.mjs'; import { _ as __nuxt_component_3 } from './Pagination-BIcfmSVd.mjs'; import { useSSRContext, ref, unref, withCtx, createVNode, isRef, createTextVNode, openBlock, createBlock, Fragment, renderList, mergeProps, withDirectives, toDisplayString, vShow } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue/index.mjs'; import { ssrRenderAttrs, ssrRenderComponent, ssrRenderStyle, ssrRenderList, ssrInterpolate, ssrRenderClass } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue/server-renderer/index.mjs'; import { ElIcon, ElInput, ElDatePicker, ElRadioGroup, ElRadio, ElUpload, ElSelect, ElOption, ElTable, ElTableColumn, ElTabs, ElTabPane } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/element-plus/es/index.mjs'; import { _ as _export_sfc, b as useNuxtApp, a as navigateTo } from './server.mjs'; import { u as useState } from './state-_I5XcLqc.mjs'; import { DArrowRight, Plus } from 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/@element-plus/icons-vue/dist/index.js'; import '../_/renderer.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue-bundle-renderer/dist/runtime.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/h3/dist/index.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/devalue/index.js'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ufo/dist/index.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/@unhead/ssr/dist/index.mjs'; import '../routes/index.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ofetch/dist/node.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/destr/dist/index.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unenv/runtime/fetch/index.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/hookable/dist/index.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/klona/dist/index.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/scule/dist/index.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/defu/dist/defu.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/ohash/dist/index.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/dist/index.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/drivers/fs.mjs'; import 'file:///D:/zwj/nuxt/sannongzixunwang_web/node_modules/nuxt/dist/core/runtime/nitro/cache-driver.js'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unstorage/drivers/fs-lite.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/radix3/dist/index.mjs'; import 'node:fs'; import 'node:url'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/pathe/dist/index.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unhead/dist/index.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/@unhead/shared/dist/index.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/pinia/dist/pinia.prod.cjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/unctx/dist/index.mjs'; import 'file://D:/zwj/nuxt/sannongzixunwang_web/node_modules/vue-router/dist/vue-router.node.mjs'; const _sfc_main$1 = { __name: "OrderList", __ssrInlineRender: true, setup(__props) { useStatusStore(); const nuxtApp = useNuxtApp(); const axios = nuxtApp.$axios; const activeName = ref("first"); let orderList = useState("orderList", () => ""); let order = useState("order", () => ""); useState("orders", () => ""); let order_ad = useState("order_ad", () => []); let allOrder = useState("allOrder", () => ""); let allOrderTotal = useState("allOrderTotal", () => ""); let total1 = useState("total1", () => ""); let total2 = useState("total2", () => ""); let total6 = useState("total6", () => ""); let page = useState("page", () => "1"); let pageSize = useState("pageSize", () => "10"); let page1 = useState("page1", () => "1"); const handleData = (data) => { console.log(data.value); page.value = data.value; console.log(page); axios.get(`/order/getOrderList?pageSize=${pageSize.value}&page=${page.value}`).then((response) => { console.log(response.data.rows); allOrder.value = response.data.rows; console.log(orderList.value); }).catch((error) => { console.log(error); }); }; const handleData1 = (data) => { console.log(data.value); page1.value = data.value; console.log(page1); axios.get(`/order/getOrderList?pageSize=${pageSize.value}&page=${page1.value}&status=${1}`).then((response) => { console.log(response.data.rows); orderList.value = response.data.rows; console.log(orderList.value); }).catch((error) => { console.log(error); }); }; const handleData2 = (data) => { console.log(data.value); page1.value = data.value; console.log(page1); axios.get(`/order/getOrderList?pageSize=${pageSize.value}&page=${page1.value}&status=${2}`).then((response) => { console.log(response.data.rows); orderList.value = response.data.rows; console.log(orderList.value); }).catch((error) => { console.log(error); }); }; const handleData3 = (data) => { console.log(data.value); page1.value = data.value; console.log(page1); axios.get(`/order/getOrderList?pageSize=${pageSize.value}&page=${page1.value}&status=${6}`).then((response) => { console.log(response.data.rows); orderList.value = response.data.rows; console.log(orderList.value); }).catch((error) => { console.log(error); }); }; const handleClick = (tab, event) => { console.log(tab.props.name, event); if (tab.props.name = all) { axios.get(`/order/getOrderList?pageSize=${pageSize.value}&page=${page.value}`).then((response) => { console.log(response.data.rows); allOrder.value = response.data.rows; console.log(orderList.value); }).catch((error) => { console.log(error); }); } else { axios.get(`/order/getOrderList?pageSize=${pageSize.value}&page=${page.value}&status=${tab.props.name}`).then((response) => { console.log(response.data.rows); orderList.value = response.data.rows; console.log(orderList.value); }).catch((error) => { console.log(error); }); } }; let goCancel = (item) => { if (item.status == 1) ; }; let goDetail = (item) => { console.log(item); const params = { id: item.id, days: item.days, status: item.status, ad_status: item.ad_status }; navigateTo({ path: "/advertising/adDetail", query: params }); }; return (_ctx, _push, _parent, _attrs) => { const _component_HomePagination = __nuxt_component_3; _push(`
`); _push(ssrRenderComponent(unref(ElTabs), { modelValue: activeName.value, "onUpdate:modelValue": ($event) => activeName.value = $event, class: "demo-tabs", onTabClick: handleClick }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(unref(ElTabPane), { label: "\u5168\u90E8 (" + unref(allOrderTotal) + ")", name: "all" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(``); ssrRenderList(unref(allOrder), (item) => { _push3(`
${ssrInterpolate(unref(order)[item.status])}${ssrInterpolate(unref(order)[item.status])}${ssrInterpolate(unref(order)[item.status])} \u5DE5\u5355\u7F16\u53F7: ${ssrInterpolate(item.order_num)}${ssrInterpolate(item.created_at)}

\u5F00\u59CB\u65F6\u95F4: ${ssrInterpolate(item.sttime)}

\u7ED3\u675F\u65F6\u95F4: ${ssrInterpolate(item.edtime)}

\u5929\u6570: ${ssrInterpolate(item.days)}\u5929

\u5E7F\u544A\u4E2A\u6570: ${ssrInterpolate(item.num)}\u4E2A

\u5E7F\u544A\u72B6\u6001: ${ssrInterpolate(unref(order_ad)[item.ad_status])}

${ssrInterpolate(item.price)} \u5143

`); }); _push3(``); } else { return [ (openBlock(true), createBlock(Fragment, null, renderList(unref(allOrder), (item) => { return openBlock(), createBlock("div", { class: "order", key: item.id }, [ createVNode("div", { class: "title" }, [ withDirectives(createVNode("span", { class: item.status == 6 ? "orangeStatus" : "grayStatus" }, toDisplayString(unref(order)[item.status]), 3), [ [vShow, item.status == 6] ]), withDirectives(createVNode("span", { class: item.status == 1 ? "greenStatus" : "grayStatus" }, toDisplayString(unref(order)[item.status]), 3), [ [vShow, item.status == 1] ]), withDirectives(createVNode("span", { class: item.status != 6 && item.status != 1 ? "grayStatus" : "" }, toDisplayString(unref(order)[item.status]), 3), [ [vShow, item.status != 6 && item.status != 1] ]), createVNode("span", { class: "code" }, [ createTextVNode(" \u5DE5\u5355\u7F16\u53F7: "), createVNode("span", null, toDisplayString(item.order_num), 1) ]), createVNode("span", { class: "createTime right" }, toDisplayString(item.created_at), 1) ]), createVNode("div", { class: "text" }, [ createVNode("div", { class: "time" }, [ createVNode("p", null, [ createTextVNode(" \u5F00\u59CB\u65F6\u95F4: "), createVNode("span", null, toDisplayString(item.sttime), 1) ]), createVNode("p", null, [ createTextVNode(" \u7ED3\u675F\u65F6\u95F4: "), createVNode("span", null, toDisplayString(item.edtime), 1) ]) ]), createVNode("div", { class: "num" }, [ createVNode("p", null, [ createTextVNode(" \u5929\u6570: "), createVNode("span", null, toDisplayString(item.days) + "\u5929", 1) ]), createVNode("p", null, [ createTextVNode(" \u5E7F\u544A\u4E2A\u6570: "), createVNode("span", null, toDisplayString(item.num) + "\u4E2A", 1) ]) ]), createVNode("div", { class: "state" }, [ createVNode("p", null, [ createTextVNode(" \u5E7F\u544A\u72B6\u6001: "), createVNode("span", null, toDisplayString(unref(order_ad)[item.ad_status]), 1) ]), createVNode("p", null, [ createVNode("span", { class: "price" }, toDisplayString(item.price), 1), createTextVNode(" \u5143 ") ]) ]), createVNode("div", { class: "btn" }, [ createVNode("button", { onClick: ($event) => unref(goCancel)(item) }, toDisplayString(item.status == 1 ? "\u518D\u6B21\u7533\u8BF7" : "\u53D6\u6D88\u5DE5\u5355"), 9, ["onClick"]), createVNode("button", { onClick: ($event) => unref(goDetail)(item) }, "\u67E5\u770B\u8BE6\u60C5", 8, ["onClick"]) ]) ]) ]); }), 128)), createVNode("div", { class: "pagination" }, [ createVNode(_component_HomePagination, { onSendData: handleData, total: unref(allOrderTotal) }, null, 8, ["total"]) ]) ]; } }), _: 1 }, _parent2, _scopeId)); _push2(ssrRenderComponent(unref(ElTabPane), { label: "\u5DF2\u901A\u8FC7 (" + unref(total1) + ")", name: "1" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(``); ssrRenderList(unref(orderList), (item) => { _push3(`
\u5DF2\u901A\u8FC7 \u5DE5\u5355\u7F16\u53F7: ${ssrInterpolate(item.order_num)}${ssrInterpolate(item.created_at)}

\u5F00\u59CB\u65F6\u95F4: ${ssrInterpolate(item.sttime)}

\u7ED3\u675F\u65F6\u95F4: ${ssrInterpolate(item.edtime)}

\u5929\u6570: ${ssrInterpolate(item.days)}\u5929

\u5E7F\u544A\u4E2A\u6570: ${ssrInterpolate(item.num)}\u4E2A

\u5E7F\u544A\u72B6\u6001: ${ssrInterpolate(unref(order_ad)[item.ad_status])}

${ssrInterpolate(item.price)} \u5143

`); }); _push3(``); } else { return [ (openBlock(true), createBlock(Fragment, null, renderList(unref(orderList), (item) => { return openBlock(), createBlock("div", { class: "order1", key: item.id }, [ createVNode("div", { class: "title" }, [ createVNode("span", { class: "statusClass" }, "\u5DF2\u901A\u8FC7"), createVNode("span", { class: "code" }, [ createTextVNode(" \u5DE5\u5355\u7F16\u53F7: "), createVNode("span", null, toDisplayString(item.order_num), 1) ]), createVNode("span", { class: "createTime right" }, toDisplayString(item.created_at), 1) ]), createVNode("div", { class: "text" }, [ createVNode("div", { class: "time" }, [ createVNode("p", null, [ createTextVNode(" \u5F00\u59CB\u65F6\u95F4: "), createVNode("span", null, toDisplayString(item.sttime), 1) ]), createVNode("p", null, [ createTextVNode(" \u7ED3\u675F\u65F6\u95F4: "), createVNode("span", null, toDisplayString(item.edtime), 1) ]) ]), createVNode("div", { class: "num" }, [ createVNode("p", null, [ createTextVNode(" \u5929\u6570: "), createVNode("span", null, toDisplayString(item.days) + "\u5929", 1) ]), createVNode("p", null, [ createTextVNode(" \u5E7F\u544A\u4E2A\u6570: "), createVNode("span", null, toDisplayString(item.num) + "\u4E2A", 1) ]) ]), createVNode("div", { class: "state" }, [ createVNode("p", null, [ createTextVNode(" \u5E7F\u544A\u72B6\u6001: "), createVNode("span", null, toDisplayString(unref(order_ad)[item.ad_status]), 1) ]), createVNode("p", null, [ createVNode("span", { class: "price" }, toDisplayString(item.price), 1), createTextVNode(" \u5143 ") ]) ]), createVNode("div", { class: "btn" }, [ createVNode("button", { onClick: ($event) => unref(goCancel)(item) }, "\u53D6\u6D88\u5DE5\u5355", 8, ["onClick"]), createVNode("button", { onClick: ($event) => unref(goDetail)(item) }, "\u67E5\u770B\u8BE6\u60C5", 8, ["onClick"]) ]) ]) ]); }), 128)), createVNode("div", { class: "pagination" }, [ createVNode(_component_HomePagination, { onSendData: handleData1, total: unref(total1) }, null, 8, ["total"]) ]) ]; } }), _: 1 }, _parent2, _scopeId)); _push2(ssrRenderComponent(unref(ElTabPane), { label: "\u5DF2\u9A73\u56DE (" + unref(total2) + ")", name: "2" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(``); ssrRenderList(unref(orderList), (item) => { _push3(`
\u5DF2\u9A73\u56DE \u5DE5\u5355\u7F16\u53F7: ${ssrInterpolate(item.order_num)}${ssrInterpolate(item.created_at)}

\u5F00\u59CB\u65F6\u95F4: ${ssrInterpolate(item.sttime)}

\u7ED3\u675F\u65F6\u95F4: ${ssrInterpolate(item.edtime)}

\u5929\u6570: ${ssrInterpolate(item.days)}\u5929

\u5E7F\u544A\u4E2A\u6570: ${ssrInterpolate(item.num)}\u4E2A

\u5E7F\u544A\u72B6\u6001: ${ssrInterpolate(unref(order_ad)[item.ad_status])}

${ssrInterpolate(item.price)} \u5143

`); }); _push3(``); } else { return [ (openBlock(true), createBlock(Fragment, null, renderList(unref(orderList), (item) => { return openBlock(), createBlock("div", { class: "order2", key: item.id }, [ createVNode("div", { class: "title" }, [ createVNode("span", { class: "statusClass" }, "\u5DF2\u9A73\u56DE"), createVNode("span", { class: "code" }, [ createTextVNode(" \u5DE5\u5355\u7F16\u53F7: "), createVNode("span", null, toDisplayString(item.order_num), 1) ]), createVNode("span", { class: "createTime right" }, toDisplayString(item.created_at), 1) ]), createVNode("div", { class: "text" }, [ createVNode("div", { class: "time" }, [ createVNode("p", null, [ createTextVNode(" \u5F00\u59CB\u65F6\u95F4: "), createVNode("span", null, toDisplayString(item.sttime), 1) ]), createVNode("p", null, [ createTextVNode(" \u7ED3\u675F\u65F6\u95F4: "), createVNode("span", null, toDisplayString(item.edtime), 1) ]) ]), createVNode("div", { class: "num" }, [ createVNode("p", null, [ createTextVNode(" \u5929\u6570: "), createVNode("span", null, toDisplayString(item.days) + "\u5929", 1) ]), createVNode("p", null, [ createTextVNode(" \u5E7F\u544A\u4E2A\u6570: "), createVNode("span", null, toDisplayString(item.num) + "\u4E2A", 1) ]) ]), createVNode("div", { class: "state" }, [ createVNode("p", null, [ createTextVNode(" \u5E7F\u544A\u72B6\u6001: "), createVNode("span", null, toDisplayString(unref(order_ad)[item.ad_status]), 1) ]), createVNode("p", null, [ createVNode("span", { class: "price" }, toDisplayString(item.price), 1), createTextVNode(" \u5143 ") ]) ]), createVNode("div", { class: "btn" }, [ createVNode("button", { onClick: ($event) => unref(goCancel)(item) }, "\u53D6\u6D88\u5DE5\u5355", 8, ["onClick"]), createVNode("button", { onClick: ($event) => unref(goDetail)(item) }, "\u67E5\u770B\u8BE6\u60C5", 8, ["onClick"]) ]) ]) ]); }), 128)), createVNode("div", { class: "pagination" }, [ createVNode(_component_HomePagination, { onSendData: handleData2, total: unref(total2) }, null, 8, ["total"]) ]) ]; } }), _: 1 }, _parent2, _scopeId)); _push2(ssrRenderComponent(unref(ElTabPane), { label: "\u5F85\u5BA1\u6838 (" + unref(total6) + ")", name: "6" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(``); ssrRenderList(unref(orderList), (item) => { _push3(`
\u5F85\u5BA1\u6838 \u5DE5\u5355\u7F16\u53F7: ${ssrInterpolate(item.order_num)}${ssrInterpolate(item.created_at)}

\u5F00\u59CB\u65F6\u95F4: ${ssrInterpolate(item.sttime)}

\u7ED3\u675F\u65F6\u95F4: ${ssrInterpolate(item.edtime)}

\u5929\u6570: ${ssrInterpolate(item.days)}\u5929

\u5E7F\u544A\u4E2A\u6570: ${ssrInterpolate(item.num)}\u4E2A

\u5E7F\u544A\u72B6\u6001: ${ssrInterpolate(unref(order_ad)[item.ad_status])}

${ssrInterpolate(item.price)} \u5143

`); }); _push3(``); } else { return [ (openBlock(true), createBlock(Fragment, null, renderList(unref(orderList), (item) => { return openBlock(), createBlock("div", { class: "order6", key: item.id }, [ createVNode("div", { class: "title" }, [ createVNode("span", { class: "statusClass" }, "\u5F85\u5BA1\u6838"), createVNode("span", { class: "code" }, [ createTextVNode(" \u5DE5\u5355\u7F16\u53F7: "), createVNode("span", null, toDisplayString(item.order_num), 1) ]), createVNode("span", { class: "createTime right" }, toDisplayString(item.created_at), 1) ]), createVNode("div", { class: "text" }, [ createVNode("div", { class: "time" }, [ createVNode("p", null, [ createTextVNode(" \u5F00\u59CB\u65F6\u95F4: "), createVNode("span", null, toDisplayString(item.sttime), 1) ]), createVNode("p", null, [ createTextVNode(" \u7ED3\u675F\u65F6\u95F4: "), createVNode("span", null, toDisplayString(item.edtime), 1) ]) ]), createVNode("div", { class: "num" }, [ createVNode("p", null, [ createTextVNode(" \u5929\u6570: "), createVNode("span", null, toDisplayString(item.days) + "\u5929", 1) ]), createVNode("p", null, [ createTextVNode(" \u5E7F\u544A\u4E2A\u6570: "), createVNode("span", null, toDisplayString(item.num) + "\u4E2A", 1) ]) ]), createVNode("div", { class: "state" }, [ createVNode("p", null, [ createTextVNode(" \u5E7F\u544A\u72B6\u6001: "), createVNode("span", null, toDisplayString(unref(order_ad)[item.ad_status]), 1) ]), createVNode("p", null, [ createVNode("span", { class: "price" }, toDisplayString(item.price), 1), createTextVNode(" \u5143 ") ]) ]), createVNode("div", { class: "btn" }, [ createVNode("button", { onClick: ($event) => unref(goCancel)(item) }, "\u53D6\u6D88\u5DE5\u5355", 8, ["onClick"]), createVNode("button", { onClick: ($event) => unref(goDetail)(item) }, "\u67E5\u770B\u8BE6\u60C5", 8, ["onClick"]) ]) ]) ]); }), 128)), createVNode("div", { class: "pagination" }, [ createVNode(_component_HomePagination, { onSendData: handleData3, total: unref(total6) }, null, 8, ["total"]) ]) ]; } }), _: 1 }, _parent2, _scopeId)); } else { return [ createVNode(unref(ElTabPane), { label: "\u5168\u90E8 (" + unref(allOrderTotal) + ")", name: "all" }, { default: withCtx(() => [ (openBlock(true), createBlock(Fragment, null, renderList(unref(allOrder), (item) => { return openBlock(), createBlock("div", { class: "order", key: item.id }, [ createVNode("div", { class: "title" }, [ withDirectives(createVNode("span", { class: item.status == 6 ? "orangeStatus" : "grayStatus" }, toDisplayString(unref(order)[item.status]), 3), [ [vShow, item.status == 6] ]), withDirectives(createVNode("span", { class: item.status == 1 ? "greenStatus" : "grayStatus" }, toDisplayString(unref(order)[item.status]), 3), [ [vShow, item.status == 1] ]), withDirectives(createVNode("span", { class: item.status != 6 && item.status != 1 ? "grayStatus" : "" }, toDisplayString(unref(order)[item.status]), 3), [ [vShow, item.status != 6 && item.status != 1] ]), createVNode("span", { class: "code" }, [ createTextVNode(" \u5DE5\u5355\u7F16\u53F7: "), createVNode("span", null, toDisplayString(item.order_num), 1) ]), createVNode("span", { class: "createTime right" }, toDisplayString(item.created_at), 1) ]), createVNode("div", { class: "text" }, [ createVNode("div", { class: "time" }, [ createVNode("p", null, [ createTextVNode(" \u5F00\u59CB\u65F6\u95F4: "), createVNode("span", null, toDisplayString(item.sttime), 1) ]), createVNode("p", null, [ createTextVNode(" \u7ED3\u675F\u65F6\u95F4: "), createVNode("span", null, toDisplayString(item.edtime), 1) ]) ]), createVNode("div", { class: "num" }, [ createVNode("p", null, [ createTextVNode(" \u5929\u6570: "), createVNode("span", null, toDisplayString(item.days) + "\u5929", 1) ]), createVNode("p", null, [ createTextVNode(" \u5E7F\u544A\u4E2A\u6570: "), createVNode("span", null, toDisplayString(item.num) + "\u4E2A", 1) ]) ]), createVNode("div", { class: "state" }, [ createVNode("p", null, [ createTextVNode(" \u5E7F\u544A\u72B6\u6001: "), createVNode("span", null, toDisplayString(unref(order_ad)[item.ad_status]), 1) ]), createVNode("p", null, [ createVNode("span", { class: "price" }, toDisplayString(item.price), 1), createTextVNode(" \u5143 ") ]) ]), createVNode("div", { class: "btn" }, [ createVNode("button", { onClick: ($event) => unref(goCancel)(item) }, toDisplayString(item.status == 1 ? "\u518D\u6B21\u7533\u8BF7" : "\u53D6\u6D88\u5DE5\u5355"), 9, ["onClick"]), createVNode("button", { onClick: ($event) => unref(goDetail)(item) }, "\u67E5\u770B\u8BE6\u60C5", 8, ["onClick"]) ]) ]) ]); }), 128)), createVNode("div", { class: "pagination" }, [ createVNode(_component_HomePagination, { onSendData: handleData, total: unref(allOrderTotal) }, null, 8, ["total"]) ]) ]), _: 1 }, 8, ["label"]), createVNode(unref(ElTabPane), { label: "\u5DF2\u901A\u8FC7 (" + unref(total1) + ")", name: "1" }, { default: withCtx(() => [ (openBlock(true), createBlock(Fragment, null, renderList(unref(orderList), (item) => { return openBlock(), createBlock("div", { class: "order1", key: item.id }, [ createVNode("div", { class: "title" }, [ createVNode("span", { class: "statusClass" }, "\u5DF2\u901A\u8FC7"), createVNode("span", { class: "code" }, [ createTextVNode(" \u5DE5\u5355\u7F16\u53F7: "), createVNode("span", null, toDisplayString(item.order_num), 1) ]), createVNode("span", { class: "createTime right" }, toDisplayString(item.created_at), 1) ]), createVNode("div", { class: "text" }, [ createVNode("div", { class: "time" }, [ createVNode("p", null, [ createTextVNode(" \u5F00\u59CB\u65F6\u95F4: "), createVNode("span", null, toDisplayString(item.sttime), 1) ]), createVNode("p", null, [ createTextVNode(" \u7ED3\u675F\u65F6\u95F4: "), createVNode("span", null, toDisplayString(item.edtime), 1) ]) ]), createVNode("div", { class: "num" }, [ createVNode("p", null, [ createTextVNode(" \u5929\u6570: "), createVNode("span", null, toDisplayString(item.days) + "\u5929", 1) ]), createVNode("p", null, [ createTextVNode(" \u5E7F\u544A\u4E2A\u6570: "), createVNode("span", null, toDisplayString(item.num) + "\u4E2A", 1) ]) ]), createVNode("div", { class: "state" }, [ createVNode("p", null, [ createTextVNode(" \u5E7F\u544A\u72B6\u6001: "), createVNode("span", null, toDisplayString(unref(order_ad)[item.ad_status]), 1) ]), createVNode("p", null, [ createVNode("span", { class: "price" }, toDisplayString(item.price), 1), createTextVNode(" \u5143 ") ]) ]), createVNode("div", { class: "btn" }, [ createVNode("button", { onClick: ($event) => unref(goCancel)(item) }, "\u53D6\u6D88\u5DE5\u5355", 8, ["onClick"]), createVNode("button", { onClick: ($event) => unref(goDetail)(item) }, "\u67E5\u770B\u8BE6\u60C5", 8, ["onClick"]) ]) ]) ]); }), 128)), createVNode("div", { class: "pagination" }, [ createVNode(_component_HomePagination, { onSendData: handleData1, total: unref(total1) }, null, 8, ["total"]) ]) ]), _: 1 }, 8, ["label"]), createVNode(unref(ElTabPane), { label: "\u5DF2\u9A73\u56DE (" + unref(total2) + ")", name: "2" }, { default: withCtx(() => [ (openBlock(true), createBlock(Fragment, null, renderList(unref(orderList), (item) => { return openBlock(), createBlock("div", { class: "order2", key: item.id }, [ createVNode("div", { class: "title" }, [ createVNode("span", { class: "statusClass" }, "\u5DF2\u9A73\u56DE"), createVNode("span", { class: "code" }, [ createTextVNode(" \u5DE5\u5355\u7F16\u53F7: "), createVNode("span", null, toDisplayString(item.order_num), 1) ]), createVNode("span", { class: "createTime right" }, toDisplayString(item.created_at), 1) ]), createVNode("div", { class: "text" }, [ createVNode("div", { class: "time" }, [ createVNode("p", null, [ createTextVNode(" \u5F00\u59CB\u65F6\u95F4: "), createVNode("span", null, toDisplayString(item.sttime), 1) ]), createVNode("p", null, [ createTextVNode(" \u7ED3\u675F\u65F6\u95F4: "), createVNode("span", null, toDisplayString(item.edtime), 1) ]) ]), createVNode("div", { class: "num" }, [ createVNode("p", null, [ createTextVNode(" \u5929\u6570: "), createVNode("span", null, toDisplayString(item.days) + "\u5929", 1) ]), createVNode("p", null, [ createTextVNode(" \u5E7F\u544A\u4E2A\u6570: "), createVNode("span", null, toDisplayString(item.num) + "\u4E2A", 1) ]) ]), createVNode("div", { class: "state" }, [ createVNode("p", null, [ createTextVNode(" \u5E7F\u544A\u72B6\u6001: "), createVNode("span", null, toDisplayString(unref(order_ad)[item.ad_status]), 1) ]), createVNode("p", null, [ createVNode("span", { class: "price" }, toDisplayString(item.price), 1), createTextVNode(" \u5143 ") ]) ]), createVNode("div", { class: "btn" }, [ createVNode("button", { onClick: ($event) => unref(goCancel)(item) }, "\u53D6\u6D88\u5DE5\u5355", 8, ["onClick"]), createVNode("button", { onClick: ($event) => unref(goDetail)(item) }, "\u67E5\u770B\u8BE6\u60C5", 8, ["onClick"]) ]) ]) ]); }), 128)), createVNode("div", { class: "pagination" }, [ createVNode(_component_HomePagination, { onSendData: handleData2, total: unref(total2) }, null, 8, ["total"]) ]) ]), _: 1 }, 8, ["label"]), createVNode(unref(ElTabPane), { label: "\u5F85\u5BA1\u6838 (" + unref(total6) + ")", name: "6" }, { default: withCtx(() => [ (openBlock(true), createBlock(Fragment, null, renderList(unref(orderList), (item) => { return openBlock(), createBlock("div", { class: "order6", key: item.id }, [ createVNode("div", { class: "title" }, [ createVNode("span", { class: "statusClass" }, "\u5F85\u5BA1\u6838"), createVNode("span", { class: "code" }, [ createTextVNode(" \u5DE5\u5355\u7F16\u53F7: "), createVNode("span", null, toDisplayString(item.order_num), 1) ]), createVNode("span", { class: "createTime right" }, toDisplayString(item.created_at), 1) ]), createVNode("div", { class: "text" }, [ createVNode("div", { class: "time" }, [ createVNode("p", null, [ createTextVNode(" \u5F00\u59CB\u65F6\u95F4: "), createVNode("span", null, toDisplayString(item.sttime), 1) ]), createVNode("p", null, [ createTextVNode(" \u7ED3\u675F\u65F6\u95F4: "), createVNode("span", null, toDisplayString(item.edtime), 1) ]) ]), createVNode("div", { class: "num" }, [ createVNode("p", null, [ createTextVNode(" \u5929\u6570: "), createVNode("span", null, toDisplayString(item.days) + "\u5929", 1) ]), createVNode("p", null, [ createTextVNode(" \u5E7F\u544A\u4E2A\u6570: "), createVNode("span", null, toDisplayString(item.num) + "\u4E2A", 1) ]) ]), createVNode("div", { class: "state" }, [ createVNode("p", null, [ createTextVNode(" \u5E7F\u544A\u72B6\u6001: "), createVNode("span", null, toDisplayString(unref(order_ad)[item.ad_status]), 1) ]), createVNode("p", null, [ createVNode("span", { class: "price" }, toDisplayString(item.price), 1), createTextVNode(" \u5143 ") ]) ]), createVNode("div", { class: "btn" }, [ createVNode("button", { onClick: ($event) => unref(goCancel)(item) }, "\u53D6\u6D88\u5DE5\u5355", 8, ["onClick"]), createVNode("button", { onClick: ($event) => unref(goDetail)(item) }, "\u67E5\u770B\u8BE6\u60C5", 8, ["onClick"]) ]) ]) ]); }), 128)), createVNode("div", { class: "pagination" }, [ createVNode(_component_HomePagination, { onSendData: handleData3, total: unref(total6) }, null, 8, ["total"]) ]) ]), _: 1 }, 8, ["label"]) ]; } }), _: 1 }, _parent)); _push(`
`); }; } }; const _sfc_setup$1 = _sfc_main$1.setup; _sfc_main$1.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("components/advertising/OrderList.vue"); return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0; }; const __nuxt_component_2 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-cfc8f80b"]]); const _sfc_main = { __name: "index", __ssrInlineRender: true, setup(__props) { const nuxtApp = useNuxtApp(); nuxtApp.$axios; let ad = useState("ad", () => 1); let adCurrent = useState("adCurrent", () => true); const size = ref < "default" | "large" | "small" > "default"; let adName = useState("adName", () => ""); let adLink = useState("adLink", () => ""); let startTime = useState("startTime", () => ""); let endTime = useState("endTime", () => ""); let adSize = useState("adSize", () => 1); useState("adWidth", () => 1200); useState("adHeight", () => 90); useState("pageSize", () => 10); useState("page", () => 1); useState("tableData", () => []); let processedData = useState("processedData", () => []); let pids = useState("pids", () => ""); let orderInformation = useState("orderInformation", () => ""); let changeStartTime = (val) => { startTime.value = `${val.getFullYear()}-${val.getMonth() + 1}-${val.getDate()}`; console.log(startTime.value); }; let changeEndTime = (val) => { endTime.value = `${val.getFullYear()}-${val.getMonth() + 1}-${val.getDate()}`; console.log(endTime.value); }; let handleUploadSuccess = (response, file, fileList) => { console.log(file.name); response.fileUrl; }; let handleSelectionChange = (selectedRows) => { let selectedpids = []; selectedRows.forEach((row) => { selectedpids.push(row.pid); }); pids.value = selectedpids.join(","); }; const value = ref(""); const options = [ { value: "Option1", label: "Option1" }, { value: "Option2", label: "Option2" }, { value: "Option3", label: "Option3" }, { value: "Option4", label: "Option4" }, { value: "Option5", label: "Option5" } ]; return (_ctx, _push, _parent, _attrs) => { const _component_AdvertisingHead = __nuxt_component_0; const _component_HomePagination = __nuxt_component_3; const _component_AdvertisingOrderList = __nuxt_component_2; const _component_AdvertisingFoot = __nuxt_component_3$1; _push(``); _push(ssrRenderComponent(_component_AdvertisingHead, null, null, _parent)); _push(`
1 \u586B\u5199\u5E7F\u544A\u4FE1\u606F `); _push(ssrRenderComponent(unref(ElIcon), null, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(unref(DArrowRight), null, null, _parent2, _scopeId)); } else { return [ createVNode(unref(DArrowRight)) ]; } }), _: 1 }, _parent)); _push(`2 \u9009\u62E9\u76F8\u5E94\u7F51\u7AD9 `); _push(ssrRenderComponent(unref(ElIcon), null, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(unref(DArrowRight), null, null, _parent2, _scopeId)); } else { return [ createVNode(unref(DArrowRight)) ]; } }), _: 1 }, _parent)); _push(`3 \u63D0\u4EA4\u5DE5\u5355\u4FE1\u606F

`); _push(ssrRenderComponent(unref(ElInput), { id: "adName", modelValue: unref(adName), "onUpdate:modelValue": ($event) => isRef(adName) ? adName.value = $event : adName = $event, style: { "width": "980px", "height": "44px" }, placeholder: "\u8BF7\u8F93\u5165\u5E7F\u544A\u540D\u79F0" }, null, _parent)); _push(`\u8BF7\u8F93\u5165\u5E7F\u544A\u540D\u79F0\u3002

`); _push(ssrRenderComponent(unref(ElInput), { class: "adLink", modelValue: unref(adLink), "onUpdate:modelValue": ($event) => isRef(adLink) ? adLink.value = $event : adLink = $event, style: { "width": "980px", "height": "44px" }, placeholder: "\u8BF7\u8F93\u5165\u5E7F\u544A\u94FE\u63A5" }, null, _parent)); _push(`\u8BF7\u8F93\u5165\u5E7F\u544A\u94FE\u63A5\u3002

`); _push(ssrRenderComponent(unref(ElDatePicker), { modelValue: unref(startTime), "onUpdate:modelValue": ($event) => isRef(startTime) ? startTime.value = $event : startTime = $event, type: "date", placeholder: "\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4", onChange: unref(changeStartTime), size }, null, _parent)); _push(`\u81F3`); _push(ssrRenderComponent(unref(ElDatePicker), { modelValue: unref(endTime), "onUpdate:modelValue": ($event) => isRef(endTime) ? endTime.value = $event : endTime = $event, type: "date", placeholder: "\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4", onChange: unref(changeEndTime), size }, null, _parent)); _push(`\u8BF7\u9009\u62E9\u5E7F\u544A\u5F00\u59CB\u65F6\u95F4\u548C\u7ED3\u675F\u65F6\u95F4

`); _push(ssrRenderComponent(unref(ElRadioGroup), { modelValue: unref(adSize), "onUpdate:modelValue": ($event) => isRef(adSize) ? adSize.value = $event : adSize = $event, size }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(unref(ElRadio), { value: 1 }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(` 1200 x 90px `); } else { return [ createTextVNode(" 1200 x 90px ") ]; } }), _: 1 }, _parent2, _scopeId)); _push2(ssrRenderComponent(unref(ElRadio), { value: 2 }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(` 420 x 560px `); } else { return [ createTextVNode(" 420 x 560px ") ]; } }), _: 1 }, _parent2, _scopeId)); } else { return [ createVNode(unref(ElRadio), { value: 1 }, { default: withCtx(() => [ createTextVNode(" 1200 x 90px ") ]), _: 1 }), createVNode(unref(ElRadio), { value: 2 }, { default: withCtx(() => [ createTextVNode(" 420 x 560px ") ]), _: 1 }) ]; } }), _: 1 }, _parent)); _push(`\u8BF7\u9009\u62E9\u5E7F\u544A\u5C3A\u5BF8\u3002

`); _push(ssrRenderComponent(unref(ElUpload), { class: "upload-demo", action: "http://192.168.1.118:9501", "on-success": unref(handleUploadSuccess), "on-error": _ctx.handleUploadError, drag: "", multiple: "" }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(unref(ElIcon), { class: "el-icon--upload" }, { default: withCtx((_2, _push3, _parent3, _scopeId2) => { if (_push3) { _push3(ssrRenderComponent(unref(Plus), null, null, _parent3, _scopeId2)); } else { return [ createVNode(unref(Plus)) ]; } }), _: 1 }, _parent2, _scopeId)); _push2(`

\u9009\u62E9\u56FE\u7247
`); } else { return [ createVNode(unref(ElIcon), { class: "el-icon--upload" }, { default: withCtx(() => [ createVNode(unref(Plus)) ]), _: 1 }), createVNode("div", { class: "el-upload__text" }, " \u9009\u62E9\u56FE\u7247 ") ]; } }), _: 1 }, _parent)); _push(`\u8BF7\u6DFB\u52A0\u5E7F\u544A\u56FE\uFF0C\u4E0D\u5927\u4E8E500k\u3002

\u7F51\u7AD9\uFF1A `); _push(ssrRenderComponent(unref(ElSelect), { modelValue: value.value, "onUpdate:modelValue": ($event) => value.value = $event, placeholder: "\u8BF7\u9009\u62E9\u7F51\u7AD9\u540D\u79F0", size: "large", style: { "width": "244px", "height": "44px" } }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(``); ssrRenderList(options, (item) => { _push2(ssrRenderComponent(unref(ElOption), { key: item.value, label: item.label, value: item.value }, null, _parent2, _scopeId)); }); _push2(``); } else { return [ (openBlock(), createBlock(Fragment, null, renderList(options, (item) => { return createVNode(unref(ElOption), { key: item.value, label: item.label, value: item.value }, null, 8, ["label", "value"]); }), 64)) ]; } }), _: 1 }, _parent)); _push(`\u67E5\u770B\u793A\u610F\u56FE
`); _push(ssrRenderComponent(unref(ElTable), { data: unref(processedData), border: "", onSelectionChange: unref(handleSelectionChange), "select-on-indeterminate": "", style: { "width": "100%" }, "header-row-style": { height: "60px" }, "row-style": { height: "74px" }, "header-cell-style": { backgroundColor: "#fafafa", color: "#666" } }, { default: withCtx((_, _push2, _parent2, _scopeId) => { if (_push2) { _push2(ssrRenderComponent(unref(ElTableColumn), { type: "selection", width: "152", align: "center" }, null, _parent2, _scopeId)); _push2(ssrRenderComponent(unref(ElTableColumn), { prop: "website_name", label: "\u7F51\u7AD9", width: "240" }, null, _parent2, _scopeId)); _push2(ssrRenderComponent(unref(ElTableColumn), { prop: "name", label: "\u5E7F\u544A\u4F4D\u540D\u79F0", width: "240" }, null, _parent2, _scopeId)); _push2(ssrRenderComponent(unref(ElTableColumn), { prop: "combinedField", label: "\u5E7F\u544A\u5C3A\u5BF8", width: "268" }, null, _parent2, _scopeId)); _push2(ssrRenderComponent(unref(ElTableColumn), { prop: "price", label: "\u91D1\u989D (\u5143) / \u5929" }, null, _parent2, _scopeId)); } else { return [ createVNode(unref(ElTableColumn), { type: "selection", width: "152", align: "center" }), createVNode(unref(ElTableColumn), { prop: "website_name", label: "\u7F51\u7AD9", width: "240" }), createVNode(unref(ElTableColumn), { prop: "name", label: "\u5E7F\u544A\u4F4D\u540D\u79F0", width: "240" }), createVNode(unref(ElTableColumn), { prop: "combinedField", label: "\u5E7F\u544A\u5C3A\u5BF8", width: "268" }), createVNode(unref(ElTableColumn), { prop: "price", label: "\u91D1\u989D (\u5143) / \u5929" }) ]; } }), _: 1 }, _parent)); _push(`

\u5E7F\u544A\u4FE1\u606F\u5DF2\u63D0\u4EA4\u6210\u529F\uFF0C\u8BF7\u7B49\u5F85\u5BA1\u6838......

\u5DE5\u5355\u7F16\u53F7: ${ssrInterpolate(unref(orderInformation).$ordernum)}

\u5982\u6709\u7591\u95EE\uFF0C\u53EF\u8054\u7CFB\u5BA2\u670D\u4EBA\u5458\u3002
`); _push(ssrRenderComponent(_component_AdvertisingOrderList, null, null, _parent)); _push(`
\u603B\u91D1\u989D: 243,210,910 \u5143
`); _push(ssrRenderComponent(_component_AdvertisingFoot, null, null, _parent)); _push(``); }; } }; const _sfc_setup = _sfc_main.setup; _sfc_main.setup = (props, ctx) => { const ssrContext = useSSRContext(); (ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/advertising/index.vue"); return _sfc_setup ? _sfc_setup(props, ctx) : void 0; }; const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-2a66bd53"]]); export { index as default }; //# sourceMappingURL=index-D4_Ucwxo.mjs.map