1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28f7aa99"],{5041:function(s,t,e){"use strict";e("90de")},"7c15":function(s,t,e){"use strict";e.r(t);var a=function(){var s=this,t=s._self._c;return t("div",{staticStyle:{overflow:"auto","padding-bottom":"6.6rem","box-sizing":"border-box"}},[t("div",[t("div",{staticClass:"home_header"},[s._v("完工")]),t("div",{staticClass:"home_header_line"}),t("div",{staticClass:"home_con_body"},[s._l(s.tableData,(function(e,a){return s.tableData.length>0?t("div",{key:a,staticClass:"send_work"},[t("div",{staticClass:"check_box"},[t("div",{class:e.is_choose?"check_box_c_active":"check_box_c",on:{click:function(t){return s.handleChoose(e,a)}}})]),t("div",{staticClass:"secd_flex"},[t("div",{staticClass:"secd_title"},[t("span",[s._v("派工单号:")]),t("span",[s._v(" "+s._s(e.dispatch_no))])]),t("span",{staticClass:"secd_title_d"},[s._v(s._s(e.product_title))]),t("div",{staticClass:"secd_g"},[t("span",[s._v("规格型号:")]),t("span",[s._v(s._s(e.product_size))])]),t("div",{staticClass:"secd_g"},[t("span",[s._v("花色:")]),t("span",[s._v(s._s(e.color))])]),t("div",{staticClass:"secd_g"},[t("span",[s._v("花色2:")]),t("span",[s._v(s._s(e.color_two))])]),t("div",{staticClass:"secd_g"},[t("span",[s._v("工艺类型:")]),t("span",[s._v(s._s(e.craft_type_dk_show))])]),t("div",{staticClass:"secd_flex_w"},[t("div",{staticClass:"secd_flex_s"},[t("span",[s._v("已完工数:")]),t("span",[s._v(s._s(e.finished_num)+"张")])]),t("div",{staticClass:"secd_flex_s"},[t("span",[s._v("未完工数:")]),t("span",[s._v(s._s(e.not_finished_num)+"张")])])])])]):s._e()})),0==s.tableData.length?t("div",{staticStyle:{display:"flex",width:"100%",height:"10rem","justify-content":"center","align-items":"center"}},[t("Spin",{attrs:{size:"small"}}),t("Spin"),t("Spin",{attrs:{size:"small"}})],1):s._e(),t("div",{staticClass:"footer"},[t("div",{staticClass:"return_btn",on:{click:s.handleReturn}},[s._v("返回")]),t("div",{staticClass:"confirm_btn",on:{click:s.handelGoSure}},[s._v("确认")])])],2)])])},i=[],n={data(){return{tableData:[],is_show:!0,is_use:!1,spinShow:!1}},created(){},mounted(){this.handleShow();let s=[];if(localStorage.getItem("fyy_target")){let t=JSON.parse(localStorage.getItem("fyy_target"));t.forEach(t=>{t=t.replace(/\"/g,""),s.push(this.func.hexToString(t))})}this.tableData=[],s.forEach(s=>{const t={url:"http://122.112.250.253:7774/jbl/api/module-data/dispatch_orders/page",post:{direction:"DESC",property:"id",fromClientType:"pc",number:0,sorts:[],rules:[{field:"dispatch_orders.dispatch_no",option:"LIKE_ANYWHERE",values:[s]}],size:15,specialConditions:[],workflowSearchBean:{},dynamicFormCode:"dispatch_orders",dynamicFormTable:null,ignoreField:!0,developmentSystemId:null,debugFlag:!0}};this.initData(t)})},methods:{initData(s){this.axios.post("/api/testdwy",{...s}).then(s=>{s.data.content.forEach(s=>{s.is_choose=!1,s.dispatch_no=s.dispatch_orders.dispatch_no,s.not_finished_num=s.dispatch_num-s.finished_num}),this.tableData.push(...s.data.content)})},handelGoSure(){if(0===this.tableData.filter(s=>s.is_choose).length)return this.$Message.warning("请先选择数据!");const s=Math.floor(100*Math.random()),t=JSON.stringify(this.tableData.filter(s=>s.is_choose));localStorage.setItem(s+"",t),this.$router.push({path:"/cms/finish/detailed",query:{id:s}})},handleReturn(){this.$router.push("/cms/home")},handleChoose(s,t){s.is_choose=!s.is_choose},handleShow(){this.is_show=!this.is_show}}},o=n,c=(e("5041"),e("2877")),d=Object(c["a"])(o,a,i,!1,null,"7e59a84e",null);t["default"]=d.exports},"90de":function(s,t,e){}}]);
|