wl-design-mobile 0.8.8 → 0.8.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/order/comps/icons/approved.svg +11 -0
- package/order/comps/icons/underway.svg +11 -0
- package/order/comps/order-attachment-list.vue +228 -0
- package/order/comps/order-attachment-modal.vue +194 -0
- package/order/comps/order-node-card.vue +126 -0
- package/order/comps/order-node-header.vue +133 -0
- package/order/comps/order-util.js +132 -0
- package/order/detail/order-detail.vue +432 -0
- package/order/handle/order-handle.vue +517 -0
- package/order/index.js +33 -0
- package/package.json +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="59.622" height="59.616" viewBox="0 0 59.622 59.616">
|
|
2
|
+
<g id="完成" transform="translate(-291.798 -153.753)">
|
|
3
|
+
<g id="组_977" data-name="组 977" transform="translate(291.798 153.753)">
|
|
4
|
+
<path id="路径_604" data-name="路径 604" d="M29.853,59.769a29.8,29.8,0,1,1,25.88-15.078,29.806,29.806,0,0,1-25.88,15.078Zm-.1-58.37a28.621,28.621,0,1,0,7.1.9,28.576,28.576,0,0,0-7.1-.9Z" transform="translate(0 -0.153)" fill="#00b42a"/>
|
|
5
|
+
<path id="路径_605" data-name="路径 605" d="M64.173,92.121a27.692,27.692,0,1,1,14.1-3.877A27.693,27.693,0,0,1,64.173,92.121Zm-.092-54.593a26.979,26.979,0,1,0,6.683.846,26.88,26.88,0,0,0-6.683-.846Z" transform="translate(-34.325 -34.602)" fill="#00b42a"/>
|
|
6
|
+
<path id="路径_606" data-name="路径 606" d="M221.473,224.75l-1.213-.309A17.511,17.511,0,0,1,241.564,211.8l-.309,1.213A16.26,16.26,0,0,0,221.473,224.75Zm15.772,21.539a17.482,17.482,0,0,1-4.336-.538l.309-1.213A16.285,16.285,0,0,0,253,232.792l1.213.309a17.548,17.548,0,0,1-16.969,13.187Z" transform="translate(-207.434 -198.955)" fill="#00b42a"/>
|
|
7
|
+
<path id="路径_607" data-name="路径 607" d="M124.715,88.9l-.809-.2a15.539,15.539,0,0,1,18.87-11.207l-.2.809a14.7,14.7,0,0,0-17.857,10.6Zm14.238,19.15a15.484,15.484,0,0,1-3.832-.484l.2-.809a14.7,14.7,0,0,0,17.849-10.59l.809.2a15.547,15.547,0,0,1-15.03,11.678ZM125.982,69.952l.88.78a.417.417,0,0,0,.463.042l1-.6a.417.417,0,0,1,.563.5l-.463,1.076a.417.417,0,0,0,.1.442l.88.771a.417.417,0,0,1-.3.688l-1.163-.108a.417.417,0,0,0-.417.238l-.463,1.076a.417.417,0,0,1-.746-.071l-.242-1.134a.417.417,0,0,0-.35-.3l-1.163-.113a.417.417,0,0,1-.167-.734l1-.6a.417.417,0,0,0,.183-.417l-.259-1.142a.417.417,0,0,1,.65-.392ZM116.347,80.2l1.155.188a.417.417,0,0,0,.417-.208l.534-1.042a.417.417,0,0,1,.742.121l.163,1.155a.417.417,0,0,0,.325.329l1.155.188a.417.417,0,0,1,.117.742l-1.042.529a.417.417,0,0,0-.213.417l.179,1.155a.417.417,0,0,1-.671.338l-.834-.834a.417.417,0,0,0-.459-.075l-1.042.53a.417.417,0,0,1-.53-.534l.534-1.042a.417.417,0,0,0-.071-.459l-.834-.834a.417.417,0,0,1,.375-.663Zm22.606-13.413-.417,1.1a.417.417,0,0,1-.384.263l-1.172-.029a.417.417,0,0,0-.25.709l.93.713a.417.417,0,0,1,.133.446l-.392,1.1a.417.417,0,0,0,.617.471l.963-.663a.417.417,0,0,1,.463,0l.93.713a.417.417,0,0,0,.617-.417l-.334-1.122a.417.417,0,0,1,.154-.417l.963-.663a.417.417,0,0,0-.213-.767H140.4a.417.417,0,0,1-.367-.284l-.334-1.122a.417.417,0,0,0-.742-.038Zm13.6,47.926-.258-1.142a.417.417,0,0,1,.183-.417l1-.6a.417.417,0,0,0-.167-.734l-1.163-.108a.417.417,0,0,1-.35-.3l-.258-1.142a.417.417,0,0,0-.746-.071l-.463,1.076a.417.417,0,0,1-.417.238l-1.163-.108a.417.417,0,0,0-.3.688l.917.75a.417.417,0,0,1,.1.45l-.463,1.076a.417.417,0,0,0,.563.5l1-.6a.417.417,0,0,1,.463.042l.88.771a.417.417,0,0,0,.63-.367Zm-13.6,3.548.392-1.1a.417.417,0,0,1,.384-.263l1.172.029a.417.417,0,0,0,.25-.709l-.946-.709a.417.417,0,0,1-.133-.446l.392-1.1a.417.417,0,0,0-.6-.454l-.963.663a.417.417,0,0,1-.463,0l-.93-.713a.417.417,0,0,0-.617.417l.334,1.122a.417.417,0,0,1-.154.417l-.963.663a.417.417,0,0,0,.213.717l1.172.029a.417.417,0,0,1,.367.284l.334,1.122a.417.417,0,0,0,.742.038l.417-1.1a.417.417,0,0,1,.384-.263l1.172.029a.417.417,0,0,0,.25-.717l-.93-.709a.417.417,0,0,1-.133-.446Zm-30.4-22.6-.88-.78a.417.417,0,0,1-.463-.042l-1,.6a.417.417,0,0,0-.563-.5l-.467,1.076a.417.417,0,0,0-.1.442l-.88.771a.417.417,0,0,1,.3.688l1.163.108a.417.417,0,0,0,.417.238l.463,1.076a.417.417,0,0,1-.567.525l-1-.113a.417.417,0,0,0-.459.075l-.834.834a.417.417,0,0,1-.534.071l-.963-.663a.417.417,0,0,0-.617.417l.259,1.142a.417.417,0,0,1-.183.417l-1,.6a.417.417,0,0,0,.167.734l1.163.108a.417.417,0,0,1,.35.3l.258,1.142a.417.417,0,0,0,.746.071l.463-1.076a.417.417,0,0,1,.417-.238l1.163.108a.417.417,0,0,0,.3-.688l-.9-.779a.417.417,0,0,1-.1-.442l.463-1.076a.417.417,0,0,0-.563-.5l-1,.6a.417.417,0,0,1-.463-.042l-.88-.771a.417.417,0,0,0-.63.367Zm6.8,30.4,1.155-.188a.417.417,0,0,0,.333-.329l.163-1.155a.417.417,0,0,1,.742-.121l.534,1.042a.417.417,0,0,0,.417.208l1.155-.188a.417.417,0,0,1,.309.15l.834.834a.417.417,0,0,0,.459.075l1.042-.53a.417.417,0,0,1,.53.534l-.534,1.042a.417.417,0,0,0,.071.459l.834.834a.417.417,0,0,1-.117.742l-1.155-.188a.417.417,0,0,0-.417.209l-.533,1.042a.417.417,0,0,1-.742-.121l-.163-1.155a.417.417,0,0,0-.325-.329l-1.155-.188a.417.417,0,0,1-.117-.742l1.042-.529a.417.417,0,0,0,.213-.417l-.188-1.155a.417.417,0,0,1,.688-.309l.834.834a.417.417,0,0,0,.459.075l1.042-.53a.417.417,0,0,1,.53.534l-.534,1.042a.417.417,0,0,0,.071.459l.834.834a.417.417,0,0,1-.309.75Zm-6.8-38.4.963.663a.417.417,0,0,0,.463,0l.93-.713a.417.417,0,0,1,.446.133l.417,1.1a.417.417,0,0,0,.717-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617l.663.963a.417.417,0,0,1,0,.463l-.663.963a.417.417,0,0,0,.417.617l1.122-.334a.417.417,0,0,1,.417.154l.663.963a.417.417,0,0,0,.767-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617Zm20.4,10.667-.963-.663a.417.417,0,0,0-.463,0l-.93.713a.417.417,0,0,1-.446-.133l-.417-1.1a.417.417,0,0,0-.717.213l.029,1.172a.417.417,0,0,1-.284.367l-1.122.334a.417.417,0,0,0-.038.742l1.1.417a.417.417,0,0,1,.263.384l-.029,1.172a.417.417,0,0,0,.709.25l.713-.946a.417.417,0,0,1,.446-.133l1.1.392a.417.417,0,0,0,.471-.617l-.663-.963a.417.417,0,0,1,0-.463l.663-.963a.417.417,0,0,0-.417-.617l-1.122.334a.417.417,0,0,1-.417-.154l-.663-.963a.417.417,0,0,0-.767.213l.029,1.172a.417.417,0,0,1-.284.367l-1.122.334a.417.417,0,0,0-.038.742l1.1.417a.417.417,0,0,1,.263.384l-.029,1.172a.417.417,0,0,0,.709.25l.713-.946a.417.417,0,0,1,.446-.133l1.1.392a.417.417,0,0,0,.471-.617ZM125.838,74.1l.963.663a.417.417,0,0,0,.463,0l.93-.713a.417.417,0,0,1,.446.133l.417,1.1a.417.417,0,0,0,.717-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617l.663.963a.417.417,0,0,1,0,.463l-.663.963a.417.417,0,0,0,.417.617l1.122-.334a.417.417,0,0,1,.417.154l.663.963a.417.417,0,0,0,.767-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617ZM145.8,85.6l.963.663a.417.417,0,0,0,.463,0l.93-.713a.417.417,0,0,1,.446.133l.417,1.1a.417.417,0,0,0,.717-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617l.663.963a.417.417,0,0,1,0,.463l-.663.963a.417.417,0,0,0,.417.617l1.122-.334a.417.417,0,0,1,.417.154l.663.963a.417.417,0,0,0,.767-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617Zm-40.8-12.8.963.663a.417.417,0,0,0,.463,0l.93-.713a.417.417,0,0,1,.446.133l.417,1.1a.417.417,0,0,0,.717-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617l.663.963a.417.417,0,0,1,0,.463l-.663.963a.417.417,0,0,0,.417.617l1.122-.334a.417.417,0,0,1,.417.154l.663.963a.417.417,0,0,0,.767-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617ZM124.4,85.65l.963.663a.417.417,0,0,0,.463,0l.93-.713a.417.417,0,0,1,.446.133l.417,1.1a.417.417,0,0,0,.717-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617l.663.963a.417.417,0,0,1,0,.463l-.663.963a.417.417,0,0,0,.417.617l1.122-.334a.417.417,0,0,1,.417.154l.663.963a.417.417,0,0,0,.767-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617Z" transform="translate(0 0)" fill="#00b42a"/>
|
|
8
|
+
</g>
|
|
9
|
+
<text id="处理完成" transform="matrix(0.848, -0.53, 0.53, 0.848, 304.807, 199.83)" fill="#00b42a" font-size="12" font-family="PingFang SC Medium, PingFang SC" letter-spacing="-0.04em"><tspan x="0" y="0">处理完成</tspan></text>
|
|
10
|
+
</g>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="59.622" height="59.616" viewBox="0 0 59.622 59.616">
|
|
2
|
+
<g id="进行" transform="translate(-291.798 -153.753)">
|
|
3
|
+
<g id="组_977" data-name="组 977" transform="translate(291.798 153.753)">
|
|
4
|
+
<path id="路径_604" data-name="路径 604" d="M29.853,59.769a29.8,29.8,0,1,1,25.88-15.078,29.806,29.806,0,0,1-25.88,15.078Zm-.1-58.37a28.621,28.621,0,1,0,7.1.9,28.576,28.576,0,0,0-7.1-.9Z" transform="translate(0 -0.153)" fill="#519ef7"/>
|
|
5
|
+
<path id="路径_605" data-name="路径 605" d="M64.173,92.121a27.692,27.692,0,1,1,14.1-3.877A27.693,27.693,0,0,1,64.173,92.121Zm-.092-54.593a26.979,26.979,0,1,0,6.683.846,26.88,26.88,0,0,0-6.683-.846Z" transform="translate(-34.325 -34.602)" fill="#519ef7"/>
|
|
6
|
+
<path id="路径_606" data-name="路径 606" d="M221.473,224.75l-1.213-.309A17.511,17.511,0,0,1,241.564,211.8l-.309,1.213A16.26,16.26,0,0,0,221.473,224.75Zm15.772,21.539a17.482,17.482,0,0,1-4.336-.538l.309-1.213A16.285,16.285,0,0,0,253,232.792l1.213.309a17.548,17.548,0,0,1-16.969,13.187Z" transform="translate(-207.434 -198.955)" fill="#519ef7"/>
|
|
7
|
+
<path id="路径_607" data-name="路径 607" d="M124.715,88.9l-.809-.2a15.539,15.539,0,0,1,18.87-11.207l-.2.809a14.7,14.7,0,0,0-17.857,10.6Zm14.238,19.15a15.484,15.484,0,0,1-3.832-.484l.2-.809a14.7,14.7,0,0,0,17.849-10.59l.809.2a15.547,15.547,0,0,1-15.03,11.678ZM125.982,69.952l.88.78a.417.417,0,0,0,.463.042l1-.6a.417.417,0,0,1,.563.5l-.463,1.076a.417.417,0,0,0,.1.442l.88.771a.417.417,0,0,1-.3.688l-1.163-.108a.417.417,0,0,0-.417.238l-.463,1.076a.417.417,0,0,1-.746-.071l-.242-1.134a.417.417,0,0,0-.35-.3l-1.163-.113a.417.417,0,0,1-.167-.734l1-.6a.417.417,0,0,0,.183-.417l-.259-1.142a.417.417,0,0,1,.65-.392ZM116.347,80.2l1.155.188a.417.417,0,0,0,.417-.208l.534-1.042a.417.417,0,0,1,.742.121l.163,1.155a.417.417,0,0,0,.325.329l1.155.188a.417.417,0,0,1,.117.742l-1.042.529a.417.417,0,0,0-.213.417l.179,1.155a.417.417,0,0,1-.671.338l-.834-.834a.417.417,0,0,0-.459-.075l-1.042.53a.417.417,0,0,1-.53-.534l.534-1.042a.417.417,0,0,0-.071-.459l-.834-.834a.417.417,0,0,1,.375-.663Zm22.606-13.413-.417,1.1a.417.417,0,0,1-.384.263l-1.172-.029a.417.417,0,0,0-.25.709l.93.713a.417.417,0,0,1,.133.446l-.392,1.1a.417.417,0,0,0,.617.471l.963-.663a.417.417,0,0,1,.463,0l.93.713a.417.417,0,0,0,.617-.417l-.334-1.122a.417.417,0,0,1,.154-.417l.963-.663a.417.417,0,0,0-.213-.767H140.4a.417.417,0,0,1-.367-.284l-.334-1.122a.417.417,0,0,0-.742-.038Zm13.6,47.926-.258-1.142a.417.417,0,0,1,.183-.417l1-.6a.417.417,0,0,0-.167-.734l-1.163-.108a.417.417,0,0,1-.35-.3l-.258-1.142a.417.417,0,0,0-.746-.071l-.463,1.076a.417.417,0,0,1-.417.238l-1.163-.108a.417.417,0,0,0-.3.688l.917.75a.417.417,0,0,1,.1.45l-.463,1.076a.417.417,0,0,0,.563.5l1-.6a.417.417,0,0,1,.463.042l.88.771a.417.417,0,0,0,.63-.367Zm-13.6,3.548.392-1.1a.417.417,0,0,1,.384-.263l1.172.029a.417.417,0,0,0,.25-.709l-.946-.709a.417.417,0,0,1-.133-.446l.392-1.1a.417.417,0,0,0-.6-.454l-.963.663a.417.417,0,0,1-.463,0l-.93-.713a.417.417,0,0,0-.617.417l.334,1.122a.417.417,0,0,1-.154.417l-.963.663a.417.417,0,0,0,.213.717l1.172.029a.417.417,0,0,1,.367.284l.334,1.122a.417.417,0,0,0,.742.038l.417-1.1a.417.417,0,0,1,.384-.263l1.172.029a.417.417,0,0,0,.25-.717l-.93-.709a.417.417,0,0,1-.133-.446Zm-30.4-22.6-.88-.78a.417.417,0,0,1-.463-.042l-1,.6a.417.417,0,0,0-.563-.5l-.467,1.076a.417.417,0,0,0-.1.442l-.88.771a.417.417,0,0,1,.3.688l1.163.108a.417.417,0,0,0,.417.238l.463,1.076a.417.417,0,0,1-.567.525l-1-.113a.417.417,0,0,0-.459.075l-.834.834a.417.417,0,0,1-.534.071l-.963-.663a.417.417,0,0,0-.617.417l.259,1.142a.417.417,0,0,1-.183.417l-1,.6a.417.417,0,0,0,.167.734l1.163.108a.417.417,0,0,1,.35.3l.258,1.142a.417.417,0,0,0,.746.071l.463-1.076a.417.417,0,0,1,.417-.238l1.163.108a.417.417,0,0,0,.3-.688l-.9-.779a.417.417,0,0,1-.1-.442l.463-1.076a.417.417,0,0,0-.563-.5l-1,.6a.417.417,0,0,1-.463-.042l-.88-.771a.417.417,0,0,0-.63.367Zm6.8,30.4,1.155-.188a.417.417,0,0,0,.333-.329l.163-1.155a.417.417,0,0,1,.742-.121l.534,1.042a.417.417,0,0,0,.417.208l1.155-.188a.417.417,0,0,1,.309.15l.834.834a.417.417,0,0,0,.459.075l1.042-.53a.417.417,0,0,1,.53.534l-.534,1.042a.417.417,0,0,0,.071.459l.834.834a.417.417,0,0,1-.117.742l-1.155-.188a.417.417,0,0,0-.417.209l-.533,1.042a.417.417,0,0,1-.742-.121l-.163-1.155a.417.417,0,0,0-.325-.329l-1.155-.188a.417.417,0,0,1-.117-.742l1.042-.529a.417.417,0,0,0,.213-.417l-.188-1.155a.417.417,0,0,1,.688-.309l.834.834a.417.417,0,0,0,.459.075l1.042-.53a.417.417,0,0,1,.53.534l-.534,1.042a.417.417,0,0,0,.071.459l.834.834a.417.417,0,0,1-.309.75Zm-6.8-38.4.963.663a.417.417,0,0,0,.463,0l.93-.713a.417.417,0,0,1,.446.133l.417,1.1a.417.417,0,0,0,.717-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617l.663.963a.417.417,0,0,1,0,.463l-.663.963a.417.417,0,0,0,.417.617l1.122-.334a.417.417,0,0,1,.417.154l.663.963a.417.417,0,0,0,.767-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617Zm20.4,10.667-.963-.663a.417.417,0,0,0-.463,0l-.93.713a.417.417,0,0,1-.446-.133l-.417-1.1a.417.417,0,0,0-.717.213l.029,1.172a.417.417,0,0,1-.284.367l-1.122.334a.417.417,0,0,0-.038.742l1.1.417a.417.417,0,0,1,.263.384l-.029,1.172a.417.417,0,0,0,.709.25l.713-.946a.417.417,0,0,1,.446-.133l1.1.392a.417.417,0,0,0,.471-.617l-.663-.963a.417.417,0,0,1,0-.463l.663-.963a.417.417,0,0,0-.417-.617l-1.122.334a.417.417,0,0,1-.417-.154l-.663-.963a.417.417,0,0,0-.767.213l.029,1.172a.417.417,0,0,1-.284.367l-1.122.334a.417.417,0,0,0-.038.742l1.1.417a.417.417,0,0,1,.263.384l-.029,1.172a.417.417,0,0,0,.709.25l.713-.946a.417.417,0,0,1,.446-.133l1.1.392a.417.417,0,0,0,.471-.617ZM125.838,74.1l.963.663a.417.417,0,0,0,.463,0l.93-.713a.417.417,0,0,1,.446.133l.417,1.1a.417.417,0,0,0,.717-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617l.663.963a.417.417,0,0,1,0,.463l-.663.963a.417.417,0,0,0,.417.617l1.122-.334a.417.417,0,0,1,.417.154l.663.963a.417.417,0,0,0,.767-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617ZM145.8,85.6l.963.663a.417.417,0,0,0,.463,0l.93-.713a.417.417,0,0,1,.446.133l.417,1.1a.417.417,0,0,0,.717-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617l.663.963a.417.417,0,0,1,0,.463l-.663.963a.417.417,0,0,0,.417.617l1.122-.334a.417.417,0,0,1,.417.154l.663.963a.417.417,0,0,0,.767-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617Zm-40.8-12.8.963.663a.417.417,0,0,0,.463,0l.93-.713a.417.417,0,0,1,.446.133l.417,1.1a.417.417,0,0,0,.717-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617l.663.963a.417.417,0,0,1,0,.463l-.663.963a.417.417,0,0,0,.417.617l1.122-.334a.417.417,0,0,1,.417.154l.663.963a.417.417,0,0,0,.767-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617ZM124.4,85.65l.963.663a.417.417,0,0,0,.463,0l.93-.713a.417.417,0,0,1,.446.133l.417,1.1a.417.417,0,0,0,.717-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617l.663.963a.417.417,0,0,1,0,.463l-.663.963a.417.417,0,0,0,.417.617l1.122-.334a.417.417,0,0,1,.417.154l.663.963a.417.417,0,0,0,.767-.213l-.029-1.172a.417.417,0,0,1,.284-.367l1.122-.334a.417.417,0,0,0,.038-.742l-1.1-.417a.417.417,0,0,1-.263-.384l.029-1.172a.417.417,0,0,0-.709-.25l-.713.946a.417.417,0,0,1-.446.133l-1.1-.392a.417.417,0,0,0-.471.617Z" transform="translate(0 0)" fill="#519ef7"/>
|
|
8
|
+
</g>
|
|
9
|
+
<text id="处理进行" transform="matrix(0.848, -0.53, 0.53, 0.848, 304.807, 199.83)" fill="#519ef7" font-size="12" font-family="PingFang SC Medium, PingFang SC" letter-spacing="-0.04em"><tspan x="0" y="0">处理进行</tspan></text>
|
|
10
|
+
</g>
|
|
11
|
+
</svg>
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="attachment-section" :class="{ 'no-border': !showBorder }">
|
|
3
|
+
<div class="attachment-header" v-if="showTitle || editable">
|
|
4
|
+
<div class="attachment-title" v-if="showTitle">
|
|
5
|
+
<van-icon name="paperclip" size="14" style="margin-right: 4px"></van-icon>
|
|
6
|
+
附件({{ attachments.length }})
|
|
7
|
+
</div>
|
|
8
|
+
<van-uploader
|
|
9
|
+
v-if="editable"
|
|
10
|
+
:after-read="handleAfterRead"
|
|
11
|
+
:accept="accept"
|
|
12
|
+
:show-preview="false"
|
|
13
|
+
:show-upload-list="false"
|
|
14
|
+
:disabled="uploading"
|
|
15
|
+
>
|
|
16
|
+
<div class="upload-btn" :class="{ uploading }">
|
|
17
|
+
<van-icon :name="uploading ? 'replay' : 'plus'" size="14"></van-icon>
|
|
18
|
+
{{ uploading ? '上传中' : '上传' }}
|
|
19
|
+
</div>
|
|
20
|
+
</van-uploader>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="attachment-list" v-if="attachments && attachments.length > 0">
|
|
23
|
+
<div
|
|
24
|
+
v-for="(file, index) in attachments"
|
|
25
|
+
:key="index"
|
|
26
|
+
class="attachment-item"
|
|
27
|
+
@click="handleClick(file)"
|
|
28
|
+
>
|
|
29
|
+
<van-icon :name="getFileIcon(file.fileName || file.name)" size="14"></van-icon>
|
|
30
|
+
<span class="file-name">{{ file.fileName || file.name }}</span>
|
|
31
|
+
<span class="file-size">{{ formatFileSize(file.fileSize || file.size) }}</span>
|
|
32
|
+
<van-icon
|
|
33
|
+
v-if="editable"
|
|
34
|
+
name="cross"
|
|
35
|
+
class="remove-file"
|
|
36
|
+
@click.stop="handleRemove(index)"
|
|
37
|
+
></van-icon>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<script>
|
|
44
|
+
import { Toast } from 'vant'
|
|
45
|
+
import { axios } from '../../util/axios'
|
|
46
|
+
import { fileGetUrl, fileUploadUrl } from '../../api/doc'
|
|
47
|
+
import { getFileIcon, formatFileSize } from './order-util.js'
|
|
48
|
+
|
|
49
|
+
export default {
|
|
50
|
+
name: 'OrderAttachmentList',
|
|
51
|
+
props: {
|
|
52
|
+
uploadEnabled: {
|
|
53
|
+
type: Boolean,
|
|
54
|
+
default: true
|
|
55
|
+
},
|
|
56
|
+
attachments: {
|
|
57
|
+
type: Array,
|
|
58
|
+
default: () => []
|
|
59
|
+
},
|
|
60
|
+
showTitle: {
|
|
61
|
+
type: Boolean,
|
|
62
|
+
default: true
|
|
63
|
+
},
|
|
64
|
+
showBorder: {
|
|
65
|
+
type: Boolean,
|
|
66
|
+
default: true
|
|
67
|
+
},
|
|
68
|
+
editable: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: false
|
|
71
|
+
},
|
|
72
|
+
accept: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: ''
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
data() {
|
|
78
|
+
return {
|
|
79
|
+
uploading: false
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
methods: {
|
|
83
|
+
getFileIcon,
|
|
84
|
+
formatFileSize,
|
|
85
|
+
handleClick(file) {
|
|
86
|
+
this.$emit('click', file)
|
|
87
|
+
},
|
|
88
|
+
handleAfterRead(fileObj) {
|
|
89
|
+
this.$emit('after-read', fileObj)
|
|
90
|
+
if (!this.uploadEnabled) return
|
|
91
|
+
const file = fileObj.file
|
|
92
|
+
const formData = new FormData()
|
|
93
|
+
formData.append('file', file)
|
|
94
|
+
this.uploading = true
|
|
95
|
+
axios.post(fileUploadUrl, formData).then(res => {
|
|
96
|
+
if (res && res.code === 1 && res.data && res.data.length > 0 && res.data[0].fileId) {
|
|
97
|
+
const resFile = res.data[0]
|
|
98
|
+
const fileData = {
|
|
99
|
+
fileId: resFile.fileId,
|
|
100
|
+
fileName: resFile.fileName || file.name,
|
|
101
|
+
fileSize: resFile.fileSize || file.size,
|
|
102
|
+
fileUrl: resFile.fileUrl || resFile.url || resFile.downloadUrl || fileGetUrl + resFile.fileId
|
|
103
|
+
}
|
|
104
|
+
Toast.success(fileData.fileName + '上传成功')
|
|
105
|
+
this.$emit('upload-success', fileData)
|
|
106
|
+
return
|
|
107
|
+
}
|
|
108
|
+
Toast.fail('文件' + file.name + '上传失败')
|
|
109
|
+
this.$emit('upload-error', res)
|
|
110
|
+
}).catch(error => {
|
|
111
|
+
Toast.fail('文件' + file.name + '上传异常')
|
|
112
|
+
this.$emit('upload-error', error)
|
|
113
|
+
}).finally(() => {
|
|
114
|
+
this.uploading = false
|
|
115
|
+
})
|
|
116
|
+
},
|
|
117
|
+
handleRemove(index) {
|
|
118
|
+
this.$emit('remove', index)
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
</script>
|
|
123
|
+
|
|
124
|
+
<style scoped>
|
|
125
|
+
.attachment-section {
|
|
126
|
+
margin-top: 12px;
|
|
127
|
+
padding-top: 12px;
|
|
128
|
+
border-top: 1px solid #f0f0f0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.attachment-section.no-border {
|
|
132
|
+
margin-top: 0;
|
|
133
|
+
padding-top: 0;
|
|
134
|
+
border-top: none;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.attachment-header {
|
|
138
|
+
display: flex;
|
|
139
|
+
align-items: center;
|
|
140
|
+
justify-content: space-between;
|
|
141
|
+
margin-bottom: 8px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.attachment-title {
|
|
145
|
+
font-size: 13px;
|
|
146
|
+
font-weight: 500;
|
|
147
|
+
color: #595959;
|
|
148
|
+
display: flex;
|
|
149
|
+
align-items: center;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.attachment-list {
|
|
153
|
+
display: flex;
|
|
154
|
+
flex-wrap: wrap;
|
|
155
|
+
gap: 8px;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.attachment-item {
|
|
159
|
+
display: inline-flex;
|
|
160
|
+
align-items: center;
|
|
161
|
+
padding: 6px 10px;
|
|
162
|
+
background: #fff;
|
|
163
|
+
border: 1px solid #e8e8e8;
|
|
164
|
+
border-radius: 4px;
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
transition: all 0.2s;
|
|
167
|
+
font-size: 12px;
|
|
168
|
+
gap: 6px;
|
|
169
|
+
color: #595959;
|
|
170
|
+
height: 32px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.attachment-item:hover {
|
|
174
|
+
background: #f0f0f0;
|
|
175
|
+
color: #262626;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.attachment-item .van-icon {
|
|
179
|
+
color: #8c8c8c;
|
|
180
|
+
vertical-align: middle;
|
|
181
|
+
flex-shrink: 0;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.file-name {
|
|
185
|
+
max-width: 120px;
|
|
186
|
+
overflow: hidden;
|
|
187
|
+
text-overflow: ellipsis;
|
|
188
|
+
white-space: nowrap;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.file-size {
|
|
192
|
+
color: #bfbfbf;
|
|
193
|
+
flex-shrink: 0;
|
|
194
|
+
font-size: 11px;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.remove-file {
|
|
198
|
+
color: #bfbfbf;
|
|
199
|
+
margin-left: 4px;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.remove-file:hover {
|
|
203
|
+
color: #ee0a24;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.upload-btn {
|
|
207
|
+
display: inline-flex;
|
|
208
|
+
align-items: center;
|
|
209
|
+
padding: 6px 10px;
|
|
210
|
+
background: #fff;
|
|
211
|
+
border: 1px dashed #dcdee0;
|
|
212
|
+
border-radius: 4px;
|
|
213
|
+
cursor: pointer;
|
|
214
|
+
font-size: 12px;
|
|
215
|
+
color: #1989fa;
|
|
216
|
+
transition: all 0.2s;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.upload-btn:hover {
|
|
220
|
+
border-color: #1989fa;
|
|
221
|
+
background: #e6f7ff;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.upload-btn.uploading {
|
|
225
|
+
opacity: 0.6;
|
|
226
|
+
cursor: not-allowed;
|
|
227
|
+
}
|
|
228
|
+
</style>
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<van-popup :value="visible" position="center" round :style="{ width: modalWidth, maxWidth: '90%' }" @input="handleVisibleChange">
|
|
3
|
+
<div class="modal-header">
|
|
4
|
+
<span class="modal-title">{{ fileName }}</span>
|
|
5
|
+
<van-icon name="cross" class="close-icon" @click="handleClose"></van-icon>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="modal-content" v-show="visible">
|
|
8
|
+
<!-- 图片预览 -->
|
|
9
|
+
<div v-if="isImage" class="image-preview">
|
|
10
|
+
<img :src="fileUrl" alt="图片预览" />
|
|
11
|
+
</div>
|
|
12
|
+
<!-- TXT 文本预览 -->
|
|
13
|
+
<div v-else-if="fileType === 'txt'" class="text-preview">
|
|
14
|
+
<pre>{{ textContent }}</pre>
|
|
15
|
+
</div>
|
|
16
|
+
<!-- 其他文件-->
|
|
17
|
+
<div v-else class="preview-placeholder">
|
|
18
|
+
<van-icon name="description" size="64" color="#ccc"></van-icon>
|
|
19
|
+
<p>{{ fileName }}</p>
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="modal-footer">
|
|
23
|
+
<van-button type="default" size="small" @click="handleDownload">下载</van-button>
|
|
24
|
+
<van-button type="primary" size="small" @click="handleClose">关闭</van-button>
|
|
25
|
+
</div>
|
|
26
|
+
</van-popup>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script>
|
|
30
|
+
export default {
|
|
31
|
+
name: 'OrderAttachmentModal',
|
|
32
|
+
props: {
|
|
33
|
+
visible: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false
|
|
36
|
+
},
|
|
37
|
+
fileUrl: {
|
|
38
|
+
type: String,
|
|
39
|
+
default: ''
|
|
40
|
+
},
|
|
41
|
+
fileName: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: ''
|
|
44
|
+
},
|
|
45
|
+
modalWidth: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: '320px'
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
data() {
|
|
51
|
+
return {
|
|
52
|
+
textContent: ''
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
computed: {
|
|
56
|
+
fileType() {
|
|
57
|
+
if (!this.fileName) return ''
|
|
58
|
+
return this.fileName.split('.').pop().toLowerCase()
|
|
59
|
+
},
|
|
60
|
+
isImage() {
|
|
61
|
+
const imgTypes = ['jpg', 'jpeg', 'png', 'gif', 'webp']
|
|
62
|
+
return imgTypes.includes(this.fileType)
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
watch: {
|
|
66
|
+
visible(val) {
|
|
67
|
+
if (val) {
|
|
68
|
+
this.loadPreview()
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
methods: {
|
|
73
|
+
handleVisibleChange(val) {
|
|
74
|
+
this.$emit('update:visible', val)
|
|
75
|
+
},
|
|
76
|
+
handleClose() {
|
|
77
|
+
this.$emit('update:visible', false)
|
|
78
|
+
},
|
|
79
|
+
handleDownload() {
|
|
80
|
+
if (!this.fileUrl) {
|
|
81
|
+
this.$toast({ message: '文件地址不存在', position: 'middle' })
|
|
82
|
+
return
|
|
83
|
+
}
|
|
84
|
+
let downloadFileName = this.fileName
|
|
85
|
+
if (!downloadFileName) {
|
|
86
|
+
downloadFileName = this.fileUrl.split('/').pop() || 'download'
|
|
87
|
+
}
|
|
88
|
+
const link = document.createElement('a')
|
|
89
|
+
link.href = this.fileUrl
|
|
90
|
+
link.download = downloadFileName
|
|
91
|
+
document.body.appendChild(link)
|
|
92
|
+
link.click()
|
|
93
|
+
document.body.removeChild(link)
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
async loadPreview() {
|
|
97
|
+
if (this.fileType === 'txt') {
|
|
98
|
+
try {
|
|
99
|
+
const res = await fetch(this.fileUrl)
|
|
100
|
+
this.textContent = await res.text()
|
|
101
|
+
} catch (e) {
|
|
102
|
+
this.textContent = '文本加载失败'
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
</script>
|
|
109
|
+
|
|
110
|
+
<style scoped>
|
|
111
|
+
.modal-header {
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
justify-content: space-between;
|
|
115
|
+
padding: 16px;
|
|
116
|
+
border-bottom: 1px solid #f0f0f0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.modal-title {
|
|
120
|
+
font-size: 16px;
|
|
121
|
+
font-weight: 600;
|
|
122
|
+
color: #323233;
|
|
123
|
+
flex: 1;
|
|
124
|
+
overflow: hidden;
|
|
125
|
+
text-overflow: ellipsis;
|
|
126
|
+
white-space: nowrap;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.close-icon {
|
|
130
|
+
font-size: 20px;
|
|
131
|
+
color: #c8c9cc;
|
|
132
|
+
cursor: pointer;
|
|
133
|
+
flex-shrink: 0;
|
|
134
|
+
margin-left: 12px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.close-icon:hover {
|
|
138
|
+
color: #969799;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.modal-content {
|
|
142
|
+
padding: 40px 20px;
|
|
143
|
+
min-height: 200px;
|
|
144
|
+
max-height: 70vh;
|
|
145
|
+
overflow-y: auto;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.preview-placeholder {
|
|
149
|
+
display: flex;
|
|
150
|
+
flex-direction: column;
|
|
151
|
+
align-items: center;
|
|
152
|
+
justify-content: center;
|
|
153
|
+
min-height: 200px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.preview-placeholder p {
|
|
157
|
+
margin-top: 12px;
|
|
158
|
+
font-size: 14px;
|
|
159
|
+
color: #969799;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.image-preview {
|
|
163
|
+
display: flex;
|
|
164
|
+
justify-content: center;
|
|
165
|
+
align-items: center;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.image-preview img {
|
|
169
|
+
max-width: 100%;
|
|
170
|
+
max-height: 60vh;
|
|
171
|
+
object-fit: contain;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.text-preview {
|
|
175
|
+
max-height: 60vh;
|
|
176
|
+
overflow-y: auto;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.text-preview pre {
|
|
180
|
+
white-space: pre-wrap;
|
|
181
|
+
word-break: break-all;
|
|
182
|
+
font-size: 14px;
|
|
183
|
+
line-height: 1.6;
|
|
184
|
+
color: #323233;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.modal-footer {
|
|
188
|
+
display: flex;
|
|
189
|
+
justify-content: center;
|
|
190
|
+
gap: 12px;
|
|
191
|
+
padding: 16px;
|
|
192
|
+
border-top: 1px solid #f0f0f0;
|
|
193
|
+
}
|
|
194
|
+
</style>
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="node-detail-card">
|
|
3
|
+
<div class="handle-result-badge" :class="'badge-' + getHandleResultClass(nodeInfo.handleResult)" v-if="showResultBadge && !isApplyNode">
|
|
4
|
+
<van-icon :name="getHandleIcon(nodeInfo.handleResult)" size="12"></van-icon>
|
|
5
|
+
<span>{{ getHandleResultText(nodeInfo.handleResult) }}</span>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="detail-grid">
|
|
8
|
+
<div class="detail-item">
|
|
9
|
+
<span class="detail-label">{{ isApplyNode ? '发起时间:' : '处理时间:' }}</span>
|
|
10
|
+
<span class="detail-value">{{ (isApplyNode ? nodeInfo.applyTime : nodeInfo.handleTime) || '-' }}</span>
|
|
11
|
+
</div>
|
|
12
|
+
<div class="detail-item">
|
|
13
|
+
<span class="detail-label">{{ isApplyNode ? '发起人:' : '处理人:' }}</span>
|
|
14
|
+
<span class="detail-value">{{ (isApplyNode ? nodeInfo.applyUserName : nodeInfo.handleUserName) || '-' }}</span>
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="detail-grid" style="margin-top: 8px" v-if="!isApplyNode && (nodeInfo.startTime || nodeInfo.endTime)">
|
|
18
|
+
<div class="detail-item">
|
|
19
|
+
<span class="detail-label">开始时间:</span>
|
|
20
|
+
<span class="detail-value">{{ nodeInfo.startTime || '-' }}</span>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="detail-item">
|
|
23
|
+
<span class="detail-label">结束时间:</span>
|
|
24
|
+
<span class="detail-value">{{ nodeInfo.endTime || '-' }}</span>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="detail-item comment-item" v-if="isApplyNode ? nodeInfo.applyDescription : nodeInfo.handleComment">
|
|
28
|
+
<span class="detail-label">{{ isApplyNode ? '工单内容:' : '处理内容:' }}</span>
|
|
29
|
+
<span class="detail-value">{{ isApplyNode ? nodeInfo.applyDescription : nodeInfo.handleComment }}</span>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<!-- 附件列表插槽 -->
|
|
33
|
+
<slot name="attachments"></slot>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script>
|
|
38
|
+
import { getHandleResultClass, getHandleResultText, getHandleIcon } from './order-util.js'
|
|
39
|
+
|
|
40
|
+
export default {
|
|
41
|
+
name: 'OrderNodeCard',
|
|
42
|
+
props: {
|
|
43
|
+
nodeInfo: {
|
|
44
|
+
type: Object,
|
|
45
|
+
default: () => ({})
|
|
46
|
+
},
|
|
47
|
+
showResultBadge: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: true
|
|
50
|
+
},
|
|
51
|
+
isApplyNode: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: false
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
methods: {
|
|
57
|
+
getHandleResultClass,
|
|
58
|
+
getHandleResultText,
|
|
59
|
+
getHandleIcon
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<style scoped>
|
|
65
|
+
.node-detail-card {
|
|
66
|
+
border-radius: 4px;
|
|
67
|
+
padding: 12px;
|
|
68
|
+
border: 1px solid #e8e8e8;
|
|
69
|
+
position: relative;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.handle-result-badge {
|
|
74
|
+
position: absolute;
|
|
75
|
+
top: 0;
|
|
76
|
+
right: 0;
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
align-items: center;
|
|
79
|
+
gap: 4px;
|
|
80
|
+
padding: 4px 10px;
|
|
81
|
+
border-radius: 0 0 0 4px;
|
|
82
|
+
font-size: 12px;
|
|
83
|
+
font-weight: 500;
|
|
84
|
+
z-index: 1;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.badge-pending { background: #fff7e6; color: #fa8c16; }
|
|
88
|
+
.badge-processing { background: #e6f7ff; color: #1890ff; }
|
|
89
|
+
.badge-completed { background: #f6ffed; color: #52c41a; }
|
|
90
|
+
.badge-default { background: #d9d9d9; color: #fff; }
|
|
91
|
+
|
|
92
|
+
.detail-grid {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-wrap: wrap;
|
|
95
|
+
gap: 8px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.detail-item {
|
|
99
|
+
display: flex;
|
|
100
|
+
align-items: flex-start;
|
|
101
|
+
font-size: 13px;
|
|
102
|
+
width: calc(50% - 4px);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
@media (max-width: 510px) {
|
|
106
|
+
.detail-item {
|
|
107
|
+
width: 100% !important;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.comment-item {
|
|
112
|
+
width: 100%;
|
|
113
|
+
margin-top: 8px;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.detail-label {
|
|
117
|
+
color: #8c8c8c;
|
|
118
|
+
flex-shrink: 0;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.detail-value {
|
|
122
|
+
color: #262626;
|
|
123
|
+
flex: 1;
|
|
124
|
+
word-break: break-all;
|
|
125
|
+
}
|
|
126
|
+
</style>
|