chunk-241c9cfc.036cf7a85f38dd5baf5a.0.1.0.js 9.7 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-241c9cfc"],{"0126":function(e,t,n){"use strict";var a=n("85a0");n.n(a).a},"0340":function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n("d81d"),n("13d5"),n("c19f"),n("ace4"),n("b64b"),n("d3b7"),n("07ac"),n("5cc6"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("170b"),n("b39a"),n("72f7");var a=n("21a6"),i=n.n(a),o=n("1146"),r=n.n(o),c=function(e){var t;if("undefined"!=typeof ArrayBuffer){t=new ArrayBuffer(e.length);for(var n=new Uint8Array(t),a=0;a!=e.length;++a)n[a]=255&e.charCodeAt(a);return t}t=new Array(e.length);for(var i=0;i!=e.length;++i)t[i]=255&e.charCodeAt(i);return t};function l(e){var t=e.cols,n=e.list,a=e.fileName,o=e.sheetName,l=e.bookType,s=void 0===l?"xlsx":l,u=Object.keys(t),f=n.map((function(e){return u.reduce((function(n,a){return n[t[a]]=e[a],n}),{})}));a=a||"导出文件_"+Date.now(),o=o||a;var d=r.a.utils.book_new(),p=r.a.utils.json_to_sheet(f,{header:Object.values(t)});d.SheetNames.push(o),d.Sheets[o]=p;var m={bookType:s,bookSST:!1,type:"binary",cellStyles:!0,defaultCellStyle:{font:{name:"Verdana",sz:13,color:"FF00FF88"},fill:{fgColor:{rgb:"FFFFAA00"}}},showGridLines:!1},h=r.a.write(d,m),b=new Blob([c(h)],{type:"application/octet-stream"});i.a.saveAs(b,a+"."+s)}},"0f41":function(e,t,n){"use strict";n.r(t);var a=(n("99af"),n("d81d"),n("b0c0"),n("d3b7"),n("9911"),n("5530")),i=(n("96cf"),n("1da1")),o=n("105f"),r=n("0340"),c="APP_NZK8W31RRXC8TH2BPYBT",l="FORM-YSA66KC1997LC164W875RALOWF8S1YHQPXTHKUC",s={name:"admin-system",mixins:[{data:function(){return{tableHeader:[{header:"样品名称",field:"textField_khlrd6ar",align:"center",fixed:!0},{header:"样品编号",field:"selectField_kiob6l17",align:"center",fixed:!0},{header:"分类",field:"textField_khls8t3x",align:"center",fixed:!0},{header:"客户名称",field:"textField_khlmcttq",align:"center"},{header:"创建时间",field:"gmtCreate",align:"center"},{header:"更新时间",field:"gmtModified",align:"center"},{header:"操作",align:"center",slot:"operate"}]}}}],components:{tableList:function(){return n.e("chunk-723eb2cc").then(n.bind(null,"5d38"))},datePick:function(){return n.e("chunk-2d0c72d6").then(n.bind(null,"5005"))}},data:function(){return{tableData:[],paginationInitial:{page:1,size:10,total:0},tableSelection:[],filterData:{name:"",code:"",cus:""},paramsPrevious:{}}},filters:{},computed:{canBatch:function(){return!(this.tableSelection.length>0)}},watch:{},methods:{queryTable:function(e){var t=this;return Object(i.a)(regeneratorRuntime.mark((function n(){var i;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(o.a)(t._fmtParams(e));case 2:i=n.sent,t.tableData=i.list.map((function(e){return Object(a.a)({formInstId:e.formInstId,gmtCreate:e.gmtCreate,gmtModified:e.gmtModified,link:"https://www.aliwork.com/".concat(c,"/formDetail/").concat(l,"?formInstId=").concat(e.formInstId),title:"样品编号: ".concat(e.formData.selectField_kiob6l17)},e.formData)})),t.paginationInitial.total=i.total;case 5:case"end":return n.stop()}}),n)})))()},paginationChanged:function(e){var t=e.page,n=e.size;this.paginationInitial.page=t,this.paginationInitial.size=n,this.queryTable(!0)},_fmtParams:function(e){var t=[],n=function(e,n){var a=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n&&(a&&(n=JSON.stringify(n)),i&&(n=JSON.stringify(n)),t.push({fieldName:e,value:n}))};n("textField_khlrd6ar",this.filterData.name),n("selectField_kiob6l17",this.filterData.code),n("textField_khlmcttq",this.filterData.cus),n("textField_khls8t3x","非特");var a={appType:c,userId:"yida_pub_account",formId:l,pageIndex:this.paginationInitial.page,pageSize:this.paginationInitial.size,conditionList:t};return e||(this.tableData=[],this.paginationInitial.total=0,this.paginationInitial.page=1),a},handleSkipDetail:function(e){var t=e.link;window.open(t)},handleShowDispatch:function(){Object(r.a)({cols:{title:"样品编号",link:"二维码地址"},list:this.tableSelection,fileName:"标签批量打印",bookType:"xls"})}},created:function(){var e=this;return Object(i.a)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e.$store.commit("user/SET_TOKEN","cVhNZqaqTimBB7LRBhpA"),e.queryTable();case 2:case"end":return t.stop()}}),t)})))()},mounted:function(){return Object(i.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})))()}},u=(n("0126"),n("2877")),f=Object(u.a)(s,(function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"main"},[n("div",{staticClass:"main-top"},[n("h2",[e._v(e._s(e.$route.meta.title))])]),n("div",{staticClass:"main-oper"},[n("span",{staticClass:"main-oper-t"},[e._v("样品名称:")]),n("el-input",{attrs:{placeholder:"请输入",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.queryTable()}},model:{value:e.filterData.name,callback:function(t){e.$set(e.filterData,"name",t)},expression:"filterData.name"}}),n("span",{staticClass:"main-oper-t"},[e._v("样品编号:")]),n("el-input",{attrs:{placeholder:"请输入",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.queryTable()}},model:{value:e.filterData.code,callback:function(t){e.$set(e.filterData,"code",t)},expression:"filterData.code"}}),n("span",{staticClass:"main-oper-t"},[e._v("客户名称:")]),n("el-input",{attrs:{placeholder:"请输入",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.queryTable()}},model:{value:e.filterData.cus,callback:function(t){e.$set(e.filterData,"cus",t)},expression:"filterData.cus"}}),n("div",{staticClass:"main-oper-button"},[n("el-button",{attrs:{type:"primary",icon:"el-icon-search"},on:{click:function(t){return t.stopPropagation(),e.queryTable()}}},[e._v("查询")]),n("el-button",{attrs:{type:"warning",icon:"el-icon-thumb",disabled:e.canBatch},on:{click:function(t){return e.handleShowDispatch()}}},[e._v("导出+ "+e._s(e.tableSelection.length))])],1)],1),n("tableList",{staticClass:"table",attrs:{props:e.tableHeader,data:e.tableData,paging:e.paginationInitial,selection:e.tableSelection},on:{paginationChanged:e.paginationChanged,"update:selection":function(t){e.tableSelection=t}},scopedSlots:e._u([{key:"operate",fn:function(t){var a=t.scope;return[n("el-button",{attrs:{size:"mini",type:"primary"},on:{click:function(t){return e.handleSkipDetail(a.row)}}},[e._v("详情")])]}}])})],1)}),[],!1,null,"4804c0e2",null);t.default=f.exports},"105f":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var a=n("8982");function i(e){var t=e.userId,n=e.appType,i=e.formId,o=e.conditionList,r=e.pageIndex,c=void 0===r?1:r,l=e.pageSize,s={pageIndex:c,pageSize:void 0===l?10:l,userId:t,appType:n,formId:i};return o&&(s.conditionList=o),a.f.postData(function(e){return"https://yida.zitoo.com.cn/api/yida".concat(e)}("/form/select"),s)}},16:function(e,t){},17:function(e,t){},18:function(e,t){},"21a6":function(e,t,n){(function(n){var a,i,o;!function(n,r){i=[],void 0===(o="function"==typeof(a=r)?a.apply(t,i):a)||(e.exports=o)}(0,(function(){"use strict";function t(e,t,n){var a=new XMLHttpRequest;a.open("GET",e),a.responseType="blob",a.onload=function(){c(a.response,t,n)},a.onerror=function(){},a.send()}function a(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var o="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,r=o.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=o.saveAs||("object"!=typeof window||window!==o?function(){}:"download"in HTMLAnchorElement.prototype&&!r?function(e,n,r){var c=o.URL||o.webkitURL,l=document.createElement("a");n=n||e.name||"download",l.download=n,l.rel="noopener","string"==typeof e?(l.href=e,l.origin===location.origin?i(l):a(l.href)?t(e,n,r):i(l,l.target="_blank")):(l.href=c.createObjectURL(e),setTimeout((function(){c.revokeObjectURL(l.href)}),4e4),setTimeout((function(){i(l)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,o){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!=typeof t&&(t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}(e,o),n);else if(a(e))t(e,n,o);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout((function(){i(r)}))}}:function(e,n,a,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof e)return t(e,n,a);var c="application/octet-stream"===e.type,l=/constructor/i.test(o.HTMLElement)||o.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||c&&l||r)&&"undefined"!=typeof FileReader){var u=new FileReader;u.onloadend=function(){var e=u.result;e=s?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=e:location=e,i=null},u.readAsDataURL(e)}else{var f=o.URL||o.webkitURL,d=f.createObjectURL(e);i?i.location=d:location.href=d,i=null,setTimeout((function(){f.revokeObjectURL(d)}),4e4)}});o.saveAs=c.saveAs=c,e.exports=c}))}).call(this,n("c8ba"))},"85a0":function(e,t,n){}}]);