You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

0 lines
18 KiB

1 month ago
  1. {"ast":null,"code":"import { createElementVNode as _createElementVNode, createVNode as _createVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createTextVNode as _createTextVNode, toDisplayString as _toDisplayString, resolveDirective as _resolveDirective, openBlock as _openBlock, createBlock as _createBlock, withDirectives as _withDirectives, createElementBlock as _createElementBlock } from \"vue\";\nconst _hoisted_1 = {\n class: \"order-management\"\n};\nconst _hoisted_2 = {\n class: \"card-header\"\n};\nconst _hoisted_3 = {\n class: \"search-area\"\n};\nconst _hoisted_4 = {\n class: \"pagination\"\n};\nexport function render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_icon = _resolveComponent(\"el-icon\");\n const _component_el_input = _resolveComponent(\"el-input\");\n const _component_el_button = _resolveComponent(\"el-button\");\n const _component_el_table_column = _resolveComponent(\"el-table-column\");\n const _component_el_tag = _resolveComponent(\"el-tag\");\n const _component_el_table = _resolveComponent(\"el-table\");\n const _component_el_pagination = _resolveComponent(\"el-pagination\");\n const _component_el_card = _resolveComponent(\"el-card\");\n const _directive_loading = _resolveDirective(\"loading\");\n return _openBlock(), _createElementBlock(\"div\", _hoisted_1, [_createVNode(_component_el_card, null, {\n header: _withCtx(() => [_createElementVNode(\"div\", _hoisted_2, [_cache[6] || (_cache[6] = _createElementVNode(\"span\", null, \"订单管理\", -1 /* HOISTED */)), _createElementVNode(\"div\", _hoisted_3, [_createVNode(_component_el_input, {\n modelValue: $setup.searchForm.orderId,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => $setup.searchForm.orderId = $event),\n placeholder: \"请输入订单ID\",\n clearable: \"\",\n style: {\n \"width\": \"200px\"\n },\n onClear: $setup.handleReset\n }, {\n prefix: _withCtx(() => [_createVNode(_component_el_icon, null, {\n default: _withCtx(() => [_createVNode($setup[\"Search\"])]),\n _: 1 /* STABLE */\n })]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"modelValue\"]), _createVNode(_component_el_input, {\n modelValue: $setup.searchForm.customerId,\n \"onUpdate:modelValue\": _cache[1] || (_cache[1] = $event => $setup.searchForm.customerId = $event),\n modelModifiers: {\n number: true\n },\n placeholder: \"请输入客户ID\",\n clearable: \"\",\n style: {\n \"width\": \"200px\"\n },\n onInput: $setup.validateCustomerId\n }, {\n prefix: _withCtx(() => [_createVNode(_component_el_icon, null, {\n default: _withCtx(() => [_createVNode($setup[\"Search\"])]),\n _: 1 /* STABLE */\n })]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"modelValue\"]), _createVNode(_component_el_button, {\n type: \"primary\",\n onClick: $setup.handleSearch,\n disabled: !$setup.isValidCustomerId\n }, {\n default: _withCtx(() => _cache[4] || (_cache[4] = [_createTextVNode(\"搜索\")])),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"disabled\"]), _createVNode(_component_el_button, {\n onClick: $setup.handleReset\n }, {\n default: _withCtx(() => _cache[5] || (_cache[5] = [_createTextVNode(\"重置\")])),\n _: 1 /* STABLE */\n })])])]),\n default: _withCtx(() => [_withDirectives((_openBlock(), _createBlock(_component_el_table, {\n data: $setup.orderList,\n style: {\n \"width\": \"100%\"\n }\n }, {\n default: _withCtx(() => [_createVNode(_component_el_table_column, {\n prop: \"orderNo\",\n label: \"订单编号\",\n width: \"120\"\n }), _createVNode(_component_el_table_column, {\n prop: \"customerId\",\n label: \"客户ID\",\n width: \"80\"\n }), _createVNode(_component_el_table_column, {\n prop: \"goodsName\",\n label: \"商品名称\"\n }), _createVNode(_component_el_table_column, {\n prop: