mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 14:40:44 +00:00
2 lines
5.0 KiB
JavaScript
Vendored
2 lines
5.0 KiB
JavaScript
Vendored
"use strict";(self["webpackChunkerp"]=self["webpackChunkerp"]||[]).push([[64],{1404:function(e,t,r){r.r(t),r.d(t,{default:function(){return d}});var s=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pageBox"},[t("el-card",[t("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],staticStyle:{width:"100%"},attrs:{border:"",data:e.tableData}},[t("el-table-column",{attrs:{prop:"name",label:"店铺名称"}}),t("el-table-column",{attrs:{prop:"ship.expires_at",label:"授权过期时间点"}}),t("el-table-column",{attrs:{prop:"ship.owner_id",label:"商家店铺id"}}),t("el-table-column",{attrs:{prop:"ship.owner_name",label:"商家账号名称"}}),t("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(r){return["未授权"===r.row.status?t("el-button",{attrs:{type:"danger",size:"small"}},[t("a",{attrs:{href:r.row.authUrl,target:"_blank",rel:"noopener noreferrer"}},[e._v("授权")])]):e._e(),"已授权"===r.row.status?[t("el-button",{attrs:{type:"success",disabled:!0,size:"small"}},[e._v(e._s(r.row.status))])]:e._e(),"重新授权"===r.row.status?[t("el-button",{attrs:{type:"danger",target:"_blank",size:"small"}},[t("a",{attrs:{href:r.row.authUrl,rel:"noopener noreferrer"}},[e._v("重新授权")])])]:e._e(),r.row.ship?t("el-button",{attrs:{type:"info",size:"small"},on:{click:function(t){return e.getSenders(r.row)}}},[e._v("发货信息")]):e._e()]}}])})],1)],1),t("el-dialog",{attrs:{title:"发货信息",visible:e.dialogVisible,"close-on-click-modal":!1},on:{"update:visible":function(t){e.dialogVisible=t}}},[t("el-form",{ref:"sendersForm",attrs:{model:e.sendersForm,"label-width":"100px"}},[e._l(e.sendersForm.senderList,(function(r,s){return[t("div",[t("p",[e._v("发货地址 "+e._s(s+1))]),t("el-form-item",{attrs:{label:"详细地址"}},[e._v(" "+e._s(r.province)+" "+e._s(r.city)+" "+e._s(r.district)+" "+e._s(r.detail)+" ")]),t("el-form-item",{attrs:{label:"发货人",prop:"name"}},[t("el-input",{model:{value:r.name,callback:function(t){e.$set(r,"name",t)},expression:"item.name"}})],1),t("el-form-item",{attrs:{label:"手机号",prop:"mobile"}},[t("el-input",{model:{value:r.mobile,callback:function(t){e.$set(r,"mobile",t)},expression:"item.mobile"}})],1),t("el-form-item",{attrs:{label:"排序",prop:"sort"}},[t("el-input",{model:{value:r.sort,callback:function(t){e.$set(r,"sort",t)},expression:"item.sort"}})],1),t("el-form-item",{attrs:{label:"状态"}},[t("el-radio-group",{model:{value:r.status,callback:function(t){e.$set(r,"status",t)},expression:"item.status"}},[t("el-radio",{attrs:{label:1}},[e._v("启用")]),t("el-radio",{attrs:{label:0}},[e._v("停用")])],1)],1),t("el-form-item",{attrs:{label:"类型"}},[t("el-radio-group",{model:{value:r.timed_delivery_code,callback:function(t){e.$set(r,"timed_delivery_code",t)},expression:"item.timed_delivery_code"}},[t("el-radio",{attrs:{label:247}},[e._v("电商标快")]),t("el-radio",{attrs:{label:266}},[e._v("空运")])],1)],1)],1)]})),t("el-form-item",[t("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.saveSenders()}}},[e._v("保存")]),t("el-button",{on:{click:function(t){e.dialogVisible=!1}}},[e._v("取消")])],1)],2)],1)],1)},a=[],n=r(9998),o={data(){return{storeId:[],loading:!0,tableData:[],dialogVisible:!1,sendersForm:{senderList:[]}}},mounted(){this.getShipList()},methods:{getShipList(){(0,n.OV)().then((e=>{this.tableData=e.data.data})),this.loading=!1},getSenders(e){(0,n.tA)(e.id,e.ship.id).then((e=>{this.sendersForm.senderList=e.data.data,this.dialogVisible=!0}))},saveSenders(){(0,n.Vq)(this.sendersForm).then((e=>{200===e.status?this.$message.success(e.data.message):this.$message.error(e.data.message)}))}}},l=o,i=r(1001),u=(0,i.Z)(l,s,a,!1,null,"51fc0326",null),d=u.exports},9998:function(e,t,r){r.d(t,{$i:function(){return n},C$:function(){return h},OV:function(){return d},Vq:function(){return c},_d:function(){return u},dT:function(){return m},hA:function(){return a},i$:function(){return f},nH:function(){return o},ow:function(){return i},rV:function(){return l},tA:function(){return p}});var s=r(8430);function a(){return(0,s.Z)({url:"/api/shop_platforms",method:"get"})}function n(e){return(0,s.Z)({url:"/api/shops",method:"post",data:e})}function o(e){return(0,s.Z)({url:"/api/shops",method:"get",params:e})}function l(e){return(0,s.Z)({url:`/api/download/${e}/goods`,method:"get"})}function i(e,t){return(0,s.Z)({url:`/api/shops/${e}`,method:"patch",params:t})}function u(e){return(0,s.Z)({url:"/api/sync/shop/stock",method:"put",params:e})}function d(){return(0,s.Z)({url:"/api/shop/ship",method:"get"})}function p(e,t){return(0,s.Z)({url:"/api/shop/ship/senders",method:"get",params:{shop_id:e,shop_ship_id:t}})}function c(e){return(0,s.Z)({url:"/api/shop/ship/senders",method:"post",params:e})}function m(e){return(0,s.Z)({url:"/api/order/reset",method:"get"})}function f(e){return(0,s.Z)({url:"/api/shop_sends",method:"get",params:e})}function h(e){return(0,s.Z)({url:"/api/shop_sends",method:"post",params:e})}}}]);
|
|
//# sourceMappingURL=64.2db5913e.js.map
|