1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-05cd0a2c"],{3306:function(e,t,o){},a42d:function(e,t,o){"use strict";o.r(t);var i=function(){var e=this,t=e._self._c;return t("div",[t("div",{staticClass:"content"},[e._l(e.list,(function(o,i){return t("div",{key:i,staticClass:"item"},[t("div",{staticClass:"unit",staticStyle:{display:"flex"}},[t("label",{staticStyle:{width:"50%"}},[e._v("销售订单号:")]),t("div",{staticStyle:{width:"50%","word-break":"break-all"}},[e._v(e._s(o.no))])]),t("div",{staticClass:"unit",staticStyle:{display:"flex"}},[t("label",[e._v("产品名称:")]),t("div",{staticStyle:{width:"60%"}},[e._v(e._s(o.material_code_show))])]),t("div",{staticStyle:{display:"flex",width:"100%",padding:"0.5rem"}},[t("label",{staticStyle:{width:"15%","text-align":"right"}},[e._v("工艺:")]),t("div",{staticStyle:{width:"60%"}},[e._v(e._s(o.specs))])]),t("div",{staticClass:"unit",staticStyle:{display:"flex"}},[t("label",[e._v("包装数量:")]),t("Input",{staticStyle:{width:"60%",padding:"0 0 0 0.2rem"},attrs:{size:"small",type:"number",placeholder:" 请输入"},model:{value:o.un_box_num,callback:function(t){e.$set(o,"un_box_num",t)},expression:"item.un_box_num"}})],1),t("div",{staticClass:"unit"},[t("label",[e._v("班组:")]),t("span",[t("b-form-select",{staticStyle:{height:"1.4rem",width:"60%",border:"0.1rem solid","border-radius":"0.6rem",background:"#fff"},attrs:{options:e.teamList},on:{change:function(t){return e.handleChooseTeam(t,i)}},scopedSlots:e._u([{key:"first",fn:function(){return[t("b-form-select-option",{attrs:{value:"",disabled:""}},[e._v("请选择班组")])]},proxy:!0}],null,!0),model:{value:o.team_id,callback:function(t){e.$set(o,"team_id",t)},expression:"item.team_id"}})],1)]),t("div",{staticClass:"unit"},[t("label",[e._v("人员:")]),t("Select",{staticStyle:{width:"60%",background:"#fff"},attrs:{options:e.employeeList,multiple:"",transfer:"",size:"small",disabled:!o.team_id},model:{value:o.employee_id,callback:function(t){e.$set(o,"employee_id",t)},expression:"item.employee_id"}},e._l(e.employeeList,(function(e){return t("Option",{key:e.id,attrs:{label:e.text,value:e.value}})})),1)],1),t("div",{staticClass:"unit"},[t("label",[e._v("商标损耗:")]),t("b-form-select",{staticStyle:{height:"1.4rem",width:"60%",border:"0.1rem solid","border-radius":"0.6rem",background:"#fff"},attrs:{options:e.numList},scopedSlots:e._u([{key:"first",fn:function(){return[t("b-form-select-option",{attrs:{value:"",disabled:""}},[e._v("请选择数量")])]},proxy:!0}],null,!0),model:{value:o.num,callback:function(t){e.$set(o,"num",t)},expression:"item.num"}})],1)])})),t("div",{staticClass:"footer_btn"},[t("b-button",{staticStyle:{width:"35%","margin-left":"3%"},attrs:{variant:"primary"},on:{click:e.handleReturn}},[e._v("返回")]),t("b-button",{staticStyle:{width:"35%","margin-right":"3%"},attrs:{variant:"primary"},on:{click:e.handleSure}},[e._v("确认")])],1)],2)])},a=[],s={data(){return{list:[],formData:{},teamList:[],employeeList:[],numList:[{value:1,text:1},{value:2,text:2},{value:3,text:3}],state:!0}},created(){const e={url:"http://121.36.142.167:7774/jbl/api/module-data/team_list/page",post:{direction:"DESC",property:"id",fromClientType:"pc",number:0,sorts:[],rules:[],size:15,specialConditions:[],dynamicFormCode:"team",developmentSystemId:null,debugFlag:!0}};this.axios.post("/api/testdwy",{...e}).then(e=>{this.teamList=e.data.content.filter(e=>e.status),this.teamList.forEach(e=>{e.value=e.team_code,e.text=e.title})});const t={url:"http://121.36.142.167:7774/jbl/api/module-data/team_code_btn/page",post:{direction:"DESC",property:"id",fromClientType:"pc",number:0,sorts:[],rules:[],size:15,specialConditions:[],workflowSearchBean:{},dynamicFormCode:"person",dynamicFormTable:null,ignoreField:!0,developmentSystemId:null,debugFlag:!0}};this.axios.post("/api/testdwy",{...t}).then(e=>{this.employeeList=e.data.content,this.employeeList.forEach(e=>{e.value=e.no,e.text=e.name})})},beforeRouteLeave(e,t,o){localStorage.removeItem(this.$route.query.id+""),o()},beforeRouteEnter(e,t,o){localStorage.getItem(e.query.id)?o():o(e=>{e.$router.replace("/cms/package/detail")})},mounted(){const e=this.$route.query.id;this.initData(e)},methods:{initData(e){this.list=JSON.parse(localStorage.getItem(e+"")),this.list.forEach(e=>{e.team_id=""})},handleChooseTeam(e,t){if(e){const o=this.teamList.find(t=>t.team_code===e).dynamic_form_value_id,i={url:"http://121.36.142.167:7774/jbl/api/module-data/team/team/472629516238663680/"+o};this.axios.post("/api/testdwyget",{...i}).then(e=>{this.list[t].employee_id=e.data.data.employee.map(e=>e.team_code),this.$forceUpdate()})}},handleReturn(){this.$router.go(-1)},handleSure(){let e=[],t="";this.list.forEach((o,i)=>{let a={item_num:i+1,product_no:o.material_code,product_title:o.material_code_show,color_code:o.craft_type_code_show,process_code_two:o.craft_type_two_code,color_code_two:o.decor_two_code,process_title:o.craft_type_code_show,color:o.decor_code_show,process_title_two:o.craft_type_two_show,color_two:o.decor_two_code_show,product_size:o.specs,product_unit:o.unit_code,product_unit_title:o.unit_code_show,order_no:o.exe_sale_order_b.no,order_item_id:o.id,order_item_no:o.item_no,customer_no:o.exe_sale_order_b.customer_code,customer_name:o.exe_sale_order_b.customer_code_show,dealer_no:o.exe_sale_order_b.jingxiaoshang,dealer_name:o.exe_sale_order_b.jingxiaoshang_show,box_num:o.un_box_num};t=o.team_id,e.push(a)});const o={defective_order_no:null,box_time:new Date,team_id:"BZ00016",employee_id:"RX0001",query_order_on:null,site:null,created_by:null,created_date:null,last_modified_by:null,last_modified_date:null,employee_id_show:"郭银",team_id_show:"包装一组"};let i={bizTypeEk:"LOWCODE",bizId:-1,dynamicFormId:"474107044420857856",showModelId:"474108545251880960",data:{box_orders:o,box_orders_label_product:[],box_orders_product:e,production_orders_dtl:e}},a={url:"http://121.36.142.167:7774/jbl/api/module-data/box_orders/box_orders",post:i};this.axios.post("/api/testdwy",a).then(e=>{200===e.code&&(this.$Message.success(e.msg),this.$router.go(-1))})}}},l=s,r=(o("e5b2"),o("2877")),d=Object(r["a"])(l,i,a,!1,null,"6e02f900",null);t["default"]=d.exports},e5b2:function(e,t,o){"use strict";o("3306")}}]);
|