feat:系统更新
This commit is contained in:
@@ -379,6 +379,7 @@ const parameterClassifyChange = v => {
|
||||
|
||||
function handleInputConfirm() {
|
||||
selectedField.value.value = inputValue.value
|
||||
syncFieldValueByEqualParamNo()
|
||||
autoNextField()
|
||||
}
|
||||
function handleDateConfirm(e) {
|
||||
@@ -703,7 +704,7 @@ const saveDetail = async () => {
|
||||
}
|
||||
|
||||
// 如果是空白样和标样就需要根据配置信息来计算质控样、分析样
|
||||
if (activeAssayTypeKey.value === 'kby' || activeAssayTypeKey.value === 'by') {
|
||||
if (activeAssayTypeKey.value === 'kby' || activeAssayTypeKey.value === 'by' || activeAssayTypeKey.value === 'zkkby') {
|
||||
// 处理其他页签的输入变化
|
||||
const configInfomation = currentAssayType.value.configQCSampleMethodInfo
|
||||
const row = currentSampleData.value
|
||||
@@ -719,8 +720,8 @@ const saveDetail = async () => {
|
||||
// 如果处理后的值不为空,重新赋值该字段到其他样品类型下的样品上,并触发每一个样品的计算
|
||||
if (item.value !== null) {
|
||||
for (const col of currentAssayType.value.columns) {
|
||||
if (col.fieldIndex === sourceKey) {
|
||||
dynamicFormData[item.target] = row[sourceKey].value
|
||||
if (col.fieldIndex === sourceKey&&item.value) {
|
||||
dynamicFormData[item.target] = item.value
|
||||
}
|
||||
}
|
||||
updateTableDataByConfigFields()
|
||||
@@ -753,7 +754,7 @@ function calcAverageValue(fieldIndex, tableData) {
|
||||
// 表格数据更新后重新计算
|
||||
function updateTableDataByConfigFields() {
|
||||
let needCalcTabs = []
|
||||
needCalcTabs = assayGroups.value.filter(t => t.value !== 'by' && t.value !== 'kby')
|
||||
needCalcTabs = assayGroups.value.filter(t => t.value !== 'by' && t.value !== 'kby' && t.value !== 'zkkby')
|
||||
if (needCalcTabs.length === 0) return
|
||||
for (const key in dynamicFormData) {
|
||||
for (const tab of needCalcTabs) {
|
||||
|
||||
@@ -183,7 +183,7 @@ const configQCSampleMethodInfos = computed(() => {
|
||||
// 表格数据更新后重新计算
|
||||
async function updateTableDataByConfigFields() {
|
||||
let needCalcTabs = []
|
||||
needCalcTabs = tabs.value.filter(t => t.name !== 'by' && t.name !== 'kby')
|
||||
needCalcTabs = tabs.value.filter(t => t.name !== 'by' && t.name !== 'kby' && t.name !== 'zkkby')
|
||||
const formData = realFormData.value
|
||||
if (needCalcTabs.length === 0) return
|
||||
for (const key in formData) {
|
||||
|
||||
@@ -57,7 +57,7 @@ import callCheckUpdate from '@/nx/utils/check-update'
|
||||
const loading = ref(false)
|
||||
const captchaEnable = true
|
||||
let loginInfo = reactive({
|
||||
username: 'ytjySjfx1',
|
||||
username: 'ytjyZhfx1',
|
||||
password: 'P@ssword25',
|
||||
captchaVerification: ''
|
||||
})
|
||||
@@ -72,11 +72,11 @@ function togglePasswordVisibility() {
|
||||
onShow(() => {
|
||||
//检查APP更新
|
||||
// #ifdef APP-PLUS
|
||||
if (process.env.NODE_ENV !== 'development') {
|
||||
setTimeout(() => {
|
||||
callCheckUpdate()
|
||||
}, 1500)
|
||||
}
|
||||
// if (process.env.NODE_ENV !== 'development') {
|
||||
setTimeout(() => {
|
||||
callCheckUpdate()
|
||||
}, 1500)
|
||||
// }
|
||||
// #endif
|
||||
})
|
||||
async function bindLogin() {
|
||||
|
||||
@@ -205,9 +205,11 @@ async function closeUpdate() {
|
||||
|
||||
function downloadPackage() {
|
||||
downloading.value = true
|
||||
|
||||
downloadTask = uni.downloadFile({
|
||||
url: url.value,
|
||||
header:{
|
||||
"Accept-Encoding": "identity"
|
||||
},
|
||||
success: res => {
|
||||
if (res.statusCode === 200) {
|
||||
downloadSuccess.value = true
|
||||
|
||||
Reference in New Issue
Block a user