13.ca1f30d32a79268047db.js.map 22 KB

1
  1. {"version":3,"sources":["webpack:///src/views/pms/productAttr/updateProductAttr.vue","webpack:///./src/views/pms/productAttr/updateProductAttr.vue?b766","webpack:///./src/views/pms/productAttr/updateProductAttr.vue","webpack:///src/views/pms/productAttr/components/ProductAttrDetail.vue","webpack:///./src/views/pms/productAttr/components/ProductAttrDetail.vue?0a83","webpack:///./src/views/pms/productAttr/components/ProductAttrDetail.vue"],"names":["updateProductAttr","name","components","ProductAttrDetail","productAttr_updateProductAttr","render","_h","this","$createElement","_self","_c","attrs","is-edit","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__","defaultProductAttr","filterType","handAddStatus","inputList","inputType","productAttributeCategoryId","relatedStatus","searchType","selectType","sort","type","props","isEdit","Boolean","default","data","productAttr","assign_default","rules","required","message","trigger","min","max","productAttrCateList","inputListFormat","created","_this","Object","$route","query","id","then","response","replace","resetProductAttr","getCateList","watch","newValue","oldValue","methods","_this2","productAttrCate","pageNum","pageSize","list","Number","cid","onSubmit","formName","_this3","$refs","validate","valid","$message","duration","$confirm","confirmButtonText","cancelButtonText","$router","back","resetForm","resetFields","components_ProductAttrDetail","_vm","staticClass","shadow","ref","model","label-width","label","prop","value","callback","$$v","$set","expression","_v","placeholder","_l","item","key","autosize","on","click","$event","_e"],"mappings":"4GAMAA,GACAC,KAAA,oBACAC,YAAAC,4BAAA,ICLAC,GADiBC,OAFjB,WAA0B,IAAaC,EAAbC,KAAaC,eAAkD,OAA/DD,KAAuCE,MAAAC,IAAAJ,GAAwB,uBAAiCK,OAAOC,WAAA,MAEhHC,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,CACAhB,EACAI,GATA,EAVA,SAAAa,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA,wIC8CAK,GACAC,WAAA,EACAC,cAAA,EACAC,UAAA,GACAC,UAAA,EACAtB,KAAA,GACAuB,2BAAA,EACAC,cAAA,EACAC,WAAA,EAC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AA,OAcAC,CACAb,EACA+E,GATA,EAVA,SAAAjE,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,EAAAJ,EAAA","file":"static/js/13.ca1f30d32a79268047db.js","sourcesContent":["<template>\r\n <product-attr-detail :is-edit='true'></product-attr-detail>\r\n</template>\r\n\r\n<script>\r\n import ProductAttrDetail from './components/ProductAttrDetail'\r\n export default {\r\n name: 'updateProductAttr',\r\n components: { ProductAttrDetail }\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/pms/productAttr/updateProductAttr.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('product-attr-detail',{attrs:{\"is-edit\":true}})}\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-833e73d6\",\"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/pms/productAttr/updateProductAttr.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-833e73d6\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./updateProductAttr.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!./updateProductAttr.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./updateProductAttr.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-833e73d6\\\",\\\"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!./updateProductAttr.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-833e73d6\"\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/pms/productAttr/updateProductAttr.vue\n// module id = null\n// module chunks = ","<template>\r\n <el-card class=\"form-container\" shadow=\"never\">\r\n <el-form :model=\"productAttr\" :rules=\"rules\" ref=\"productAttrFrom\" label-width=\"150px\">\r\n <el-form-item label=\"属性名称:\" prop=\"name\">\r\n <el-input v-model=\"productAttr.name\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"商品类型:\">\r\n <el-select v-model=\"productAttr.productAttributeCategoryId\" placeholder=\"请选择\">\r\n <el-option\r\n v-for=\"item in productAttrCateList\"\r\n :key=\"item.id\"\r\n :label=\"item.name\"\r\n :value=\"item.id\">\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item label=\"分类筛选样式:\">\r\n <el-radio-group v-model=\"productAttr.filterType\">\r\n <el-radio :label=\"0\">普通</el-radio>\r\n <el-radio :label=\"1\">颜色</el-radio>\r\n </el-radio-group>\r\n </el-form-item>\r\n <!-- <el-form-item label=\"能否进行检索:\">\r\n <el-radio-group v-model=\"productAttr.searchType\">\r\n <el-radio :label=\"0\">不需要检索</el-radio>\r\n <el-radio :label=\"1\">关键字检索</el-radio>\r\n <el-radio :label=\"2\">范围检索</el-radio>\r\n </el-radio-group>\r\n </el-form-item> -->\r\n <el-form-item label=\"商品属性关联:\">\r\n <el-radio-group v-model=\"productAttr.relatedStatus\">\r\n <el-radio :label=\"1\">是</el-radio>\r\n <el-radio :label=\"0\">否</el-radio>\r\n </el-radio-group>\r\n </el-form-item>\r\n <el-form-item label=\"属性是否可选:\">\r\n <el-radio-group v-model=\"productAttr.selectType\">\r\n <el-radio :label=\"0\">唯一</el-radio>\r\n <el-radio :label=\"1\">单选</el-radio>\r\n <el-radio :label=\"2\">复选</el-radio>\r\n </el-radio-group>\r\n </el-form-item>\r\n <el-form-item label=\"属性值的录入方式:\">\r\n <el-radio-group v-model=\"productAttr.inputType\">\r\n <el-radio :label=\"0\">手工录入</el-radio>\r\n <el-radio :label=\"1\">从下面列表中选择</el-radio>\r\n </el-radio-group>\r\n </el-form-item>\r\n <el-form-item label=\"属性值可选值列表:\">\r\n <el-input :autosize=\"true\" type=\"textarea\" v-model=\"inputListFormat\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"是否支持手动新增:\">\r\n <el-radio-group v-model=\"productAttr.handAddStatus\">\r\n <el-radio :label=\"1\">是</el-radio>\r\n <el-radio :label=\"0\">否</el-radio>\r\n </el-radio-group>\r\n </el-form-item>\r\n <el-form-item label=\"排序属性:\">\r\n <el-input v-model=\"productAttr.sort\"></el-input>\r\n </el-form-item>\r\n <el-form-item>\r\n <el-button type=\"primary\" @click=\"onSubmit('productAttrFrom')\">提交</el-button>\r\n <el-button v-if=\"!isEdit\" @click=\"resetForm('productAttrFrom')\">重置</el-button>\r\n </el-form-item>\r\n </el-form>\r\n </el-card>\r\n</template>\r\n\r\n<script>\r\n import {fetchList} from '@/api/productAttrCate'\r\n import {createProductAttr,getProductAttr,updateProductAttr} from '@/api/productAttr'\r\n\r\n const defaultProductAttr = {\r\n filterType: 0,\r\n handAddStatus: 0,\r\n inputList: '',\r\n inputType: 0,\r\n name: '',\r\n productAttributeCategoryId: 0,\r\n relatedStatus: 0,\r\n searchType: 0,\r\n selectType: 0,\r\n sort: 0,\r\n type: 0\r\n };\r\n export default {\r\n name: \"ProductAttrDetail\",\r\n props: {\r\n isEdit: {\r\n type: Boolean,\r\n default: false\r\n }\r\n },\r\n data() {\r\n return {\r\n productAttr: Object.assign({}, defaultProductAttr),\r\n rules: {\r\n name: [\r\n {required: true, message: '请输入属性名称', trigger: 'blur'},\r\n {min: 2, max: 140, message: '长度在 2 到 140 个字符', trigger: 'blur'}\r\n ]\r\n },\r\n productAttrCateList: null,\r\n inputListFormat:null\r\n }\r\n },\r\n created() {\r\n if(this.isEdit){\r\n getProductAttr(this.$route.query.id).then(response => {\r\n this.productAttr = response.data;\r\n this.inputListFormat = this.productAttr.inputList.replace(/,/g,'\\n');\r\n });\r\n }else{\r\n this.resetProductAttr();\r\n }\r\n this.getCateList();\r\n },\r\n watch:{\r\n inputListFormat: function (newValue, oldValue) {\r\n newValue = newValue.replace(/\\n/g,',');\r\n this.productAttr.inputList = newValue;\r\n }\r\n },\r\n methods: {\r\n getCateList() {\r\n let listQuery = {pageNum: 1, pageSize: 100};\r\n fetchList(listQuery).then(response => {\r\n this.productAttrCateList = response.data.list;\r\n });\r\n },\r\n resetProductAttr() {\r\n this.productAttr = Object.assign({}, defaultProductAttr);\r\n this.productAttr.productAttributeCategoryId = Number(this.$route.query.cid);\r\n this.productAttr.type = Number(this.$route.query.type);\r\n },\r\n onSubmit(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 if(this.isEdit){\r\n updateProductAttr(this.$route.query.id,this.productAttr).then(response=>{\r\n this.$message({\r\n message: '修改成功',\r\n type: 'success',\r\n duration: 1000\r\n });\r\n this.$router.back();\r\n });\r\n }else{\r\n createProductAttr(this.productAttr).then(response=>{\r\n this.$message({\r\n message: '提交成功',\r\n type: 'success',\r\n duration: 1000\r\n });\r\n this.resetForm('productAttrFrom');\r\n });\r\n }\r\n });\r\n\r\n } else {\r\n this.$message({\r\n message: '验证失败',\r\n type: 'error',\r\n duration: 1000\r\n });\r\n return false;\r\n }\r\n });\r\n },\r\n resetForm(formName) {\r\n this.$refs[formName].resetFields();\r\n this.resetProductAttr();\r\n }\r\n },\r\n }\r\n</script>\r\n\r\n<style scoped>\r\n\r\n</style>\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/pms/productAttr/components/ProductAttrDetail.vue","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:\"productAttrFrom\",attrs:{\"model\":_vm.productAttr,\"rules\":_vm.rules,\"label-width\":\"150px\"}},[_c('el-form-item',{attrs:{\"label\":\"属性名称:\",\"prop\":\"name\"}},[_c('el-input',{model:{value:(_vm.productAttr.name),callback:function ($$v) {_vm.$set(_vm.productAttr, \"name\", $$v)},expression:\"productAttr.name\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"商品类型:\"}},[_c('el-select',{attrs:{\"placeholder\":\"请选择\"},model:{value:(_vm.productAttr.productAttributeCategoryId),callback:function ($$v) {_vm.$set(_vm.productAttr, \"productAttributeCategoryId\", $$v)},expression:\"productAttr.productAttributeCategoryId\"}},_vm._l((_vm.productAttrCateList),function(item){return _c('el-option',{key:item.id,attrs:{\"label\":item.name,\"value\":item.id}})}))],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"分类筛选样式:\"}},[_c('el-radio-group',{model:{value:(_vm.productAttr.filterType),callback:function ($$v) {_vm.$set(_vm.productAttr, \"filterType\", $$v)},expression:\"productAttr.filterType\"}},[_c('el-radio',{attrs:{\"label\":0}},[_vm._v(\"普通\")]),_vm._v(\" \"),_c('el-radio',{attrs:{\"label\":1}},[_vm._v(\"颜色\")])],1)],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"商品属性关联:\"}},[_c('el-radio-group',{model:{value:(_vm.productAttr.relatedStatus),callback:function ($$v) {_vm.$set(_vm.productAttr, \"relatedStatus\", $$v)},expression:\"productAttr.relatedStatus\"}},[_c('el-radio',{attrs:{\"label\":1}},[_vm._v(\"是\")]),_vm._v(\" \"),_c('el-radio',{attrs:{\"label\":0}},[_vm._v(\"否\")])],1)],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"属性是否可选:\"}},[_c('el-radio-group',{model:{value:(_vm.productAttr.selectType),callback:function ($$v) {_vm.$set(_vm.productAttr, \"selectType\", $$v)},expression:\"productAttr.selectType\"}},[_c('el-radio',{attrs:{\"label\":0}},[_vm._v(\"唯一\")]),_vm._v(\" \"),_c('el-radio',{attrs:{\"label\":1}},[_vm._v(\"单选\")]),_vm._v(\" \"),_c('el-radio',{attrs:{\"label\":2}},[_vm._v(\"复选\")])],1)],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"属性值的录入方式:\"}},[_c('el-radio-group',{model:{value:(_vm.productAttr.inputType),callback:function ($$v) {_vm.$set(_vm.productAttr, \"inputType\", $$v)},expression:\"productAttr.inputType\"}},[_c('el-radio',{attrs:{\"label\":0}},[_vm._v(\"手工录入\")]),_vm._v(\" \"),_c('el-radio',{attrs:{\"label\":1}},[_vm._v(\"从下面列表中选择\")])],1)],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"属性值可选值列表:\"}},[_c('el-input',{attrs:{\"autosize\":true,\"type\":\"textarea\"},model:{value:(_vm.inputListFormat),callback:function ($$v) {_vm.inputListFormat=$$v},expression:\"inputListFormat\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"是否支持手动新增:\"}},[_c('el-radio-group',{model:{value:(_vm.productAttr.handAddStatus),callback:function ($$v) {_vm.$set(_vm.productAttr, \"handAddStatus\", $$v)},expression:\"productAttr.handAddStatus\"}},[_c('el-radio',{attrs:{\"label\":1}},[_vm._v(\"是\")]),_vm._v(\" \"),_c('el-radio',{attrs:{\"label\":0}},[_vm._v(\"否\")])],1)],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"排序属性:\"}},[_c('el-input',{model:{value:(_vm.productAttr.sort),callback:function ($$v) {_vm.$set(_vm.productAttr, \"sort\", $$v)},expression:\"productAttr.sort\"}})],1),_vm._v(\" \"),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){_vm.onSubmit('productAttrFrom')}}},[_vm._v(\"提交\")]),_vm._v(\" \"),(!_vm.isEdit)?_c('el-button',{on:{\"click\":function($event){_vm.resetForm('productAttrFrom')}}},[_vm._v(\"重置\")]):_vm._e()],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-2295d146\",\"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/pms/productAttr/components/ProductAttrDetail.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-2295d146\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./ProductAttrDetail.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!./ProductAttrDetail.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./ProductAttrDetail.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-2295d146\\\",\\\"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!./ProductAttrDetail.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-2295d146\"\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/pms/productAttr/components/ProductAttrDetail.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}