travel/service/public/static/js/chunk-8eb7ee56.3f505444.js

1 line
7.4 KiB
JavaScript
Raw Normal View History

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