1.df9ce37774a63d561c03.js.map 15 KB

1
  1. {"version":3,"sources":["webpack:///./node_modules/core-js/library/modules/es6.number.is-integer.js","webpack:///./node_modules/core-js/library/modules/_is-integer.js","webpack:///./node_modules/babel-runtime/core-js/number/is-integer.js","webpack:///./node_modules/core-js/library/fn/number/is-integer.js","webpack:///src/views/oms/order/setting.vue","webpack:///./src/api/orderSetting.js","webpack:///./src/views/oms/order/setting.vue?22da","webpack:///./src/views/oms/order/setting.vue"],"names":["$export","__webpack_require__","S","isInteger","isObject","floor","Math","module","exports","it","isFinite","default","__esModule","Number","defaultOrderSetting","id","flashOrderOvertime","normalOrderOvertime","confirmOvertime","finishOvertime","commentOvertime","setting_checkTime","rule","value","callback","Error","console","log","intValue","parseInt","is_integer_default","setting","name","data","orderSetting","assign_default","rules","validator","trigger","created","this","getDetail","methods","confirm","formName","_this","$refs","validate","valid","$message","message","type","$confirm","confirmButtonText","cancelButtonText","then","Object","request","url","method","response","duration","_this2","order_setting","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","shadow","ref","model","label-width","label","prop","$$v","$set","expression","slot","_v","on","click","$event","staticRenderFns","Component","normalizeComponent","ssrContext","__webpack_exports__"],"mappings":"yCACA,IAAAA,EAAAC,EAAA,QAEAD,IAAAE,EAAA,UAA8BC,UAAAF,EAAA,gCCF9B,IAAAG,EAAAH,EAAA,QACAI,EAAAC,KAAAD,MACAE,EAAAC,QAAA,SAAAC,GACA,OAAAL,EAAAK,IAAAC,SAAAD,IAAAJ,EAAAI,gCCJAF,EAAAC,SAAkBG,QAAAV,EAAA,QAAAW,YAAA,yBCAlBX,EAAA,QACAM,EAAAC,QAAAP,EAAA,QAAAY,OAAAV,6KC6CA,IAAAW,GACAC,GAAA,KACAC,mBAAA,EACAC,oBAAA,EACAC,gBAAA,EACAC,eAAA,EACAC,gBAAA,GAEAC,EAAA,SAAAC,EAAAC,EAAAC,GACA,IAAAD,EACA,OAAAC,EAAA,IAAAC,MAAA,WAEAC,QAAAC,IAAA,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,EAAAiB,GAAA,qBAE/nDI,oBCCjB,IAcAC,EAdAtF,EAAA,OAcAuF,CACAzD,EACAgC,GATA,EAVA,SAAA0B,GACAxF,EAAA,SAaA,kBAEA,MAUAyF,EAAA,QAAAH,EAAA","file":"static/js/1.df9ce37774a63d561c03.js","sourcesContent":["// 20.1.2.3 Number.isInteger(number)\nvar $export = require('./_export');\n\n$export($export.S, 'Number', { isInteger: require('./_is-integer') });\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/es6.number.is-integer.js\n// module id = 1alW\n// module chunks = 1","// 20.1.2.3 Number.isInteger(number)\nvar isObject = require('./_is-object');\nvar floor = Math.floor;\nmodule.exports = function isInteger(it) {\n return !isObject(it) && isFinite(it) && floor(it) === it;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/modules/_is-integer.js\n// module id = AKgy\n// module chunks = 1","module.exports = { \"default\": require(\"core-js/library/fn/number/is-integer\"), __esModule: true };\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/babel-runtime/core-js/number/is-integer.js\n// module id = RRo+\n// module chunks = 1","require('../../modules/es6.number.is-integer');\nmodule.exports = require('../../modules/_core').Number.isInteger;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/library/fn/number/is-integer.js\n// module id = c45H\n// module chunks = 1","<template> \r\n <el-card class=\"form-container\" shadow=\"never\">\r\n <el-form :model=\"orderSetting\"\r\n ref=\"orderSettingForm\"\r\n :rules=\"rules\"\r\n label-width=\"150px\">\r\n <!-- <el-form-item label=\"秒杀订单超过:\" prop=\"flashOrderOvertime\">\r\n <el-input v-model=\"orderSetting.flashOrderOvertime\" class=\"input-width\">\r\n <template slot=\"append\">分</template>\r\n </el-input>\r\n <span class=\"note-margin\">未付款,订单自动关闭</span>\r\n </el-form-item> -->\r\n <el-form-item label=\"正常订单超过:\" prop=\"normalOrderOvertime\">\r\n <el-input v-model=\"orderSetting.normalOrderOvertime\" class=\"input-width\">\r\n <template slot=\"append\">分</template>\r\n </el-input>\r\n <span class=\"note-margin\">未付款,订单自动关闭</span>\r\n </el-form-item>\r\n <el-form-item label=\"发货超过:\" prop=\"confirmOvertime\">\r\n <el-input v-model=\"orderSetting.confirmOvertime\" class=\"input-width\">\r\n <template slot=\"append\">天</template>\r\n </el-input>\r\n <span class=\"note-margin\">未收货,订单自动完成</span>\r\n </el-form-item>\r\n <el-form-item label=\"订单完成超过:\" prop=\"finishOvertime\">\r\n <el-input v-model=\"orderSetting.finishOvertime\" class=\"input-width\">\r\n <template slot=\"append\">天</template>\r\n </el-input>\r\n <span class=\"note-margin\">自动结束交易,不能申请售后</span>\r\n </el-form-item>\r\n <!-- <el-form-item label=\"订单完成超过:\" prop=\"commentOvertime\">\r\n <el-input v-model=\"orderSetting.commentOvertime\" class=\"input-width\">\r\n <template slot=\"append\">天</template>\r\n </el-input>\r\n <span class=\"note-margin\">自动五星好评</span>\r\n </el-form-item> -->\r\n <el-form-item>\r\n <el-button\r\n @click=\"confirm('orderSettingForm')\"\r\n type=\"primary\">提交</el-button>\r\n </el-form-item>\r\n </el-form>\r\n </el-card>\r\n</template>\r\n<script>\r\n import {getOrderSetting,updateOrderSetting} from '@/api/orderSetting';\r\n const defaultOrderSetting = {\r\n id: null,\r\n flashOrderOvertime: 0,\r\n normalOrderOvertime: 0,\r\n confirmOvertime: 0,\r\n finishOvertime: 0,\r\n commentOvertime: 0\r\n };\r\n const checkTime = (rule, value, callback) => {\r\n if (!value) {\r\n return callback(new Error('时间不能为空'));\r\n }\r\n console.log(\"checkTime\",value);\r\n let intValue = parseInt(value);\r\n if (!Number.isInteger(intValue)) {\r\n return callback(new Error('请输入数字值'));\r\n }\r\n callback();\r\n };\r\n export default {\r\n name: 'orderSetting',\r\n data() {\r\n return {\r\n orderSetting: Object.assign({}, defaultOrderSetting),\r\n rules: {\r\n flashOrderOvertime:{validator: checkTime, trigger: 'blur' },\r\n normalOrderOvertime:{validator: checkTime, trigger: 'blur' },\r\n confirmOvertime: {validator: checkTime, trigger: 'blur' },\r\n finishOvertime: {validator: checkTime, trigger: 'blur' },\r\n commentOvertime:{validator: checkTime, trigger: 'blur' }\r\n }\r\n }\r\n },\r\n created(){\r\n this.getDetail();\r\n },\r\n methods:{\r\n confirm(formName){\r\n this.$refs[formName].validate((valid) => {\r\n if (valid) {\r\n this.$confirm('是否要提交修改?', '提示', {\r\n confirmButtonText: '确定',\r\n cancelButtonText: '取消',\r\n type: 'warning'\r\n }).then(() => {\r\n updateOrderSetting(1,this.orderSetting).then(response=>{\r\n this.$message({\r\n type: 'success',\r\n message: '提交成功!',\r\n duration:1000\r\n });\r\n })\r\n });\r\n } else {\r\n this.$message({\r\n message: '提交参数不合法',\r\n type: 'warning'\r\n });\r\n return false;\r\n }\r\n });\r\n },\r\n getDetail(){\r\n getOrderSetting(1).then(response=>{\r\n this.orderSetting=response.data;\r\n })\r\n }\r\n }\r\n }\r\n</script>\r\n<style scoped>\r\n .input-width {\r\n width: 50%;\r\n }\r\n\r\n .note-margin {\r\n margin-left: 15px;\r\n }\r\n</style>\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/oms/order/setting.vue","import request from '@/utils/request'\r\nexport function getOrderSetting(id) {\r\n return request({\r\n url:'/orderSetting/'+id,\r\n method:'get',\r\n })\r\n}\r\n\r\nexport function updateOrderSetting(id,data) {\r\n return request({\r\n url:'/orderSetting/update/'+id,\r\n method:'post',\r\n data:data\r\n })\r\n}\r\n\n\n\n// WEBPACK FOOTER //\n// ./src/api/orderSetting.js","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-card',{staticClass:\"form-container\",attrs:{\"shadow\":\"never\"}},[_c('el-form',{ref:\"orderSettingForm\",attrs:{\"model\":_vm.orderSetting,\"rules\":_vm.rules,\"label-width\":\"150px\"}},[_c('el-form-item',{attrs:{\"label\":\"正常订单超过:\",\"prop\":\"normalOrderOvertime\"}},[_c('el-input',{staticClass:\"input-width\",model:{value:(_vm.orderSetting.normalOrderOvertime),callback:function ($$v) {_vm.$set(_vm.orderSetting, \"normalOrderOvertime\", $$v)},expression:\"orderSetting.normalOrderOvertime\"}},[_c('template',{slot:\"append\"},[_vm._v(\"分\")])],2),_vm._v(\" \"),_c('span',{staticClass:\"note-margin\"},[_vm._v(\"未付款,订单自动关闭\")])],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"发货超过:\",\"prop\":\"confirmOvertime\"}},[_c('el-input',{staticClass:\"input-width\",model:{value:(_vm.orderSetting.confirmOvertime),callback:function ($$v) {_vm.$set(_vm.orderSetting, \"confirmOvertime\", $$v)},expression:\"orderSetting.confirmOvertime\"}},[_c('template',{slot:\"append\"},[_vm._v(\"天\")])],2),_vm._v(\" \"),_c('span',{staticClass:\"note-margin\"},[_vm._v(\"未收货,订单自动完成\")])],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"订单完成超过:\",\"prop\":\"finishOvertime\"}},[_c('el-input',{staticClass:\"input-width\",model:{value:(_vm.orderSetting.finishOvertime),callback:function ($$v) {_vm.$set(_vm.orderSetting, \"finishOvertime\", $$v)},expression:\"orderSetting.finishOvertime\"}},[_c('template',{slot:\"append\"},[_vm._v(\"天\")])],2),_vm._v(\" \"),_c('span',{staticClass:\"note-margin\"},[_vm._v(\"自动结束交易,不能申请售后\")])],1),_vm._v(\" \"),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){_vm.confirm('orderSettingForm')}}},[_vm._v(\"提交\")])],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-eaeac5a0\",\"hasScoped\":true,\"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/setting.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-eaeac5a0\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./setting.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!./setting.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./setting.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-eaeac5a0\\\",\\\"hasScoped\\\":true,\\\"transformToRequire\\\":{\\\"video\\\":[\\\"src\\\",\\\"poster\\\"],\\\"source\\\":\\\"src\\\",\\\"img\\\":\\\"src\\\",\\\"image\\\":\\\"xlink:href\\\"},\\\"buble\\\":{\\\"transforms\\\":{}}}!../../../../node_modules/vue-loader/lib/selector?type=template&index=0!./setting.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-eaeac5a0\"\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/setting.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}