chunk-16486250.d3e7200c.js 3.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-16486250","chunk-2d0da01e"],{"039c":function(e,t,a){"use strict";a("17b7")},"17b7":function(e,t,a){},4385:function(e,t,a){"use strict";a.r(t);var n=a("7a23"),o=Object(n["withScopeId"])("data-v-2d57b86e");Object(n["pushScopeId"])("data-v-2d57b86e");var r=Object(n["createTextVNode"])("关闭");Object(n["popScopeId"])();var i=o((function(e,t,a,i,c,d){var s=Object(n["resolveComponent"])("ele-pro-table"),l=Object(n["resolveComponent"])("a-button"),u=Object(n["resolveComponent"])("a-modal");return Object(n["openBlock"])(),Object(n["createBlock"])(u,{"wrap-class-name":"ele-modal-movable ele-modal-resizable ele-modal-resizable",visible:c.modalShow,closable:"",keyboard:"",title:"价格变更记录",width:600,maskClosable:!1,onCancel:t[2]||(t[2]=function(e){return c.modalShow=!1})},{footer:o((function(){return[Object(n["createVNode"])(l,{key:"back",onClick:t[1]||(t[1]=function(e){return c.modalShow=!1})},{default:o((function(){return[r]})),_:1})]})),default:o((function(){return[Object(n["createVNode"])(s,{where:c.whereFormData,parseParam:d.parseParam,parseData:d.parseData,ref:"table","row-key":"id",onDone:e.eleTableDone,datasource:c.url,columns:c.columns,method:"POST",initLoad:!1},null,8,["where","parseParam","parseData","onDone","datasource","columns"])]})),_:1},8,["visible"])})),c=a("6a85"),d=a("2c2a"),s=a("c1df"),l=a.n(s),u={id:""},f={mixins:[c["listMixin"]],components:{},name:"priceRecord",data:function(){return{modalShow:!1,moment:l.a,agentOptions:[],toDateString:d["toDateString"],defaultWhere:JSON.parse(JSON.stringify(u)),whereFormData:{},url:"/manager/shopGoods/getGoodsPriceLog",columns:[{title:"操作人",align:"center",dataIndex:"adminer",customRender:function(e){var t=e.text;return t?t.nickname:"--"}},{title:"变更前",align:"center",dataIndex:"before_price",customRender:function(e){var t=e.text;return t?"".concat(t,"元"):"--"}},{title:"变更后",align:"center",dataIndex:"after_price",customRender:function(e){var t=e.text;return t?"".concat(t,"元"):"--"}},{title:"变更时间",align:"center",dataIndex:"createtime",customRender:function(e){var t=e.text;return Object(d["toDateString"])(t)}},{title:"备注",align:"center",dataIndex:"remark"}],id:""}},methods:{openDetail:function(e){var t=this;this.id=e,this.modalShow=!0,this.$nextTick((function(){t.reload()}))},parseData:function(e){return{code:1==e.code?0:e.code,data:e.data.data,count:e.data.total,msg:e.msg}},parseParam:function(e){return e.id=this.id,e}}},m=(a("039c"),a("6b0d")),h=a.n(m);const p=h()(f,[["render",i],["__scopeId","data-v-2d57b86e"]]);t["default"]=p},"6a85":function(e,t,a){"use strict";a.r(t),a.d(t,"listMixin",(function(){return n}));var n={data:function(){return{total:0}},methods:{eleTableDone:function(e,t,a){this.total=a},reload:function(){this.$refs.table.reload()},search:function(){this.$refs.table.reload({page:1})},parseData:function(e){return console.log("res",e),console.log("res.data.data",e.data.data.length),{code:1==e.code?0:e.code,data:e.data.data,count:e.data.total,msg:e.msg}},handleDelete:function(e){var t=this,a=e.id;this.$post(this.deleteUrl,{id:a},!0).then((function(){t.reload()}))},handleDetail:function(e){this.$refs.addedit.openDetail(e)},reset:function(){var e=this;this.whereFormData=JSON.parse(JSON.stringify(this.defaultWhere)),this.$nextTick((function(){e.reload()}))}},created:function(){this.whereFormData=JSON.parse(JSON.stringify(this.defaultWhere))}}}}]);