Your Name
2022-11-30 f0cd5a4fe3b366fa753b8da5e387673c30c4d0f7
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-2fd6"],{"+TLc":function(e,t,n){"use strict";var a=n("vays");n.n(a).a},"41Be":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var a=n("FyfS"),r=n.n(a),o=n("Q2AE");function i(e,t){if(1==e||2==e)return!0;if(!t)return!1;var n=o.a.getters&&o.a.getters.roles;if(n&&n.length>0){var a=!0,i=!1,l=void 0;try{for(var s,c=r()(n);!(a=(s=c.next()).done);a=!0){var d=s.value.btnAccess;if(!d)return!1;var u=d.split(",");if(-1!=u.indexOf("all"))return!0;if(-1!=u.indexOf(t))return!0}}catch(e){i=!0,l=e}finally{try{!a&&c.return&&c.return()}finally{if(i)throw l}}return!1}return!1}},"5W5M":function(e,t,n){"use strict";n.d(t,"g",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"d",function(){return l}),n.d(t,"i",function(){return s}),n.d(t,"f",function(){return c}),n.d(t,"e",function(){return d}),n.d(t,"a",function(){return u}),n.d(t,"c",function(){return p}),n.d(t,"h",function(){return f});var a=n("t3Un"),r=n("X4fA");function o(e){return Object(a.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/dictionary-types",method:"get",params:e||{}})}function i(e){return Object(a.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/adddictionary-types",method:"post",data:e})}function l(e){return Object(a.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/deldictionary-types",method:"post",data:e})}function s(e){return Object(a.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/putdictionary-types",method:"post",data:e})}function c(e){return Object(a.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/dictionary-items",method:"get",params:e||{}})}function d(e){return Object(a.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/dictionaryAllItems",method:"get",params:e||{}})}function u(e){return Object(a.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/adddictionary-items",method:"post",data:e})}function p(e){return Object(a.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/deldictionary-items",method:"post",data:e})}function f(e){return Object(a.a)({headers:{Authorization:Object(r.a)()},url:"http://39.104.85.193:4105/putdictionary-items",method:"post",data:e})}},T2rs:function(e,t,n){},cFkm:function(e,t,n){"use strict";var a=n("T2rs");n.n(a).a},ffT5:function(e,t,n){"use strict";n.r(t);var a=n("X4fA"),r=n("W0oK"),o={name:"index",data:function(){return{headers:{Authorization:Object(a.a)()},dialogFormVisible:!1,actionUrlPrefixx:"http://39.104.85.193:4105",form:{name:"",region:"",date1:"",date2:"",delivery:!1,type:[],resource:"",desc:""},formLabelWidth:"120px",fileList:[],ordercode:""}},methods:{showDialog:function(e){this.dialogFormVisible=!0,this.ordercode=e},viewHandle:function(){window.open(r,"_blank")},handleRemove:function(e,t){if(e&&"success"===e.status)return this.dataForm.productList=[],this.$confirm("已清空产品信息")},handleExceed:function(e,t){this.$message.warning("当前限制选择 1个文件,本次选择了 "+e.length+" 个文件")},beforeRemove:function(e,t){if(e&&"success"===e.status)return this.$confirm("确定移除 "+e.name+",并清空产品信息吗?")},handleSuccess:function(e,t,n){"200"===e.code?(this.$notify({title:"成功",duration:2e3,message:"标签退回成功",type:"success"}),this.fileList=[],this.dialogFormVisible=!1,this.$emit("getinfo")):(this.$message.warning(e.message),this.fileList=[])},handleError:function(e,t,n){this.fileList=[]},handlePreview:function(e){},returnAllTagHandler:function(){}}},i=(n("cFkm"),n("KHd+")),l=Object(i.a)(o,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-dialog",{attrs:{title:"标签退回",visible:e.dialogFormVisible,width:"380px"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[n("el-tabs",{staticStyle:{height:"140px"},attrs:{"tab-position":"left"}},[n("el-tab-pane",{attrs:{label:"部分退回"}},[n("el-form",{attrs:{model:e.form}},[n("div",{staticStyle:{margin:"0 20px 20px 40px"}},[n("el-button",{attrs:{type:"text"},on:{click:e.viewHandle}},[e._v("下载excel模板")])],1),e._v(" "),n("div",{staticStyle:{margin:"20px 20px 20px 40px"}},[n("el-upload",{staticClass:"upload",attrs:{action:e.actionUrlPrefixx+"/contract/"+this.ordercode+"/returnTag",headers:e.headers,"on-preview":e.handlePreview,"on-remove":e.handleRemove,"before-remove":e.beforeRemove,limit:1,"on-exceed":e.handleExceed,"on-success":e.handleSuccess,"on-error":e.handleError,"show-file-list":!1,"file-list":e.fileList}},[n("el-button",{attrs:{size:"small",type:"primary"}},[e._v("点击上传")])],1)],1)])],1),e._v(" "),n("el-tab-pane",{attrs:{label:"全部退回"}},[n("div",{staticStyle:{margin:"20px 20px 20px 40px"}},[n("el-button",{attrs:{type:"warning",plain:""},on:{click:e.returnAllTagHandler}},[e._v("全部退回")])],1)])],1)],1)},[],!1,null,"40efd1f8",null);l.options.__file="index.vue";t.default=l.exports},qfX1:function(e,t,n){"use strict";n.r(t);var a=n("jo6Y"),r=n.n(a),o=n("gDS+"),i=n.n(o),l=n("14Xm"),s=n.n(l),c=n("D3Ub"),d=n.n(c),u=n("QbLZ"),p=n.n(u),f=(n("rdXg"),n("0ERz")),m=n.n(f),v=n("YsXA"),g=n.n(v),b=n("csBS"),h=n("ffT5"),_=n("jJIE"),y=n.n(_),w=n("41Be"),x=n("Na1v"),S=n("8fCU"),k=n("L2JU"),T=n("5W5M"),L=n("XJYT"),O=n("7Qib"),C=n("+LSh"),H=n.n(C),F={name:"apply",data:function(){return{blankDialog:!1,printVisible:!1,itemcode:"",createddate:"",itemname:"",type:"",manufacturer:"",itemcodeOne:"",itemcodeTwo:"",createddateOne:"",createddateTwo:"",itemnameOne:"",itemnameTwo:"",typeOne:"",typeTwo:"",manufacturerOne:"",manufacturerTwo:"",imgOne:"",imgTwo:"",baseUrl:"http://39.104.85.193:4105/upload/contract/",pageSize:10,recordTotal:0,currentPage:1,pageTotal:0,tableKey:0,contractData:null,listLoading:!0,allDataLoading:!0,dataForm:{id:"",ordercode:"",status:"",operator:"",manufacturer:"",origincontract:"",confirmcontract:"",file:"",productInfoList:[]},queryForm:{manufacturer:"",ordercode:"",status:"",operator:""},dialogFormVisible:!1,dialogStatus:"",dataFormRules:{manufacturer:[{required:!0,message:"生产企业不能为空",trigger:"blur"}],productInfoList:[{required:!0,message:"产品列表不能为空",trigger:"blur"}]},orderStatus:[],productDialogFormVisible:!1,enterpriseDialogFormVisible:!1,productData:[],productVoList:[],productVoDialogVisible:!1,currentRow:null,printObj:{id:"printMe",extraHead:'<meta  http-equiv="Content-Language" content="zh-cn"/>'},allData:[],printData:[],isSupervision:y.a.get("isSupervision"),roleType:y.a.get("roleType"),produceDialogVisible:!1,producedate:"",id:""}},created:function(){this.getConfirmList(),this.getDictionaryStatusList()},components:{confirmForm:b.default,returnDialog:h.default},computed:p()({},Object(k.b)(["userType","username"])),methods:{produceHandle:function(e){this.produceDialogVisible=!0,this.id=e.id},produceConfirm:function(){var e=this,t={id:this.id,producedate:this.producedate};Object(x.s)(t).then(function(t){var n=t.data;"200"===n.code?(e.getConfirmList(),e.produceDialogVisible=!1):Object(S.a)({error:n.message,vm:_this})})},getDictionaryStatusList:function(){var e=this;if(!(e.orderStatus&&e.orderStatus.length>0)){var t={dictionaryType:"合同状态"};Object(T.e)(t).then(function(t){var n=t.data;200==n.code?e.orderStatus=n.result:Object(S.a)({error:n.message,vm:e})}).catch(function(t){Object(S.a)({error:t,vm:e})})}},getConfirmList:function(){var e=this,t={};for(var n in t.pageIndex=e.currentPage,t.pageSize=e.pageSize,t.sort=e.sort,t.order=e.order,e.queryForm)void 0!=e.queryForm[n]&&""!=e.queryForm[n].toString()&&(t[n]=e.queryForm[n]);e.listLoading=!0,Object(x.e)(t).then(function(t){var n=t.data;if(200==n.code){var a=n.result;e.recordTotal=a.totalCount,e.pageSize=a.pageSize,e.pageTotal=Object(O.a)(a.totalCount,a.pageSize),e.currentPage=a.pageIndex,e.contractData=a.result}else Object(S.a)({error:n.message,vm:e});e.listLoading=!1}).catch(function(t){e.listLoading=!1,Object(S.a)({error:t,vm:e})})},createHandle:function(){var e=this,t=this,n=y.a.get("userName");this.$refs.dataForm.validate(function(a){if(a){var r=new FormData;for(var o in t.dataForm)void 0!=t.dataForm[o]&&""!=t.dataForm[o].toString()&&r.append(o,t.dataForm[o]);r.append("operator",n);var i=e.$refs.importFileInput.files;if(!(i.length>0))return void Object(S.a)({error:"请上传合同",vm:e});r.append("file",i[0]),Object(x.h)(r).then(function(e){var n=e.data;200==n.code?(t.dialogFormVisible=!1,t.$message({message:"创建成功",type:"success"}),t.getConfirmList()):Object(S.a)({error:n.message,vm:t})}).catch(function(e){Object(S.a)({error:e,vm:t})})}})},submitHandle:function(e){var t=this;L.MessageBox.confirm("确定提交信息","确定提交",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){var n={};n.id=e.id,Object(x.x)(n).then(function(e){var n=e.data;200==n.code?(t.$message({message:"提交成功",type:"success"}),t.getConfirmList()):Object(S.a)({error:n.message,vm:t})}).catch(function(e){Object(S.a)({error:e,vm:t})})}).catch(function(){console.log("已取消提交")})},deleteHandle:function(e){var t=this;this.$prompt("请输入意见","提示",{confirmButtonText:"确定",cancelButtonText:"取消"}).then(function(n){var a=n.value;e.opinion=a,t.deleteAction(e)}).catch(function(){t.$message({type:"info",message:"取消"})})},deleteAction:function(e){var t=this,n={};n.id=e.id,n.opinion=e.opinion,Object(x.t)(n).then(function(e){var n=e.data;200==n.code?(t.$message({message:"拒绝成功",type:"success"}),t.getConfirmList()):Object(S.a)({error:n.message,vm:t})}).catch(function(e){Object(S.a)({error:e,vm:t})})},refreshHandle:function(){this.getConfirmList()},queryHandle:function(){this.currentPage=1,this.getConfirmList()},resetDataForm:function(){this.dataForm={id:"",ordercode:"",status:"",operator:"",manufacturer:"",origincontract:"",confirmcontract:"",file:"",productInfoList:[]}},showCreateHandle:function(){var e=this;this.resetDataForm(),this.dialogStatus="create",this.dialogFormVisible=!0,this.$nextTick(function(){e.$refs.dataForm.clearValidate()})},updateHandle:function(){var e=this;this.$refs.dataForm.validate(function(t){var n=e;if(t){var a=new FormData;a.append("id",n.dataForm.id);var r=e.$refs.importFileInput.files;r.length>0&&a.append("file",r[0]),Object(x.f)(a).then(function(e){var t=e.data;200==t.code?(n.dialogFormVisible=!1,n.$message({message:"确认成功",type:"success"}),n.getConfirmList()):Object(S.a)({error:t.message,vm:n})}).catch(function(e){Object(S.a)({error:e,vm:n})})}})},showEditHandle:function(e){this.$refs.confirm.showConfirmForm(e)},viewProductHandle:function(e){this.productVoList=e.productInfoList,this.productVoDialogVisible=!0},handleSizeChange:function(e){this.pageSize=e,this.currentPage=1,this.getConfirmList()},handleCurrentChange:function(e){this.currentPage=e,this.getConfirmList()},getBtnPermission:function(e){return Object(w.a)(this.userType,e)},sortChange:function(e){this.sort=e.prop,this.order=e.order,this.getConfirmList()},showProductHandle:function(){this.productDialogFormVisible=!0},showEnterprise:function(){this.enterpriseDialogFormVisible=!0},selectProductHandle:function(){},downloadHandle:function(e){window.open(this.baseUrl+e,"_blank")},currentRowChange:function(e){var t=this;return d()(s.a.mark(function e(){return s.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}},e,t)}))()},exportRFID:function(e){var t=this;if(null!=this.currentRow){var n=this,a={};a.ordercode=this.currentRow.ordercode,Object(x.k)(a).then(function(e){var a=e.data;if(200==a.code){var r=a.result;if(0==r.length)return void Object(S.a)({error:"未查到数据",vm:n});var o=n.formatJson(["ordercode","originalcode","itemname","manufacturer","explosivecontent","boxnumber","type","level","createddate","boxrange","price","crc"],r);t.downCsv(o,["合同单号","电子标签号","产品名称","生产厂家","总装药量","箱含量","产品类型","产品级别","创建时间","包装标识码","进价","校验码"])}else Object(S.a)({error:a.message,vm:n})}).catch(function(e){Object(S.a)({error:e,vm:n})})}else this.$message({message:"请选择行",type:"warning"})},exportAll:function(){null!=this.currentRow?this.blankDialog=!0:this.$message({message:"请选择行",type:"warning"})},viewReturnHandle:function(e){this.$refs.returnDialog.showDialog(e)},exportBarCode:function(e){var t=this;return d()(s.a.mark(function n(){var a,r;return s.a.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return(a={}).ordercode=t.currentRow.ordercode,a.needBlank=e,t.listLoading=!0,n.next=6,Object(x.d)(a);case 6:"200"===(r=n.sent).data.code?(t.listLoading=!1,t.printData=r.data.result.printInfo,sessionStorage.setItem("key",i()(t.printData)),t.$router.push({path:"/contract/print",query:{ifPrintBlank:e}})):(t.listLoading=!1,t.$message({message:r.data.message,type:"warning"}));case 8:case"end":return n.stop()}},n,t)}))()},printThousand:function(e){for(var t=this,n=e,a=e.length/2,r=0;r<a;r++)if(null===n[2*r].id||null===n[2*r+1].id)if(null===n[2*r].id&&null===n[2*r+1].id){var o=window.document.body.innerHTML,i=document.getElementById("printMeNull").innerHTML;window.document.body.innerHTML=i,window.print(),window.document.body.innerHTML=o}else{document.getElementById("itemcode").innerHTML=n[2*r].itemcode,document.getElementById("createddate").innerHTML=n[2*r].createddate,document.getElementById("itemname").innerHTML=n[2*r].itemname,document.getElementById("type").innerHTML=n[2*r].type,document.getElementById("manufacturer").innerHTML=n[2*r].manufacturer,g()("#barcode",n[2*r].itemcode,{format:"CODE128",lineColor:"#000",background:"#EBEEF5",width:8,height:300,displayValue:!1});o=window.document.body.innerHTML,i=document.getElementById("printMeSingle").innerHTML;window.document.body.innerHTML=i,document.getElementById("qrcode").innerHTML="";new m.a("qrcode",{width:400,height:400,text:n[2*r].itemcode,render:"canvas",background:"#f0f"});window.print(),window.document.body.innerHTML=o}else{document.getElementById("itemcodeOne").innerHTML=n[2*r].itemcode,document.getElementById("itemcodeTwo").innerHTML=n[2*r+1].itemcode,document.getElementById("createddateOne").innerHTML=n[2*r].createddate,document.getElementById("createddateTwo").innerHTML=n[2*r+1].createddate,document.getElementById("itemnameOne").innerHTML=n[2*r].itemname,document.getElementById("itemnameTwo").innerHTML=n[2*r+1].itemname,document.getElementById("typeOne").innerHTML=n[2*r].type,document.getElementById("typeTwo").innerHTML=n[2*r+1].type,document.getElementById("manufacturerOne").innerHTML=n[2*r].manufacturer,document.getElementById("manufacturerTwo").innerHTML=n[2*r+1].manufacturer,g()("#barcode1",n[2*r].itemcode,{format:"CODE128",lineColor:"#000",background:"#EBEEF5",width:8,height:300,displayValue:!1}),g()("#barcode2",n[2*r+1].itemcode,{format:"CODE128",lineColor:"#000",background:"#EBEEF5",width:8,height:300,displayValue:!1});o=window.document.body.innerHTML,i=document.getElementById("printMe").innerHTML;window.document.body.innerHTML=i,document.getElementById("qrcode1").innerHTML="";new m.a("qrcode1",{width:400,height:400,text:n[2*r].itemcode,render:"canvas",background:"#f0f"});document.getElementById("qrcode2").innerHTML="";new m.a("qrcode2",{width:400,height:400,text:n[2*r+1].itemcode,render:"canvas",background:"#f0f"});window.print(),window.document.body.innerHTML=o}window.document.body.innerHTML=i,window.location.reload(),this.setTimeout(function(){t.printVisible=!0})},exportProductHandle:function(e){var t=this;if(0===e.productInfoList.length)this.$message({type:"warning",message:"无数据可导出"});else{for(var a=[],o=0;o<e.productInfoList.length;o++){var i=r()(e.productInfoList[o],[]);i.manufacturer=e.manufacturer,i.operator=e.operator,a.push(i)}Promise.all([n.e("chunk-0d49"),n.e("chunk-5aa0")]).then(n.bind(null,"S/jZ")).then(function(e){var n=["甲方","乙方","产品名称","流向码","规格","含药量","箱含量","变更数量","类型","等级","数量"],r=["operator","manufacturer","name","directionCode","specification","explosiveContent","boxNumber","changenum","type","level","num"];"null"!=t.isSupervision&&(n.push("进价"),r.push("price"));var o=t.formatJson(r,a);e.export_json_to_excel({header:n,data:o,filename:"产品明细"})})}},formatJson:function(e,t){return t.map(function(t){return e.map(function(e){return"createddate"===e?Object(O.f)(t[e],"{y}-{m}-{d}"):t[e]})})},downCsv:function(e,t){this.data;H.a.downloadCsv(e,{header:t},this.currentRow.ordercode+"电子标签号.csv")},handleSelectionChange:function(e){e.length>1?(this.$refs.contractTable.clearSelection(),this.$refs.contractTable.toggleRowSelection(e.pop())):0===e.length?this.currentRow=null:this.currentRow=e[0]}}},j=(n("+TLc"),n("KHd+")),D=Object(j.a)(F,function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"app-container"},[n("div",[n("el-input",{staticClass:"filter-item",staticStyle:{width:"25%"},attrs:{placeholder:"批发企业"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.queryHandle(t):null}},model:{value:e.queryForm.operator,callback:function(t){e.$set(e.queryForm,"operator",t)},expression:"queryForm.operator"}}),e._v(" "),n("el-input",{staticClass:"filter-item",staticStyle:{width:"25%"},attrs:{placeholder:"合同单号"},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.queryHandle(t):null}},model:{value:e.queryForm.ordercode,callback:function(t){e.$set(e.queryForm,"ordercode",t)},expression:"queryForm.ordercode"}}),e._v(" "),n("el-select",{attrs:{clearable:"",placeholder:"请选择合同状态"},model:{value:e.queryForm.status,callback:function(t){e.$set(e.queryForm,"status",t)},expression:"queryForm.status"}},e._l(e.orderStatus,function(t){return n("el-option",{key:t.value,staticClass:"filter-item",attrs:{label:t.label,value:t.value},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.queryHandle(t):null}}})})),e._v(" "),n("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-refresh"},on:{click:e.refreshHandle}},[e._v("刷新\n            ")]),e._v(" "),n("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.queryHandle}}),e._v(" "),e.getBtnPermission("review")&&"null"==e.isSupervision?e._e():n("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.exportRFID}},[e._v("导出电子标签号")]),e._v(" "),e.getBtnPermission("review")&&"null"==e.isSupervision?e._e():n("el-button",{staticClass:"filter-item",staticStyle:{"margin-left":"10px"},attrs:{type:"primary",icon:"el-icon-download"},on:{click:e.exportAll}},[e._v("打印内包装号")])],1),e._v(" "),n("div",{staticClass:"table_content"},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,ref:"contractTable",staticStyle:{width:"100%"},attrs:{data:e.contractData,border:"",fit:"","highlight-current-row":""},on:{"sort-change":e.sortChange,"selection-change":e.handleSelectionChange}},[n("el-table-column",{attrs:{type:"selection",width:"55"}}),e._v(" "),n("el-table-column",{attrs:{type:"index",label:"序号",align:"center",width:"80"}}),e._v(" "),n("el-table-column",{attrs:{label:"合同单号",prop:"ordercode",align:"center",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.ordercode))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"合同状态",prop:"status",align:"center",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.status))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"标签退回状态",prop:"returnstatus",align:"center",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.returnstatus))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"甲方",prop:"operator",align:"center",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.operator))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"乙方",prop:"manufacturer",align:"center",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.manufacturer))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"乙方意见",prop:"opinion",align:"center",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.opinion))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"创建时间",prop:"createddate",align:"center",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e._f("parseTime")(t.row.createddate,"{y}-{m}-{d}")))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"更新时间",prop:"modifieddate",align:"center",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e._f("parseTime")(t.row.modifieddate,"{y}-{m}-{d}")))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"生产时间",prop:"producedate",align:"center",sortable:"custom"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e._f("parseTime")(t.row.producedate,"{y}-{m}-{d}")))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"操作",align:"center",width:"240","class-name":"small-padding fixed-width"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){e.viewProductHandle(t.row)}}},[e._v("产品明细")]),e._v(" "),n("el-button",{attrs:{type:"text"},on:{click:function(n){e.exportProductHandle(t.row)}}},[e._v("导出产品明细")]),e._v(" "),e.getBtnPermission("review")&&"null"==e.isSupervision?e._e():n("el-button",{attrs:{type:"text"},on:{click:function(n){e.showEditHandle(t.row)}}},[e._v("确认")]),e._v(" "),e.getBtnPermission("review")&&"null"==e.isSupervision?e._e():n("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:function(n){e.deleteHandle(t.row)}}},[e._v("拒绝")]),e._v(" "),e.getBtnPermission("review")&&"null"==e.isSupervision?e._e():n("el-button",{staticStyle:{color:"red"},attrs:{type:"text"},on:{click:function(n){e.produceHandle(t.row)}}},[e._v("生成标签")]),e._v(" "),"已生成"===t.row.status?n("el-button",{attrs:{type:"text"},on:{click:function(n){e.viewReturnHandle(t.row.ordercode)}}},[e._v("退回标签")]):e._e()]}}])})],1),e._v(" "),n("br"),e._v(" "),n("el-pagination",{directives:[{name:"show",rawName:"v-show",value:e.recordTotal>0,expression:"recordTotal>0"}],staticStyle:{float:"right"},attrs:{"current-page":e.currentPage,"page-sizes":[10,20,30,50],"page-size":e.pageSize,total:e.recordTotal,layout:"total, sizes, prev, pager, next, jumper",background:""},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e._v(" "),n("el-dialog",{attrs:{title:"create"===e.dialogStatus?"新增":"确认",visible:e.dialogFormVisible,"modal-append-to-body":!1,"close-on-click-modal":!1,width:"500px"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[n("el-form",{ref:"dataForm",staticStyle:{"margin-left":"30px",width:"450px"},attrs:{rules:e.dataFormRules,model:e.dataForm,"label-position":"right","label-width":"140px","element-loading-text":"保存中..."}},[n("el-form-item",{attrs:{label:"上传乙方合同:"}},[n("input",{ref:"importFileInput",attrs:{id:"importFileInput",type:"file",accept:""}})])],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(t){"create"===e.dialogStatus?e.createHandle():e.updateHandle()}}},[e._v("确认")])],1)],1),e._v(" "),n("el-dialog",{attrs:{visible:e.productDialogFormVisible,"modal-append-to-body":!1,"close-on-click-modal":!1,width:"1200px"},on:{"update:visible":function(t){e.productDialogFormVisible=t}}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.productData,border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{label:"产品名称",prop:"name",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"流向码",prop:"directionCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.directionCode))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"进价",prop:"purchasePrice",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.purchasePrice))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"售价",prop:"salePrice",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.salePrice))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"生产厂家",prop:"manufacturer",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.manufacturer))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"规格",prop:"specification",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"含药量",prop:"explosiveContent",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.explosiveContent))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"类型",prop:"type",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.type))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"产品级别",prop:"level",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.level))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"生产日期",prop:"createdDate",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(e._f("parseTime")(t.row.productDate,"{y}-{m}-{d}")))])]}}])})],1),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.productDialogFormVisible=!1}}},[e._v("取消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.selectProductHandle()}}},[e._v("确认")])],1)],1),e._v(" "),n("el-dialog",{attrs:{visible:e.productVoDialogVisible,"modal-append-to-body":!1,"close-on-click-modal":!1,width:"1200px"},on:{"update:visible":function(t){e.productVoDialogVisible=t}}},[n("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.productVoList,border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{label:"产品名称",prop:"name",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.name))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"流向码",prop:"directionCode",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.directionCode))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"数量",prop:"num",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.num))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"变更数量",prop:"changenum",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.changenum))])]}}])}),e._v(" "),"null"!=e.isSupervision?n("el-table-column",{attrs:{label:"进价",prop:"price",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.price))])]}}])}):e._e(),e._v(" "),n("el-table-column",{attrs:{label:"生产厂家",prop:"manufacturer",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.manufacturer))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"规格",prop:"specification",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.specification))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"含药量",prop:"explosiveContent",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.explosiveContent))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"类型",prop:"type",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.type))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"产品级别",prop:"level",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.level))])]}}])}),e._v(" "),n("el-table-column",{attrs:{label:"箱含量(挂)",prop:"boxNumber",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("span",[e._v(e._s(t.row.boxNumber))])]}}])})],1)],1),e._v(" "),n("el-dialog",{attrs:{visible:e.blankDialog,title:"提示","close-on-click-modal":!1,width:"22%"},on:{"update:visible":function(t){e.blankDialog=t}}},[n("div",[n("el-row",[n("el-col",{attrs:{span:4}},[n("div",{staticClass:"el-message-box__status el-icon-warning",staticStyle:{display:"inline-block"}})]),e._v(" "),n("el-col",{attrs:{span:20}},[n("div",{staticStyle:{display:"inline-block"}},[e._v("是否打印空白页?")])])],1),e._v(" "),n("div",{staticStyle:{"padding-top":"15px"},attrs:{align:"right"}},[n("el-button",{on:{click:function(t){e.exportBarCode(0)}}},[e._v("不打印")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.exportBarCode(1)}}},[e._v("打印")])],1)],1)]),e._v(" "),n("div",{staticStyle:{clear:"both"}}),e._v(" "),n("el-dialog",{attrs:{visible:e.produceDialogVisible,"modal-append-to-body":!1,"close-on-click-modal":!1,width:"400px","append-to-body":""}},[e._v("\n            生成条码时间:\n            "),n("el-date-picker",{attrs:{"value-format":"yyyy-MM-dd HH:mm:ss",type:"datetime",placeholder:"选择时间"},model:{value:e.producedate,callback:function(t){e.producedate=t},expression:"producedate"}}),e._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.produceDialogVisible=!1}}},[e._v("取消")]),e._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:e.produceConfirm}},[e._v("确认")])],1)],1),e._v(" "),n("el-dialog",{attrs:{visible:e.printVisible,"modal-append-to-body":!1,"close-on-click-modal":!1,width:"50%"},on:{"update:visible":function(t){e.printVisible=t}}},[n("el-table",{key:e.tableKey,attrs:{data:e.printData,border:"",fit:"","highlight-current-row":""}},[n("el-table-column",{attrs:{type:"index",label:"序号",align:"center"}}),e._v(" "),n("el-table-column",{attrs:{label:"操作",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){e.printThousand(t.row)}}},[e._v("打印")])]}}])})],1)],1),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[n("div",{attrs:{id:"printMe"}},[n("el-row",[n("el-col",{attrs:{span:12,align:"center"}},[n("span",{staticStyle:{"font-size":"10px","font-weight":"bolder"}},[e._v(e._s("新疆专用"))])]),e._v(" "),n("el-col",{attrs:{span:12,align:"center"}},[n("span",{staticStyle:{"font-size":"10px","margin-top":"3px"}},[e._v(e._s("新疆专用"))])])],1),e._v(" "),n("el-row",[n("el-col",{staticClass:"barcode",attrs:{span:12,align:"left"}},[n("svg",{attrs:{id:"barcode1"}})]),e._v(" "),n("el-col",{staticClass:"barcode",attrs:{span:12,align:"left"}},[n("svg",{attrs:{id:"barcode2"}})])],1),e._v(" "),n("el-row",[n("el-col",{attrs:{span:12,align:"left"}},[n("el-row",[n("el-col",{staticStyle:{"padding-left":"15px"},attrs:{span:14}},[n("el-row",[n("el-col",{staticStyle:{"margin-top":"3px"},attrs:{span:24,align:"left"}},[n("span",{staticStyle:{"font-size":"8px"},attrs:{id:"itemcodeOne"}},[e._v(e._s(e.itemcodeOne))])])],1),e._v(" "),n("el-row",[n("el-col",{attrs:{span:24,align:"left"}},[n("span",{staticStyle:{"font-size":"8px"},attrs:{id:"itemnameOne"}},[e._v(e._s(e.itemnameOne))])])],1),e._v(" "),n("el-row",[n("el-col",{attrs:{span:24,align:"left"}},[n("span",{staticStyle:{"font-size":"8px"},attrs:{id:"typeOne"}},[e._v(e._s(e.typeOne))])])],1),e._v(" "),n("el-row",[n("el-col",{attrs:{span:24,align:"left"}},[n("span",{staticStyle:{"font-size":"8px"},attrs:{id:"createddateOne"}},[e._v(e._s(e.createddateOne))])])],1)],1),e._v(" "),n("el-col",{attrs:{span:10}},[n("el-col",{staticStyle:{"margin-top":"10px"},attrs:{span:24,align:"center"}},[n("div",{ref:"qrcode",staticClass:"qrcode",attrs:{id:"qrcode1"}})])],1)],1),e._v(" "),n("el-row",[n("el-col",{staticStyle:{"margin-left":"15px"},attrs:{span:24}},[n("el-row",[n("el-col",{attrs:{span:24,align:"left"}},[n("span",{staticStyle:{"font-size":"8px"},attrs:{id:"manufacturerOne"}},[e._v(e._s(e.manufacturerOne))])])],1)],1)],1)],1),e._v(" "),n("el-col",{attrs:{span:12,align:"left"}},[n("el-row",[n("el-col",{staticStyle:{"padding-left":"15px"},attrs:{span:14}},[n("el-row",[n("el-col",{staticStyle:{"margin-top":"5px"},attrs:{span:24,align:"left"}},[n("span",{staticStyle:{"font-size":"8px"},attrs:{id:"itemcodeTwo"}},[e._v(e._s(e.itemcodeTwo))])])],1),e._v(" "),n("el-row",[n("el-col",{attrs:{span:24,align:"left"}},[n("span",{staticStyle:{"font-size":"8px"},attrs:{id:"itemnameTwo"}},[e._v(e._s(e.itemnameTwo))])])],1),e._v(" "),n("el-row",[n("el-col",{attrs:{span:24,align:"left"}},[n("span",{staticStyle:{"font-size":"8px"},attrs:{id:"typeTwo"}},[e._v(e._s(e.typeTwo))])])],1),e._v(" "),n("el-row",[n("el-col",{attrs:{span:24,align:"left"}},[n("span",{staticStyle:{"font-size":"8px"},attrs:{id:"createddateTwo"}},[e._v(e._s(e.createddateTwo))])])],1)],1),e._v(" "),n("el-col",{attrs:{span:10}},[n("el-col",{staticStyle:{"margin-top":"10px"},attrs:{span:24,align:"center"}},[n("div",{ref:"qrcode",staticClass:"qrcode",attrs:{id:"qrcode2"}})])],1),e._v(" "),n("el-col",{staticStyle:{"padding-left":"15px"},attrs:{span:24}},[n("el-row",[n("el-col",{attrs:{align:"left"}},[n("span",{staticStyle:{"font-size":"8px"},attrs:{id:"manufacturerTwo"}})])],1)],1)],1)],1)],1)],1)]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[n("div",{attrs:{id:"printMeSingle"}},[n("el-row",[n("el-col",{attrs:{span:12,align:"center"}},[n("span",{staticStyle:{"font-size":"10px"}},[e._v(e._s("新疆专用"))])])],1),e._v(" "),n("el-row",[n("el-col",{staticClass:"barcode",attrs:{span:12,align:"left"}},[n("svg",{attrs:{id:"barcode"}})])],1),e._v(" "),n("el-row",[n("el-col",{attrs:{span:12,align:"left"}},[n("el-row",[n("el-col",{staticStyle:{"padding-left":"15px"},attrs:{span:14}},[n("el-row",[n("el-col",{staticStyle:{"margin-top":"3px"},attrs:{span:24,align:"left"}},[n("span",{staticStyle:{"font-size":"8px"},attrs:{id:"itemcode"}},[e._v(e._s(e.itemcode))])])],1),e._v(" "),n("el-row",[n("el-col",{attrs:{span:24,align:"left"}},[n("span",{staticStyle:{"font-size":"8px"},attrs:{id:"itemname"}},[e._v(e._s(e.itemname))])])],1),e._v(" "),n("el-row",[n("el-col",{attrs:{span:24,align:"left"}},[n("span",{staticStyle:{"font-size":"8px"},attrs:{id:"type"}},[e._v(e._s(e.type))])])],1),e._v(" "),n("el-row",[n("el-col",{attrs:{span:24,align:"left"}},[n("span",{staticStyle:{"font-size":"8px"},attrs:{id:"createddate"}},[e._v(e._s(e.createddate))])])],1)],1),e._v(" "),n("el-col",{attrs:{span:10}},[n("el-col",{staticStyle:{"margin-top":"10px"},attrs:{span:24,align:"center"}},[n("div",{ref:"qrcode",staticClass:"qrcode",attrs:{id:"qrcode"}})])],1)],1),e._v(" "),n("el-row",[n("el-col",{staticStyle:{"margin-left":"15px"},attrs:{span:24}},[n("el-row",[n("el-col",{attrs:{span:24,align:"left"}},[n("span",{staticStyle:{"font-size":"8px"},attrs:{id:"manufacturer"}},[e._v(e._s(e.manufacturer))])])],1)],1)],1)],1)],1)],1)]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[n("div",{attrs:{id:"printMeNull"}},[n("span",[e._v(e._s("."))])])]),e._v(" "),n("confirm-form",{ref:"confirm",on:{getinfo:e.getConfirmList}}),e._v(" "),n("return-dialog",{ref:"returnDialog",on:{getinfo:e.getConfirmList}})],1)},[],!1,null,"6719d93c",null);D.options.__file="confirm.vue";t.default=D.exports},vays:function(e,t,n){}}]);