text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7507507e"],{"02bc":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement;t._self._c;return t._m(0)},a=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",[i("div",{staticClass:"empty"},[i("img",{attrs:{src:n("f3f6")}})])])}],s={name:"Empty",props:{}},o=s,r=n("9ca4"),c=Object(r["a"])(o,i,a,!1,null,null,null);e["a"]=c.exports},"11e4":function(t,e,n){"use strict";var i=n("c2d3"),a=n.n(i);a.a},"310b":function(t,e,n){"use strict";n("7c36"),n("80b9"),n("e47e"),n("8077"),n("34fd")},"31e2":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[null==t.data?n("Loadings"):n("div",{staticClass:"container"},[n("div",{staticClass:"item"},[n("div",{staticClass:"info"},[n("div",[t._v("订单号: "+t._s(t.data.data.order_no))]),n("div",[t._v("客户: "+t._s(t.data.data.user_name))]),n("div",{staticClass:"flex-sa"},[n("div",[t._v("名称: "+t._s(t.data.data.name))]),n("div",[t._v("材质: "+t._s(t.data.data.material))])]),n("div",{staticClass:"flex-sa"},[n("div",[t._v("数量: "+t._s(t.data.data.number))]),n("div",[t._v("长度: "+t._s(t.data.data.length))]),n("div",[t._v("高度: "+t._s(t.data.data.width))])]),n("div",[t._v("备注: "+t._s(t.data.data.remark))]),n("div",[t._v("状态: "+t._s(0==t.data.data.status?"未完成":"已完成"))]),n("div",[t._v("日期: "+t._s(t.formatDate(t.data.data.add_time)))])])]),t.data.detail.length>0?n("div",{staticClass:"list"},[n("div",{staticClass:"caption"},[t._v("工艺流程")]),n("van-collapse",{model:{value:t.activeNames,callback:function(e){t.activeNames=e},expression:"activeNames"}},t._l(t.data.detail,(function(e,i){return n("van-collapse-item",{key:i,attrs:{title:e.pname,name:i,value:1==e.cstatus?"已完成":"待处理",disabled:!e.editStatus}},[0!=t.role?n("van-cell-group",[n("div",{staticClass:"flex-sa"},[n("van-field",{attrs:{label:"来料数  ",placeholder:"值",disabled:1==e.cstatus},model:{value:e.sum_num,callback:function(n){t.$set(e,"sum_num",n)},expression:"item.sum_num"}}),n("van-field",{attrs:{label:"完成数",placeholder:"值",disabled:1==e.cstatus},model:{value:e.com_num,callback:function(n){t.$set(e,"com_num",n)},expression:"item.com_num"}})],1),n("van-field",{attrs:{label:"备注",placeholder:"请输入备注内容",disabled:1==e.cstatus},model:{value:e.remark,callback:function(n){t.$set(e,"remark",n)},expression:"item.remark"}}),1==e.cstatus?n("van-cell",{attrs:{title:"操作员",value:e.completioner}}):n("van-cell",{attrs:{title:"操作员",value:""==e.completioner||0==e.completioner?"点击选择操作员":e.completioner},on:{click:function(e){return t.showPous(i)}}}),e.completion_time?n("van-cell",{attrs:{title:"操作日期",value:t.formatDate(e.completion_time)}}):t._e(),0==e.cstatus?n("van-cell",{attrs:{center:"",title:"是否完成"},scopedSlots:t._u([{key:"right-icon",fn:function(){return[n("van-switch",{attrs:{size:"24"},model:{value:e.checked,callback:function(n){t.$set(e,"checked",n)},expression:"item.checked"}})]},proxy:!0}],null,!0)}):t._e(),n("div",{staticClass:"btn"},[0==e.cstatus?n("van-button",{attrs:{size:"normal",block:"",round:"",type:"info"},on:{click:function(e){return t.subPro(i)}}},[t._v("提交")]):t._e()],1)],1):t._e()],1)})),1)],1):t._e()]),n("van-popup",{style:{height:"50%"},attrs:{position:"bottom"},model:{value:t.showPou,callback:function(e){t.showPou=e},expression:"showPou"}},[n("van-picker",{attrs:{loading:t.loading,title:"操作员","show-toolbar":"",columns:t.columns},on:{cancel:t.onCancel,confirm:t.onConfirm}})],1)],1)},a=[],s=(n("6d57"),n("ce3c")),o=(n("4f3e"),n("0353")),r=(n("a6c2"),n("721a")),c=(n("e1f2"),n("ae5a")),u=(n("733f"),n("d470")),l=(n("7c36"),n("cba3"),n("23c4")),d=n.n(l),h=n("35ea"),m=n("2a47"),f=n("a450"),v=Object(h["a"])("cell-group"),p=v[0],g=v[1];function b(t,e,n,i){var a,s=t("div",d()([{class:[g(),(a={},a[f["b"]]=e.border,a)]},Object(m["b"])(i,!0)]),[null==n.default?void 0:n.default()]);return e.title||n.title?t("div",[t("div",{class:g("title")},[n.title?n.title():e.title]),s]):s}b.props={title:String,border:{type:Boolean,default:!0}};var x,y=p(b),C=(n("cc53"),n("1e6c")),I=(n("91af"),n("6f8a")),O=(n("e814"),n("d72f")),_=(n("df3f"),n("c1aa"),n("ad58")),w=(n("cc57"),n("310b"),n("88a6")),T=n("e876"),k=n("02bc"),j=n("89af"),S=n("c246"),$={name:"MyMessage",components:(x={Empty:k["a"],Loadings:j["a"]},Object(s["a"])(x,w["a"].name,w["a"]),Object(s["a"])(x,_["a"].name,_["a"]),Object(s["a"])(x,O["a"].name,O["a"]),Object(s["a"])(x,I["a"].name,I["a"]),Object(s["a"])(x,C["a"].name,C["a"]),Object(s["a"])(x,y.name,y),Object(s["a"])(x,u["a"].name,u["a"]),Object(s["a"])(x,c["a"].name,c["a"]),Object(s["a"])(x,r["a"].name,r["a"]),Object(s["a"])(x,o["a"].name,o["a"]),x),data:function(){return{columns:[],data:null,activeNames:[],role:0,loading:!0,showPou:!1,nowInd:0}},created:function(){var t=this,e=JSON.parse(S["a"].get("userInfo"));this.role=e["role"],this.getData(),Object(T["l"])({type:1}).then((function(e){var n=e.data,i=[];n.forEach((function(t){i.push("".concat(t.signature," ").concat(t.user_nickname))})),t.loading=!1,t.columns=i})).catch((function(e){t.$dialog.message(e.msg)}))},mounted:function(){},methods:{clickTips:function(t){console.log(t),t&&this.$dialog.message("请先完善上一步工艺")},getData:function(){var t=this;Object(T["i"])({id:this.$route.params.type}).then((function(e){var n=[],i=e.data.detail;i.forEach((function(t){t.editStatus=!1}));for(var a=0;a<i.length;a++)i[a].checked=i[a].cstatus,0==a&&(i[0].editStatus=!0),1==i[a].cstatus&&(i[a].editStatus=!0,i[a+1].editStatus=!0),console.log(a);t.data=e.data,t.activeNames=n}))},subPro:function(t){var e=this,n=this.data.detail[t];Object(T["t"])({pcid:n.pcid,poid:this.data.data.oid,com:n.com_num,sum:n.sum_num,cstatus:n.checked&&0!=n.checked?1:0,remark:n.remark,completioner:n.completioner}).then((function(t){e.$dialog.message("修改成功"),e.getData()}))},onCancel:function(){this.showPou=!1},onConfirm:function(t){var e=this.data;e["detail"][this.nowInd]["completioner"]=t,this.data=e,this.showPou=!1},showPous:function(t){this.showPou=!0,this.nowInd=t},formatDate:function(t){var e=new Date(1e3*t),n=e.getFullYear(),i=e.getMonth()+1;i=i<10?"0"+i:i;var a=e.getDate();return a=a<10?"0"+a:a,n+"-"+i+"-"+a+" "}}},E=$,N=(n("11e4"),n("9ca4")),H=Object(N["a"])(E,i,a,!1,null,"26f90393",null);e["default"]=H.exports},"5d3e":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}));var i=44,a={title:String,loading:Boolean,readonly:Boolean,itemHeight:[Number,String],showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,allowHtml:{type:Boolean,default:!0},visibleItemCount:{type:[Number,String],default:6},swipeDuration:{type:[Number,String],default:1e3}}},ad58:function(t,e,n){"use strict";var i=n("d601"),a=n("35ea"),s=n("f449"),o=n("a450"),r=n("5d3e"),c=n("ae9c"),u=n("43c9"),l=n("23c4"),d=n.n(l),h=n("1c05");function m(t){return Array.isArray(t)?t.map((function(t){return m(t)})):"object"===typeof t?Object(h["a"])({},t):t}var f=n("080c"),v=n("a832"),p=n("0528"),g=200,b=300,x=15,y=Object(a["a"])("picker-column"),C=y[0],I=y[1];function O(t){var e=window.getComputedStyle(t),n=e.transform||e.webkitTransform,i=n.slice(7,n.length-1).split(", ")[5];return Number(i)}function _(t){return Object(f["e"])(t)&&t.disabled}var w=C({mixins:[p["a"]],props:{valueKey:String,readonly:Boolean,allowHtml:Boolean,className:String,itemHeight:Number,defaultIndex:Number,swipeDuration:[Number,String],visibleItemCount:[Number,String],initialOptions:{type:Array,default:function(){return[]}}},data:function(){return{offset:0,duration:0,options:m(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},mounted:function(){this.bindTouchEvent(this.$el)},destroyed:function(){var t=this.$parent.children;t&&t.splice(t.indexOf(this),1)},watch:{initialOptions:"setOptions",defaultIndex:function(t){this.setIndex(t)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2}},methods:{setOptions:function(t){JSON.stringify(t)!==JSON.stringify(this.options)&&(this.options=m(t),this.setIndex(this.defaultIndex))},onTouchStart:function(t){if(!this.readonly){if(this.touchStart(t),this.moving){var e=O(this.$refs.wrapper);this.offset=Math.min(0,e-this.baseOffset),this.startOffset=this.offset}else this.startOffset=this.offset;this.duration=0,this.transitionEndTrigger=null,this.touchStartTime=Date.now(),this.momentumOffset=this.startOffset}},onTouchMove:function(t){if(!this.readonly){this.touchMove(t),"vertical"===this.direction&&(this.moving=!0,Object(s["c"])(t,!0)),this.offset=Object(v["b"])(this.startOffset+this.deltaY,-this.count*this.itemHeight,this.itemHeight);var e=Date.now();e-this.touchStartTime>b&&(this.touchStartTime=e,this.momentumOffset=this.offset)}},onTouchEnd:function(){var t=this;if(!this.readonly){var e=this.offset-this.momentumOffset,n=Date.now()-this.touchStartTime,i=n<b&&Math.abs(e)>x;if(i)this.momentum(e,n);else{var a=this.getIndexByOffset(this.offset);this.duration=g,this.setIndex(a,!0),setTimeout((function(){t.moving=!1}),0)}}},onTransitionEnd:function(){this.stopMomentum()},onClickItem:function(t){this.moving||this.readonly||(this.transitionEndTrigger=null,this.duration=g,this.setIndex(t,!0))},adjustIndex:function(t){t=Object(v["b"])(t,0,this.count);for(var e=t;e<this.count;e++)if(!_(this.options[e]))return e;for(var n=t-1;n>=0;n--)if(!_(this.options[n]))return n},getOptionText:function(t){return Object(f["e"])(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,e){var n=this;t=this.adjustIndex(t)||0;var i=-t*this.itemHeight,a=function(){t!==n.currentIndex&&(n.currentIndex=t,e&&n.$emit("change",t))};this.moving&&i!==this.offset?this.transitionEndTrigger=a:a(),this.offset=i},setValue:function(t){for(var e=this.options,n=0;n<e.length;n++)if(this.getOptionText(e[n])===t)return this.setIndex(n)},getValue:function(){return this.options[this.currentIndex]},getIndexByOffset:function(t){return Object(v["b"])(Math.round(-t/this.itemHeight),0,this.count-1)},momentum:function(t,e){var n=Math.abs(t/e);t=this.offset+n/.003*(t<0?-1:1);var i=this.getIndexByOffset(t);this.duration=+this.swipeDuration,this.setIndex(i,!0)},stopMomentum:function(){this.moving=!1,this.duration=0,this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},genOptions:function(){var t=this,e=this.$createElement,n={height:this.itemHeight+"px"};return this.options.map((function(i,a){var s,o=t.getOptionText(i),r=_(i),c={style:n,attrs:{role:"button",tabindex:r?-1:0},class:[I("item",{disabled:r,selected:a===t.currentIndex})],on:{click:function(){t.onClickItem(a)}}},u={class:"van-ellipsis",domProps:(s={},s[t.allowHtml?"innerHTML":"textContent"]=o,s)};return e("li",d()([{},c]),[e("div",d()([{},u]))])}))}},render:function(){var t=arguments[0],e={transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",transitionDuration:this.duration+"ms",transitionProperty:this.duration?"all":"none"};return t("div",{class:[I(),this.className]},[t("ul",{ref:"wrapper",style:e,class:I("wrapper"),on:{transitionend:this.onTransitionEnd}},[this.genOptions()])])}}),T=Object(a["a"])("picker"),k=T[0],j=T[1],S=T[2];e["a"]=k({props:Object(i["a"])({},r["b"],{defaultIndex:{type:[Number,String],default:0},columns:{type:Array,default:function(){return[]}},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),data:function(){return{children:[],formattedColumns:[]}},computed:{itemPxHeight:function(){return this.itemHeight?Object(c["b"])(this.itemHeight):r["a"]},dataType:function(){var t=this.columns,e=t[0]||{};return e.children?"cascade":e.values?"object":"text"}},watch:{columns:{handler:"format",immediate:!0}},methods:{format:function(){var t=this.columns,e=this.dataType;"text"===e?this.formattedColumns=[{values:t}]:"cascade"===e?this.formatCascade():this.formattedColumns=t},formatCascade:function(){var t=[],e={children:this.columns};while(e&&e.children){var n,i=null!=(n=e.defaultIndex)?n:+this.defaultIndex;t.push({values:e.children,className:e.className,defaultIndex:i}),e=e.children[i]}this.formattedColumns=t},emit:function(t){var e=this;if("text"===this.dataType)this.$emit(t,this.getColumnValue(0),this.getColumnIndex(0));else{var n=this.getValues();"cascade"===this.dataType&&(n=n.map((function(t){return t[e.valueKey]}))),this.$emit(t,n,this.getIndexes())}},onCascadeChange:function(t){for(var e={children:this.columns},n=this.getIndexes(),i=0;i<=t;i++)e=e.children[n[i]];while(e&&e.children)t++,this.setColumnValues(t,e.children),e=e.children[e.defaultIndex||0]},onChange:function(t){var e=this;if("cascade"===this.dataType&&this.onCascadeChange(t),"text"===this.dataType)this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0));else{var n=this.getValues();"cascade"===this.dataType&&(n=n.map((function(t){return t[e.valueKey]}))),this.$emit("change",this,n,t)}},getColumn:function(t){return this.children[t]},getColumnValue:function(t){var e=this.getColumn(t);return e&&e.getValue()},setColumnValue:function(t,e){var n=this.getColumn(t);n&&(n.setValue(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnIndex:function(t){return(this.getColumn(t)||{}).currentIndex},setColumnIndex:function(t,e){var n=this.getColumn(t);n&&(n.setIndex(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnValues:function(t){return(this.children[t]||{}).options},setColumnValues:function(t,e){var n=this.children[t];n&&n.setOptions(e)},getValues:function(){return this.children.map((function(t){return t.getValue()}))},setValues:function(t){var e=this;t.forEach((function(t,n){e.setColumnValue(n,t)}))},getIndexes:function(){return this.children.map((function(t){return t.currentIndex}))},setIndexes:function(t){var e=this;t.forEach((function(t,n){e.setColumnIndex(n,t)}))},confirm:function(){this.children.forEach((function(t){return t.stopMomentum()})),this.emit("confirm")},cancel:function(){this.emit("cancel")},genTitle:function(){var t=this.$createElement,e=this.slots("title");return e||(this.title?t("div",{class:["van-ellipsis",j("title")]},[this.title]):void 0)},genToolbar:function(){var t=this.$createElement;if(this.showToolbar)return t("div",{class:j("toolbar")},[this.slots()||[t("button",{attrs:{type:"button"},class:j("cancel"),on:{click:this.cancel}},[this.cancelButtonText||S("cancel")]),this.genTitle(),t("button",{attrs:{type:"button"},class:j("confirm"),on:{click:this.confirm}},[this.confirmButtonText||S("confirm")])]])},genColumns:function(){var t=this.$createElement,e=this.itemPxHeight,n=e*this.visibleItemCount,i={height:e+"px"},a={height:n+"px"},r={backgroundSize:"100% "+(n-e)/2+"px"};return t("div",{class:j("columns"),style:a,on:{touchmove:s["c"]}},[this.genColumnItems(),t("div",{class:j("mask"),style:r}),t("div",{class:[o["c"],j("frame")],style:i})])},genColumnItems:function(){var t=this,e=this.$createElement;return this.formattedColumns.map((function(n,i){var a;return e(w,{attrs:{readonly:t.readonly,valueKey:t.valueKey,allowHtml:t.allowHtml,className:n.className,itemHeight:t.itemPxHeight,defaultIndex:null!=(a=n.defaultIndex)?a:+t.defaultIndex,swipeDuration:t.swipeDuration,visibleItemCount:t.visibleItemCount,initialOptions:n.values},on:{change:function(){t.onChange(i)}}})}))}},render:function(t){return t("div",{class:j()},["top"===this.toolbarPosition?this.genToolbar():t(),this.loading?t(u["a"],{class:j("loading")}):t(),this.slots("columns-top"),this.genColumns(),this.slots("columns-bottom"),"bottom"===this.toolbarPosition?this.genToolbar():t()])}})},c1aa:function(t,e,n){},c2d3:function(t,e,n){},cba3:function(t,e,n){},f3f6:function(t,e,n){t.exports=n.p+"h5/img/empty.f65bdbe1.png"}}]);
  //# sourceMappingURL=chunk-7507507e.ea2f1661.js.map