logistics/public/admin/assets/edit.31671000.js
2023-09-02 14:37:18 +08:00

2 lines
5.6 KiB
JavaScript

import{B as U,C as g,a1 as v,a2 as D,D as C,w as E}from"./element-plus.4f2efd79.js";import{a as B,u as R}from"./vue-router.12d45bc3.js";import{c as x,s as N}from"./contract.52454eeb.js";import{f as q}from"./index.0190421a.js";import{$ as F,o as p,c as f,U as e,L as l,K as c,R as y,a as r,V as z,a7 as I,S as V}from"./@vue.e8706010.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.0cfb9bfd.js";import"./axios.5170aa30.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./lodash.13c37079.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.c06168c6.js";import"./color.6d4d506e.js";import"./clone.c839a30a.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.858ebc14.js";import"./ms.a9ae1d6d.js";import"./nprogress.5c1127b0.js";import"./vue-clipboard3.a5eb3840.js";import"./clipboard.ffe9b9d8.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const L={class:"edit-popup"},S=r("div",{class:"tit"},"\u516C\u53F8\u4FE1\u606F",-1),j=r("div",{class:"tit"},"\u4E3B\u8981\u8054\u7CFB\u4EBA",-1),K={style:{display:"flex","justify-content":"left"}},T={class:"right"},$=r("div",{class:"tit"},"\u79DF\u8D41\u4FE1\u606F",-1),A=V("\u53D1\u9001\u5408\u540C"),G=V("\u67E5\u770B\u5408\u540C"),Ce={__name:"edit",setup(H){B();const u=R(),a=F({id:8,contract_no:"",company_a_name:"",company_a_code:"",company_a_user:"",company_a_phone:"",company_a_email:"",company_b_id:165,company_b_name:"",company_b_user:"",company_b_phone:"",company_b_code:"",company_b_email:"",num:1,cars_info:[{id:20,license:""}],status:0,file:"",contract_url:"",signing_timer:0,url:null,create_time:"",update_time:""});console.log(u.query.id),x({id:u.query.id}).then(s=>{for(let o in a)a[o]=s[o];console.log(a)});const h=()=>{window.open(a.file,"_blank")},w=()=>{N({id:u.query.id}).then(s=>{q.msgSuccess("\u53D1\u9001\u6210\u529F")})};return(s,o)=>{const n=U,i=g,d=v,_=D,k=C,b=E;return p(),f("div",L,[e(k,{ref:"formRef",model:a,"label-width":"90px",rules:s.formRules,disabled:!0},{default:l(()=>[e(d,{span:24,class:"el-card pt-6"},{default:l(()=>[S,e(_,null,{default:l(()=>[e(d,{span:8},{default:l(()=>[e(i,{label:"\u516C\u53F8\u540D\u79F0",prop:"company_name"},{default:l(()=>[e(n,{modelValue:a.company_b_name,"onUpdate:modelValue":o[0]||(o[0]=t=>a.company_b_name=t),placeholder:"\u8BF7\u8F93\u5165\u516C\u53F8\u540D\u79F0",clearable:"",disabled:s.isDisabled,style:{width:"100%"}},null,8,["modelValue","disabled"])]),_:1})]),_:1}),e(d,{span:8},{default:l(()=>[e(i,{label:"\u793E\u4F1A\u4EE3\u7801",prop:"organization_code"},{default:l(()=>[e(n,{disabled:s.isDisabled,modelValue:a.company_b_code,"onUpdate:modelValue":o[1]||(o[1]=t=>a.company_b_code=t),placeholder:"\u8BF7\u8F93\u5165\u793E\u4F1A\u4EE3\u7801",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue"])]),_:1})]),_:1})]),_:1})]),_:1}),e(d,{span:24,class:"el-card pt-6"},{default:l(()=>[j,e(_,null,{default:l(()=>[r("div",K,[r("div",T,[e(_,null,{default:l(()=>[e(d,{span:8},{default:l(()=>[e(i,{label:"\u59D3\u540D",prop:"master_name"},{default:l(()=>[e(n,{disabled:s.isDisabled,modelValue:a.company_b_user,"onUpdate:modelValue":o[2]||(o[2]=t=>a.company_b_user=t),placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue"])]),_:1})]),_:1}),e(d,{span:8},{default:l(()=>[e(i,{label:"\u624B\u673A",prop:"master_phone"},{default:l(()=>[e(n,{disabled:s.isDisabled,modelValue:a.company_b_phone,"onUpdate:modelValue":o[3]||(o[3]=t=>a.company_b_phone=t),placeholder:"\u8BF7\u8F93\u5165\u624B\u673A",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue"])]),_:1})]),_:1}),e(d,{span:8},{default:l(()=>[e(i,{label:"\u90AE\u7BB1"},{default:l(()=>[e(n,{disabled:s.isDisabled,modelValue:a.company_b_email,"onUpdate:modelValue":o[4]||(o[4]=t=>a.company_b_email=t),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1",clearable:"",style:{width:"100%"}},null,8,["disabled","modelValue"])]),_:1})]),_:1})]),_:1})])])]),_:1})]),_:1}),e(d,{span:24,class:"el-card pt-6"},{default:l(()=>[$,(p(!0),f(z,null,I(a.cars_info,(t,J)=>(p(),c(_,null,{default:l(()=>[e(d,{span:4},{default:l(()=>[e(i,{"label-width":"120px",label:"\u8F66\u724C\u53F7"},{default:l(()=>[e(n,{modelValue:t.license,"onUpdate:modelValue":m=>t.license=m,placeholder:"\u8BF7\u8F93\u5165\u8F66\u724C\u53F7",clearable:"",style:{width:"100%"}},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024)]),_:2},1024),e(d,{span:6},{default:l(()=>[e(i,{"label-width":"120px",label:"\u4F7F\u7528\u516C\u53F8"},{default:l(()=>[e(n,{modelValue:a.company_b_name,"onUpdate:modelValue":o[5]||(o[5]=m=>a.company_b_name=m),placeholder:"\u8BF7\u8F93\u5165\u4F7F\u7528\u516C\u53F8",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1}),e(d,{span:6},{default:l(()=>[e(i,{"label-width":"120px",label:"\u7B7E\u7EA6\u65F6\u95F4"},{default:l(()=>[e(n,{modelValue:a.update_time,"onUpdate:modelValue":o[6]||(o[6]=m=>a.update_time=m),placeholder:"\u8BF7\u8F93\u5165\u7B7E\u7EA6\u65F6\u95F4",clearable:"",style:{width:"100%"}},null,8,["modelValue"])]),_:1})]),_:1})]),_:2},1024))),256))]),_:1})]),_:1},8,["model","rules"]),a.status==1?(p(),c(b,{key:0,type:"primary",disabled:s.isDisabled,size:"medium",onClick:w},{default:l(()=>[A]),_:1},8,["disabled"])):y("",!0),a.file?(p(),c(b,{key:1,type:"primary",onClick:h},{default:l(()=>[G]),_:1})):y("",!0)])}}};export{Ce as default};