1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-730d929f"],{"1d32":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",[t.dropDown?n("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]:"")+" "),n("van-icon",{attrs:{name:"arrow-down"}})],1):n("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}}),n("van-popup",{attrs:{round:"",position:"bottom"},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[n("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)},r=[],s={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}}},o=s,i=n("cba8"),c=Object(i["a"])(o,a,r,!1,null,"6cfad04c",null);e["a"]=c.exports},"34f1":function(t,e,n){"use strict";n("456d"),n("eeea"),n("b920"),n("895b"),n("fdd9"),n("a4c0")},"531f":function(t,e,n){"use strict";var a=n("9c15"),r=n("8655"),s=n("2c48"),o=n("81c6"),i=n("1b4d"),c=n("059d"),l=n("d7ab"),u=n("5311"),d=n("6326"),f=n("462a"),h=n("ae28"),p=n("d006"),v=h("isConcatSpreadable"),b=9007199254740991,g="Maximum allowed index exceeded",m=r.TypeError,_=p>=51||!s((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),y=f("concat"),w=function(t){if(!i(t))return!1;var e=t[v];return void 0!==e?!!e:o(t)},k=!_||!y;a({target:"Array",proto:!0,forced:k},{concat:function(t){var e,n,a,r,s,o=c(this),i=d(o,0),f=0;for(e=-1,a=arguments.length;e<a;e++)if(s=-1===e?o:arguments[e],w(s)){if(r=l(s),f+r>b)throw m(g);for(n=0;n<r;n++,f++)n in s&&u(i,f,s[n])}else{if(f>=b)throw m(g);u(i,f++,s)}return i.length=f,i}})},5456:function(t,e,n){"use strict";var a=n("9c15"),r=n("9901").filter,s=n("462a"),o=s("filter");a({target:"Array",proto:!0,forced:!o},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},"6d11":function(t,e,n){"use strict";n.r(e);var a,r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("van-sticky",[n("van-search",{attrs:{placeholder:"请输入关键词"},on:{search:t.changeQuery},model:{value:t.search,callback:function(e){t.search=e},expression:"search"}},[n("template",{slot:"left"},[n("Select",{attrs:{"drop-down":"",columns:[{id:0,name:"全部"}].concat(Object.keys(t.worksiteState).map((function(e){return{id:parseInt(e)+1,name:t.worksiteState[e]}})))},on:{change:t.changeQuery},model:{value:t.state,callback:function(e){t.state=e},expression:"state"}})],1)],2)],1),n("van-empty",{directives:[{name:"show",rawName:"v-show",value:t.showEmpty,expression:"showEmpty"}],attrs:{description:"暂无工地"}}),n("van-list",{staticClass:"mt-4",attrs:{finished:t.finished,error:t.error,"error-text":"请求失败,点击重新加载","finished-text":""},on:{"update:error":function(e){t.error=e},load:t.loadWorksite},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.worksiteList,(function(e,a){return n("van-cell",{key:a,staticClass:"bg-white mb-4 w-11/12 p-4 mx-auto text-sm shadow",attrs:{to:"/detail/"+e.id}},[n("div",{staticClass:"pb-2 flex items-center justify-between border-b mb-2"},[n("span",[n("span",{staticClass:"font-bold"},[t._v("决算编号:")]),t._v(t._s(e.id))]),n("span",{staticClass:"rounded-sm`"},[e.uncount?n("span",[t._v("待提交: "+t._s(e.uncount)+" ")]):t._e(),e.handle_count?n("span",[t._v("处理中: "+t._s(e.handle_count)+" ")]):t._e(),e.finish_count?n("span",[t._v("已完成: "+t._s(e.finish_count)+" ")]):t._e()])]),n("div",{staticClass:"pb-1"},[n("span",{staticClass:"font-bold"},[t._v("业主信息:")]),t._v(t._s(e.username)+" "),n("span",{staticClass:"text-gray-400"},[t._v(t._s(e.phone))])]),n("div",{staticClass:"pb-1"},[n("span",{staticClass:"font-bold"},[t._v("房屋地址:")]),t._v(t._s(e.address)+" "+t._s(e.village)+" "+t._s(e.room_no)+" "),e.area?n("span",{staticClass:"text-gray-400"},[t._v(" "+t._s(e.area)+"㎡")]):t._e()]),e.manager_id?n("div",{staticClass:"pb-1 flex items-center"},[n("span",{staticClass:"font-bold"},[t._v("项目经理:")]),n("span",{staticClass:"flex items-center"},[n("span",[t._v(t._s(e.manager_name))]),e.manager_phone?n("span",{staticClass:"flex items-center"},[t._v("("+t._s(e.manager_phone)+")"),n("a",{staticClass:"flex items-center",attrs:{href:"tel:"+e.manager_phone}},[n("van-icon",{attrs:{name:"phone",size:"22",color:"#009688"}})],1)]):t._e()])]):t._e(),e.handle_count?n("div",{staticClass:"pb-1"},[n("span",{staticClass:"font-bold"},[t._v("进度:")]),e.count1?n("span",{staticClass:"text-blue-400"},[t._v("待工程队长审核("+t._s(e.count1)+") ")]):t._e(),e.count2?n("span",{staticClass:"text-green-400"},[t._v("待预审审核("+t._s(e.count2)+") ")]):t._e(),e.count3?n("span",{staticClass:"text-yellow-400"},[t._v("待店长审核("+t._s(e.count3)+") ")]):t._e(),e.count4?n("span",{staticClass:"text-red-400"},[t._v("待财务审核("+t._s(e.count4)+") ")]):t._e()]):t._e()])})),1)],1)},s=[],o=(n("dcd6"),n("8c89")),i=n("d696"),c=(n("97e1"),n("ade4")),l=(n("34f1"),n("a241")),u=(n("d64c"),n("3714"),n("ccee"),n("531f"),n("da1a")),d=n("ae79"),f=n("1d32"),h={components:(a={Select:f["a"]},Object(i["a"])(a,l["a"].name,l["a"]),Object(i["a"])(a,c["a"].name,c["a"]),a),data:function(){return{search:"",worksiteList:[],loading:!1,error:!1,page:1,state:0,finished:!1,showEmpty:!1,worksiteState:{0:"未提交",1:"处理中",2:"已完结",3:"待工程队长审核",4:"待预审审核",5:"待店长审核",6:"待财务审核"}}},created:function(){this.$route.query&&this.$route.query.state>0&&(this.state=this.$route.query.state),console.log(this.state)},methods:{dateFormat:d["a"],preview:function(t,e){Object(o["a"])({images:t,startPosition:e})},changeQuery:function(){this.$router.replace({path:this.$route.path,query:{state:this.state,search:this.search}}),this.beforeChange()},beforeChange:function(){return this.finished=!1,this.loading=!1,this.error=!1,this.page=1,this.worksiteList=[],this.loadWorksite(),!0},sure:function(t){},loadWorksite:function(){var t=this;this.loading=!0,console.log(this.state),Object(u["u"])({state:this.state,search:this.search,page:this.page++,size:10}).then((function(e){e.data.count<=t.worksiteList.length&&(t.finished=!0),t.worksiteList=t.worksiteList.concat(e.data.list),0===t.worksiteList.length?t.showEmpty=!0:t.showEmpty=!1,t.loading=!1})).catch((function(){t.loading=!1,t.error=!0}))}}},p=h,v=n("cba8"),b=Object(v["a"])(p,r,s,!1,null,null,null);e["default"]=b.exports},9185:function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},"97e1":function(t,e,n){"use strict";n("456d"),n("79be")},a241:function(t,e,n){"use strict";var a=n("4c02"),r=n.n(a),s=n("6da8"),o=n("32be"),i=n("c60e"),c=n("18f0"),l=n("9ec8"),u=Object(o["a"])("search"),d=u[0],f=u[1],h=u[2];function p(t,e,n,a){function o(){if(n.label||e.label)return t("div",{class:f("label")},[n.label?n.label():e.label])}function u(){if(e.showAction)return t("div",{class:f("action"),attrs:{role:"button",tabindex:"0"},on:{click:r}},[n.action?n.action():e.actionText||h("cancel")]);function r(){n.action||(Object(i["a"])(a,"input",""),Object(i["a"])(a,"cancel"))}}var d={attrs:a.data.attrs,on:Object(s["a"])({},a.listeners,{keypress:function(t){13===t.keyCode&&(Object(c["c"])(t),Object(i["a"])(a,"search",e.value)),Object(i["a"])(a,"keypress",t)}})},p=Object(i["b"])(a);return p.attrs=void 0,t("div",r()([{class:f({"show-action":e.showAction}),style:{background:e.background}},p]),[null==n.left?void 0:n.left(),t("div",{class:f("content",e.shape)},[o(),t(l["a"],r()([{attrs:{type:"search",border:!1,value:e.value,leftIcon:e.leftIcon,rightIcon:e.rightIcon,clearable:e.clearable,clearTrigger:e.clearTrigger},scopedSlots:{"left-icon":n["left-icon"],"right-icon":n["right-icon"]}},d]))]),u()])}p.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}},e["a"]=d(p)},a4c0:function(t,e,n){},ae79:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return s}));n("f8c2"),n("4d38"),n("d64c"),n("27d3"),n("a692"),n("a405"),n("3714"),n("5550"),n("5456"),n("c08f"),n("09ed");function a(t,e){var n,a={"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 r in a)n=new RegExp("("+r+")").exec(t),n&&(t=t.replace(n[1],1==n[1].length?a[r]:a[r].padStart(n[1].length,"0")));return t}function r(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=0,a=0,r=0;t>86400&&(n=Math.floor(t/86400),t%=86400),t>3600&&(a=Math.floor(t/3600),t%=3600),t>60&&(r=Math.floor(t/60),t%=60);var s=t+"秒";return(r>0||a>0||n>0)&&(s=r+"分"+(e?s:"")),(a>0||n>0)&&(s=a+"小时"+(e?s:"")),n>0&&(s=n+"天"+(e?s:"")),s}function s(t){if("string"===typeof t)try{return JSON.parse(t)}catch(e){return[]}return t instanceof Array?t:[]}},ccee:function(t,e,n){"use strict";var a=n("6805"),r=n("cf8e"),s=n("d748"),o=n("458e"),i=n("9185"),c=n("ffb3"),l=n("3ea3"),u=n("9fee");r("search",(function(t,e,n){return[function(e){var n=o(this),r=void 0==e?void 0:l(e,t);return r?a(r,e,n):new RegExp(e)[t](c(n))},function(t){var a=s(this),r=c(t),o=n(e,a,r);if(o.done)return o.value;var l=a.lastIndex;i(l,0)||(a.lastIndex=0);var d=u(a,r);return i(a.lastIndex,l)||(a.lastIndex=l),null===d?-1:d.index}]}))},d696:function(t,e,n){"use strict";function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return a}))},dcd6:function(t,e,n){"use strict";n("456d"),n("5ef1"),n("eeea"),n("b920"),n("b082"),n("079b"),n("afb7"),n("b9c0"),n("ae8a"),n("a5dc")}}]);
|