| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-69d4c6c7"],{"0888":function(e,t,i){"use strict";i.r(t);var s=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{height:"100vh"}},[t("div",{staticClass:"bdy",style:2==e.type?{height:"16rem"}:{}},[t("div",{directives:[{name:"show",rawName:"v-show",value:1==e.type,expression:"type==1"}],staticStyle:{"font-size":"1.3rem","font-weight":"bold",color:"#fff","margin-bottom":"1rem"}},[e._v("发货单号")]),t("div",{directives:[{name:"show",rawName:"v-show",value:1==e.type,expression:"type==1"}],staticClass:"secd_input_r"},[t("b-form-select",{staticClass:"inp select_list",staticStyle:{height:"3rem"},attrs:{id:"input-3",options:e.options,filterable:"",required:"",placeholder:"请选择站点"},model:{value:e.selected,callback:function(t){e.selected=t},expression:"selected"}})],1),t("div",{staticStyle:{"font-size":"1.3rem","font-weight":"bold",color:"#fff",margin:"1rem 0"}},[e._v("通道门")]),t("div",{staticClass:"secd_input_r"},[t("b-form-select",{staticClass:"inp select_list",staticStyle:{height:"3rem"},attrs:{id:"input-4",options:e.options1,filterable:"",required:""},model:{value:e.selected1,callback:function(t){e.selected1=t},expression:"selected1"}})],1),t("div",{staticClass:"bdy_btn"},[t("Button",{staticClass:"header_btn",staticStyle:{"margin-left":"3rem",height:"2.6rem"},attrs:{ghost:""},on:{click:e.handelGoSure}},[e._v(" 确认")])],1)])])},o=[],a={data(){return{is_show:!0,is_use:!1,selected:"",selected1:"",options:[],options1:[],type:1}},created(){this.type=this.$route.query.type;let e=JSON.parse(JSON.stringify(this.$route.query));if(!e.Authorization||!e.site)return this.$Message.warning({content:"请联系开发者,缺少站点和人员信息!",duration:0,closable:!0});let t={site:e.site},i=e.Authorization,s="prod"==e.systemType?"http://122.112.250.253:7774/":"test"==e.systemType?"http://121.36.142.167:7774/":"";localStorage.setItem("site",JSON.stringify(t)),localStorage.setItem("token",i),localStorage.setItem("dwy_url",s);const o={url:localStorage.getItem("dwy_url")+"jbl/api/module-data/delivery_note_list/page",post:{direction:"DESC",property:"id",fromClientType:"pc",number:0,sorts:[],rules:[],size:999,specialConditions:[],dynamicFormCode:"delivery_note",developmentSystemId:null,debugFlag:!1}},a={url:localStorage.getItem("dwy_url")+"jbl/api/module-data/device_list/page",post:{debugFlag:!0,developmentSystemId:null,direction:"DESC",dynamicFormCode:"device",fromClientType:"pc",number:0,property:"id",rules:[{field:"site",option:"IN",values:[JSON.parse(localStorage.getItem("site")).site]}],size:999,sorts:[{property:"device_code",direction:"ASC"}],specialConditions:[]}};this.axios.post("/api/testdwy",{...o}).then(e=>{this.options=e.data.content.filter(e=>"NOT_APPROVED"===e.status_dk),this.options.forEach(e=>{e.value=e.dynamic_form_value_id,e.text=e.no})}),this.axios.post("/api/testdwy",{...a}).then(e=>{let t=!!e.data.content.filter(e=>1==e.status).find(e=>-1!=e.title.indexOf("通道门"))&&e.data.content.filter(e=>1==e.status).find(e=>-1!=e.title.indexOf("通道门")).dynamic_form_value_id;if(t){const e={url:`${localStorage.getItem("dwy_url")}jbl/api/module-data/device/device/472663265332506624/${t}`};this.axios.post("/api/testdwyget",e).then(e=>{this.options1=e.data.data.device_machine,this.options1.forEach(e=>{e.value=e.machine_code,e.text=e.machine_title})})}})},methods:{handelGoSure(){if(1==this.type){if(!this.selected||!this.selected1)return this.$Message.warning("请先选择!");this.$router.push({path:"/cms/bigDispatch",query:{id:this.selected,code:this.selected1,title:this.options1.find(e=>e.value==this.selected1).text}})}else{if(!this.selected1)return this.$Message.warning("请先选择!");this.$router.push({path:"/cms/inOut",query:{code:this.selected1,title:this.options1.find(e=>e.value==this.selected1).text}})}},handleReturn(){this.$router.push("/cms/choose")}}},l=a,r=(i("935c"),i("2877")),n=Object(r["a"])(l,s,o,!1,null,"72bf62de",null);t["default"]=n.exports},"935c":function(e,t,i){"use strict";i("f5ed")},f5ed:function(e,t,i){}}]);
|