1 |
- {"version":3,"sources":["webpack:///src/views/sms/coupon/components/CouponDetail.vue","webpack:///./src/views/sms/coupon/components/CouponDetail.vue?6f7f","webpack:///./src/views/sms/coupon/components/CouponDetail.vue","webpack:///src/views/sms/coupon/add.vue","webpack:///./src/views/sms/coupon/add.vue?6691","webpack:///./src/views/sms/coupon/add.vue"],"names":["defaultCoupon","type","name","platform","amount","perLimit","minPoint","startTime","endTime","useType","note","publishCount","productRelationList","productCategoryRelationList","defaultTypeOptions","label","value","defaultPlatformOptions","CouponDetail","props","isEdit","Boolean","default","data","coupon","assign_default","typeOptions","platformOptions","rules","required","message","trigger","min","max","selectProduct","selectProductLoading","selectProductOptions","selectProductCate","productCateOptions","created","_this","this","Object","$route","query","id","then","response","getProductCateList","methods","onSubmit","formName","_this2","$refs","validate","valid","$message","duration","$confirm","confirmButtonText","cancelButtonText","resetFields","$router","back","resetForm","searchProductMethod","_this3","loading","product","keyword","productList","i","length","item","push","productId","productName","productSn","handleAddProductRelation","getProductById","handleDeleteProductRelation","index","row","splice","handleAddProductCategoryRelation","getProductCateByIds","handleDeleteProductCateRelation","_this4","productCate","list","children","j","ids","parentName","productCategoryId","productCategoryName","parentCategoryName","components_CouponDetail","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","shadow","ref","model","label-width","size","callback","$$v","$set","expression","_l","key","_v","prop","placeholder","_n","slot","staticStyle","width","margin-left","margin-right","directives","rawName","clearable","options","on","click","$event","margin-top","border","align","scopedSlots","_u","fn","scope","_s","$index","filterable","remote","reserve-keyword","remote-method","float","color","font-size","rows","_e","staticRenderFns","Component","__webpack_require__","normalizeComponent","ssrContext","__webpack_exports__","add","components","coupon_add"],"mappings":"oHAoJAA,GACAC,KAAA,EACAC,KAAA,KACAC,SAAA,EACAC,OAAA,KACAC,SAAA,EACAC,SAAA,KACAC,UAAA,KACAC,QAAA,KACAC,QAAA,EACAC,KAAA,KACAC,aAAA,KACAC,uBACAC,gCAEAC,IAEAC,MAAA,OACAC,MAAA,IAG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,MAE1GmI,oBCCjB,IAcAC,EAdAC,EAAA,OAcAC,CACAG,EACAE,GATA,EAVA,SAAAJ,GACAF,EAAA,SAaA,kBAEA,MAUAG,EAAA,QAAAJ,EAAA","file":"static/js/11.6e59c886413ee6e056dc.js","sourcesContent":["<template> \r\n <el-card class=\"form-container\" shadow=\"never\">\r\n <el-form :model=\"coupon\"\r\n :rules=\"rules\"\r\n ref=\"couponFrom\"\r\n label-width=\"150px\"\r\n size=\"small\">\r\n <el-form-item label=\"优惠券类型:\">\r\n <el-select v-model=\"coupon.type\">\r\n <el-option\r\n v-for=\"type in typeOptions\"\r\n :key=\"type.value\"\r\n :label=\"type.label\"\r\n :value=\"type.value\">\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item label=\"优惠券名称:\" prop=\"name\">\r\n <el-input v-model=\"coupon.name\" class=\"input-width\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"适用平台:\">\r\n <el-select v-model=\"coupon.platform\">\r\n <el-option\r\n v-for=\"item in platformOptions\"\r\n :key=\"item.value\"\r\n :label=\"item.label\"\r\n :value=\"item.value\">\r\n </el-option>\r\n </el-select>\r\n </el-form-item>\r\n <el-form-item label=\"总发行量:\" prop=\"publishCount\">\r\n <el-input v-model.number=\"coupon.publishCount\" placeholder=\"只能输入正整数\" class=\"input-width\"></el-input>\r\n </el-form-item>\r\n <el-form-item label=\"面额:\" prop=\"amount\">\r\n <el-input v-model.number=\"coupon.amount\" placeholder=\"面值只能是数值,限2位小数\" class=\"input-width\">\r\n <template slot=\"append\">元</template>\r\n </el-input>\r\n </el-form-item>\r\n <el-form-item label=\"每人限领:\">\r\n <el-input v-model=\"coupon.perLimit\" placeholder=\"只能输入正整数\" class=\"input-width\">\r\n <template slot=\"append\">张</template>\r\n </el-input>\r\n </el-form-item>\r\n <el-form-item label=\"使用门槛:\" prop=\"minPoint\">\r\n <el-input v-model.number=\"coupon.minPoint\" placeholder=\"只能输入正整数\" class=\"input-width\">\r\n <template slot=\"prepend\">满</template>\r\n <template slot=\"append\">元可用</template>\r\n </el-input>\r\n </el-form-item>\r\n <el-form-item label=\"领取日期:\" prop=\"enableTime\">\r\n <el-date-picker type=\"date\" placeholder=\"选择日期\" v-model=\"coupon.enableTime\" class=\"input-width\"></el-date-picker>\r\n </el-form-item>\r\n <el-form-item label=\"有效期:\">\r\n <el-date-picker type=\"date\" placeholder=\"选择日期\" v-model=\"coupon.startTime\" style=\"width: 150px\"></el-date-picker>\r\n <span style=\"margin-left: 20px;margin-right: 20px\">至</span>\r\n <el-date-picker type=\"date\" placeholder=\"选择日期\" v-model=\"coupon.endTime\" style=\"width: 150px\"></el-date-picker>\r\n </el-form-item>\r\n <el-form-item label=\"可使用商品:\">\r\n <el-radio-group v-model=\"coupon.useType\">\r\n <el-radio-button :label=\"0\">全场通用</el-radio-button>\r\n <el-radio-button :label=\"1\">指定分类</el-radio-button>\r\n <el-radio-button :label=\"2\">指定商品</el-radio-button>\r\n </el-radio-group>\r\n </el-form-item>\r\n <el-form-item v-show=\"coupon.useType===1\">\r\n <el-cascader\r\n clearable\r\n placeholder=\"请选择分类名称\"\r\n v-model=\"selectProductCate\"\r\n :options=\"productCateOptions\">\r\n </el-cascader>\r\n <el-button @click=\"handleAddProductCategoryRelation()\">添加</el-button>\r\n <el-table ref=\"productCateRelationTable\"\r\n :data=\"coupon.productCategoryRelationList\"\r\n style=\"width: 100%;margin-top: 20px\"\r\n border>\r\n <el-table-column label=\"分类名称\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.parentCategoryName}}>{{scope.row.productCategoryName}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"操作\" align=\"center\" width=\"100\">\r\n <template slot-scope=\"scope\">\r\n <el-button size=\"mini\"\r\n type=\"text\"\r\n @click=\"handleDeleteProductCateRelation(scope.$index, scope.row)\">删除\r\n </el-button>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n </el-form-item>\r\n <el-form-item v-show=\"coupon.useType===2\">\r\n <el-select\r\n v-model=\"selectProduct\"\r\n filterable\r\n remote\r\n reserve-keyword\r\n placeholder=\"商品名称/商品货号\"\r\n :remote-method=\"searchProductMethod\"\r\n :loading=\"selectProductLoading\">\r\n <el-option\r\n v-for=\"item in selectProductOptions\"\r\n :key=\"item.productId\"\r\n :label=\"item.productName\"\r\n :value=\"item.productId\">\r\n <span style=\"float: left\">{{ item.productName }}</span>\r\n <span style=\"float: right; color: #8492a6; font-size: 13px\">NO.{{ item.productSn }}</span>\r\n </el-option>\r\n </el-select>\r\n <el-button @click=\"handleAddProductRelation()\">添加</el-button>\r\n <el-table ref=\"productRelationTable\"\r\n :data=\"coupon.productRelationList\"\r\n style=\"width: 100%;margin-top: 20px\"\r\n border>\r\n <el-table-column label=\"商品名称\" align=\"center\">\r\n <template slot-scope=\"scope\">{{scope.row.productName}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"货号\" align=\"center\" width=\"120\" >\r\n <template slot-scope=\"scope\">NO.{{scope.row.productSn}}</template>\r\n </el-table-column>\r\n <el-table-column label=\"操作\" align=\"center\" width=\"100\">\r\n <template slot-scope=\"scope\">\r\n <el-button size=\"mini\"\r\n type=\"text\"\r\n @click=\"handleDeleteProductRelation(scope.$index, scope.row)\">删除\r\n </el-button>\r\n </template>\r\n </el-table-column>\r\n </el-table>\r\n </el-form-item>\r\n <el-form-item label=\"备注:\">\r\n <el-input\r\n class=\"input-width\"\r\n type=\"textarea\"\r\n :rows=\"5\"\r\n placeholder=\"请输入内容\"\r\n v-model=\"coupon.note\">\r\n </el-input>\r\n </el-form-item>\r\n <el-form-item>\r\n <el-button type=\"primary\" @click=\"onSubmit('couponFrom')\">提交</el-button>\r\n <el-button v-if=\"!isEdit\" @click=\"resetForm('couponFrom')\">重置</el-button>\r\n </el-form-item>\r\n </el-form>\r\n </el-card>\r\n</template>\r\n<script>\r\n import {createCoupon,getCoupon,updateCoupon} from '@/api/coupon';\r\n import {fetchSimpleList as fetchProductList} from '@/api/product';\r\n import {fetchListWithChildren} from '@/api/productCate'\r\n const defaultCoupon = {\r\n type: 0,\r\n name: null,\r\n platform: 0,\r\n amount: null,\r\n perLimit: 1,\r\n minPoint: null,\r\n startTime: null,\r\n endTime: null,\r\n useType: 0,\r\n note: null,\r\n publishCount: null,\r\n productRelationList: [],\r\n productCategoryRelationList: []\r\n };\r\n const defaultTypeOptions = [\r\n {\r\n label: '全场赠券',\r\n value: 0\r\n },\r\n {\r\n label: '会员赠券',\r\n value: 1\r\n },\r\n {\r\n label: '购物赠券',\r\n value: 2\r\n },\r\n {\r\n label: '注册赠券',\r\n value: 3\r\n }\r\n ];\r\n const defaultPlatformOptions = [\r\n {\r\n label: '全平台',\r\n value: 0\r\n },\r\n {\r\n label: '移动平台',\r\n value: 1\r\n },\r\n {\r\n label: 'PC平台',\r\n value: 2\r\n }\r\n ];\r\n export default {\r\n name: 'CouponDetail',\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 coupon: Object.assign({}, defaultCoupon),\r\n typeOptions: Object.assign({}, defaultTypeOptions),\r\n platformOptions: Object.assign({}, defaultPlatformOptions),\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 publishCount: [\r\n {type: 'number',required: true, message: '只能输入正整数', trigger: 'blur'}\r\n ],\r\n amount: [\r\n {type: 'number',required: true,message: '面值只能是数值,0.01-10000,限2位小数',trigger: 'blur'}\r\n ],\r\n minPoint: [\r\n {type: 'number',required: true,message: '只能输入正整数',trigger: 'blur'}\r\n ]\r\n },\r\n selectProduct:null,\r\n selectProductLoading: false,\r\n selectProductOptions:[],\r\n selectProductCate: null,\r\n productCateOptions: []\r\n }\r\n },\r\n created(){\r\n if(this.isEdit){\r\n getCoupon(this.$route.query.id).then(response=>{\r\n this.coupon=response.data;\r\n });\r\n }\r\n this.getProductCateList();\r\n },\r\n methods:{\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 updateCoupon(this.$route.query.id,this.coupon).then(response=>{\r\n this.$refs[formName].resetFields();\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 createCoupon(this.coupon).then(response=>{\r\n this.$refs[formName].resetFields();\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 }\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.coupon = Object.assign({},defaultCoupon);\r\n },\r\n searchProductMethod(query){\r\n if (query !== '') {\r\n this.loading = true;\r\n fetchProductList({keyword:query}).then(response=>{\r\n this.loading=false;\r\n let productList = response.data;\r\n this.selectProductOptions = [];\r\n for(let i=0;i<productList.length;i++){\r\n let item = productList[i];\r\n this.selectProductOptions.push({productId:item.id,productName:item.name,productSn:item.productSn});\r\n }\r\n });\r\n } else {\r\n this.selectProductOptions = [];\r\n }\r\n },\r\n handleAddProductRelation(){\r\n if(this.selectProduct===null){\r\n this.$message({\r\n message: '请先选择商品',\r\n type: 'warning'\r\n });\r\n return\r\n }\r\n this.coupon.productRelationList.push(this.getProductById(this.selectProduct));\r\n this.selectProduct=null;\r\n },\r\n handleDeleteProductRelation(index,row){\r\n this.coupon.productRelationList.splice(index,1);\r\n },\r\n handleAddProductCategoryRelation(){\r\n if(this.selectProductCate===null||this.selectProductCate.length===0){\r\n this.$message({\r\n message: '请先选择商品分类',\r\n type: 'warning'\r\n });\r\n return\r\n }\r\n this.coupon.productCategoryRelationList.push(this.getProductCateByIds(this.selectProductCate));\r\n this.selectProductCate=[];\r\n },\r\n handleDeleteProductCateRelation(index,row){\r\n this.coupon.productCategoryRelationList.splice(index,1);\r\n },\r\n getProductById(id){\r\n for(let i=0;i<this.selectProductOptions.length;i++){\r\n if(id===this.selectProductOptions[i].productId){\r\n return this.selectProductOptions[i];\r\n }\r\n }\r\n return null;\r\n },\r\n getProductCateList() {\r\n fetchListWithChildren().then(response => {\r\n let list = response.data;\r\n this.productCateOptions = [];\r\n for (let i = 0; i < list.length; i++) {\r\n let children = [];\r\n if (list[i].children != null && list[i].children.length > 0) {\r\n for (let j = 0; j < list[i].children.length; j++) {\r\n children.push({label: list[i].children[j].name, value: list[i].children[j].id});\r\n }\r\n }\r\n this.productCateOptions.push({label: list[i].name, value: list[i].id, children: children});\r\n }\r\n });\r\n },\r\n getProductCateByIds(ids){\r\n let name;\r\n let parentName;\r\n for (let i = 0; i < this.productCateOptions.length; i++) {\r\n if (this.productCateOptions[i].value === ids[0]) {\r\n parentName = this.productCateOptions[i].label;\r\n for (let j = 0; j < this.productCateOptions[i].children.length; j++) {\r\n if (this.productCateOptions[i].children[j].value === ids[1]) {\r\n name = this.productCateOptions[i].children[j].label;\r\n }\r\n }\r\n }\r\n }\r\n return {productCategoryId: ids[1], productCategoryName: name, parentCategoryName: parentName};\r\n }\r\n }\r\n }\r\n</script>\r\n<style scoped>\r\n .input-width {\r\n width: 60%;\r\n }\r\n</style>\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/sms/coupon/components/CouponDetail.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:\"couponFrom\",attrs:{\"model\":_vm.coupon,\"rules\":_vm.rules,\"label-width\":\"150px\",\"size\":\"small\"}},[_c('el-form-item',{attrs:{\"label\":\"优惠券类型:\"}},[_c('el-select',{model:{value:(_vm.coupon.type),callback:function ($$v) {_vm.$set(_vm.coupon, \"type\", $$v)},expression:\"coupon.type\"}},_vm._l((_vm.typeOptions),function(type){return _c('el-option',{key:type.value,attrs:{\"label\":type.label,\"value\":type.value}})}))],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"优惠券名称:\",\"prop\":\"name\"}},[_c('el-input',{staticClass:\"input-width\",model:{value:(_vm.coupon.name),callback:function ($$v) {_vm.$set(_vm.coupon, \"name\", $$v)},expression:\"coupon.name\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"适用平台:\"}},[_c('el-select',{model:{value:(_vm.coupon.platform),callback:function ($$v) {_vm.$set(_vm.coupon, \"platform\", $$v)},expression:\"coupon.platform\"}},_vm._l((_vm.platformOptions),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}))],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"总发行量:\",\"prop\":\"publishCount\"}},[_c('el-input',{staticClass:\"input-width\",attrs:{\"placeholder\":\"只能输入正整数\"},model:{value:(_vm.coupon.publishCount),callback:function ($$v) {_vm.$set(_vm.coupon, \"publishCount\", _vm._n($$v))},expression:\"coupon.publishCount\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"面额:\",\"prop\":\"amount\"}},[_c('el-input',{staticClass:\"input-width\",attrs:{\"placeholder\":\"面值只能是数值,限2位小数\"},model:{value:(_vm.coupon.amount),callback:function ($$v) {_vm.$set(_vm.coupon, \"amount\", _vm._n($$v))},expression:\"coupon.amount\"}},[_c('template',{slot:\"append\"},[_vm._v(\"元\")])],2)],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"每人限领:\"}},[_c('el-input',{staticClass:\"input-width\",attrs:{\"placeholder\":\"只能输入正整数\"},model:{value:(_vm.coupon.perLimit),callback:function ($$v) {_vm.$set(_vm.coupon, \"perLimit\", $$v)},expression:\"coupon.perLimit\"}},[_c('template',{slot:\"append\"},[_vm._v(\"张\")])],2)],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"使用门槛:\",\"prop\":\"minPoint\"}},[_c('el-input',{staticClass:\"input-width\",attrs:{\"placeholder\":\"只能输入正整数\"},model:{value:(_vm.coupon.minPoint),callback:function ($$v) {_vm.$set(_vm.coupon, \"minPoint\", _vm._n($$v))},expression:\"coupon.minPoint\"}},[_c('template',{slot:\"prepend\"},[_vm._v(\"满\")]),_vm._v(\" \"),_c('template',{slot:\"append\"},[_vm._v(\"元可用\")])],2)],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"领取日期:\",\"prop\":\"enableTime\"}},[_c('el-date-picker',{staticClass:\"input-width\",attrs:{\"type\":\"date\",\"placeholder\":\"选择日期\"},model:{value:(_vm.coupon.enableTime),callback:function ($$v) {_vm.$set(_vm.coupon, \"enableTime\", $$v)},expression:\"coupon.enableTime\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"有效期:\"}},[_c('el-date-picker',{staticStyle:{\"width\":\"150px\"},attrs:{\"type\":\"date\",\"placeholder\":\"选择日期\"},model:{value:(_vm.coupon.startTime),callback:function ($$v) {_vm.$set(_vm.coupon, \"startTime\", $$v)},expression:\"coupon.startTime\"}}),_vm._v(\" \"),_c('span',{staticStyle:{\"margin-left\":\"20px\",\"margin-right\":\"20px\"}},[_vm._v(\"至\")]),_vm._v(\" \"),_c('el-date-picker',{staticStyle:{\"width\":\"150px\"},attrs:{\"type\":\"date\",\"placeholder\":\"选择日期\"},model:{value:(_vm.coupon.endTime),callback:function ($$v) {_vm.$set(_vm.coupon, \"endTime\", $$v)},expression:\"coupon.endTime\"}})],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"可使用商品:\"}},[_c('el-radio-group',{model:{value:(_vm.coupon.useType),callback:function ($$v) {_vm.$set(_vm.coupon, \"useType\", $$v)},expression:\"coupon.useType\"}},[_c('el-radio-button',{attrs:{\"label\":0}},[_vm._v(\"全场通用\")]),_vm._v(\" \"),_c('el-radio-button',{attrs:{\"label\":1}},[_vm._v(\"指定分类\")]),_vm._v(\" \"),_c('el-radio-button',{attrs:{\"label\":2}},[_vm._v(\"指定商品\")])],1)],1),_vm._v(\" \"),_c('el-form-item',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.coupon.useType===1),expression:\"coupon.useType===1\"}]},[_c('el-cascader',{attrs:{\"clearable\":\"\",\"placeholder\":\"请选择分类名称\",\"options\":_vm.productCateOptions},model:{value:(_vm.selectProductCate),callback:function ($$v) {_vm.selectProductCate=$$v},expression:\"selectProductCate\"}}),_vm._v(\" \"),_c('el-button',{on:{\"click\":function($event){_vm.handleAddProductCategoryRelation()}}},[_vm._v(\"添加\")]),_vm._v(\" \"),_c('el-table',{ref:\"productCateRelationTable\",staticStyle:{\"width\":\"100%\",\"margin-top\":\"20px\"},attrs:{\"data\":_vm.coupon.productCategoryRelationList,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"label\":\"分类名称\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.parentCategoryName)+\">\"+_vm._s(scope.row.productCategoryName))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作\",\"align\":\"center\",\"width\":\"100\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"text\"},on:{\"click\":function($event){_vm.handleDeleteProductCateRelation(scope.$index, scope.row)}}},[_vm._v(\"删除\\n \")])]}}])})],1)],1),_vm._v(\" \"),_c('el-form-item',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.coupon.useType===2),expression:\"coupon.useType===2\"}]},[_c('el-select',{attrs:{\"filterable\":\"\",\"remote\":\"\",\"reserve-keyword\":\"\",\"placeholder\":\"商品名称/商品货号\",\"remote-method\":_vm.searchProductMethod,\"loading\":_vm.selectProductLoading},model:{value:(_vm.selectProduct),callback:function ($$v) {_vm.selectProduct=$$v},expression:\"selectProduct\"}},_vm._l((_vm.selectProductOptions),function(item){return _c('el-option',{key:item.productId,attrs:{\"label\":item.productName,\"value\":item.productId}},[_c('span',{staticStyle:{\"float\":\"left\"}},[_vm._v(_vm._s(item.productName))]),_vm._v(\" \"),_c('span',{staticStyle:{\"float\":\"right\",\"color\":\"#8492a6\",\"font-size\":\"13px\"}},[_vm._v(\"NO.\"+_vm._s(item.productSn))])])})),_vm._v(\" \"),_c('el-button',{on:{\"click\":function($event){_vm.handleAddProductRelation()}}},[_vm._v(\"添加\")]),_vm._v(\" \"),_c('el-table',{ref:\"productRelationTable\",staticStyle:{\"width\":\"100%\",\"margin-top\":\"20px\"},attrs:{\"data\":_vm.coupon.productRelationList,\"border\":\"\"}},[_c('el-table-column',{attrs:{\"label\":\"商品名称\",\"align\":\"center\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(_vm._s(scope.row.productName))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"货号\",\"align\":\"center\",\"width\":\"120\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_vm._v(\"NO.\"+_vm._s(scope.row.productSn))]}}])}),_vm._v(\" \"),_c('el-table-column',{attrs:{\"label\":\"操作\",\"align\":\"center\",\"width\":\"100\"},scopedSlots:_vm._u([{key:\"default\",fn:function(scope){return [_c('el-button',{attrs:{\"size\":\"mini\",\"type\":\"text\"},on:{\"click\":function($event){_vm.handleDeleteProductRelation(scope.$index, scope.row)}}},[_vm._v(\"删除\\n \")])]}}])})],1)],1),_vm._v(\" \"),_c('el-form-item',{attrs:{\"label\":\"备注:\"}},[_c('el-input',{staticClass:\"input-width\",attrs:{\"type\":\"textarea\",\"rows\":5,\"placeholder\":\"请输入内容\"},model:{value:(_vm.coupon.note),callback:function ($$v) {_vm.$set(_vm.coupon, \"note\", $$v)},expression:\"coupon.note\"}})],1),_vm._v(\" \"),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":function($event){_vm.onSubmit('couponFrom')}}},[_vm._v(\"提交\")]),_vm._v(\" \"),(!_vm.isEdit)?_c('el-button',{on:{\"click\":function($event){_vm.resetForm('couponFrom')}}},[_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-2e927c8f\",\"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/sms/coupon/components/CouponDetail.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-2e927c8f\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./CouponDetail.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!./CouponDetail.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./CouponDetail.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-2e927c8f\\\",\\\"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!./CouponDetail.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-2e927c8f\"\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/sms/coupon/components/CouponDetail.vue\n// module id = null\n// module chunks = ","<template> \r\n <coupon-detail :isEdit=\"false\"></coupon-detail>\r\n</template>\r\n<script>\r\n import CouponDetail from './components/CouponDetail'\r\n export default {\r\n name: 'addCoupon',\r\n components: { CouponDetail }\r\n }\r\n</script>\r\n<style scoped>\r\n</style>\r\n\r\n\r\n\n\n\n// WEBPACK FOOTER //\n// src/views/sms/coupon/add.vue","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('coupon-detail',{attrs:{\"isEdit\":false}})}\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-cbf63dee\",\"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/sms/coupon/add.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-cbf63dee\\\",\\\"scoped\\\":true,\\\"hasInlineConfig\\\":false}!../../../../node_modules/vue-loader/lib/selector?type=styles&index=0!./add.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!./add.vue\"\nimport __vue_script__ from \"!!babel-loader!../../../../node_modules/vue-loader/lib/selector?type=script&index=0!./add.vue\"\n/* template */\nimport __vue_template__ from \"!!../../../../node_modules/vue-loader/lib/template-compiler/index?{\\\"id\\\":\\\"data-v-cbf63dee\\\",\\\"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!./add.vue\"\n/* template functional */\nvar __vue_template_functional__ = false\n/* styles */\nvar __vue_styles__ = injectStyle\n/* scopeId */\nvar __vue_scopeId__ = \"data-v-cbf63dee\"\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/sms/coupon/add.vue\n// module id = null\n// module chunks = "],"sourceRoot":""}
|