1 |
- {"version":3,"sources":["webpack:///src/views/oms/order/deliverOrderList.vue","webpack:///./src/views/oms/order/deliverOrderList.vue?8f62","webpack:///./src/views/oms/order/deliverOrderList.vue"],"names":["defaultLogisticsCompanies","deliverOrderList","name","data","list","listError","dialogVisible","companyOptions","created","this","$route","query","Array","console","log","methods","tableRowClassName","row","isError","handleViewRemove","index","splice","cancel","$router","back","confirm","_this","$confirm","confirmButtonText","cancelButtonText","type","then","Object","order","response","result","keys_default","length","$message","message","forEach","item","orderSn","temp","i","push","id","text","catch","order_deliverOrderList","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","shadow","_v","ref","staticStyle","width","border","row-class-name","label","align","scopedSlots","_u","key","fn","scope","_s","receiverName","receiverPhone","receiverPostCode","address","placeholder","size","model","value","callback","$$v","$set","expression","_l","on","click","$event","$index","margin-top","text-align","disabled","title","visible","update:visible","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"gKAsFAA,GACA,OACA,OACA,OACA,QAEAC,GACAC,KAAA,mBACAC,KAFA,WAGA,OACAC,QACAC,aACAC,eAAA,EACAC,eAAAP,IAGAQ,QAVA,WAWAC,KAAAL,KAAAK,KAAAC,OAAAC,MAAAP,KAEAK,KAAAL,gBAAAQ,QAAA,IACAH,KAAAL,SAEAS,QAAAC,IAAAL,KAAAL,OAEAW,SACAC,kBADA,SACAC,GACA,OAAAA,MAAAC,QACA,cAEA,IAEAC,iBAPA,SAOAC,EAAAH,GACAJ,QAAAC,IAAAL,KAAAL,KAAAgB,EAAAH,GACAR,KAAAL,KAAAiB,OAAAD,EAAA,IAEAE,OAXA,WAYAb,KAAAc,QAAAC,QAEAC,QAdA,WAcA,IAAAC,EAAAjB,KACAA,KAAAkB,SAAA,mBACAC,kBAAA,KACAC,iBAAA,KACAC,KAAA,YAEAC,KAAA,WACAC,OAAAC,EAAA,EAAAD,CAAAN,EAAAtB,MAAA2B,KAAA,SAAAG,GACA,IAAAC,EAAAD,EAAA/B,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AA0CK,EAAAQ,GAAA,KAAAL,EAAA,mBAAoCG,OAAOQ,MAAA,KAAAC,MAAA,UAA8BC,YAAAhB,EAAAiB,KAAsBC,IAAA,UAAAC,GAAA,SAAAC,GAAiC,OAAApB,EAAAQ,GAAAR,EAAAqB,GAAAD,EAAAtD,IAAA8B,eAA4C,YAEt5GiD,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,CACAlG,EACAgD,GATA,EAVA,SAAAmD,GACAF,EAAA,SAaA,KAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/47.965d72d1bc8a9c76d7c7.js","sourcesContent":["<template>\r\n \r\n <div class=\"app-container\">\r\n <el-card class=\"operate-container\" shadow=\"never\">\r\n <i class=\"el-icon-tickets\"></i>\r\n <span>发货列表</span>\r\n </el-card>\r\n <div class=\"table-container\">\r\n <el-table ref=\"deliverOrderTable\" style=\"width: 100%\" :data=\"list\" border :row-class-name=\"tableRowClassName\">\r\n <el-table-column label=\"订单编号\" width=\"180\" align=\"center\">\r\n <template slot-scope=\"scope\">{{ scope.row.orderSn }}</template>\r\n </el-table-column>\r\n <el-table-column label=\"收货人\" width=\"180\" align=\"center\">\r\n <template slot-scope=\"scope\">{{ scope.row.receiverName }}</template>\r\n </el-table-column>\r\n <el-table-column label=\"手机号码\" width=\"160\" align=\"center\">\r\n <template slot-scope=\"scope\">{{ scope.row.receiverPhone }}</template>\r\n </el-table-column>\r\n <el-table-column label=\"邮政编码\" width=\"160\" align=\"center\">\r\n <template slot-scope=\"scope\">{{\r\n scope.row.receiverPostCode\r\n }}</template>\r\n </el-table-column>\r\n <el-table-column label=\"收货地址\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n {{ scope.row.address }}\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"配送方式\" width=\"160\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <el-select\r\n placeholder=\"请选择物流公司\"\r\n v-model=\"scope.row.deliveryCompany\"\r\n size=\"small\"\r\n >\r\n <el-option\r\n v-for=\"item in companyOptions\"\r\n :key=\"item\"\r\n :label=\"item\"\r\n :value=\"item\"\r\n >\r\n </el-option>\r\n </el-select>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"物流单号\" width=\"180\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <el-input size=\"small\" v-model=\"scope.row.deliverySn\"></el-input>\r\n </template>\r\n </el-table-column>\r\n <el-table-column label=\"操作\" width=\"180\" align=\"center\">\r\n <template slot-scope=\"scope\">\r\n <p class=\"table-btn-group\">\r\n <el-button\r\n size=\"mini\"\r\n type=\"danger\"\r\n @click=\"handleViewRemove(scope.$index, scope.row)\"\r\n >移除</el-button\r\n >\r\n </p>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n <div style=\"margin-top: 15px; text-align: center\">\r\n <el-button @click=\"cancel\">取消</el-button>\r\n <el-button @click=\"confirm\" :disabled=\"list.length <= 0\" type=\"primary\">确定</el-button>\r\n </div>\r\n </div>\r\n\r\n <el-dialog\r\n title=\"提示\"\r\n :visible.sync=\"dialogVisible\"\r\n width=\"50%\">\r\n <el-table style=\"width: 100%\" :data=\"listError\" border>\r\n <el-table-column label=\"编号\" width=\"180\" align=\"center\">\r\n <template slot-scope=\"scope\">{{ scope.row.id }}</template>\r\n </el-table-column>\r\n <el-table-column label=\"内容\" align=\"center\">\r\n <template slot-scope=\"scope\">{{ scope.row.text }}</template>\r\n </el-table-column>\r\n </el-table>\r\n </el-dialog>\r\n </div>\r\n</template>\r\n<script>\r\nimport { deliveryOrder } from \"@/api/order\";\r\nconst defaultLogisticsCompanies = [\r\n \"顺丰快递\",\r\n \"圆通快递\",\r\n \"中通快递\",\r\n \"韵达快递\",\r\n];\r\nexport default {\r\n name: \"deliverOrderList\",\r\n data() {\r\n return {\r\n list: [],\r\n listError: [],\r\n dialogVisible: false,\r\n companyOptions: defaultLogisticsCompanies,\r\n };\r\n },\r\n created() {\r\n this.list = this.$route.query.list;\r\n //当list不为数组时转换为数组\r\n if (this.list instanceof Array === false) {\r\n this.list = [];\r\n }\r\n console.log( this.list)\r\n },\r\n methods: {\r\n tableRowClassName(row) {\r\n if(row.row.isError) {\r\n return 'warning-row'\r\n }\r\n return ''\r\n },\r\n handleViewRemove(index, row) {\r\n console.log(this.list, index, row)\r\n this.list.splice(index, 1)\r\n },\r\n cancel() {\r\n this.$router.back();\r\n },\r\n confirm() {\r\n this.$confirm(\"是否要进行发货操作?\", \"提示\", {\r\n confirmButtonText: \"确定\",\r\n cancelButtonText: \"取消\",\r\n type: \"warning\",\r\n })\r\n .then(() => {\r\n deliveryOrder(this.list).then((response) => {\r\n const result = response.data\r\n if(!result || Object.keys(result).length <= 0) {\r\n this.$router.back();\r\n this.$message({\r\n type: \"success\",\r\n message: \"发货成功!\",\r\n });\r\n } else {\r\n this.list.forEach((item) => {\r\n if(result[item.orderSn]) {\r\n item.isError = true\r\n }\r\n })\r\n\r\n this.dialogVisible = true;\r\n const temp = []\r\n for(let i in result) {\r\n temp.push({\r\n id: i,\r\n text: result[i]\r\n })\r\n }\r\n this.listError = temp\r\n }\r\n })\r\n \r\n })\r\n .catch(() => {\r\n this.$message({\r\n type: \"info\",\r\n message: \"已取消发货\",\r\n });\r\n });\r\n },\r\n },\r\n};\r\n</script>\r\n<style>\r\n.el-table .warning-row {\r\n background: oldlace;\r\n }</style>\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/oms/order/deliverOrderList.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-container\"},[_c('el-card',{staticClass:\"operate-container\",attrs:{\"shadow\":\"never\"}},[_c('i',{staticClass:\"el-icon-tickets\"}),_vm._v(\" \"),_c('span',[_vm._v(\"发货列表\")])]),_vm._v(\" \"),_c('div',{staticClass:\"table-container\"},[_c('el-table',{ref:\"deliverOrderTable\",staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.list,\"border\":\"\",\"row-class-name\":_vm.tableRowClassName}},[_c('el-table-column',{attrs:{\"label\":\"订单编号\",\"width\":\"180\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.orderSn))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"收货人\",\"width\":\"180\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.receiverName))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"手机号码\",\"width\":\"160\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.receiverPhone))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"邮政编码\",\"width\":\"160\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.receiverPostCode))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"收货地址\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"\\n \"+_vm._s(scope.row.address)+\"\\n \")]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"配送方式\",\"width\":\"160\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-select',{attrs:{\"placeholder\":\"请选择物流公司\",\"size\":\"small\"},model:{value:(scope.row.deliveryCompany),callback:function ($$v) {_vm.$set(scope.row, \"deliveryCompany\", $$v)},expression:\"scope.row.deliveryCompany\"}},_vm._l((_vm.companyOptions),function(item){return _c('el-option',{key:item,attrs:{\"label\":item,\"value\":item}})}))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"物流单号\",\"width\":\"180\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-input',{attrs:{\"size\":\"small\"},model:{value:(scope.row.deliverySn),callback:function ($$v) {_vm.$set(scope.row, \"deliverySn\", $$v)},expression:\"scope.row.deliverySn\"}})]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作\",\"width\":\"180\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('p',{staticClass:\"table-btn-group\"},[_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"danger\"},on:{\"click\":function($event){_vm.handleViewRemove(scope.$index, scope.row)}}},[_vm._v(\"移除\")])],1)]}}])})],1),_vm._v(\" \"),_c('div',{staticStyle:{\"margin-top\":\"15px\",\"text-align\":\"center\"}},[_c('el-button',{on:{\"click\":_vm.cancel}},[_vm._v(\"取消\")]),_vm._v(\" \"),_c('el-button',{attrs:{\"disabled\":_vm.list.length <= 0,\"type\":\"primary\"},on:{\"click\":_vm.confirm}},[_vm._v(\"确定\")])],1)],1),_vm._v(\" \"),_c('el-dialog',{attrs:{\"title\":\"提示\",\"visible\":_vm.dialogVisible,\"width\":\"50%\"},on:{\"update:visible\":function($event){_vm.dialogVisible=$event}}},[_c('el-table',{staticStyle:{\"width\":\"100%\"},attrs:{\"data\":_vm.listError,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"label\":\"编号\",\"width\":\"180\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.id))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"内容\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.text))]}}])})],1)],1)],1)}\nvar staticRenderFns = []\nvar esExports = { render: render, staticRenderFns: staticRenderFns }\nexport default esExports\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/vue-loader/lib/template-compiler?{\"id\":\"data-v-2a2b7f72\",\"hasScoped\":false,\"transformToRequire\":{\"video\":[\"src\",\"poster\"],\"source\":\"src\",\"img\":\"src\",\"image\":\"xlink:href\"},\"buble\":{\"transforms\":{}}}!./node_modules/vue-loader/lib/selector.js?type=template&index=0!./src/views/oms/order/deliverOrderList.vue\n// module id = null\n// module chunks = ","function injectStyle (ssrContext) {\n require(\"!!../../../../node_modules/extract-text-webpack-plugin/dist/loader.js?{\\\"omit\\\":1,\\\"remove\\\":true}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-2a2b7f72\\\",\\\"scoped\\\":false,\\\"hasInlineConfig\\\":false}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./deliverOrderList.vue\")\n}\nvar normalizeComponent = require(\"!../../../../node_modules/vue-loader/lib/component-normalizer\")\n/* script */\nexport * from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./deliverOrderList.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./deliverOrderList.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-2a2b7f72\\\",\\\"hasScoped\\\":false,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./deliverOrderList.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = null\n/* moduleIdentifier (server only) */\nvar __vue_module_identifier__ = null\nvar Component = normalizeComponent(\n __vue_script__,\n __vue_template__,\n __vue_template_functional__,\n __vue_styles__,\n __vue_scopeId__,\n __vue_module_identifier__\n)\n\nexport default Component.exports\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/views/oms/order/deliverOrderList.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
|