3.ba5131628fea150d3119.js.map 16 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?3e65","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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aAAA,eAAAV,SAAA,SAAAsD,GAAiEb,EAAAc,KAAAd,EAAA/B,aAAA,iBAAA4C,IAAkDE,WAAA,iCAA2CZ,EAAA,YAAiBa,KAAA,WAAchB,EAAAiB,GAAA,WAAAjB,EAAAiB,GAAA,KAAAd,EAAA,QAA2CE,YAAA,gBAA0BL,EAAAiB,GAAA,uBAAAjB,EAAAiB,GAAA,KAAAd,EAAA,gBAA+DG,OAAOK,MAAA,UAAAC,KAAA,qBAA4CT,EAAA,YAAiBE,YAAA,cAAAI,OAAiCnD,MAAA0C,EAAA/B,aAAA,gBAAAV,SAAA,SAAAsD,GAAkEb,EAAAc,KAAAd,EAAA/B,aAAA,kBAAA4C,IAAmDE,WAAA,kCAA4CZ,EAAA,YAAiBa,KAAA,WAAchB,EAAAiB,GAAA,WAAAjB,EAAAiB,GAAA,KAAAd,EAAA,QAA2CE,YAAA,gBAA0BL,EAAAiB,GAAA,gBAAAjB,EAAAiB,GAAA,KAAAd,EAAA,gBAAAA,EAAA,aAAwEG,OAAOpB,KAAA,WAAiBgC,IAAKC,MAAA,SAAAC,GAAyBpB,EAAAtB,QAAA,wBAAkCsB,EAAAiB,GAAA,qBAEn9EI,oBCCjB,IAcAC,EAdAtF,EAAA,OAcAuF,CACAzD,EACAgC,GATA,EAVA,SAAA0B,GACAxF,EAAA,SAaA,kBAEA,MAUAyF,EAAA,QAAAH,EAAA","file":"static/js/3.ba5131628fea150d3119.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 = 3","// 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 = 3","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 = 3","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 = 3","<template> \n <el-card class=\"form-container\" shadow=\"never\">\n <el-form :model=\"orderSetting\"\n ref=\"orderSettingForm\"\n :rules=\"rules\"\n label-width=\"150px\">\n <el-form-item label=\"秒杀订单超过:\" prop=\"flashOrderOvertime\">\n <el-input v-model=\"orderSetting.flashOrderOvertime\" class=\"input-width\">\n <template slot=\"append\">分</template>\n </el-input>\n <span class=\"note-margin\">未付款,订单自动关闭</span>\n </el-form-item>\n <el-form-item label=\"正常订单超过:\" prop=\"normalOrderOvertime\">\n <el-input v-model=\"orderSetting.normalOrderOvertime\" class=\"input-width\">\n <template slot=\"append\">分</template>\n </el-input>\n <span class=\"note-margin\">未付款,订单自动关闭</span>\n </el-form-item>\n <el-form-item label=\"发货超过:\" prop=\"confirmOvertime\">\n <el-input v-model=\"orderSetting.confirmOvertime\" class=\"input-width\">\n <template slot=\"append\">天</template>\n </el-input>\n <span class=\"note-margin\">未收货,订单自动完成</span>\n </el-form-item>\n <el-form-item label=\"订单完成超过:\" prop=\"finishOvertime\">\n <el-input v-model=\"orderSetting.finishOvertime\" class=\"input-width\">\n <template slot=\"append\">天</template>\n </el-input>\n <span class=\"note-margin\">自动结束交易,不能申请售后</span>\n </el-form-item>\n <el-form-item label=\"订单完成超过:\" prop=\"commentOvertime\">\n <el-input v-model=\"orderSetting.commentOvertime\" class=\"input-width\">\n <template slot=\"append\">天</template>\n </el-input>\n <span class=\"note-margin\">自动五星好评</span>\n </el-form-item>\n <el-form-item>\n <el-button\n @click=\"confirm('orderSettingForm')\"\n type=\"primary\">提交</el-button>\n </el-form-item>\n </el-form>\n </el-card>\n</template>\n<script>\n import {getOrderSetting,updateOrderSetting} from '@/api/orderSetting';\n const defaultOrderSetting = {\n id: null,\n flashOrderOvertime: 0,\n normalOrderOvertime: 0,\n confirmOvertime: 0,\n finishOvertime: 0,\n commentOvertime: 0\n };\n const checkTime = (rule, value, callback) => {\n if (!value) {\n return callback(new Error('时间不能为空'));\n }\n console.log(\"checkTime\",value);\n let intValue = parseInt(value);\n if (!Number.isInteger(intValue)) {\n return callback(new Error('请输入数字值'));\n }\n callback();\n };\n export default {\n name: 'orderSetting',\n data() {\n return {\n orderSetting: Object.assign({}, defaultOrderSetting),\n rules: {\n flashOrderOvertime:{validator: checkTime, trigger: 'blur' },\n normalOrderOvertime:{validator: checkTime, trigger: 'blur' },\n confirmOvertime: {validator: checkTime, trigger: 'blur' },\n finishOvertime: {validator: checkTime, trigger: 'blur' },\n commentOvertime:{validator: checkTime, trigger: 'blur' }\n }\n }\n },\n created(){\n this.getDetail();\n },\n methods:{\n confirm(formName){\n this.$refs[formName].validate((valid) => {\n if (valid) {\n this.$confirm('是否要提交修改?', '提示', {\n confirmButtonText: '确定',\n cancelButtonText: '取消',\n type: 'warning'\n }).then(() => {\n updateOrderSetting(1,this.orderSetting).then(response=>{\n this.$message({\n type: 'success',\n message: '提交成功!',\n duration:1000\n });\n })\n });\n } else {\n this.$message({\n message: '提交参数不合法',\n type: 'warning'\n });\n return false;\n }\n });\n },\n getDetail(){\n getOrderSetting(1).then(response=>{\n this.orderSetting=response.data;\n })\n }\n }\n }\n</script>\n<style scoped>\n .input-width {\n width: 50%;\n }\n\n .note-margin {\n margin-left: 15px;\n }\n</style>\n\n\n\n\n\n// WEBPACK FOOTER //\n// src/views/oms/order/setting.vue","import request from '@/utils/request'\nexport function getOrderSetting(id) {\n return request({\n url:'/orderSetting/'+id,\n method:'get',\n })\n}\n\nexport function updateOrderSetting(id,data) {\n return request({\n url:'/orderSetting/update/'+id,\n method:'post',\n data:data\n })\n}\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\":\"flashOrderOvertime\"}},[_c('el-input',{staticClass:\"input-width\",model:{value:(_vm.orderSetting.flashOrderOvertime),callback:function ($$v) {_vm.$set(_vm.orderSetting, \"flashOrderOvertime\", $$v)},expression:\"orderSetting.flashOrderOvertime\"}},[_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\":\"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',{attrs:{\"label\":\"订单完成超过:\",\"prop\":\"commentOvertime\"}},[_c('el-input',{staticClass:\"input-width\",model:{value:(_vm.orderSetting.commentOvertime),callback:function ($$v) {_vm.$set(_vm.orderSetting, \"commentOvertime\", $$v)},expression:\"orderSetting.commentOvertime\"}},[_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-4a9bb782\",\"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,\\\"publicPath\\\":\\\"../../\\\"}!vue-style-loader!css-loader?{\\\"sourceMap\\\":true}!../../../../node_modules/vue-loader/lib/style-compiler/index?{\\\"vue\\\":true,\\\"id\\\":\\\"data-v-4a9bb782\\\",\\\"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-4a9bb782\\\",\\\"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-4a9bb782\"\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":""}