1 line
7.8 KiB
JavaScript
1 line
7.8 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5e463beb"],{"50fc":function(e,t,o){"use strict";o.d(t,"e",(function(){return r})),o.d(t,"b",(function(){return a})),o.d(t,"f",(function(){return i})),o.d(t,"g",(function(){return c})),o.d(t,"d",(function(){return s})),o.d(t,"a",(function(){return d})),o.d(t,"c",(function(){return l})),o.d(t,"i",(function(){return u})),o.d(t,"h",(function(){return f}));o("99af");var n=o("b775");function r(){return Object(n["a"])({url:"admin/products/list",method:"get"})}function a(e){return Object(n["a"])({url:"/admin/products/add",method:"post",data:e})}function i(e){var t,o;return Object(n["a"])({url:"/admin/products/list?page=".concat(e.page,"&limit=").concat(e.limit,"&product_name=").concat(null!==(t=e.product_name)&&void 0!==t?t:"","&third_product_id=").concat(null!==(o=e.third_product_id)&&void 0!==o?o:""),method:"get"})}function c(e){return Object(n["a"])({url:"/admin/products/add",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/admin/products/productschedules?id=".concat(e.id,"&date=").concat(e.date),method:"get"})}function d(e){return Object(n["a"])({url:"/admin/products/addproductschedules",method:"post",data:e})}function l(){return Object(n["a"])({url:"/admin/setting/getContractSetting",method:"get"})}function u(e){return Object(n["a"])({url:"/admin/setting/savecontractsetting",method:"post",data:e})}function f(){return Object(n["a"])({url:"/admin/setting/getContractSetting",method:"get"})}},"684f":function(e,t,o){},8233:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"contract"},[o("div",{staticClass:"lay"},[o("div",{staticClass:"flex"},[o("el-button",{attrs:{type:"text"}},[e._v("境内合同:")]),o("el-button",{attrs:{type:"primary",icon:"el-icon-upload "},on:{click:function(t){return e.openDialog(1)}}},[e._v(" 上传境内合同 ")]),e.contractObj.domestic?o("el-button",{attrs:{type:"success"},on:{click:function(t){return e.downloadWord(1)}}},[e._v(" 下载境内合同 ")]):e._e()],1),o("div",{staticClass:"flex"},[o("el-button",{attrs:{type:"text"}},[e._v("境外合同:")]),o("el-button",{attrs:{type:"danger",icon:"el-icon-s-promotion"},on:{click:function(t){return e.openDialog(2)}}},[e._v(" 上传境外合同 ")]),e.contractObj.abroad?o("el-button",{attrs:{type:"success"},on:{click:function(t){return e.downloadWord(2)}}},[e._v(" 下载境外合同 ")]):e._e()],1)]),o("el-dialog",{attrs:{visible:e.dialogVisible,title:e.dialogTitle},on:{"update:visible":function(t){e.dialogVisible=t},open:e.onOpen,close:e.onClose}},[o("el-form",{ref:"elForm",attrs:{model:e.formData,size:"medium","label-width":"120px"}},[o("el-form-item",{attrs:{label:"上传",prop:"trip_info",required:""}},[o("el-upload",{ref:"field105",attrs:{action:"","before-upload":e.wordBeforeUpload,"http-request":e.handlesAvatarSuccess,"on-success":e.handleWordSuccess,"on-error":e.handleUploadError,"on-remove":e.handleRemove,"before-remove":e.beforeRemove,limit:1,"file-list":e.fieldFileList,accept:".pdf,.docx,.xlsx"}},[o("el-button",{attrs:{size:"small",type:"primary",icon:"el-icon-upload"}},[e._v("点击上传")])],1)],1)],1),o("div",{attrs:{slot:"footer"},slot:"footer"},[o("el-button",{on:{click:e.close}},[e._v("取消")]),o("el-button",{attrs:{type:"primary"},on:{click:e.handelConfirm}},[e._v("确定")])],1)],1)],1)},r=[],a=o("c7eb"),i=o("1da1"),c=(o("99af"),o("c740"),o("caad"),o("d81d"),o("a434"),o("b0c0"),o("d3b7"),o("3ca3"),o("ddb0"),o("2b3d"),o("bf19"),o("9861"),o("50fc")),s=o("5f87"),d={data:function(){return{contractObj:{},dialogVisible:!1,dialogTitle:"",fieldFileList:[],formData:{domestic:"",abroad:""},uploadPercent:0}},created:function(){this.getList()},methods:{getList:function(){var e=this;return Object(i["a"])(Object(a["a"])().mark((function t(){var o;return Object(a["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(c["c"])();case 2:o=t.sent,e.contractObj=o.data;case 4:case"end":return t.stop()}}),t)})))()},downloadWord:function(e){var t=this;return Object(i["
|