text: webpackJsonp([12],{
  
  /***/ 875:
  /***/ (function(module, exports, __webpack_require__) {
  
  var disposed = false
  function injectStyle (ssrContext) {
    if (disposed) return
    __webpack_require__(904)
  }
  var normalizeComponent = __webpack_require__(202)
  /* script */
  var __vue_script__ = __webpack_require__(906)
  /* template */
  var __vue_template__ = __webpack_require__(907)
  /* template functional */
  var __vue_template_functional__ = false
  /* styles */
  var __vue_styles__ = injectStyle
  /* scopeId */
  var __vue_scopeId__ = null
  /* moduleIdentifier (server only) */
  var __vue_module_identifier__ = null
  var Component = normalizeComponent(
    __vue_script__,
    __vue_template__,
    __vue_template_functional__,
    __vue_styles__,
    __vue_scopeId__,
    __vue_module_identifier__
  )
  Component.options.__file = "resources/assets/js/components/customer/List.vue"
  
  /* hot reload */
  if (false) {(function () {
    var hotAPI = require("vue-hot-reload-api")
    hotAPI.install(require("vue"), false)
    if (!hotAPI.compatible) return
    module.hot.accept()
    if (!module.hot.data) {
      hotAPI.createRecord("data-v-d7ff2f70", Component.options)
    } else {
      hotAPI.reload("data-v-d7ff2f70", Component.options)
    }
    module.hot.dispose(function (data) {
      disposed = true
    })
  })()}
  
  module.exports = Component.exports
  
  
  /***/ }),
  
  /***/ 904:
  /***/ (function(module, exports, __webpack_require__) {
  
  // style-loader: Adds some css to the DOM by adding a <style> tag
  
  // load the styles
  var content = __webpack_require__(905);
  if(typeof content === 'string') content = [[module.i, content, '']];
  if(content.locals) module.exports = content.locals;
  // add the styles to the DOM
  var update = __webpack_require__(363)("44154f7b", content, false, {});
  // Hot Module Replacement
  if(false) {
   // When the styles change, update the <style> tags
   if(!content.locals) {
     module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-d7ff2f70\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./List.vue", function() {
       var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-d7ff2f70\",\"scoped\":false,\"hasInlineConfig\":true}!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./List.vue");
       if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
       update(newContent);
     });
   }
   // When the module is disposed, remove the <style> tags
   module.hot.dispose(function() { update(); });
  }
  
  /***/ }),
  
  /***/ 905:
  /***/ (function(module, exports, __webpack_require__) {
  
  exports = module.exports = __webpack_require__(105)(false);
  // imports
  
  
  // module
  exports.push([module.i, "\n.avatar-uploader .el-upload {\n    border: 1px dashed #d9d9d9;\n    border-radius: 6px;\n    cursor: pointer;\n    position: relative;\n    overflow: hidden;\n}\n.avatar-uploader .el-upload:hover {\n    border-color: #409EFF;\n}\n.avatar-uploader-icon {\n    font-size: 28px;\n    color: #8c939d;\n    width: 300px;\n    height: 200px;\n    line-height: 200px;\n    text-align: center;\n}\n.avatar {\n    width: 300px;\n    height: 200px;\n    display: block;\n}\n", ""]);
  
  // exports
  
  
  /***/ }),
  
  /***/ 906:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  //
  
  /* harmony default export */ __webpack_exports__["default"] = ({
      data: function data() {
          return {
              timer: '',
              loading: true,
              tableHeight: 0,
              url: '',
              dialogFormVisible: false,
              searchParams: {
                  name: '',
                  table_id: '',
                  seat_id: '',
                  date: '',
                  status: '',
                  page: 1
              },
              TotalPage: 0,
              tableData: [],
              statuses: {}
          };
      },
      created: function created() {
          this.handleTableData();
          this.handleTableHeight();
          this.handleStatuses();
          window.addEventListener('resize', this.handleTableHeight);
      },
  
      methods: {
          handleStatuses: function handleStatuses() {
              var _this = this;
  
              this.$api.customerDishDetailStatus().then(function (res) {
                  _this.statuses = res.data;
              }).catch(function (err) {
                  _this.$message({
                      type: 'error',
                      message: '数据初始化异常'
                  });
              });
          },
  
          // 上菜完成
          served: function served(id) {
              var _this2 = this;
  
              this.$confirm('您确定要完成吗？', '提示', {
                  confirmButtonText: '确定',
                  cancelButtonText: '取消',
                  type: 'warning'
              }).then(function () {
                  _this2.$api.customerDishDetailServed({ id: id }).then(function (res) {
                      _this2.$message({
                          showClose: true,
                          type: res.status === 1 ? 'success' : 'error',
                          message: res.message
                      });
                      _this2.handleTableData();
                  }).catch(function (err) {
                      _this2.$message({
                          type: 'error',
                          message: '操作失败'
                      });
                  });
              });
          },
  
          // 加载数据
          handleTableData: function handleTableData() {
              var _this3 = this;
  
              this.$api.customerDishDetailList(this.searchParams).then(function (res) {
                  _this3.tableData = res.data.data;
                  _this3.TotalPage = res.data.total;
                  _this3.loading = false;
              }).catch(function (err) {
                  _this3.$alert('获取数据失败, 请重试!', '提示', {
                      confirmButtonText: '确定',
                      callback: function callback(action) {}
                  });
              });
          },
          handleSearch: function handleSearch() {
              this.handleTableData();
          },
          handleCurrentChange: function handleCurrentChange(page) {
              this.searchParams.page = page;
              this.handleTableData();
          },
  
          // 表格高度计算
          handleTableHeight: function handleTableHeight() {
              this.tableHeight = window.innerHeight - 318;
          },
          tagChange: function tagChange(value) {
              var checkedCount = value.length;
              var tag = value.join(',');
              this.form.tag = tag;
          }
      },
      mounted: function mounted() {
          this.timer = setInterval(this.handleTableData, 5000);
      },
      beforeDestroy: function beforeDestroy() {
          clearInterval(this.timer);
      },
      destroyed: function destroyed() {
          window.removeEventListener('resize', this.handleTableHeight);
      }
  });
  
  /***/ }),
  
  /***/ 907:
  /***/ (function(module, exports, __webpack_require__) {
  
  var render = function() {
    var _vm = this
    var _h = _vm.$createElement
    var _c = _vm._self._c || _h
    return _c(
      "div",
      { staticClass: "main content amount-flow" },
      [
        _c(
          "el-form",
          {
            staticClass: "search-form-inline",
            attrs: { inline: true, model: _vm.searchParams, size: "small" }
          },
          [
            _c(
              "el-row",
              { attrs: { gutter: 12 } },
              [
                _c(
                  "el-col",
                  { attrs: { span: 4 } },
                  [
                    _c(
                      "el-form-item",
                      { attrs: { label: "菜名" } },
                      [
                        _c("el-input", {
                          attrs: { id: "name" },
                          model: {
                            value: _vm.searchParams.name,
                            callback: function($$v) {
                              _vm.$set(_vm.searchParams, "name", $$v)
                            },
                            expression: "searchParams.name"
                          }
                        })
                      ],
                      1
                    )
                  ],
                  1
                ),
                _vm._v(" "),
                _c(
                  "el-col",
                  { attrs: { span: 4 } },
                  [
                    _c(
                      "el-form-item",
                      { attrs: { label: "桌号" } },
                      [
                        _c("el-input", {
                          model: {
                            value: _vm.searchParams.table_id,
                            callback: function($$v) {
                              _vm.$set(_vm.searchParams, "table_id", $$v)
                            },
                            expression: "searchParams.table_id"
                          }
                        })
                      ],
                      1
                    )
                  ],
                  1
                ),
                _vm._v(" "),
                _c(
                  "el-col",
                  { attrs: { span: 4 } },
                  [
                    _c(
                      "el-form-item",
                      { attrs: { label: "座号" } },
                      [
                        _c("el-input", {
                          model: {
                            value: _vm.searchParams.seat_id,
                            callback: function($$v) {
                              _vm.$set(_vm.searchParams, "seat_id", $$v)
                            },
                            expression: "searchParams.seat_id"
                          }
                        })
                      ],
                      1
                    )
                  ],
                  1
                ),
                _vm._v(" "),
                _c(
                  "el-col",
                  { attrs: { span: 4 } },
                  [
                    _c(
                      "el-form-item",
                      { attrs: { label: "状态" } },
                      [
                        _c(
                          "el-select",
                          {
                            attrs: { placeholder: "请选择" },
                            model: {
                              value: _vm.searchParams.status,
                              callback: function($$v) {
                                _vm.$set(_vm.searchParams, "status", $$v)
                              },
                              expression: "searchParams.status"
                            }
                          },
                          _vm._l(_vm.statuses, function(status) {
                            return _c("el-option", {
                              key: status.id,
                              attrs: { label: status.name, value: status.id }
                            })
                          }),
                          1
                        )
                      ],
                      1
                    )
                  ],
                  1
                ),
                _vm._v(" "),
                _c(
                  "el-col",
                  { attrs: { span: 5 } },
                  [
                    _c(
                      "el-form-item",
                      { attrs: { label: "日期" } },
                      [
                        _c("el-date-picker", {
                          attrs: {
                            type: "daterange",
                            align: "right",
                            "unlink-panels": "",
                            format: "yyyy-MM-dd",
                            "value-format": "yyyy-MM-dd",
                            "range-separator": "至",
                            "start-placeholder": "开始日期",
                            "end-placeholder": "结束日期"
                          },
                          model: {
                            value: _vm.searchParams.date,
                            callback: function($$v) {
                              _vm.$set(_vm.searchParams, "date", $$v)
                            },
                            expression: "searchParams.date"
                          }
                        })
                      ],
                      1
                    )
                  ],
                  1
                ),
                _vm._v(" "),
                _c(
                  "el-col",
                  { attrs: { span: 3 } },
                  [
                    _c(
                      "el-form-item",
                      [
                        _c(
                          "el-button",
                          {
                            attrs: { type: "primary" },
                            on: { click: _vm.handleSearch }
                          },
                          [_vm._v("查询")]
                        )
                      ],
                      1
                    )
                  ],
                  1
                )
              ],
              1
            )
          ],
          1
        ),
        _vm._v(" "),
        _c(
          "el-table",
          {
            directives: [
              {
                name: "loading",
                rawName: "v-loading",
                value: _vm.loading,
                expression: "loading"
              }
            ],
            staticStyle: { width: "100%", "margin-top": "1px" },
            attrs: { data: _vm.tableData, height: _vm.tableHeight, border: "" }
          },
          [
            _c("el-table-column", {
              attrs: { prop: "date", label: "日期", width: "100" }
            }),
            _vm._v(" "),
            _c("el-table-column", {
              attrs: { prop: "order_trade_no", label: "订单号", width: "200" }
            }),
            _vm._v(" "),
            _c("el-table-column", {
              attrs: { prop: "name", label: "菜名", width: "" },
              scopedSlots: _vm._u([
                {
                  key: "default",
                  fn: function(scope) {
                    return [
                      _vm._v(
                        "\n                " +
                          _vm._s(scope.row.dish.name) +
                          "\n            "
                      )
                    ]
                  }
                }
              ])
            }),
            _vm._v(" "),
            _c("el-table-column", {
              attrs: { label: "菜图", prop: "logo", width: "" },
              scopedSlots: _vm._u([
                {
                  key: "default",
                  fn: function(scope) {
                    return [
                      _c("img", {
                        staticStyle: {
                          width: "100%",
                          height: "100%",
                          display: "block"
                        },
                        attrs: { src: scope.row.dish.logo }
                      })
                    ]
                  }
                }
              ])
            }),
            _vm._v(" "),
            _c("el-table-column", {
              attrs: { label: "桌号", prop: "table_id", width: "" }
            }),
            _vm._v(" "),
            _c("el-table-column", {
              attrs: { label: "座号", prop: "table_id", width: "" }
            }),
            _vm._v(" "),
            _c("el-table-column", {
              attrs: { label: "点菜时间", prop: "created_at", width: "150" }
            }),
            _vm._v(" "),
            _c("el-table-column", {
              attrs: { label: "状态", prop: "status" },
              scopedSlots: _vm._u([
                {
                  key: "default",
                  fn: function(scope) {
                    return [
                      _vm._v(
                        "\n                " +
                          _vm._s(scope.row.status === 1 ? "已上菜" : "未上菜") +
                          "\n            "
                      )
                    ]
                  }
                }
              ])
            }),
            _vm._v(" "),
            _c("el-table-column", {
              attrs: { label: "备注", prop: "comment", width: "200" }
            }),
            _vm._v(" "),
            _c("el-table-column", {
              attrs: { label: "操作", width: "" },
              scopedSlots: _vm._u([
                {
                  key: "default",
                  fn: function(scope) {
                    return [
                      scope.row.status === 0
                        ? _c(
                            "el-button",
                            {
                              attrs: { type: "primary", size: "small" },
                              on: {
                                click: function($event) {
                                  return _vm.served(scope.row.id)
                                }
                              }
                            },
                            [_vm._v("完成\n                ")]
                          )
                        : _vm._e()
                    ]
                  }
                }
              ])
            })
          ],
          1
        ),
        _vm._v(" "),
        _c("el-pagination", {
          staticStyle: { "margin-top": "25px" },
          attrs: {
            background: "",
            "current-page": _vm.searchParams.page,
            "page-size": 10,
            layout: "total, prev, pager, next, jumper",
            total: _vm.TotalPage
          },
          on: {
            "current-change": _vm.handleCurrentChange,
            "update:currentPage": function($event) {
              return _vm.$set(_vm.searchParams, "page", $event)
            },
            "update:current-page": function($event) {
              return _vm.$set(_vm.searchParams, "page", $event)
            }
          }
        })
      ],
      1
    )
  }
  var staticRenderFns = []
  render._withStripped = true
  module.exports = { render: render, staticRenderFns: staticRenderFns }
  if (false) {
    module.hot.accept()
    if (module.hot.data) {
      require("vue-hot-reload-api")      .rerender("data-v-d7ff2f70", module.exports)
    }
  }
  
  /***/ })
  
  });