diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..9fdae23c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +# 设置基础镜像 +FROM nginx:WIN-1.25.3 + +WORKDIR /opt/sfms3.0-uniapp +COPY nginx.conf /usr/local/nginx/conf/nginx.conf +# 将dist/build/h5/文件中的内容复制到 /opt/sfms3.0-uniapp 这个目录下面 +COPY dist/build/h5/ /opt/sfms3.0-uniapp diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 00000000..6a3d8bc0 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,53 @@ +user root; +worker_processes 2; + +events { + worker_connections 1024; +} + +http { + include mime.types; + charset utf-8,gbk; + default_type application/octet-stream; + log_format main '$remote_addr - $remote_user [$time_local] "$request" ' + '$status $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for" "$request_time $upstream_response_time"'; + + proxy_cache_path /opt/nginx_cache/ levels=1:2 keys_zone=my_zone:10m inactive=300s max_size=5g; + access_log logs/access.log main; + sendfile on; + #tcp_nopush on; + keepalive_timeout 600s; + client_max_body_size 200m; + gzip on; + gzip_min_length 10k; + gzip_comp_level 9; + gzip_buffers 4 16k; + gzip_types text/plain application/javascript text/css application/xml text/javascript image/jpeg image/gif image/png; + gzip_vary on; + gzip_disable "MSIE [1-6]\."; + upstream sfms3.0 { + server localhost:25110 weight=10 max_fails=3 fail_timeout=10s; + } + server { + listen 25102; + server_name_in_redirect off; + server_name dev.ccwin-in.com; + location /api/ { + proxy_pass http://sfms3.0/; + proxy_next_upstream http_500 http_502 http_503 http_504 error timeout invalid_header; + proxy_set_header X-Forwared-For $proxy_add_x_forwarded_for; + proxy_set_header Host $http_host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $http_x_forwarded_for; + } + location / { + proxy_cache my_zone; + proxy_cache_valid 200 304 12h; + proxy_cache_key $host$uri$is_args$args; + try_files $uri $uri/ /index.html; + root /opt/sfms3.0-uniapp; + index index.html index.htm; + } + } +} \ No newline at end of file diff --git a/package.json b/package.json index 8517ed4f..38bd5511 100644 --- a/package.json +++ b/package.json @@ -6,14 +6,14 @@ "dev:app-android": "uni -p app-android", "dev:app-ios": "uni -p app-ios", "dev:custom": "uni -p", - "dev:h5": "uni", + "dev": "uni", "dev:h5:ssr": "uni --ssr", "dev:mp-weixin": "uni -p mp-weixin", "build:app": "uni build -p app", "build:app-android": "uni build -p app-android", "build:app-ios": "uni build -p app-ios", "build:custom": "uni build -p", - "build:h5": "uni build", + "test": "uni build", "build:h5:ssr": "uni build --ssr", "build:mp-weixin": "uni build -p mp-weixin" }, diff --git a/src/App.vue b/src/App.vue index 3621db48..9128a34d 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,13 @@ + \ No newline at end of file diff --git a/src/pages/inventoryMove/coms/detailInfoPopup.vue b/src/pages/inventoryMove/coms/detailInfoPopup.vue index 72340688..8a7d67b4 100644 --- a/src/pages/inventoryMove/coms/detailInfoPopup.vue +++ b/src/pages/inventoryMove/coms/detailInfoPopup.vue @@ -40,7 +40,9 @@ methods: { openPopup(val) { this.dataContent = val; - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closePopup() { this.$refs.popup.close() diff --git a/src/pages/inventoryMove/coms/jobInfoPopup.vue b/src/pages/inventoryMove/coms/jobInfoPopup.vue index 7b02b6ab..9f72ee98 100644 --- a/src/pages/inventoryMove/coms/jobInfoPopup.vue +++ b/src/pages/inventoryMove/coms/jobInfoPopup.vue @@ -36,7 +36,9 @@ methods: { openPopup(val) { this.dataContent = val; - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closePopup() { this.$refs.popup.close() diff --git a/src/pages/inventoryMove/record/oktoScrapRecord.vue b/src/pages/inventoryMove/record/okToScrapRecord.vue similarity index 100% rename from src/pages/inventoryMove/record/oktoScrapRecord.vue rename to src/pages/inventoryMove/record/okToScrapRecord.vue diff --git a/src/pages/issue-按批次推荐/coms/comScanIssuePack.vue b/src/pages/issue-按批次推荐/coms/comScanIssuePack.vue index c954a41c..206e4c56 100644 --- a/src/pages/issue-按批次推荐/coms/comScanIssuePack.vue +++ b/src/pages/issue-按批次推荐/coms/comScanIssuePack.vue @@ -100,7 +100,9 @@ this.dataContent = content; this.jobContent = jobcontent; this.initData(); - this.$refs.popup.open('bottom'); + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closeScanPopup() { diff --git a/src/pages/issue/coms/comIssueRequestPopup.vue b/src/pages/issue/coms/comIssueRequestPopup.vue index e3011198..bbd6dd95 100644 --- a/src/pages/issue/coms/comIssueRequestPopup.vue +++ b/src/pages/issue/coms/comIssueRequestPopup.vue @@ -196,7 +196,9 @@ this.itemCodeGetFocus(); } - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, initData() { this.positionList = []; diff --git a/src/pages/issue/coms/comScanIssuePack.vue b/src/pages/issue/coms/comScanIssuePack.vue index 1775e4a5..0572aa58 100644 --- a/src/pages/issue/coms/comScanIssuePack.vue +++ b/src/pages/issue/coms/comScanIssuePack.vue @@ -174,7 +174,9 @@ this.initData(); // this.positionInfo = this.jobContent.workShopCode + "-" + this.jobContent.subList[0].productionLineCode + // "-" + this.jobContent.subList[0].workStationCode - this.$refs.popup.open('bottom'); + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closeScanPopup() { diff --git a/src/pages/issue/coms/detailInfoPopup.vue b/src/pages/issue/coms/detailInfoPopup.vue index 72340688..8a7d67b4 100644 --- a/src/pages/issue/coms/detailInfoPopup.vue +++ b/src/pages/issue/coms/detailInfoPopup.vue @@ -40,7 +40,9 @@ methods: { openPopup(val) { this.dataContent = val; - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closePopup() { this.$refs.popup.close() diff --git a/src/pages/issue/coms/requestDetailInfoPopup.vue b/src/pages/issue/coms/requestDetailInfoPopup.vue index d20250bd..377a384e 100644 --- a/src/pages/issue/coms/requestDetailInfoPopup.vue +++ b/src/pages/issue/coms/requestDetailInfoPopup.vue @@ -68,7 +68,9 @@ methods: { openPopup(val) { this.dataContent = val; - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closePopup() { this.$refs.popup.close() diff --git a/src/pages/issue/coms/requestInfoPopup.vue b/src/pages/issue/coms/requestInfoPopup.vue index 8a73b229..433374aa 100644 --- a/src/pages/issue/coms/requestInfoPopup.vue +++ b/src/pages/issue/coms/requestInfoPopup.vue @@ -60,7 +60,9 @@ title: '到库区代码范围', content: this.dataContent.toAreaCodes, }]; - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closePopup() { this.$refs.popup.close() diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue index 4a9ffd22..d3e76f5f 100644 --- a/src/pages/login/index.vue +++ b/src/pages/login/index.vue @@ -36,7 +36,7 @@ 用户名 - + @@ -44,8 +44,8 @@ 密码 - - + diff --git a/src/pages/message/index.vue b/src/pages/message/index.vue index 3035b6a6..fba36d3f 100644 --- a/src/pages/message/index.vue +++ b/src/pages/message/index.vue @@ -1,7 +1,8 @@ + \ No newline at end of file diff --git a/src/pages/supplierDeliver/coms/recordDetailInfoPopup.vue b/src/pages/supplierDeliver/coms/recordDetailInfoPopup.vue index 1689d6c4..7ef4023c 100644 --- a/src/pages/supplierDeliver/coms/recordDetailInfoPopup.vue +++ b/src/pages/supplierDeliver/coms/recordDetailInfoPopup.vue @@ -146,7 +146,9 @@ content: this.dataContent.toOwnerCode } ] - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closePopup() { this.$refs.popup.close() diff --git a/src/pages/supplierDeliver/coms/recordInfoPopup.vue b/src/pages/supplierDeliver/coms/recordInfoPopup.vue index 12d5abfb..8eadb471 100644 --- a/src/pages/supplierDeliver/coms/recordInfoPopup.vue +++ b/src/pages/supplierDeliver/coms/recordInfoPopup.vue @@ -93,7 +93,9 @@ methods: { openPopup(val) { this.dataContent = val; - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closePopup() { this.$refs.popup.close() diff --git a/src/pages/supplierDeliver/coms/recordListDetailPop.vue b/src/pages/supplierDeliver/coms/recordListDetailPop.vue index 3a8a98f1..a8dae9b3 100644 --- a/src/pages/supplierDeliver/coms/recordListDetailPop.vue +++ b/src/pages/supplierDeliver/coms/recordListDetailPop.vue @@ -72,7 +72,9 @@ methods: { openPopup(val) { this.dataContent = val; - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closePopup() { this.$refs.popup.close() diff --git a/src/pages/supplierDeliver/coms/recordtDetailInfoPopup.vue b/src/pages/supplierDeliver/coms/recordtDetailInfoPopup.vue index 26c801eb..7a5ba512 100644 --- a/src/pages/supplierDeliver/coms/recordtDetailInfoPopup.vue +++ b/src/pages/supplierDeliver/coms/recordtDetailInfoPopup.vue @@ -82,7 +82,9 @@ methods: { openPopup(val) { this.dataContent = val; - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closePopup() { this.$refs.popup.close() diff --git a/src/pages/transfer/coms/detailInfoPopup.vue b/src/pages/transfer/coms/detailInfoPopup.vue index 2fc76f5b..4b64c50c 100644 --- a/src/pages/transfer/coms/detailInfoPopup.vue +++ b/src/pages/transfer/coms/detailInfoPopup.vue @@ -40,7 +40,9 @@ methods: { openPopup(val) { this.dataContent = val; - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closePopup() { this.$refs.popup.close() diff --git a/src/pages/transfer/coms/jobInfoPopup.vue b/src/pages/transfer/coms/jobInfoPopup.vue index 465fb5a2..ae2a0e95 100644 --- a/src/pages/transfer/coms/jobInfoPopup.vue +++ b/src/pages/transfer/coms/jobInfoPopup.vue @@ -45,7 +45,9 @@ methods: { openPopup(val) { this.dataContent = val; - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closePopup() { this.$refs.popup.close() diff --git a/src/pages/unPlanned/coms/comReceiptRequestPopup.vue b/src/pages/unPlanned/coms/comReceiptRequestPopup.vue index 550d683a..583541fa 100644 --- a/src/pages/unPlanned/coms/comReceiptRequestPopup.vue +++ b/src/pages/unPlanned/coms/comReceiptRequestPopup.vue @@ -154,7 +154,9 @@ this.counQty = undefined; this.itemCodeGetFocus(); } - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closeRequestPopup() { this.$refs.popup.close() diff --git a/src/pages/unPlanned/coms/detailInfoPopup.vue b/src/pages/unPlanned/coms/detailInfoPopup.vue index f9dafe90..be4a5712 100644 --- a/src/pages/unPlanned/coms/detailInfoPopup.vue +++ b/src/pages/unPlanned/coms/detailInfoPopup.vue @@ -36,7 +36,9 @@ methods: { openPopup(val) { this.dataContent = val; - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closePopup() { this.$refs.popup.close() diff --git a/src/pages/unPlanned/coms/jobInfoPopup.vue b/src/pages/unPlanned/coms/jobInfoPopup.vue index 9076bb71..f361f301 100644 --- a/src/pages/unPlanned/coms/jobInfoPopup.vue +++ b/src/pages/unPlanned/coms/jobInfoPopup.vue @@ -28,7 +28,9 @@ methods: { openPopup(val) { this.dataContent = val; - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closePopup() { this.$refs.popup.close() diff --git a/src/pages/unPlanned/coms/requestIssDetailInfoPopup.vue b/src/pages/unPlanned/coms/requestIssDetailInfoPopup.vue index 584178df..0e72cf65 100644 --- a/src/pages/unPlanned/coms/requestIssDetailInfoPopup.vue +++ b/src/pages/unPlanned/coms/requestIssDetailInfoPopup.vue @@ -61,7 +61,9 @@ methods: { openPopup(val) { this.dataContent = val; - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closePopup() { this.$refs.popup.close() diff --git a/src/pages/unPlanned/coms/requestIssInfoPopup.vue b/src/pages/unPlanned/coms/requestIssInfoPopup.vue index eac873df..dc6bf5e5 100644 --- a/src/pages/unPlanned/coms/requestIssInfoPopup.vue +++ b/src/pages/unPlanned/coms/requestIssInfoPopup.vue @@ -43,7 +43,9 @@ title: '从库区代码范围', content: this.dataContent.fromAreaCodes, }]; - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closePopup() { this.$refs.popup.close() diff --git a/src/pages/unPlanned/coms/requestRecDetailInfoPopup.vue b/src/pages/unPlanned/coms/requestRecDetailInfoPopup.vue index acb6cb5f..8f8d7992 100644 --- a/src/pages/unPlanned/coms/requestRecDetailInfoPopup.vue +++ b/src/pages/unPlanned/coms/requestRecDetailInfoPopup.vue @@ -78,7 +78,9 @@ methods: { openPopup(val) { this.dataContent = val; - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closePopup() { this.$refs.popup.close() diff --git a/src/pages/unPlanned/coms/requestRecInfoPopup.vue b/src/pages/unPlanned/coms/requestRecInfoPopup.vue index d7a281ca..3d6fe239 100644 --- a/src/pages/unPlanned/coms/requestRecInfoPopup.vue +++ b/src/pages/unPlanned/coms/requestRecInfoPopup.vue @@ -43,7 +43,9 @@ title: '到库区代码范围', content: this.dataContent.toAreaCodes, }]; - this.$refs.popup.open('bottom') + setTimeout(res => { + this.$refs.popup.open('bottom') + }, 500) }, closePopup() { this.$refs.popup.close() diff --git a/src/static/config.js b/src/static/config.js index d2bc8acf..d5fe7571 100644 --- a/src/static/config.js +++ b/src/static/config.js @@ -1,4 +1,4 @@ -let request_url = "http://dev.ccwin-in.com:25100/api/admin-api" +let request_url = "http://dev.ccwin-in.com:25102/api/admin-api" let isDevelopment = true diff --git a/src/uni_modules/vk-uview-ui/components/u-cell-item/u-cell-item.vue b/src/uni_modules/vk-uview-ui/components/u-cell-item/u-cell-item.vue index eb9661bd..b512d803 100644 --- a/src/uni_modules/vk-uview-ui/components/u-cell-item/u-cell-item.vue +++ b/src/uni_modules/vk-uview-ui/components/u-cell-item/u-cell-item.vue @@ -221,7 +221,7 @@ export default { width: 100%; padding: 10rpx 10rpx 10rpx 10rpx ; font-size: 30rpx; - line-height: 40rpx; + line-height: 60rpx; color: $u-content-color; background-color: #fff; text-align: left;