(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-f53a"],{T2rs:function(e,t,i){},W0oK:function(e,t,i){e.exports=i.p+"static/file/returntag.xlsx"},cFkm:function(e,t,i){"use strict";var n=i("T2rs");i.n(n).a},ffT5:function(e,t,i){"use strict";i.r(t);var n=i("X4fA"),s=i("W0oK"),a={name:"index",data:function(){return{headers:{Authorization:Object(n.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(s,"_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,i){"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,i){this.fileList=[]},handlePreview:function(e){},returnAllTagHandler:function(){}}},r=(i("cFkm"),i("KHd+")),o=Object(r.a)(a,function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("el-dialog",{attrs:{title:"标签退回",visible:e.dialogFormVisible,width:"380px"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[i("el-tabs",{staticStyle:{height:"140px"},attrs:{"tab-position":"left"}},[i("el-tab-pane",{attrs:{label:"部分退回"}},[i("el-form",{attrs:{model:e.form}},[i("div",{staticStyle:{margin:"0 20px 20px 40px"}},[i("el-button",{attrs:{type:"text"},on:{click:e.viewHandle}},[e._v("下载excel模板")])],1),e._v(" "),i("div",{staticStyle:{margin:"20px 20px 20px 40px"}},[i("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}},[i("el-button",{attrs:{size:"small",type:"primary"}},[e._v("点击上传")])],1)],1)])],1),e._v(" "),i("el-tab-pane",{attrs:{label:"全部退回"}},[i("div",{staticStyle:{margin:"20px 20px 20px 40px"}},[i("el-button",{attrs:{type:"warning",plain:""},on:{click:e.returnAllTagHandler}},[e._v("全部退回")])],1)])],1)],1)},[],!1,null,"40efd1f8",null);o.options.__file="index.vue";t.default=o.exports}}]);
|