| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fd53da7c"],{2262:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"divBox"},[a("el-card",{staticClass:"box-card dataBox"},[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"上门服务流程",name:"1"}}),t._v(" "),a("el-tab-pane",{attrs:{label:"到店服务流程",name:"2"}})],1),t._v(" "),1==t.activeName?a("el-table",{staticClass:"mt10",staticStyle:{width:"100%"},attrs:{data:t.tableData1}},[a("el-table-column",{attrs:{prop:"name",label:"节点名称",width:"180"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"状态",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.status?a("el-switch",{attrs:{disabled:"","active-value":"1","inactive-value":"0","active-text":"开启","inactive-text":"关闭"},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}}):a("el-switch",{attrs:{"active-value":"1","inactive-value":"0","active-text":"开启","inactive-text":"关闭"},on:{change:function(a){return t.statusChange(e.row)}},model:{value:t.form[e.row.key],callback:function(a){t.$set(t.form,e.row.key,a)},expression:"form[scope.row.key]"}})]}}],null,!1,501488418)}),t._v(" "),a("el-table-column",{attrs:{prop:"info",label:"说明"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{domProps:{innerHTML:t._s(t.formattedGreeting(e.row.info))}})]}}],null,!1,1214583884)}),t._v(" "),a("el-table-column",{attrs:{prop:"address",label:"操作",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.action?a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(a){return t.open(e.row)}}},[t._v(t._s(e.row.action))]):t._e()]}}],null,!1,3542787079)})],1):t._e(),t._v(" "),2==t.activeName?a("el-table",{staticClass:"mt10",staticStyle:{width:"100%"},attrs:{data:t.tableData2}},[a("el-table-column",{attrs:{prop:"name",label:"节点名称",width:"180"}}),t._v(" "),a("el-table-column",{attrs:{prop:"status",label:"状态",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.status?a("el-switch",{attrs:{disabled:"","active-value":"1","inactive-value":"0","active-text":"开启","inactive-text":"关闭"},model:{value:e.row.status,callback:function(a){t.$set(e.row,"status",a)},expression:"scope.row.status"}}):a("el-switch",{attrs:{"active-value":"1","inactive-value":"0","active-text":"开启","inactive-text":"关闭"},on:{change:function(a){return t.statusChange(e.row)}},model:{value:t.form[e.row.key],callback:function(a){t.$set(t.form,e.row.key,a)},expression:"form[scope.row.key]"}})]}}],null,!1,501488418)}),t._v(" "),a("el-table-column",{attrs:{prop:"info",label:"说明"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",{domProps:{innerHTML:t._s(t.formattedGreeting(e.row.info))}})]}}],null,!1,1214583884)})],1):t._e()],1),t._v(" "),a("el-dialog",{attrs:{title:"管理表单设置",visible:t.clockVisible,width:"600px"},on:{"update:visible":function(e){t.clockVisible=e}}},[a("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules,"label-width":"100px"}},[1===t.type?[a("el-form-item",{attrs:{label:"打卡限制:"}},[a("el-radio-group",{on:{change:t.typeChange},model:{value:t.radioType,callback:function(e){t.radioType=e},expression:"radioType"}},[a("el-radio",{attrs:{label:1}},[t._v("服务范围内打卡")]),t._v(" "),a("el-radio",{attrs:{label:2}},[t._v("不限制打卡地址")])],1),t._v(" "),a("div",{staticClass:"tip"},[t._v("未配置地图时,请选择不限制打卡地址")])],1),t._v(" "),1==t.radioType?a("el-form-item",{attrs:{label:"打卡范围:",prop:"checkin_radius"}},[a("el-input",{staticStyle:{width:"100%"},attrs:{size:"small",type:"number",min:20},model:{value:t.form.checkin_radius,callback:function(e){t.$set(t.form,"checkin_radius",t._n(e))},expression:"form.checkin_radius"}},[a("span",{staticClass:"tip",attrs:{slot:"suffix"},slot:"suffix"},[t._v("米")])])],1):t._e(),t._v(" "),a("el-form-item",{attrs:{label:"打卡要求:"}},[a("el-radio-group",{model:{value:t.form.checkin_take_photo,callback:function(e){t.$set(t.form,"checkin_take_photo",e)},expression:"form.checkin_take_photo"}},[a("el-radio",{attrs:{label:"1"}},[t._v("需要拍照备注")]),t._v(" "),a("el-radio",{attrs:{label:"0"}},[t._v("跳过拍照备注环节")])],1)],1)]:t._e(),t._v(" "),2===t.type?[a("el-form-item",{attrs:{label:"关联表单:",prop:"trace_form_id"}},[a("div",{staticClass:"flex"},[a("el-select",{staticClass:"pageWidth",attrs:{size:"small",clearable:""},on:{change:t.getFormInfo},model:{value:t.form.trace_form_id,callback:function(e){t.$set(t.form,"trace_form_id",e)},expression:"form.trace_form_id"}},t._l(t.formList,(function(e){return a("el-option",{key:e.form_id,attrs:{value:e.form_id,label:e.name}},[t._v(t._s(e.name)+"\n ")])})),1),t._v(" "),a("router-link",{staticClass:"link",attrs:{to:{path:this.roterPre+"/systemForm/form_create?id=0"},target:"_blank"}},[a("el-button",{staticClass:"ml15 mr14",attrs:{size:"small"}},[t._v("添加系统表单")])],1),t._v(" "),a("el-button",{staticStyle:{height:"32px"},attrs:{size:"small"},on:{click:t.getFormList}},[t._v("刷新")])],1),t._v(" "),a("div",{staticClass:"tip"},[t._v("服务人员结束服务之前,必须提交此表单内容。")])]),t._v(" "),t.form.trace_form_id?a("el-form-item",[a("div",{staticStyle:{width:"350px"}},[a("iframe",{ref:"iframe",staticClass:"iframe-box",attrs:{id:"iframe",src:t.formUrl,frameborder:"0"}})])]):t._e()]:t._e()],2),t._v(" "),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(e){t.clockVisible=!1}}},[t._v("取消")]),t._v(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:t.submit}},[t._v("确定")])],1)],1)],1)},s=[],o=(a("a481"),a("c4c8")),r=a("bbcc"),n=a("83d6"),l={name:"LabelList",data:function(){return{activeName:"1",type:1,clockVisible:!1,form:{trace_form_id:"",checkin_radius:0,enable_assigned:"1",checkin_take_photo:"1",enable_checkin:"1",enable_trace:"1"},radioType:1,rules:{checkin_radius:[{required:!0,message:"请输入打卡范围",trigger:"change"}],trace_form_id:[{required:!0,message:"请选择关联表单",trigger:"change"}]},roterPre:n["roterPre"],formUrl:"",formList:[],baseURL:r["a"].httpUrl||"http://localhost:8080",tableData1:[{name:"用户预约",status:"1",disable:!0,info:" 用户预约为必要节点,不可关闭"},{name:"派单",key:"enable_assigned",info:"派单开启则由管理员指派一个服务人员,派单关闭则为服务人员抢单模式"},{name:"上门打卡",key:"enable_checkin",info:"上门打卡关闭之后,则无需开始服务直接进入下一环节",type:1,action:"上门打卡范围"},{name:"服务过程留凭",key:"enable_trace",info:"服务过程留凭根据关联系统表单填写提交,服务过程选填可跳过,关闭则直接进入下一环节",action:"关联系统表单",type:2},{name:"结束服务",status:"1",disable:!0,info:"服务人员服务完成必须核销"}],tableData2:[{name:"用户预约",status:"1",disable:!0,info:" 用户预约为必要节点,不可关闭"},{name:"派单",key:"enable_tostore_assigned",info:"派单开启则由管理员指派一个服务人员,派单关闭则为服务人员均可核销"},{name:"结束服务",status:"1",disable:!0,info:"服务人员服务完成必须核销"}]}},mounted:function(){this.getFormList(),this.getdata()},methods:{typeChange:function(t){2==this.radioType?this.form.checkin_radius=0:this.form.checkin_radius=500},open:function(t){this.type=t.type,1==t.type||this.getFormInfo(),this.clockVisible=!0},formattedGreeting:function(t){return 1==this.activeName?t.replace("派单关闭则为服务人员抢单模式",'<span style="color: #FF7D00">派单关闭则为</span>服务人员<span style="color: #FF7D00">抢单模式</span>'):t.replace("派单关闭则为服务人员均可核销",'<span style="color: #FF7D00">派单关闭则为</span>服务人员<span style="color: #FF7D00">均可核销</span>')},getdata:function(){var t=this;Object(o["G"])().then((function(e){t.form=e.data.reservation,t.form.checkin_take_photo=e.data.reservation.checkin_take_photo?e.data.reservation.checkin_take_photo+"":"0",t.getFormInfo(),t.form.checkin_radius&&0!=t.form.checkin_radius?t.radioType=1:t.radioType=2}))},submit:function(){var t=this;this.$refs["form"].validate((function(e){e&&(t.statusChange(),t.clockVisible=!1)}))},statusChange:function(){var t=this;Object(o["B"])("reservation",this.form).then((function(e){t.$message.success(e.message)})).catch((function(e){t.$message.error(e.message)}))},getFormList:function(){var t=this;Object(o["k"])().then((function(e){t.formList=e.data})).catch((function(e){t.$message.error(e.message)}))},getFormInfo:function(){if(this.form.trace_form_id){var t=1e3*(new Date).getTime(),e="".concat(this.baseURL,"/pages/admin/system_form/index?inner_frame=1&time=").concat(t,"&form_id=").concat(this.form.trace_form_id);this.formUrl=e}}}},c=l,m=(a("253a"),a("2877")),u=Object(m["a"])(c,i,s,!1,null,"8ec7e9f0",null);e["default"]=u.exports},"253a":function(t,e,a){"use strict";a("a76f")},a76f:function(t,e,a){}}]);
|