零件图上传

This commit is contained in:
caoxinyu
2019-07-23 16:59:24 +08:00
parent 9351c77ef8
commit 17ec8ebf48
10 changed files with 470 additions and 6 deletions

View File

@@ -0,0 +1,48 @@
import request from '@/utils/request'
export function projectSelect() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_项目名称_查询数据_按时间排序'
}
})
}
export function machineSelect(projectValue) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_机床名称_查询数据2',
param: `项目流水号=${projectValue}`
}
})
}
export function groupSelect(machineValue) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_零件明细表_组件流水号_查询数据_根据机床',
param: `机床流水号=${machineValue}`
}
})
}
export function basicPartsData(project_check, project, machine_check, machine, group_check, group, pageSize, pageCurrent) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_零件明细表_基本件_查询数据_综合gj',
param: `项目流水号_check=${project_check}&项目流水号=${project}&机床流水号_check=${machine_check}&机床流水号=${machine}&组件流水号_check=${group_check}&组件流水号=${group}`,
Pagination: pageCurrent + '&' + pageSize
}
})
}

View File

@@ -1 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1559456604103" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3611" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M535.119473 0h69.599248v95.247413C729.226717 96.331138 853.614299 93.92286 977.881468 96.331138a40.459078 40.459078 0 0 1 44.914393 45.516463c2.047037 234.566322 0 469.614299 1.204139 703.819379-1.204139 24.082785 2.287865 50.694262-11.318909 72.248354-16.978363 12.041392-38.893697 10.837253-58.761994 12.041392h-349.200376V1023.518344h-72.248354C354.980245 990.886171 177.490122 960.541863 0 928.752587V95.488241C178.33302 63.578551 356.786453 32.511759 535.119473 0z" fill="#2A5699" p-id="3612"></path><path d="M604.718721 131.010348H988.598307v761.979304H604.718721v-95.247413h302.479774v-48.165569H604.718721v-59.002822h302.479774v-48.16557H604.718721v-59.002822h302.479774v-48.165569H604.718721v-60.206961h302.479774V428.673565H604.718721v-60.206961h302.479774v-46.96143H604.718721v-59.604892h302.479774V214.336783H604.718721zM240.827846 341.373471c22.156162-1.324553 44.19191-2.287865 66.348071-3.492003 15.533396 80.4365 31.30762 160.632173 48.165569 240.827845 13.125118-82.724365 27.695202-165.087488 41.783632-247.571025 23.239887-0.842897 46.479774-2.167451 69.719661-3.612418-26.370649 115.356538-49.369708 231.796802-78.148636 346.430856-19.386642 10.355597-48.165569 0-71.52587 1.204139C301.034807 596.169332 283.093133 517.779868 269.245532 438.667921c-13.606773 76.944497-31.30762 153.16651-46.841016 229.508937-22.39699-1.204139-44.793979-2.528692-67.311383-4.094073-19.266228-104.760113-42.024459-208.918156-60.206962-313.919097 19.868297-0.963311 39.857008-1.806209 60.206962-2.528693 12.041392 75.860771 25.648166 151.360301 36.124177 227.341487 16.135466-77.907808 32.873001-155.695202 49.610536-233.603011z" fill="#FFFFFF" p-id="3613"></path></svg>
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1560402717321" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="25732" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M0 0h1024v1024H0z" fill="#FFFFFF" p-id="25733"></path><path d="M665.6 0l256 256v716.8c0 28.16-23.04 51.2-51.2 51.2H153.6c-28.16 0-51.2-23.04-51.2-51.2V51.2c0-28.16 23.04-51.2 51.2-51.2h512zM284.16 360.96L378.88 691.2H435.2l64-248.32h2.56l64 248.32h56.32L716.8 360.96h-61.44l-61.44 250.88h-2.56l-64-250.88h-56.32L409.6 611.84h-2.56l-61.44-250.88h-61.44z" fill="#4E97FF" p-id="25734"></path><path d="M665.6 0l256 256H665.6z" fill="#A4D2FF" p-id="25735"></path></svg>

Before

Width:  |  Height:  |  Size: 2.0 KiB

After

Width:  |  Height:  |  Size: 851 B

View File

@@ -1 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1559456699825" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5265" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M728.345 64.223H224.056V321.34h68.687V133.019h378.844v187.78h186.917v569.777H292.743v-84.271h-0.715v-68.796h0.715v-53.046h-68.687v274.909h703.135V256.486z" fill="#819292" p-id="5266"></path><path d="M660.276 418.403h129.217v67.077H660.276zM660.276 578.386h129.217v67.077H660.276zM660.276 738.369h129.217v67.077H660.276z" fill="#819292" p-id="5267"></path><path d="M586.15 408.784h-68.687v328.725H292.028v68.796H586.15z" fill="#50A135" p-id="5268"></path><path d="M460.55 684.463V321.34H98.004v363.123H460.55z m-234.043-70.305l-85.787 0.722 93.843-110.912-93.843-113.045 81.805 0.225 53.747 63.523 53.747-63.523 81.805-0.225-93.843 113.044 93.843 110.912-85.787-0.722-49.765-59.948-49.765 59.949z" fill="#50A135" p-id="5269"></path><path d="M326.038 614.158l85.787 0.722-93.843-110.913 93.843-113.044-81.805 0.225-53.747 63.524-53.748-63.524-81.805-0.225 93.844 113.044L140.72 614.88l85.787-0.722 49.766-59.948z" fill="#FFFFFF" p-id="5270"></path></svg>
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1560402755375" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="26497" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M640 64l256 256v608c0 19.2-12.8 32-32 32H160c-19.2 0-32-12.8-32-32V96c0-19.2 12.8-32 32-32h480z" fill="#34B37E" p-id="26498"></path><path d="M358.4 448h60.8l76.8 115.2L576 448h57.6l-108.8 153.6 118.4 166.4h-60.8l-86.4-128-83.2 128H352l115.2-166.4z" fill="#FFFFFF" p-id="26499"></path><path d="M640 64l256 256h-224c-19.2 0-32-12.8-32-32V64z" fill-opacity=".2" p-id="26500"></path></svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 772 B

View File

@@ -1 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1559456774760" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7063" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M692.312 956.978c-59.656 0-112.963-25.778-148.221-66.23H214.286V133.034h400.115v187.818h197.413v310.98c42.357 31.932 70.176 80.457 72.544 135.214v-510.52L674.346 64.223H141.742v895.335h742.615V782.244c-4.202 97.174-88.568 174.734-192.045 174.734z" fill="#819292" p-id="7064"></path><path d="M301.326 418.477h437.601v67.091H301.326zM301.326 578.493h219.957v67.091H301.326zM301.326 738.509h138.34V805.6h-138.34z" fill="#819292" p-id="7065"></path><path d="M811.814 631.832c-32.811-24.735-74.334-39.519-119.502-39.519-106.162 0-192.224 81.633-192.224 182.333 0 44.113 16.517 84.567 44.003 116.103 35.258 40.452 88.565 66.23 148.221 66.23 103.477 0 187.843-77.56 192.045-174.734 0.109-2.521 0.179-5.052 0.179-7.599s-0.07-5.078-0.179-7.599c-2.368-54.759-30.186-103.283-72.543-135.215zM660.869 888.809l-38.472-36.492 0.92-0.872-69.159-65.6 38.472-36.492 69.159 65.6 130.205-123.505 38.472 36.492-169.597 160.869z" fill="#50A135" p-id="7066"></path><path d="M791.994 691.447L661.789 814.952l-69.159-65.6-38.472 36.492 69.159 65.6-0.92 0.873 38.472 36.492L830.466 727.94z" fill="#FFFFFF" p-id="7067"></path></svg>
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1560402891023" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="29164" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M217.7536 102.4c-6.9888 0-17.5104 3.584-28.0064 10.6752-10.496 7.1424-10.496 21.376-10.496 28.4928v737.28c0 10.7008 3.4816 21.376 10.496 28.4928 10.496 10.7008 20.992 14.2592 28.0064 14.2592H809.728c10.496 0 21.0176-3.584 28.032-10.6752 7.0144-7.1424 7.0144-17.8176 7.0144-28.4928V333.9008L620.5952 102.4H217.7536z" fill="#B3B3B3" p-id="29165"></path><path d="M844.7744 333.9008h-182.144c-10.496 0-21.0176-3.5584-28.032-10.6752-7.0144-7.1168-10.496-17.8176-10.496-28.4928V102.4l220.672 231.5008z" fill="#000000" fill-opacity=".1" p-id="29166"></path><path d="M502.784 418.6112c26.624 0 48.3328 6.9632 64.7168 21.7088 16.384 14.336 24.576 33.9968 24.576 58.9824 0 20.48-5.3248 37.2736-15.1552 50.3808-3.6864 4.096-15.5648 15.1552-35.2256 32.3584a58.1632 58.1632 0 0 0-16.384 20.0704c-4.096 8.192-6.144 17.2032-6.144 27.0336v5.7344h-47.104v-5.7344c0-15.5648 2.4576-29.0816 8.192-40.1408 5.3248-11.0592 21.2992-28.2624 47.9232-52.0192l4.9152-5.7344c7.3728-9.0112 11.0592-18.8416 11.0592-29.0816 0-13.5168-4.096-24.1664-11.4688-31.9488-7.7824-7.7824-18.8416-11.4688-32.768-11.4688-17.6128 0-30.3104 5.3248-38.5024 16.384-6.9632 9.4208-10.24 22.9376-10.24 40.5504H404.48c0-30.3104 8.6016-54.0672 26.624-71.2704 17.6128-17.2032 41.3696-25.8048 71.68-25.8048z m-7.3728 236.3392c9.0112 0 16.7936 2.8672 22.9376 8.6016 5.7344 5.7344 9.0112 13.1072 9.0112 22.1184s-3.2768 16.7936-9.0112 22.528a33.28 33.28 0 0 1-22.9376 8.6016c-9.0112 0-16.384-3.2768-22.1184-9.0112-6.5536-5.7344-9.4208-13.1072-9.4208-22.1184s2.8672-16.384 9.4208-22.1184c5.7344-5.7344 13.1072-8.6016 22.1184-8.6016z" fill="#FFFFFF" p-id="29167"></path></svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@@ -1 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1559456551095" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2809" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M145.6 0C100.8 0 64 36.8 64 81.6v860.8C64 987.2 100.8 1024 145.6 1024h732.8c44.8 0 81.6-36.8 81.6-81.6V324.8L657.6 0h-512z" fill="#8C181A" p-id="2810"></path><path d="M960 326.4v16H755.2s-100.8-20.8-97.6-107.2c0 0 3.2 91.2 96 91.2H960z" fill="#6B0D12" p-id="2811"></path><path d="M657.6 0v233.6c0 27.2 17.6 92.8 97.6 92.8H960L657.6 0z" fill="#FFFFFF" opacity=".5" p-id="2812"></path><path d="M302.4 784h-52.8v65.6c0 6.4-4.8 11.2-12.8 11.2-6.4 0-11.2-4.8-11.2-11.2V686.4c0-9.6 8-17.6 17.6-17.6h59.2c38.4 0 60.8 27.2 60.8 57.6 0 32-22.4 57.6-60.8 57.6z m-1.6-94.4h-51.2v73.6h51.2c22.4 0 38.4-14.4 38.4-36.8s-16-36.8-38.4-36.8z m166.4 171.2h-48c-9.6 0-17.6-8-17.6-17.6v-156.8c0-9.6 8-17.6 17.6-17.6h48c59.2 0 99.2 41.6 99.2 96s-38.4 96-99.2 96z m0-171.2h-41.6v148.8h41.6c46.4 0 73.6-33.6 73.6-75.2 1.6-40-25.6-73.6-73.6-73.6z m260.8 0h-92.8V752h91.2c6.4 0 9.6 4.8 9.6 11.2s-4.8 9.6-9.6 9.6h-91.2v76.8c0 6.4-4.8 11.2-12.8 11.2-6.4 0-11.2-4.8-11.2-11.2V686.4c0-9.6 8-17.6 17.6-17.6h99.2c6.4 0 9.6 4.8 9.6 11.2 1.6 4.8-3.2 9.6-9.6 9.6z" fill="#FFFFFF" p-id="2813"></path></svg>
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1560402799054" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="27556" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M831.6 959.7H191.8c-28.2 0-51.2-23-51.2-51.2V115.2c0-28.2 23-51.2 51.2-51.2H636l246.8 254.4v590.2c0 28.1-23 51.1-51.2 51.1z" fill="#FF5562" p-id="27557"></path><path d="M635.2 63.9c-0.6 1.7-1 3.4-1 5.3v198.3c0 28.2 23 51.2 51.2 51.2h197.4v-0.4L636 63.9h-0.8z" fill="#FFBBC0" p-id="27558"></path><path d="M667.4 621.3c-30.3-2.2-59.5-14.1-83.3-33.5-46.5 9.7-90.9 24.9-134.2 43.3-34.6 62.8-68.2 94.1-96.3 94.1-5.4 0-13-1.1-17.3-4.3-13-5.4-19.5-18.4-19.5-30.3 0-9.7 2.2-39 109.3-84.4 24.9-45.4 44.4-92 59.5-140.7-14.1-27.1-43.3-94.1-22.7-127.7 6.5-13 20.6-19.5 34.6-18.4 10.8 0 22.7 5.4 29.2 15.1 15.1 20.6 14.1 63.8-5.4 126.6 18.4 33.5 42.2 64.9 70.3 90.9 23.8-4.3 47.6-7.6 71.4-7.6 53 1.1 60.6 26 59.5 41.1 1.2 35.8-35.6 35.8-55.1 35.8z m-317 70.3l3.2-1.1c16.2-5.4 28.1-17.3 37.9-31.4-17.3 6.5-31.4 17.4-41.1 32.5z m150.4-339.8h-3.2c-1.1 0-3.2 0-4.3 1.1-4.3 19.5-1.1 40 6.5 57.4 6.4-19.5 6.4-39 1-58.5z m7.6 164.5l-1.1 2.2-1.1-1.1c-9.7 26-21.6 51.9-33.5 76.8l2.2-1.1v2.2c24.9-8.7 51.9-17.3 76.8-22.7l-1.1-1.1h3.2c-17.3-17.3-32.5-36.8-45.4-55.2z m154.7 59.5c-9.7 0-19.5 0-29.2 2.2 10.8 5.4 22.7 7.6 33.5 8.7 7.6 1.1 16.2 0 22.7-2.2 0-3.3-4.3-8.7-27-8.7z" fill="#FFFFFF" p-id="27559"></path></svg>

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -1 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1559456734634" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="6070" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M633.222 304.176m-102.92 0a102.92 102.92 0 1 0 205.84 0 102.92 102.92 0 1 0-205.84 0Z" fill="#CEE8FA" p-id="6071"></path><path d="M633.216 435.568c-72.444 0-131.382-58.938-131.382-131.382s58.938-131.382 131.382-131.382 131.382 58.938 131.382 131.382-58.936 131.382-131.382 131.382z m0-205.86c-41.066 0-74.474 33.408-74.474 74.474s33.408 74.474 74.474 74.474 74.474-33.408 74.474-74.474c0-41.062-33.408-74.474-74.474-74.474z" fill="#2D527C" p-id="6072"></path><path d="M638.072 893.886L385.766 428.298 76.548 893.886z" fill="#CEE8FA" p-id="6073"></path><path d="M638.068 922.342H76.548a28.45 28.45 0 0 1-23.704-44.194l309.218-465.59a28.408 28.408 0 0 1 24.978-12.682 28.454 28.454 0 0 1 23.742 14.868l252.302 465.586a28.452 28.452 0 0 1-25.016 42.012zM129.604 865.432h460.682L383.292 483.456 129.604 865.432z" fill="#2D527C" p-id="6074"></path><path d="M947.452 893.886L695.148 585.72 442.844 893.886z" fill="#CEE8FA" p-id="6075"></path><path d="M947.456 922.342H442.846a28.46 28.46 0 0 1-22.016-46.482l252.304-308.166a28.456 28.456 0 0 1 44.032 0L969.47 875.86a28.46 28.46 0 0 1 3.7 30.208 28.46 28.46 0 0 1-25.714 16.274z m-444.54-56.91h384.47l-192.234-234.794-192.236 234.794z" fill="#2D527C" p-id="6076"></path><path d="M945.608 924.26H78.392C35.166 924.26 0 889.092 0 845.868V178.132C0 134.908 35.166 99.74 78.392 99.74h867.216C988.834 99.74 1024 134.908 1024 178.132v667.734c0 43.226-35.164 78.394-78.392 78.394zM78.392 156.65c-11.846 0-21.484 9.638-21.484 21.484v667.734c0 11.846 9.638 21.484 21.484 21.484h867.216c11.846 0 21.482-9.638 21.482-21.484V178.132c0-11.846-9.638-21.484-21.482-21.484H78.392z" fill="#2D527C" p-id="6077"></path><path d="M247.382 274.88H28.454C12.74 274.88 0 262.142 0 246.426s12.74-28.454 28.454-28.454h218.928c15.716 0 28.454 12.738 28.454 28.454s-12.738 28.454-28.454 28.454zM193.314 390.596h-164.86C12.74 390.596 0 377.856 0 362.14s12.74-28.454 28.454-28.454h164.858c15.716 0 28.454 12.738 28.454 28.454 0.002 15.716-12.738 28.456-28.452 28.456z" fill="#2D527C" p-id="6078"></path></svg>
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1560402654629" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="24321" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M99.556097 85.32008A85.27598 85.27598 0 0 1 184.960077 0.0001h501.972882l251.733941 255.99994v683.60484A84.33798 84.33798 0 0 1 854.17192 1023.99986H184.050077a84.46598 84.46598 0 0 1-84.49398-84.43698V85.31908z" fill="#63C341" p-id="24322"></path><path d="M938.6669 256.00004H772.152939a85.33298 85.33298 0 0 1-85.21998-85.24798V0.0001l251.733941 255.99994z" fill="#45882D" p-id="24323"></path><path d="M679.509961 428.672l134.953968 271.075936H250.596061c68.393984-62.677985 212.63595-196.764954 212.63595-196.764954l57.258987 105.414975 159.017963-179.725957z m-345.713919 44.458989c-29.823993 0-53.987987-25.656994-53.987988-57.343986 0-31.672993 24.163994-57.372987 53.987988-57.372987 29.751993 0 53.929987 25.713994 53.929987 57.372987 0.014 31.686993-24.162994 57.343987-53.929987 57.343986z" fill="#FFFFFF" p-id="24324"></path></svg>

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@@ -1 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1559456658409" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4469" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M538.731891 0h65.98683v107.168391c124.387582 0.722484 248.895579-1.324553 373.28316 0a40.699906 40.699906 0 0 1 45.034808 46.118533c2.047037 222.404516 0 444.929445 1.204139 667.454374-1.204139 24.082785 2.287865 50.694262-11.198495 72.248354-16.978363 12.041392-39.014111 10.957667-59.002822 12.041392-116.319849-0.60207-232.639699 0-349.200376 0V1023.518344h-72.248354C355.100659 990.886171 177.490122 960.662277 0 928.752587V95.488241C179.537159 63.698965 359.074318 31.30762 538.731891 0z" fill="#D24625" p-id="4470"></path><path d="M604.718721 142.931326H988.598307v726.216369H604.718721v-95.247413h279.239887v-47.563499H604.718721v-60.206962h279.239887v-46.96143H604.839135v-69.960489c46.118532 14.570085 98.619003 14.208843 139.800564-14.088429 44.553151-27.093133 67.793039-78.630292 71.646284-130.047036H663.119473c0-51.777987 0.60207-103.555974-0.963311-155.213547-19.145814 3.732832-38.171214 7.826905-57.196614 12.041392z" fill="#FFFFFF" p-id="4471"></path><path d="M686.35936 224.69238a165.689558 165.689558 0 0 1 153.16651 156.5381c-51.055503 0.60207-102.111007 0-153.286924 0 0.120414-52.380056 0.120414-104.278457 0.120414-156.5381z" fill="#D24625" p-id="4472"></path><path d="M186.64158 314.521167c63.21731 3.130762 139.680151-25.527752 192.662277 22.878645 50.092192 62.374412 36.84666 176.888053-37.44873 214.095955-26.370649 13.847601-56.714958 12.041392-85.373471 10.957667v139.68015l-69.238006-5.900282c-1.806209-127.157103-2.047037-254.434619-0.60207-381.712135z" fill="#FFFFFF" p-id="4473"></path><path d="M255.759172 378.942615c22.878645-0.963311 51.296331-5.298213 66.709313 16.737536a87.902164 87.902164 0 0 1 1.565381 78.148635c-13.245532 24.082785-43.228598 22.035748-66.468485 24.925682-2.408278-39.857008-2.167451-79.714017-1.806209-119.811853z" fill="#D24625" p-id="4474"></path></svg>
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1560402855131" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="28348" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M713.824 1.312l237.784 237.664v705.144c0 43.216-35.968 78.568-79.92 78.568H152.32c-43.96 0-79.928-35.36-79.928-78.56V79.872c0-43.216 35.968-78.568 79.92-78.568h561.512z" fill="#FF8A30" p-id="28349"></path><path d="M711.824 1.312l239.784 235.704H791.76c-43.96 0-79.928-35.36-79.928-78.568V1.312z" fill="#FFFFFF" fill-opacity=".551" p-id="28350"></path><path d="M535.2 368C632.232 368 680 408.648 680 491.456c0 82.8-49.264 124.96-146.296 124.96H429.2V776H368V368h167.2zM429.2 563.72h101.52c31.344 0 52.24-6.024 67.176-16.56 13.44-12.048 20.896-30.112 20.896-54.2 0-25.6-7.464-43.664-20.896-54.2-14.928-12.048-35.832-16.56-65.68-16.56h-101.52v141.52h-1.488z" fill="#FFFFFF" p-id="28351"></path></svg>

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@@ -18,6 +18,8 @@ export const download = `http://192.168.1.231:8411/submit/downloadFile.ashx` //
export const ServerIP = `http://192.168.1.231:8411/webpage/file/`
export const uploadFileMachine = `http://192.168.1.231:8411/submit/uploadFileMachine.ashx` // 机床总图 发布时改成0.231
export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFileMachine.ashx` // 机床总图 发布时改成0.231
export const MESUploadFile = `http://192.168.1.231:8411/submit/MESUploadFile.ashx`
export const MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx`
const service = axios.create({
baseURL: `http://192.168.1.231:8411/submit/MESCommonBase.ashx`,
timeout: 1500000 // 请求超时时间

View File

@@ -313,6 +313,8 @@ export default {
}
},
clearSelect() {
this.active = ''
this.active1 = ''
this.sudokus = []
this.isOut = '请查询'
this.outName = '请查询'

View File

@@ -0,0 +1,412 @@
<template>
<div>
<el-card>
<span>项目名称</span>
<el-select v-model="projectValue" placeholder="请选择项目名称" filterable size="small">
<el-option
v-for="item in project"
:key="item.value"
:label="item.label"
:value="item.value"/>
</el-select>
<span>机床图号</span>
<el-select v-model="machineValue" placeholder="请选择机床图号" filterable size="small">
<el-option
v-for="item in machine"
:key="item.value"
:label="item.label"
:value="item.value"/>
</el-select>
<span>组号</span>
<el-select v-model="groupValue" placeholder="请选择组号" filterable size="small">
<el-option
v-for="item in group"
:key="item.value"
:label="item.label"
:value="item.value"/>
</el-select>
<el-button icon="el-icon-search" type="success" size="small" @click="pageCurrentWB = 1;pageSizeWB = 10;pageCurrent = 1;pageSize = 10;getTableData()">查询</el-button>
</el-card>
<el-card>
<el-table
v-loading="loading"
:data="tableData"
highlight-current-row
border
size="mini"
style="width: 100%;max-height: 520px"
height="520">
<el-table-column
label="序号"
align="center"
type="index"
width="50"/>
<el-table-column
label="机床图号"
align="center"
min-width="100px">
<template slot-scope="scope">{{ scope.row.机床图号 }}</template>
</el-table-column>
<el-table-column
label="零件图号"
align="center"
min-width="100px">
<template slot-scope="scope">{{ scope.row.零件图号 }}</template>
</el-table-column>
<el-table-column
label="零件名称"
align="center"
min-width="100px">
<template slot-scope="scope">{{ scope.row.零件名称 }}</template>
</el-table-column>
<el-table-column
label="组号"
align="center"
min-width="100px">
<template slot-scope="scope">{{ scope.row.组号 }}</template>
</el-table-column>
<el-table-column
label="材料"
align="center">
<template slot-scope="scope">{{ scope.row.材料 }}</template>
</el-table-column>
<el-table-column
label="备注"
align="center">
<template slot-scope="scope">{{ scope.row.零件备注 }}</template>
</el-table-column>
<el-table-column
label="零件类型"
align="center">
<template slot-scope="scope">{{ scope.row.零件类型名称 }}</template>
</el-table-column>
<el-table-column
min-width="50px"
label="零件图纸"
align="center">
<template slot-scope="scope">
<el-button circle icon="el-icon-search" size="small" @click="getNum(scope.row)"/>
<!--<el-button slot="reference" type="success" icon="el-icon-search" circle size="mini"></el-button>-->
<!--<el-button type="success" icon="el-icon-search" circle size="mini"></el-button>-->
</template>
</el-table-column>
<el-table-column
min-width="80px"
label="操作"
align="center">
<template slot-scope="scope">
<!--<FileUpload ref="FileUpload" :num="scope.row.基本件流水号" table-name="机加工MES_零件图PDF表" @listenMsg ="listenMsgFromChid"/>-->
<el-upload
:disabled="disabled"
:action="action"
:on-success="uploadSuccess"
:on-error="uploadFailure"
:show-file-list="showFileList"
:file-list="fileList"
class="upload-demo"
multiple>
<el-button :disabled="disabled" size="mini" type="primary" round @click="getAction(scope.row)">点击上传</el-button>
</el-upload>
</template>
</el-table-column>
</el-table>
<div class="block" style="margin-top: 10px;">
<el-pagination
:current-page="pageCurrent"
:page-sizes="[10, 20, 30, 40]"
:page-size="pageSize"
:total="total"
layout="total, sizes, prev, pager, next, jumper"
@size-change="handleSizeChanges"
@current-change="handleCurrentChanges"/>
</div>
</el-card>
<el-dialog
:show-close="close"
:visible.sync="dialogVisible"
width="15%">
<div v-for="(file, key) in hadFile" :key="key">
<div class="wrapper">
<div class="content">
<div class="action">
<a v-show="isDeleteShow" class="delete" @click="deleteFileData(file.id)">删除</a>
</div>
<div v-if="file.suffix==='pdf'" class="icon"><svg-icon icon-class="pdf" /></div>
<div v-else-if="file.suffix==='docx'||file.suffix === 'doc'" class="icon"><svg-icon icon-class="doc" /></div>
<div v-else-if="file.suffix==='xlsx' || file.suffix === 'xls'" class="icon"><svg-icon icon-class="excel" /></div>
<div v-else-if="file.suffix==='pptx' || file.suffix === 'ppt'" class="icon"><svg-icon icon-class="ppt" /></div>
<div v-else-if="file.suffix==='jpg' || file.suffix === 'jpeg'|| file.suffix === 'png'" class="icon"><svg-icon icon-class="pic" /></div>
<div v-else class="icon"><svg-icon icon-class="file" /></div>
<a id="appUrl" :href="file.url" target="view_window"><div class="info">{{ file.name }}</div></a>
</div>
</div>
</div>
</el-dialog>
</div>
</template>
<script>
import request from '@/utils/request'
import { projectSelect, machineSelect, groupSelect, basicPartsData } from '@/api/TechnologyCenter/PartDrawingMaintenance'
import { MESUploadFile, MESDownloadFile } from '@/utils/request'
export default {
data() {
return {
close: false,
dialogVisible: false,
partID: '',
projectValue: '',
project: [],
machineValue: '',
machine: [],
groupValue: '',
group: [],
pageCurrent: 1,
pageSize: 10,
total: null,
loading: false,
tableData: [],
fileList: [],
showFileList: true,
action: '',
disabled: false,
tableName: '机加工MES_零件图PDF表',
num: '',
hadFile: [],
isDeleteShow: false,
deleteShow: '1',
operationType: '0'
}
},
computed: {
groupName() {
for (let i = 0; i < this.group.length; i++) {
if (this.group[i].value === this.groupValue) {
return this.group[i].label
}
}
}
},
watch: {
project(val) {
if (val.length > 0) {
this.projectValue = val[0].value
}
},
projectValue(val) {
this.machineValue = ''
this.machine = []
this.groupValue = ''
this.group = []
if (val) {
this.getMachineSelect(val)
}
},
machine(val) {
if (val.length > 0) {
this.machineValue = val[0].value
}
},
machineValue(val) {
this.groupValue = ''
this.group = []
if (val) {
this.getGroupSelect(val)
}
},
group(val) {
if (val.length > 0) {
this.groupValue = val[0].value
}
},
groupValue(val) {
if (val) {
this.pageCurrent = 1
this.pageSize = 10
this.getTableData()
}
}
},
mounted() {
this.fetchData()
},
methods: {
getAction(row) {
this.num = row.基本件流水号
this.action = `${MESUploadFile}?&num=${this.num}&tableName=${this.tableName}`
},
getNum(row) {
this.dialogVisible = true
this.num = row.基本件流水号
this.getFileList(this.num)
},
uploadSuccess(res, file, fileList) {
if (res[0].result === '1') {
const index = fileList.indexOf(file)
fileList.splice(index, 1)
} else {
this.$message.error(`${file.name}文件上传失败,请检查上传文件是否正确!`)
}
if (fileList.length === 0) {
this.$message.success('文件上传成功')
// this.$refs.FileDown.getFileList(this.num)
}
},
uploadFailure(a, file, fileList) {
fileList.map(file => {
this.$message.error(`${file.name}文件上传失败,请检查上传文件是否正确!`)
})
},
fetchData() {
this.getSelect(projectSelect, ['项目名称', '项目流水号'], 'project')
},
getMachineSelect(val) {
this.getSelect(machineSelect, ['机床图号', '机床流水号'], 'machine', val)
},
getGroupSelect(val) {
this.getSelect(groupSelect, ['组号', '组件流水号'], 'group', val)
},
getTableData() {
const project_check = this.projectValue ? 1 : 0
const machine_check = this.machineValue ? 1 : 0
const group_check = this.groupValue ? 1 : 0
this.loading = true
basicPartsData(project_check, this.projectValue, machine_check, this.machineValue, group_check, this.groupValue, this.pageSize, this.pageCurrent).then(response => {
this.loading = false
this.tableData = response.data.rows
this.total = response.data.total
})
},
handleSizeChanges(val) {
this.pageCurrent = 1
this.pageSize = val
this.getTableData()
},
handleCurrentChanges(val) {
this.pageCurrent = val
this.getTableData()
},
async getFileList(value) {
this.hadFile = []
this.deleteShow === '1' ? this.isDeleteShow = true : this.isDeleteShow = false
if (value) {
await request({
url: '',
method: 'post',
data: {
type: '3',
name: `select * from ${this.tableName} where 是否启用 = 1 and num = ${value}`
}
}).then(data => {
this.suffix = data.data
if (data.data.length > 0) {
if (this.operationType === '1') {
data.data.map(item => {
this.hadFile.push({
url: `${MESDownloadFile}?id=${item.uid}.${item.suffix}&name=${item.name}.${item.suffix}`,
name: `${item.name}.${item.suffix}`,
suffix: item.suffix,
id: item.uid
})
})
} else if (this.operationType === '0') {
const server = `${MESDownloadFile}`.split('/')
data.data.map(item => {
this.hadFile.push({
url: `http://${server[2]}/webpage/part/${item.uid}.${item.suffix}`,
name: `${item.name}.${item.suffix}`,
suffix: item.suffix,
id: item.uid
})
})
}
}
})
}
},
async deleteFileData(id) {
this.$confirm('此操作将永久删除该行, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
request({
url: '',
method: 'post',
data: {
type: '3',
name: `delete from ${this.tableName} where uid = N'${id}'`
}
}).then(response => {
if (response.data.length === 0) {
this.$message.success('删除成功')
this.getFileList(this.num)
} else {
this.$message.error('删除失败')
this.getFileList(this.num)
}
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
})
})
}
}
}
</script>
<style scoped>
.wrapper{
width: 90%;
height: 50px;
overflow: hidden;
border: 1px solid #b8c7d9;
/*float: left;*/
margin: 10px;
}
.content{
position: relative;
padding: 8px 8px 0 8px;
}
.action{
position: absolute;
top: 2px;
right: 8px;
}
.delete{
padding: 0 5px;
border-radius: 3px;
color: #0f84b0;
font-size: 12px;
}
.delete:hover{
background: -webkit-linear-gradient(top,#0ba9e3,#0099d3);
color: #fff;
}
a{
text-decoration: none;
}
.icon{
width: 30px;
height: 30px;
display: inline-block;
margin-right: 7px;
margin-top: 2px;
font-size: 26px;
}
.info{
width:100px;
height: 50px;
position: absolute;
left: 44px;
line-height: 30px;
display: inline-block;
color: #999;
}
</style>