2 lines
4.8 KiB
JavaScript
2 lines
4.8 KiB
JavaScript
import{y as I,A as N,a2 as S,B as T,C as $,D as q}from"./element-plus.258bf9e7.js";import{_ as M,a as U}from"./index.a91b9a2c.js";import{P as W}from"./index.9492d03b.js";import{a as z}from"./custom.13e75d58.js";import{aa as G,ab as H}from"./flowSet.6e7dc427.js";import{d as w,s as y,a0 as E,r as J,o as i,c as d,V as e,M as t,T as n,U as l,W as g,a8 as v,L as _,u as K}from"./@vue.ab566ce7.js";import{_ as Q}from"./index.ec401e3b.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./approve.4bfa22cd.js";import"./flow.825559ec.js";import"./vue-router.87ebc608.js";import"./lodash.1d82ee7c.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const X={class:"detail-popup"},Y=w({name:"customdetail"}),Z=w({...Y,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(tt,{expose:k,emit:B}){const C=y(),r=y();E({provinceOptions:[],cityOptions:[],areaOptions:[]});const a=E({}),f=async s=>{Object.assign(a,s),A()},h=async s=>{const b=await z({id:s.id});f(b)},x=async()=>{var s;(s=r.value)==null||s.close()},O=()=>{var s;console.log("1111111"),(s=r.value)==null||s.open()},c=()=>{B("close")},D=J([]),A=async()=>{if(a!=null&&a.approve_id)return;let s=await G();D.value=s};return k({open:O,setFormData:f,getDetail:h}),(s,b)=>{const o=I,u=N,F=S,R=T,j=$,P=M,L=U,V=q;return i(),d("div",X,[e(W,{ref_key:"popupRef",ref:r,title:"\u5206\u5305\u6D3D\u5546\u8BE6\u60C5",async:!0,width:"80%",onConfirm:x,onClose:c},{default:t(()=>[e(V,{ref_key:"formRef",ref:C,model:a,"label-width":"120px"},{default:t(()=>[e(j,{class:"mb-2"},{default:t(()=>[e(R,null,{default:t(()=>[e(u,{span:12},{default:t(()=>[e(o,{label:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[n(l(a.project_name),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(o,{label:"\u9879\u76EE\u7F16\u7801"},{default:t(()=>[n(l(a.project_code),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(o,{label:"\u5408\u540C\u540D\u79F0"},{default:t(()=>[n(l(a.contract_name),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(o,{label:"\u5408\u540C\u7F16\u53F7"},{default:t(()=>[n(l(a.contract_no),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(o,{label:"\u6D3D\u5546\u7C7B\u522B"},{default:t(()=>[n(l(a.negotiation_type_text),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(o,{label:"\u6D3D\u5546\u5355\u540D\u79F0"},{default:t(()=>[n(l(a.negotiation_name),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(o,{label:"\u7B7E\u8BA2\u65E5\u671F"},{default:t(()=>[n(l(a.sign_date),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(o,{label:"\u6D3D\u5546\u91D1\u989D"},{default:t(()=>[n(l(a.negotiation_amount),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(o,{label:"\u6D3D\u5546\u8D28\u4FDD\u91D1\u989D"},{default:t(()=>[n(l(a.warranty_amount),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(o,{label:"\u6D3D\u5546\u8D28\u4FDD\u5230\u671F\u65F6\u95F4"},{default:t(()=>[n(l(a.warranty_expire_date),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(o,{label:"\u6D3D\u5546\u5185\u5BB9"},{default:t(()=>[n(l(a.negotiation_content),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(o,{label:"\u6D3D\u5546\u8BE6\u60C5"},{default:t(()=>[n(l(a.negotiation_detail),1)]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(o,{label:"\u7B7E\u8BA2\u4FDD\u4EF7\u8868\u9644\u4EF6"},{default:t(()=>[(i(!0),d(g,null,v(a.negotiation_basis,(m,p)=>(i(),_(F,{href:m,target:"_blank",key:p,type:"primary"},{default:t(()=>[n(" \u6587\u4EF6"+l(p+1),1)]),_:2},1032,["href"]))),128))]),_:1})]),_:1}),e(u,{span:12},{default:t(()=>[e(o,{label:"\u6D3D\u5546\u4F9D\u636E\u9644\u4EF6"},{default:t(()=>[(i(!0),d(g,null,v(a.negotiation_quotation,(m,p)=>(i(),_(F,{href:m,target:"_blank",type:"primary",key:p},{default:t(()=>[n(" \u6587\u4EF6"+l(p+1),1)]),_:2},1032,["href"]))),128))]),_:1})]),_:1})]),_:1})]),_:1}),!(a!=null&&a.approve_id)||a.approve_check_status==4?(i(),_(P,{key:0,flows:D.value,submitApi:K(H),id:a==null?void 0:a.id,onOff:c},null,8,["flows","submitApi","id"])):(i(),_(L,{key:1,approve_id:a==null?void 0:a.approve_id,onOff:c},null,8,["approve_id"]))]),_:1},8,["model"])]),_:1},512)])}}});const $t=Q(Z,[["__scopeId","data-v-d12b5eaa"]]);export{$t as default};
|