chunk-2b08471c.787f5133.js 31 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b08471c"],{"0fee":function(t,e,a){},"1d36":function(t,e,a){"use strict";var n=a("d282"),i=a("9884"),o=Object(n["a"])("sidebar"),s=o[0],r=o[1];e["a"]=s({mixins:[Object(i["b"])("vanSidebar")],model:{prop:"activeKey"},props:{activeKey:{type:[Number,String],default:0}},data:function(){return{index:+this.activeKey}},watch:{activeKey:function(){this.setIndex(+this.activeKey)}},methods:{setIndex:function(t){t!==this.index&&(this.index=t,this.$emit("change",t))}},render:function(){var t=arguments[0];return t("div",{class:r()},[this.slots()])}})},"241e":function(t,e,a){"use strict";var n=a("c31d"),i=a("d282"),o=a("9884"),s=a("48f4"),r=a("6f2f"),c=Object(i["a"])("sidebar-item"),l=c[0],u=c[1];e["a"]=l({mixins:[Object(o["a"])("vanSidebar")],props:Object(n["a"])({},s["c"],{dot:Boolean,info:[Number,String],badge:[Number,String],title:String,disabled:Boolean}),computed:{select:function(){return this.index===+this.parent.activeKey}},methods:{onClick:function(){this.disabled||(this.$emit("click",this.index),this.parent.$emit("input",this.index),this.parent.setIndex(this.index),Object(s["b"])(this.$router,this))}},render:function(){var t,e,a=arguments[0];return a("a",{class:u({select:this.select,disabled:this.disabled}),on:{click:this.onClick}},[a("div",{class:u("text")},[null!=(t=this.slots("title"))?t:this.title,a(r["a"],{attrs:{dot:this.dot,info:null!=(e=this.badge)?e:this.info},class:u("info")})])])}})},3878:function(t,e,a){"use strict";a("a94f")},"408a":function(t,e,a){"use strict";var n=a("e330");t.exports=n(1..valueOf)},4434:function(t,e,a){"use strict";a("7db0"),a("c740"),a("d81d"),a("d3b7");var n=function(){var t=this,e=t._self._c;return e("span",[t.dropDown?e("span",{staticClass:"px-2",on:{click:t.showSelect}},[t._v(" "+t._s(t.columns.find((function(e){return e[t.valueKey]==t.value}))?t.columns.find((function(e){return e[t.valueKey]==t.value}))[t.labelKey]:"")+" "),e("van-icon",{attrs:{name:"arrow-down"}})],1):e("van-field",{attrs:{readonly:"",clickable:t.edit,border:t.border,label:t.label,value:t.columns.find((function(e){return e[t.valueKey]==t.value}))?t.columns.find((function(e){return e[t.valueKey]==t.value}))[t.labelKey]:"",placeholder:t.placeholder,disabled:t.disabled,rules:t.rules},on:{click:t.showSelect}}),e("van-popup",{attrs:{round:"",position:"bottom"},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[e("van-picker",{attrs:{"show-toolbar":"",title:t.label,columns:t.columns.map((function(e){return{text:e[t.labelKey],value:e[t.valueKey]}})),"default-index":t.columns.find((function(e){return e[t.valueKey]==t.value}))?t.columns.findIndex((function(e){return e[t.valueKey]==t.value})):0},on:{cancel:function(e){t.showPicker=!1},confirm:t.onConfirm}})],1)],1)},i=[],o={name:"Select",components:{},props:{value:{default:""},label:{type:String,default:""},placeholder:{type:String,default:""},disabled:{type:Boolean,default:!1},border:{type:Boolean,default:!1},data:{type:String,default:""},edit:{type:Boolean,default:!0},rules:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},labelKey:{default:"name"},valueKey:{default:"id"},dropDown:{type:Boolean,default:!1}},data:function(){return{showPicker:!1}},methods:{showSelect:function(){this.edit&&(this.showPicker=!0)},onConfirm:function(t){t=t.value;this.$emit("input",t),this.$emit("change",t),this.showPicker=!1}}},s=o,r=a("2877"),c=Object(r["a"])(s,n,i,!1,null,"659a7320",null);e["a"]=c.exports},"45f0":function(t,e,a){"use strict";a.r(e);a("99af"),a("4de4"),a("d81d"),a("f4b3"),a("e9c4"),a("d3b7");var n=function(){var t=this,e=t._self._c;return t.worksite.id?e("div",[e("van-nav-bar",{staticClass:"shadow mb-4",attrs:{title:"工地详情","left-text":"返回","left-arrow":""},on:{"click-left":function(e){return t.$router.back(-1)}}}),e("div",{staticClass:"shadow mx-auto"},[e("div",{staticClass:"px-4 bg-white py-2 text-sm"},[e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-semibold"},[t._v("工地编号:")]),t._v(t._s(t.worksite.id)+" ")]),e("div",{staticClass:"pb-1"},[e("span",[e("span",{staticClass:"font-semibold",staticStyle:{"font-weight":"bold"}},[t._v(" 业主信息:")]),t._v(t._s(t.worksite.username))]),e("span",{staticClass:"text-gray-400"},[t._v(" "+t._s(t.worksite.phone))])]),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-semibold"},[t._v("装修地址:")]),e("span",[t._v(t._s(t.worksite.address)+" "+t._s(t.worksite.village)+" "+t._s(t.worksite.room_no))]),t.worksite.area?e("span",{staticClass:"text-gray-400"},[t._v(" "+t._s(t.worksite.area)+"㎡")]):t._e()]),t.worksite.manager_id?e("div",{staticClass:"pb-1 flex items-center"},[e("span",{staticClass:"font-bold"},[t._v("项目经理:")]),e("span",{staticClass:"flex items-center"},[e("span",[t._v(t._s(t.worksite.manager_name))]),t.worksite.manager_phone?e("span",{staticClass:"flex items-center"},[t._v("("+t._s(t.worksite.manager_phone)+")"),e("a",{staticClass:"flex items-center",attrs:{href:"tel:"+t.worksite.manager_phone}},[e("van-icon",{attrs:{name:"phone",size:"22",color:"#009688"}})],1)]):t._e()])]):t._e(),t.worksite.starttime?e("div",{staticClass:"pb-1 flex items-center"},[e("span",{staticClass:"font-bold"},[t._v("开工时间:")]),e("span",{staticClass:"flex items-center"},[e("span",{model:{value:t.siteStartTime=t.worksite.starttime,callback:function(e){t.$set(t.siteStartTime=t.worksite,"starttime",e)},expression:"siteStartTime = worksite.starttime"}},[t._v(t._s(t.dateFormat("YYYY-mm-dd HH:MM",new Date(1e3*t.worksite.starttime))))])])]):t._e()])]),e("van-tabs",{staticClass:"bg-white mt-1",attrs:{swipeable:"",sticky:""},on:{click:t.onClick},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},t._l(t.groupedLists,(function(a,n){return e("div",{key:n},[t.supplier?t._e():e("van-tab",{key:n,staticClass:"bg-gray-100 py-2",attrs:{title:t.levelOne[n]}},[e("van-collapse",{model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},[e("div",[e("p",{staticClass:"bg-blue-600 bg-opacity-80 text-white px-4 py-2"},[t._v("项目")]),e("ul",t._l(a,(function(a,n){return e("li",{key:n,staticClass:"shadow mb-1"},[e("div",{staticClass:"mx-auto"},[e("div",{staticClass:"px-4 bg-white py-2 text-sm"},[e("div",{staticClass:"pb-2 flex items-center justify-between border-b mb-2",staticStyle:{"font-weight":"bold"}},[e("span",{staticClass:"font-bold",staticStyle:{width:"85%"}},[t._v(t._s(n+1)+". "+t._s(a.pick_name))]),e("van-tag",{attrs:{mark:"",color:t.getTagType(a.item_status)}},[t._v(t._s(t.itemStatusMenu[a.item_status]))])],1),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-semibold"},[t._v("标准:")]),t._v(t._s(a.standard))]),a.pictures&&a.pictures.split(",").filter((function(t){return t})).length>0?e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-semibold"},[t._v("样例展示:")]),t._l(a.pictures.split(",").filter((function(t){return t})),(function(n,i){return e("van-image",{key:i,staticClass:"mr-1 border border-gray-100",staticStyle:{width:"5rem",height:"5rem",display:"inline-block"},attrs:{src:"".concat(t.imageDomain).concat(n)},on:{click:function(e){t.ImagePreview({images:a.pictures.split(",").filter((function(t){return t})).map((function(e){return"".concat(t.imageDomain).concat(e)})),startPosition:0,showIndex:!0,closeable:!0})}}})}))],2):t._e(),e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-semibold",staticStyle:{"font-weight":"bold"}},[t._v("周期:")]),t._v(t._s(a.cycle)+"天")]),a.name?e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-semibold"},[t._v("工人:")]),t._v(t._s(a.name))]):t._e(),"worker"==a.confirm_type||"both"==a.confirm_type?e("div"):t._e(),a.taskSubmissionLog?e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-semibold"},[t._v("提交记录:")]),e("van-steps",{attrs:{direction:"vertical",active:a.taskSubmissionLog.length}},t._l(a.taskSubmissionLog,(function(a,n){return e("van-step",{key:n},[e("h3",[t._v(t._s(t.dateFormat("YYYY-mm-dd HH:MM",new Date(1e3*a.created_at))))]),e("h3",[t._v("提交内容:"+t._s(a.content))]),e("h3",t._l(t.jsonArray(a.pictures),(function(n,i){return e("van-image",{key:i,staticClass:"mr-1 border border-gray-100",staticStyle:{width:"5rem",height:"5rem",display:"inline-block"},attrs:{src:"".concat(n)},on:{click:function(e){t.ImagePreview({images:t.jsonArray(a.pictures).filter((function(t){return t})).map((function(t){return"".concat(t)})),startPosition:0,showIndex:"true",closeable:"true"})}}})})),1),a.review_comments?e("h3",[t._v("审核内容:"+t._s(a.review_comments))]):t._e(),e("h3",[t._v("审核状态:"+t._s(t.reviewLogStateMenu[a.review_status]))])])})),1)],1):t._e(),a.taskCommentsLog?e("div",{staticClass:"pb-1"},[e("span",{staticClass:"font-semibold"},[t._v("留言记录:")]),e("div",{staticClass:"comment-list"},t._l(a.taskCommentsLog,(function(a,n){return e("div",{key:n,staticClass:"comment-item bg-white rounded-lg p-3 mb-2 shadow-sm"},[e("div",{staticClass:"comment-header flex justify-between items-center mb-2"},[e("span",{staticClass:"text-gray-600 text-sm"},[t._v(t._s(a.commenter_role)+":")]),e("span",{staticClass:"text-gray-400 text-xs"},[t._v(t._s(t.dateFormat("YYYY-mm-dd HH:MM",new Date(1e3*a.created_at))))])]),e("div",{staticClass:"comment-content text-gray-800 text-sm"},[t._v(" "+t._s(a.content)+" ")])])})),0)]):t._e(),"worker"==a.confirm_type||"both"==a.confirm_type?e("div",{staticClass:"py-1"},[1==a.item_status?e("span",[t._v("已验收")]):t._e(),1==a.worker_status&&0==a.manager_status?[e("span",{staticClass:"font-semibold"},[t._v("验收")]),e("van-button",{staticClass:"mx-2",attrs:{type:"primary",size:"small",round:""},on:{click:function(e){return t.checkTable(a)}}},[t._v("验收通过")]),e("van-button",{staticClass:"mx-2",attrs:{type:"danger",size:"small",round:""},on:{click:function(e){return t.checkTable2(a)}}},[t._v("验收不通过")])]:t._e()],2):e("div",[e("div",{staticClass:"text-right"},[0==a.item_status?e("van-button",{staticClass:"ml-2",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.confirmSite(a.pick_name,a.id)}}},[t._v("完工提交")]):t._e(),3==a.item_status?e("van-button",{staticClass:"ml-2",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.confirmSite(a.pick_name,a.id)}}},[t._v("重新提交")]):t._e(),0==a.worker_id?e("van-button",{staticClass:"ml-2",attrs:{size:"small",type:"danger",to:"/table/".concat(t.worksite.id,"/worker?work_id=").concat(a.id)}},[t._v("立即派单")]):t._e(),e("van-button",{staticClass:"ml-2",attrs:{type:"primary",size:"small"},on:{click:function(e){return t.confirmMsg(a.pick_name,a.id)}}},[t._v("留言")])],1)])])])])})),0)])])],1)],1)})),0),e("van-popup",{attrs:{closeable:"",position:"bottom"},model:{value:t.addCheckShow,callback:function(e){t.addCheckShow=e},expression:"addCheckShow"}},[e("div",{staticClass:"text-center leading-10 text-lg"},[t._v(t._s(t.confirmSiteTitle))]),e("van-field",{attrs:{rows:"3",autosize:"",type:"textarea",placeholder:"请输入内容"},model:{value:t.checkForm.content,callback:function(e){t.$set(t.checkForm,"content",e)},expression:"checkForm.content"}}),e("UploadList",{attrs:{value:t.jsonArray(t.checkForm.pictures)},on:{input:function(e){t.$set(t.checkForm,"pictures",JSON.stringify(e))}}}),e("div",{staticClass:"text-sm text-gray-400 px-4"},[t._v("(上传质检本)")]),e("van-button",{attrs:{size:"large",type:"info"},on:{click:function(e){return t.savecComplateMatPickWorker()}}},[t._v("提交")])],1),e("van-popup",{attrs:{closeable:"",round:"",position:"bottom"},model:{value:t.tableShow,callback:function(e){t.tableShow=e},expression:"tableShow"}},[e("div",{staticClass:"mt-2 text-center leading-10 text-lg"},[t._v("验收不通过")]),e("van-field",{attrs:{autosize:"",type:"textarea",placeholder:"请输入说明"},model:{value:t.tableForm.content,callback:function(e){t.$set(t.tableForm,"content",e)},expression:"tableForm.content"}}),e("van-button",{attrs:{size:"large",type:"info"},on:{click:t.checkTable3}},[t._v("提交")])],1),e("van-popup",{attrs:{closeable:"",round:"",position:"bottom"},model:{value:t.msgShow,callback:function(e){t.msgShow=e},expression:"msgShow"}},[e("div",{staticClass:"mt-2 text-center leading-10 text-lg"},[t._v("留言")]),e("van-field",{attrs:{autosize:"",type:"textarea",placeholder:"请输入留言内容"},model:{value:t.tableForm.content,callback:function(e){t.$set(t.tableForm,"content",e)},expression:"tableForm.content"}}),e("van-button",{attrs:{size:"large",type:"info"},on:{click:t.checkMsg}},[t._v("提交")])],1),e("van-popup",{attrs:{closeable:"",position:"bottom"},model:{value:t.addextensionRequestShow,callback:function(e){t.addextensionRequestShow=e},expression:"addextensionRequestShow"}},[e("div",{staticClass:"text-center leading-10 text-lg"},[t._v(t._s(t.extensionRequestTitle))]),e("van-field",{attrs:{name:"延期原因",label:"延期原因",rows:"3",autosize:"",type:"textarea",placeholder:"请输入内容"},model:{value:t.extensionCheckForm.content,callback:function(e){t.$set(t.extensionCheckForm,"content",e)},expression:"extensionCheckForm.content"}}),e("van-field",{attrs:{name:"延期类型",label:"延期类型"},scopedSlots:t._u([{key:"input",fn:function(){return[e("van-radio-group",{attrs:{direction:"horizontal"},model:{value:t.extensionCheckForm.type,callback:function(e){t.$set(t.extensionCheckForm,"type",e)},expression:"extensionCheckForm.type"}},[e("van-radio",{attrs:{name:0}},[t._v("单节点延期")]),e("van-radio",{attrs:{name:1}},[t._v("工期延期")])],1)]},proxy:!0}],null,!1,481334295)}),e("van-field",{attrs:{name:"延期天数",label:"延期天数",type:"number",placeholder:"填写天数",rules:[{required:!0}]},scopedSlots:t._u([{key:"button",fn:function(){return[t._v(" 天 ")]},proxy:!0}],null,!1,2285623618),model:{value:t.extensionCheckForm.duration,callback:function(e){t.$set(t.extensionCheckForm,"duration",e)},expression:"extensionCheckForm.duration"}}),e("UploadList",{attrs:{value:t.jsonArray(t.extensionCheckForm.pictures)},on:{input:function(e){t.$set(t.extensionCheckForm,"pictures",JSON.stringify(e))}}}),e("van-button",{attrs:{size:"large",type:"info"},on:{click:function(e){return t.saveExtensionRequest()}}},[t._v("提交")])],1)],1):t._e()},i=[],o=(a("e17f"),a("2241")),s=(a("4662"),a("28a2")),r=a("ade3"),c=(a("68ef"),a("9d70"),a("3743"),a("1a04"),a("5c56"),a("0fee"),a("2638")),l=a.n(c),u=a("d282"),d=a("ba31"),f=a("b1d2"),m=a("7744"),p=a("34e9"),h=Object(u["a"])("panel"),b=h[0],v=h[1];function g(t,e,a,n){var i=function(){return[a.header?a.header():t(m["a"],{attrs:{icon:e.icon,label:e.desc,title:e.title,value:e.status,valueClass:v("header-value")},class:v("header")}),t("div",{class:v("content")},[a.default&&a.default()]),a.footer&&t("div",{class:[v("footer"),f["e"]]},[a.footer()])]};return t(p["a"],l()([{class:v(),scopedSlots:{default:i}},Object(d["b"])(n,!0)]))}g.props={icon:String,desc:String,title:String,status:String};var k=b(g),_=(a("c3a6"),a("ad06")),y=(a("a39e"),a("241e")),w=(a("570a"),a("1d36")),S=(a("5f1a"),a("a3e2")),x=(a("4ddd"),a("9f14")),C=(a("a44c"),a("e27c")),O=(a("14d9"),a("13d5"),a("e25e"),a("8a59")),j=a("5354"),F=a("6cd8"),T=a("a9f5"),L=a("4434"),I=a("da93"),N=a.n(I),M={components:Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])(Object(r["a"])({Select:L["a"],UploadList:T["a"]},C["a"].name,C["a"]),x["a"].name,x["a"]),"GroupedLists",[]),S["a"].name,S["a"]),w["a"].name,w["a"]),y["a"].name,y["a"]),_["a"].name,_["a"]),"Panel",k),data:function(){return{imageDomain:N.a.imageDomain,id:0,tableShow:!1,activeTab:0,addCheckShow:!1,addextensionRequestShow:!1,selectTable:{},msgShow:!1,siteStartTime:0,confirmSiteTitle:"确认",extensionRequestTitle:"确认",checkForm:{},extensionCheckForm:{type:0},tableForm:{},activeNames:[],worksite:{},worksiteState:{0:"待开工",1:"已开工",2:"已完工",3:"已停工"},orderStatus:{0:"未接单",1:"已接单",2:"待接单",3:"已拒绝"},confirmTypeMenu:{worker:"工人",manager:"项目经理",both:"工人和项目经理"},itemStatusMenu:{0:"待提交",1:"已完成",2:"待审核",3:"验收不通过"},reviewLogStateMenu:{0:"待审核",1:"审核通过",2:"已拒绝"},levelOne:{},workExtensionStatus:{0:"节点延期",1:"工程延期"},workExtensionAuditStatus:{0:"待审核",1:"通过",2:"拒绝"},tables:[],materials:[],materialType:0,settleShow:!1,settleForm:{},signaturePad:null,supplier:!1,materialSettleShow:!1,materialSettleForm:{},materialorders:[],oneLevelMapCount:{},oneLevelcompleteMapCount:{},takeShow:!1,activeMaterial:0,controls:[],livingShow:!1,settlesShow:!1,selectMats:[],worker:"",selectMatState:Object(r["a"])(Object(r["a"])(Object(r["a"])({},-1,"已取消"),0,"待下单"),1,"已下单"),payments:[]}},created:function(){this.supplier=this.$store.getters.supplier,this.$route.params&&this.$route.params.id&&(this.id=this.$route.params.id),this.loadWorksite(),console.log("get table key:",sessionStorage.getItem("managerTab")),sessionStorage.getItem("managerTab")&&(this.activeTab=parseInt(sessionStorage.getItem("managerTab")))},computed:{groupedLists:function(){return this.tables.reduce((function(t,e){if(t[e.room_type]||(t[e.room_type]=[]),"worker"===e.confirm_type&&(t[e.room_type]["showWorker"]=!0),e.name&&t[e.room_type]){var a={name:e.name,worker_status:e.worker_status,order_acceptance_at:e.order_acceptance_at,order_status:e.order_status};console.log(a.name),t[e.room_type]["workerInfo"]=a}return t[e.room_type].push(e),console.log("groups",t),t}),{})}},methods:{ImagePreview:s["a"],onClick:function(t,e){console.log("set table key:",t),sessionStorage.setItem("managerTab",t)},getTagType:function(t){var e;switch(t){case 0:e="grey";break;case 1:e="green";break;case 2:e="#FF9800";break;case 3:e="red";break;case 4:e="red";break}return e},confirmSite:function(t,e){this.addCheckShow=!0,this.work_id=e,this.confirmSiteTitle=t+"确认完工吗?"},extensionRequest:function(t,e){this.addextensionRequestShow=!0,this.pick_id=e,this.extensionRequestTitle=t+"确认延期吗"},confirmMsg:function(t,e){this.msgShow=!0,this.work_id=e,this.confirmSiteTitle=t+"留言"},savecComplateMatPickWorker:function(){var t=this;this.$store.commit("loading/showLoading"),Object(O["r"])(this.work_id,{work_id:parseInt(this.work_id),content:this.checkForm.content,pictures:this.checkForm.pictures}).then((function(e){200===e.code?(t.addCheckShow=!1,t.$store.commit("loading/hideLoading"),t.loadWorksite()):t.$message.error(e.msg)})).catch((function(){t.$store.commit("loading/hideLoading")}))},checkAuth:j["a"],dateFormat:F["a"],jsonArray:F["c"],loadWorksite:function(){var t=this;this.$store.commit("loading/showLoading"),Object(O["Y"])(this.id).then((function(e){t.worksite=e.data,t.loadFinalSiteTable()})).catch((function(){t.$store.commit("loading/hideLoading")}))},loadFinalSiteTable:function(){var t=this;this.$store.commit("loading/showLoading"),Object(O["P"])({site_id:this.id}).then((function(e){t.$store.commit("loading/hideLoading"),t.tables=e.data.list;for(var a=e.data.oneLevelMapCount,n=e.data.oneLevelcompleteMapCount,i=0;i<e.data.oneLevel.length;i++)t.levelOne[e.data.oneLevel[i].id]=e.data.oneLevel[i].name+"("+n[e.data.oneLevel[i].id]+"/"+a[e.data.oneLevel[i].id].length+")"})).catch((function(){t.$store.commit("loading/hideLoading")}))},checkTable:function(t){var e=this;o["a"].confirm({title:"提示",message:"是否确认验收?"}).then((function(){Object(O["p"])(t.id,{state:0}).then((function(t){e.loading=!1,e.loadWorksite()})).catch((function(){e.loading=!1}))})).catch((function(){}))},checkTable2:function(t){this.selectTable=t,this.tableForm={state:1},this.tableShow=!0},checkTable3:function(){var t=this;Object(O["q"])(this.selectTable.id,this.tableForm).then((function(e){t.loading=!1,t.loadWorksite(),t.tableShow=!1})).catch((function(){t.loading=!1}))},checkMsg:function(){var t=this;Object(O["i"])(this.work_id,this.tableForm).then((function(e){t.loading=!1,t.loadWorksite(),t.msgShow=!1})).catch((function(){t.loading=!1}))},saveExtensionRequest:function(){var t=this;Object(O["xb"])(this.pick_id,{pick_id:parseInt(this.pick_id),type:this.extensionCheckForm.type,content:this.extensionCheckForm.content,duration:this.extensionCheckForm.duration,pictures:this.extensionCheckForm.pictures}).then((function(e){t.loading=!1,t.loadWorksite(),t.addextensionRequestShow=!1})).catch((function(){t.loading=!1}))}}},$=M,P=(a("3878"),a("f501"),a("2877")),A=Object(P["a"])($,n,i,!1,null,"4734021e",null);e["default"]=A.exports},4662:function(t,e,a){"use strict";a("68ef"),a("a71a"),a("9d70"),a("3743"),a("09fe"),a("4d75"),a("e3b3"),a("8270"),a("786d"),a("504b")},"4ddd":function(t,e,a){"use strict";a("68ef"),a("9d70"),a("3743"),a("dde9")},"4de4":function(t,e,a){"use strict";var n=a("23e7"),i=a("b727").filter,o=a("1dde"),s=o("filter");n({target:"Array",proto:!0,forced:!s},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},"51eb":function(t,e,a){"use strict";var n=a("825a"),i=a("485a"),o=TypeError;t.exports=function(t){if(n(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new o("Incorrect hint");return i(this,t)}},"570a":function(t,e,a){"use strict";a("68ef"),a("d8ac")},"5f1a":function(t,e,a){"use strict";a("68ef"),a("9d70"),a("3743"),a("9b7e")},"6cd8":function(t,e,a){"use strict";a.d(e,"a",(function(){return n})),a.d(e,"b",(function(){return i})),a.d(e,"e",(function(){return o})),a.d(e,"c",(function(){return s})),a.d(e,"d",(function(){return r}));a("d401"),a("4de4"),a("4160"),a("b64b"),a("d3b7"),a("4d63"),a("c607"),a("ac1f"),a("2c3e"),a("25f0"),a("4d90"),a("5319"),a("159b");function n(t,e){var a,n={"Y+":e.getFullYear().toString(),"m+":(e.getMonth()+1).toString(),"d+":e.getDate().toString(),"H+":e.getHours().toString(),"M+":e.getMinutes().toString(),"S+":e.getSeconds().toString()};for(var i in n)a=new RegExp("("+i+")").exec(t),a&&(t=t.replace(a[1],1==a[1].length?n[i]:n[i].padStart(a[1].length,"0")));return t}function i(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=0,n=0,i=0;t>86400&&(a=Math.floor(t/86400),t%=86400),t>3600&&(n=Math.floor(t/3600),t%=3600),t>60&&(i=Math.floor(t/60),t%=60);var o=t+"秒";return(i>0||n>0||a>0)&&(o=i+"分"+(e?o:"")),(n>0||a>0)&&(o=n+"小时"+(e?o:"")),a>0&&(o=a+"天"+(e?o:"")),o}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"parentId",a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=t.filter((function(t){return t[e]==a}));return n.forEach((function(a,i){var s=o(t,e,a["id"]);s.length>0&&(n[i]["children"]=s)})),n}function s(t){if("string"===typeof t)try{return JSON.parse(t)}catch(e){return[]}return t instanceof Array?t:[]}function r(t){if("string"===typeof t)try{return JSON.parse(t)}catch(e){return{}}return t instanceof Object?t:{}}},7870:function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"a",(function(){return o})),a.d(e,"c",(function(){return s}));var n=a("9f4c");function i(t){return Object(n["a"])({url:"qiniu/token",method:"get",params:t})}function o(t){return Object(n["a"])({url:"send_verify_code",method:"get",params:t})}function s(t,e){return Object(n["a"])({url:"worksites/".concat(t),method:"get",params:e})}},"7a82f":function(t,e,a){"use strict";var n=a("23e7"),i=a("83ab"),o=a("9bf2").f;n({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!i},{defineProperty:o})},"7db0":function(t,e,a){"use strict";var n=a("23e7"),i=a("b727").find,o=a("44d2"),s="find",r=!0;s in[]&&Array(1)[s]((function(){r=!1})),n({target:"Array",proto:!0,forced:r},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o(s)},8172:function(t,e,a){"use strict";var n=a("e065"),i=a("57b9");n("toPrimitive"),i()},"81c0":function(t,e,a){},"8db9":function(t,e,a){},"99af":function(t,e,a){"use strict";var n=a("23e7"),i=a("d039"),o=a("e8b5"),s=a("861d"),r=a("7b0b"),c=a("07fa"),l=a("3511"),u=a("8418"),d=a("65f0"),f=a("1dde"),m=a("b622"),p=a("1212"),h=m("isConcatSpreadable"),b=p>=51||!i((function(){var t=[];return t[h]=!1,t.concat()[0]!==t})),v=function(t){if(!s(t))return!1;var e=t[h];return void 0!==e?!!e:o(t)},g=!b||!f("concat");n({target:"Array",proto:!0,arity:1,forced:g},{concat:function(t){var e,a,n,i,o,s=r(this),f=d(s,0),m=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?s:arguments[e],v(o))for(i=c(o),l(m+i),a=0;a<i;a++,m++)a in o&&u(f,m,o[a]);else l(m+1),u(f,m++,o);return f.length=m,f}})},"9f14":function(t,e,a){"use strict";var n=a("d282"),i=a("0a26"),o=Object(n["a"])("radio"),s=o[0],r=o[1];e["a"]=s({mixins:[Object(i["a"])({bem:r,role:"radio",parent:"vanRadio"})],computed:{currentValue:{get:function(){return this.parent?this.parent.value:this.value},set:function(t){(this.parent||this).$emit("input",t)}},checked:function(){return this.currentValue===this.name}},methods:{toggle:function(){this.currentValue=this.name}}})},a39e:function(t,e,a){"use strict";a("68ef"),a("9d70"),a("81c0")},a44c:function(t,e,a){"use strict";a("68ef"),a("dc1b")},a94f:function(t,e,a){},a9e3:function(t,e,a){"use strict";var n=a("23e7"),i=a("c430"),o=a("83ab"),s=a("cfe9"),r=a("428f"),c=a("e330"),l=a("94ca"),u=a("1a2d"),d=a("7156"),f=a("3a9b"),m=a("d9b5"),p=a("c04e"),h=a("d039"),b=a("241c").f,v=a("06cf").f,g=a("9bf2").f,k=a("408a"),_=a("58a8").trim,y="Number",w=s[y],S=r[y],x=w.prototype,C=s.TypeError,O=c("".slice),j=c("".charCodeAt),F=function(t){var e=p(t,"number");return"bigint"==typeof e?e:T(e)},T=function(t){var e,a,n,i,o,s,r,c,l=p(t,"number");if(m(l))throw new C("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=_(l),e=j(l,0),43===e||45===e){if(a=j(l,2),88===a||120===a)return NaN}else if(48===e){switch(j(l,1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(o=O(l,2),s=o.length,r=0;r<s;r++)if(c=j(o,r),c<48||c>i)return NaN;return parseInt(o,n)}return+l},L=l(y,!w(" 0o1")||!w("0b1")||w("+0x1")),I=function(t){return f(x,t)&&h((function(){k(t)}))},N=function(t){var e=arguments.length<1?0:w(F(t));return I(this)?d(Object(e),this,N):e};N.prototype=x,L&&!i&&(x.constructor=N),n({global:!0,constructor:!0,wrap:!0,forced:L},{Number:N});var M=function(t,e){for(var a,n=o?b(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;n.length>i;i++)u(e,a=n[i])&&!u(t,a)&&g(t,a,v(e,a))};i&&S&&M(r[y],S),(L||i)&&M(r[y],w)},a9f5:function(t,e,a){"use strict";var n=function(){var t=this,e=t._self._c;return e("div",[e("van-field",{attrs:{readonly:"",border:t.border,label:t.label,placeholder:t.placeholder,disabled:t.disabled},scopedSlots:t._u([{key:"input",fn:function(){return[e("van-uploader",{attrs:{accept:t.accept,"before-read":t.beforeUpload,"after-read":t.afterRead,disabled:t.disabled,"show-upload":t.edit,deletable:t.edit},on:{delete:t.update},scopedSlots:t._u([{key:"preview-cover",fn:function(a){return[a.url&&"mp4"==a.url.split("/").pop().split(".").pop()?e("div",{staticClass:"w-full h-full overflow-hidden flex justify-center items-center"},[e("video",{staticClass:"min-w-full min-h-full",attrs:{src:a.url},on:{click:function(e){return t.videoPlay(a.url)}}},[t._v(" 您的浏览器不支持视频播放 ")])]):t._e()]}}]),model:{value:t.fileList,callback:function(e){t.fileList=e},expression:"fileList"}})]},proxy:!0}])}),t.videoShow?e("van-overlay",{staticClass:"flex justify-center items-center",attrs:{show:t.videoShow,"z-index":"1000"}},[e("video",{staticClass:"max-w-full max-h-full",attrs:{src:t.videoUrl,controls:""}},[t._v(" 您的浏览器不支持视频播放 ")]),e("i",{staticClass:"van-icon van-icon-clear van-image-preview__close-icon van-image-preview__close-icon--top-right",attrs:{role:"button"},on:{click:function(e){t.videoShow=!1}}})]):t._e()],1)},i=[],o=(a("9a83"),a("f564")),s=a("ade3"),r=(a("68ef"),a("a71a"),a("6e47")),c=(a("e930"),a("8f80")),l=(a("4de4"),a("4160"),a("d81d"),a("b64b"),a("d3b7"),a("159b"),a("7870")),u={name:"UploadList",components:Object(s["a"])(Object(s["a"])({},c["a"].name,c["a"]),r["a"].name,r["a"]),props:{value:{type:Array,default:function(){return[]}},label:{type:String,default:""},placeholder:{type:String,default:""},accept:{type:String,default:"image/*"},disabled:{type:Boolean,default:!1},border:{type:Boolean,default:!1},edit:{type:Boolean,default:!0}},watch:{value:{deep:!0,imediate:!0,handler:function(t){this.fileList=t.map((function(t){return{url:t}}))}}},data:function(){return{dataObj:{},fileList:[],videoShow:!1,videoUrl:""}},created:function(){this.fileList=this.value.map((function(t){return{url:t}}))},methods:{videoPlay:function(t){this.videoUrl=t,this.videoShow=!0},beforeUpload:function(t){if("video/mp4"===t.type){if(t.size/1024/1024>30)return Object(o["a"])({type:"danger",message:"上传视频大小不能超过 30MB!"}),!1}else if(t.size/1024/1024>30)return Object(o["a"])({type:"danger",message:"上传图片大小不能超过 30MB!"}),!1;var e="";if(console.log(t.type),"image/png"===t.type)e="png";else if("image/jpeg"===t.type)e="jpg";else{if("video/mp4"!==t.type)return Object(o["a"])({type:"danger",message:"上传格式有误!"}),!1;e="mp4"}var a=this;return new Promise((function(n,i){Object(l["b"])({file_type:e}).then((function(e){var i=e.data.key,o=e.data.token;a._data.dataObj.token=o,a._data.dataObj.key=i,n(t)})).catch((function(t){console.log(t),i()}))}))},afterRead:function(t){var e=this;console.log(t),t.status="uploading",t.message="上传中...";var a=new FormData;a.append("file",t.file),Object.keys(this.dataObj).forEach((function(t){a.append(t,e.dataObj[t])})),this.$axios({method:"post",url:"https://upload.qiniup.com",data:a}).then((function(a){console.log(a),t.url=e.$store.getters.setting.img_host+a.data.key,t.status="done",t.message="上传成功",e.update()})).catch((function(){t.status="failed",t.message="上传失败",e.update()}))},update:function(){var t=this.fileList.filter((function(t){return!t.status||"done"==t.status})).map((function(t){return t.url}));this.$emit("input",t),console.log(t)}}},d=u,f=(a("c027"),a("2877")),m=Object(f["a"])(d,n,i,!1,null,"5b2bdc2e",null);e["a"]=m.exports},ade3:function(t,e,a){"use strict";a.d(e,"a",(function(){return s}));a("7a82f");var n=a("53ca");a("8172"),a("d9e2"),a("d401"),a("efec"),a("a9e3");function i(t,e){if("object"!=Object(n["a"])(t)||!t)return t;var a=t[Symbol.toPrimitive];if(void 0!==a){var i=a.call(t,e||"default");if("object"!=Object(n["a"])(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function o(t){var e=i(t,"string");return"symbol"==Object(n["a"])(e)?e:e+""}function s(t,e,a){return(e=o(e))in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}},c027:function(t,e,a){"use strict";a("dfb4")},d81d:function(t,e,a){"use strict";var n=a("23e7"),i=a("b727").map,o=a("1dde"),s=o("map");n({target:"Array",proto:!0,forced:!s},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},d8ac:function(t,e,a){},dc1b:function(t,e,a){},dde9:function(t,e,a){},dfb4:function(t,e,a){},e27c:function(t,e,a){"use strict";var n=a("d282"),i=a("78eb"),o=a("9884"),s=Object(n["a"])("radio-group"),r=s[0],c=s[1];e["a"]=r({mixins:[Object(o["b"])("vanRadio"),i["a"]],props:{value:null,disabled:Boolean,direction:String,checkedColor:String,iconSize:[Number,String]},watch:{value:function(t){this.$emit("change",t)}},render:function(){var t=arguments[0];return t("div",{class:c([this.direction]),attrs:{role:"radiogroup"}},[this.slots()])}})},efec:function(t,e,a){"use strict";var n=a("1a2d"),i=a("cb2d"),o=a("51eb"),s=a("b622"),r=s("toPrimitive"),c=Date.prototype;n(c,r)||i(c,r,o)},f4b3:function(t,e,a){"use strict";var n=a("23e7"),i=a("d039"),o=a("7b0b"),s=a("c04e"),r=i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}));n({target:"Date",proto:!0,arity:1,forced:r},{toJSON:function(t){var e=o(this),a=s(e,"number");return"number"!=typeof a||isFinite(a)?e.toISOString():null}})},f501:function(t,e,a){"use strict";a("8db9")}}]);