diff --git a/defaultBaseUrl.js b/defaultBaseUrl.js index 1a2915b..2b93ff5 100644 --- a/defaultBaseUrl.js +++ b/defaultBaseUrl.js @@ -31,5 +31,5 @@ export function getUpgradeBaseUrl() { } export function getWebSocketUrl() { // return uni.getStorageSync('base_url').replace('/api', '') + '/ws' - return 'ws://localhost:8330' + return 'ws://192.168.26.178:8330' } diff --git a/manifest.json b/manifest.json index 25c4f63..74e85af 100644 --- a/manifest.json +++ b/manifest.json @@ -1,31 +1,31 @@ { - "name" : "凉山矿业设备管理系统", - "appid" : "__UNI__EF98982", - "description" : "凉山矿业设备管理系统", - "versionName" : "1.0.8", - "versionCode" : "108", - "transformPx" : false, - "app-plus" : { - "usingComponents" : true, - "nvueCompiler" : "uni-app", - "compilerVersion" : 3, - "splashscreen" : { - "alwaysShowBeforeRender" : true, - "waiting" : true, - "autoclose" : true, - "delay" : 0 + "name": "凉山矿业设备管理系统", + "appid": "__UNI__460BC4C", + "description": "凉山矿业设备管理系统", + "versionName": "1.0.0", + "versionCode": "100", + "transformPx": false, + "app-plus": { + "usingComponents": true, + "nvueCompiler": "uni-app", + "compilerVersion": 3, + "splashscreen": { + "alwaysShowBeforeRender": true, + "waiting": true, + "autoclose": true, + "delay": 0 }, - "modules" : { - "LivePusher" : {}, - "Camera" : {} + "modules": { + "LivePusher": {}, + "Camera": {} }, - "distribute" : { - "android" : { - "packagename" : "tech.zzjc.mas.lskylims", - "keystore" : "zzjc_android.jks", - "password" : "zzjc@20190226", - "aliasname" : "app", - "permissions" : [ + "distribute": { + "android": { + "packagename": "tech.zzjc.mas.lskylims", + "keystore": "zzjc_android.jks", + "password": "zzjc@20190226", + "aliasname": "app", + "permissions": [ "", "", "", @@ -50,134 +50,134 @@ "" ] }, - "ios" : { - "dSYMs" : false + "ios": { + "dSYMs": false }, - "sdkConfigs" : {}, - "icons" : { - "android" : { - "hdpi" : "unpackage/res/icons/72x72.png", - "xhdpi" : "unpackage/res/icons/96x96.png", - "xxhdpi" : "unpackage/res/icons/144x144.png", - "xxxhdpi" : "unpackage/res/icons/192x192.png" + "sdkConfigs": {}, + "icons": { + "android": { + "hdpi": "unpackage/res/icons/72x72.png", + "xhdpi": "unpackage/res/icons/96x96.png", + "xxhdpi": "unpackage/res/icons/144x144.png", + "xxxhdpi": "unpackage/res/icons/192x192.png" }, - "ios" : { - "appstore" : "unpackage/res/icons/1024x1024.png", - "ipad" : { - "app" : "unpackage/res/icons/76x76.png", - "app@2x" : "unpackage/res/icons/152x152.png", - "notification" : "unpackage/res/icons/20x20.png", - "notification@2x" : "unpackage/res/icons/40x40.png", - "proapp@2x" : "unpackage/res/icons/167x167.png", - "settings" : "unpackage/res/icons/29x29.png", - "settings@2x" : "unpackage/res/icons/58x58.png", - "spotlight" : "unpackage/res/icons/40x40.png", - "spotlight@2x" : "unpackage/res/icons/80x80.png" + "ios": { + "appstore": "unpackage/res/icons/1024x1024.png", + "ipad": { + "app": "unpackage/res/icons/76x76.png", + "app@2x": "unpackage/res/icons/152x152.png", + "notification": "unpackage/res/icons/20x20.png", + "notification@2x": "unpackage/res/icons/40x40.png", + "proapp@2x": "unpackage/res/icons/167x167.png", + "settings": "unpackage/res/icons/29x29.png", + "settings@2x": "unpackage/res/icons/58x58.png", + "spotlight": "unpackage/res/icons/40x40.png", + "spotlight@2x": "unpackage/res/icons/80x80.png" }, - "iphone" : { - "app@2x" : "unpackage/res/icons/120x120.png", - "app@3x" : "unpackage/res/icons/180x180.png", - "notification@2x" : "unpackage/res/icons/40x40.png", - "notification@3x" : "unpackage/res/icons/60x60.png", - "settings@2x" : "unpackage/res/icons/58x58.png", - "settings@3x" : "unpackage/res/icons/87x87.png", - "spotlight@2x" : "unpackage/res/icons/80x80.png", - "spotlight@3x" : "unpackage/res/icons/120x120.png" + "iphone": { + "app@2x": "unpackage/res/icons/120x120.png", + "app@3x": "unpackage/res/icons/180x180.png", + "notification@2x": "unpackage/res/icons/40x40.png", + "notification@3x": "unpackage/res/icons/60x60.png", + "settings@2x": "unpackage/res/icons/58x58.png", + "settings@3x": "unpackage/res/icons/87x87.png", + "spotlight@2x": "unpackage/res/icons/80x80.png", + "spotlight@3x": "unpackage/res/icons/120x120.png" } } } }, /* 可选,JSON对象,应用UserAgent相关配置 **/ - "useragent" : { + "useragent": { /* 可选,字符串类型,设置的默认userAgent值 */ - "value" : "LIMS-PDA/1.0.8", + "value": "LIMS-PDA/1.0.8", /* 可选,Boolean类型,是否将value值作为追加值连接到系统默认userAgent值之后 */ - "concatenate" : true + "concatenate": true }, /* 可选,JSON对象,Android平台应用UserAgent相关配置,优先级高于useragent配置 */ - "useragent_android" : { + "useragent_android": { /* 可选,字符串类型,设置的默认userAgent值 */ - "value" : "LIMS-PDA/1.0.8", + "value": "LIMS-PDA/1.0.8", /* 可选,Boolean类型,是否将value值作为追加值连接到系统默认userAgent值之后 */ - "concatenate" : true + "concatenate": true }, /* 可选,JSON对象,iOS平台应用UserAgent相关配置,优先级高于useragent配置 */ - "useragent_ios" : { + "useragent_ios": { /* 可选,字符串类型,设置的默认userAgent值 */ - "value" : "LIMS-PDA/1.0.8", + "value": "LIMS-PDA/1.0.8", /* 可选,Boolean类型,是否将value值作为追加值连接到系统默认userAgent值之后 */ - "concatenate" : true + "concatenate": true } }, - "quickapp" : {}, - "mp-weixin" : { - "appid" : "", - "setting" : { - "urlCheck" : false, - "minified" : false + "quickapp": {}, + "mp-weixin": { + "appid": "", + "setting": { + "urlCheck": false, + "minified": false }, - "optimization" : { - "subPackages" : true + "optimization": { + "subPackages": true }, - "usingComponents" : true, - "mergeVirtualHostAttributes" : true + "usingComponents": true, + "mergeVirtualHostAttributes": true }, - "mp-alipay" : { - "usingComponents" : true + "mp-alipay": { + "usingComponents": true }, - "mp-baidu" : { - "usingComponents" : true + "mp-baidu": { + "usingComponents": true }, - "mp-toutiao" : { - "usingComponents" : true + "mp-toutiao": { + "usingComponents": true }, - "uniStatistics" : { - "enable" : false + "uniStatistics": { + "enable": false }, - "vueVersion" : "3", - "h5" : { - "devServer" : { - "port" : 33888, - "https" : false, - "proxy" : { - "/api" : { + "vueVersion": "3", + "h5": { + "devServer": { + "port": 33888, + "https": false, + "proxy": { + "/api": { // "target" : "http://mas.new.will-way.cn/api/", //"target" : "http://192.168.31.180:9090/", - "target" : "http://127.0.0.1:9999/", - "changeOrigin" : true, - "ws" : true, - "pathRewrite" : { - "^/api" : "" + "target": "http://127.0.0.1:9999/", + "changeOrigin": true, + "ws": true, + "pathRewrite": { + "^/api": "" } }, - "/sys" : { + "/sys": { // "target" : "http://mas.new.will-way.cn/api/", //"target" : "http://192.168.31.180:9090/", - "target" : "http://127.0.0.1:9999/sys", - "changeOrigin" : true, - "ws" : true, - "pathRewrite" : { - "^/api" : "" + "target": "http://127.0.0.1:9999/sys", + "changeOrigin": true, + "ws": true, + "pathRewrite": { + "^/api": "" } }, - "/report" : { - "target" : "http://127.0.0.1:9999/report/", - "changeOrigin" : true, - "ws" : true, - "pathRewrite" : { - "^/api" : "" + "/report": { + "target": "http://127.0.0.1:9999/report/", + "changeOrigin": true, + "ws": true, + "pathRewrite": { + "^/api": "" } } } }, - "optimization" : { - "treeShaking" : { - "enable" : true + "optimization": { + "treeShaking": { + "enable": true } }, - "router" : { - "base" : "./" + "router": { + "base": "./" }, - "template" : "template.h5.html" + "template": "template.h5.html" } -} +} \ No newline at end of file diff --git a/nx/helper/measure.js b/nx/helper/measure.js index 3d71ac7..f98dfcb 100644 --- a/nx/helper/measure.js +++ b/nx/helper/measure.js @@ -165,7 +165,7 @@ export default { }, //发送消息 send(data) { - console.log('发送消息。。。') + console.log('发送消息。。。', data) if (!this.isOpen) { //关闭则打开 this.open() diff --git a/nx/request/index.js b/nx/request/index.js index dcacec6..ce26b71 100644 --- a/nx/request/index.js +++ b/nx/request/index.js @@ -131,7 +131,6 @@ http.interceptors.response.use( // } const userStore = $store('user') - const isLogin = userStore.isLogin response.config.custom.showLoading && closeLoading() console.log('response', JSON.parse(JSON.stringify(response.data))) diff --git a/pages/analysis/auncel/auncel-status.vue b/pages/analysis/auncel/auncel-status.vue index c4f0c5a..9f37a60 100644 --- a/pages/analysis/auncel/auncel-status.vue +++ b/pages/analysis/auncel/auncel-status.vue @@ -1,7 +1,7 @@ @@ -252,22 +251,15 @@ function checkPrintConfig() { diff --git a/pages/analysis/sample/sample-receive.vue b/pages/analysis/sample/sample-receive.vue index 27ac3bb..cf4b947 100644 --- a/pages/analysis/sample/sample-receive.vue +++ b/pages/analysis/sample/sample-receive.vue @@ -2,62 +2,41 @@ - + 任务列表 + + + + 样品列表 - - - - - - - - - - - - - - {{ task.taskNo }} - {{ task.taskName }} - - - {{ task.taskOperTime }} - - - - - - - - - - - + + - + - + {{ sample.sampleCode }}{{ sample.sampleCode }} - + {{ getDataSourceTypeShow(sample.dataSourceType) }}{{ sample.sampleName }} @@ -87,7 +66,7 @@ - + @@ -112,13 +91,27 @@ import { ref, computed, onMounted } from 'vue' import nx from '@/nx' import { onLoad, onBackPress } from '@dcloudio/uni-app' +import TaskItem from './components/task-item.vue' +import { getDataSourceTypeShow } from '../common' // 响应式数据 const currentNode = ref('F30') const scrollTop = ref(0) const current = ref(0) -const taskList = ref([]) -const sampleList = ref([]) +const taskList = ref([ + { id: 1, taskNo: 'TASK-1', taskName: '任务1', taskOperTime: '2022-03-01 10:00:00' }, + { id: 1, taskNo: 'TASK-1', taskName: '任务1', taskOperTime: '2022-03-01 10:00:00' }, + { id: 1, taskNo: 'TASK-1', taskName: '任务1', taskOperTime: '2022-03-01 10:00:00' }, + { id: 1, taskNo: 'TASK-1', taskName: '任务1', taskOperTime: '2022-03-01 10:00:00' }, + { id: 1, taskNo: 'TASK-1', taskName: '任务1', taskOperTime: '2022-03-01 10:00:00' }, + { id: 1, taskNo: 'TASK-1', taskName: '任务1', taskOperTime: '2022-03-01 10:00:00' }, + { id: 1, taskNo: 'TASK-1', taskName: '任务1', taskOperTime: '2022-03-01 10:00:00' }, + { id: 1, taskNo: 'TASK-1', taskName: '任务1', taskOperTime: '2022-03-01 10:00:00' }, + { id: 1, taskNo: 'TASK-1', taskName: '任务1', taskOperTime: '2022-03-01 10:00:00' } +]) +const sampleList = ref([ + { id: 1, sampleCode: 'SAMPLE-1', sampleName: '样品1', sort: 1, checked: false, sampleProcessNo: 'F30' } +]) const dicSampleProcessCodeList = ref([]) // 计算属性 @@ -133,16 +126,6 @@ const selectSample = sample => { sample.checked = !sample.checked } -const taskStyle = task => { - if ((task.weightTaskStatus === 0 || task.weightTaskStatus === 1) && task.reviewCount > 0) { - return 'red' - } - if (task.weightTaskStatus === 2 && task.reviewCount > 0) { - return 'green' - } - return '' -} - const confirmReceipt = () => { const errNodeList = sampleList.value.filter(item => item.sampleProcessNo !== currentNode.value) if (errNodeList.length > 0) { @@ -250,16 +233,10 @@ const getProcessNameShow = val => { return item ? item.processName : val } -const getDataSourceTypeShow = val => { - if (val === 2) return '【筛上】' - if (val === 3) return '【筛下】' - return '' -} - // 生命周期 onLoad(() => { getDicSampleProcessCodeList() - getAssayTask() + // getAssayTask() }) onBackPress(() => { @@ -269,59 +246,29 @@ onBackPress(() => { diff --git a/pages/analysis/sample/sample-work-list.vue b/pages/analysis/sample/sample-work-list.vue index 9f02cd3..1fda9dc 100644 --- a/pages/analysis/sample/sample-work-list.vue +++ b/pages/analysis/sample/sample-work-list.vue @@ -5,56 +5,38 @@ 任务列表 + + + + 样品列表 - - - - - - - - - - - - {{ task.taskNo }} - {{ task.taskName }} - - - {{ task.taskOperTime }} - - - - - - - - - + + - + - + - + selectSample(sample)" > - + 【{{ sample.sort }}】 @@ -76,10 +58,10 @@ {{ sample.sampleCode }}{{ sample.sampleCode }} - + {{ getDataSourceTypeShow(sample.dataSourceType) }}{{ sample.sampleName }} @@ -96,13 +78,13 @@ - + - + 申请退回样品 @@ -136,6 +118,8 @@ import { ref, computed, onMounted } from 'vue' import { onLoad, onBackPress } from '@dcloudio/uni-app' import nx from '@/nx' import { useScreenOrientation } from '@/nx/hooks/useScreenOrientation' +import { getDataSourceTypeShow } from '../common' +import TaskItem from './components/task-item.vue' // 响应式数据 const currentNode = ref('F31') @@ -162,12 +146,6 @@ const selectSample = sample => { sample.checked = !sample.checked } -const taskStyle = task => { - if ((task.weightTaskStatus === 0 || task.weightTaskStatus === 1) && task.reviewCount > 0) return 'red' - if (task.weightTaskStatus === 2 && task.reviewCount > 0) return 'green' - return '' -} - const showRollbackModal = () => { const checkedSampleList = sampleList.value.filter(item => item.checked) if (checkedSampleList.length === 0) { @@ -228,7 +206,7 @@ const startWork = () => { }) } -const swichTask = async index => { +const switchTask = async index => { if (index === current.value) return current.value = index rollbackContent.value = '' @@ -280,18 +258,12 @@ const getProcessNameShow = val => { return item ? item.processName : val } -const getDataSourceTypeShow = val => { - if (val === 2) return '【筛上】' - if (val === 3) return '【筛下】' - return '' -} - // 生命周期 onLoad(() => { const { lockOrientation } = useScreenOrientation() lockOrientation('landscape') getDicSampleProcessCodeList() - getAssayTask() + // getAssayTask() }) onBackPress(() => { @@ -301,60 +273,27 @@ onBackPress(() => {