修改质量检验测量值问题

master
lijing 7 months ago
parent bfc7e9aab7
commit 60bc2e4406

@ -142,7 +142,7 @@ export default class LoginPage extends BasePage {
// console.log('Version////', this.Version);
}
///******************
version = '0.0.137'; //
version = '0.0.138'; //
//version = '0.0.14'; //
//*************** false true ****************
//isTest = true;

@ -389,7 +389,7 @@
</div>
<div class="upload-name">
<div style="display: flex">
<div><u-input :border="true" :value="serialnumber" :focus="isfocus" style="background-color: #eee; width: 80rpx; margin-right: 10rpx" @click="clickInputtags" /></div>
<div><u-input :border="true" disabled :value="tagslist.length + 1" :focus="isfocus" style="background-color: #eee; width: 80rpx; margin-right: 10rpx" @blur="changeInputtags($event)" /></div>
<div><u-input :border="true" :value="tagsvalue" :focus="isfocus" style="overflow: hidden" @blur="changeInputtags($event)" /></div>
</div>
</div>
@ -673,13 +673,13 @@ export default class PurchaseWHSRM extends BasePage {
//
tagClick(index) {
// if (index + 1 != this.tagslist.length) {
// (this.$refs.uToast as any).show({
// title: '',
// type: 'default',
// });
// return;
// }
if (index + 1 != this.tagslist.length) {
(this.$refs.uToast as any).show({
title: '请按顺序删除',
type: 'default',
});
return;
}
this.tagslist.splice(index, 1);
}
hasDuplicateValueIndex(arr) {
@ -696,22 +696,16 @@ export default class PurchaseWHSRM extends BasePage {
});
return;
}
console.log(this.tagslist, 'sadasdww');
let a: any = {};
a.value = this.tagsvalue;
a.valueindex = this.serialnumber;
a.valueindex = this.tagslist.length + 1;
a.label = a.valueindex + ':' + a.value;
const exists = this.tagslist.some((item) => item.valueindex === a.valueindex);
// valueindex
if (!exists) {
this.tagslist.push(a);
} else {
(this.$refs.uToast as any).show({
title: '已存在,不能添加',
type: 'default',
});
}
// this.isfocus = false;
// this.$nextTick(() => {
// this.isfocus = true;
// });
// this.isfocus = false;
// this.$nextTick(() => {
// this.isfocus = true;

@ -116,7 +116,7 @@ http.interceptors.response.use(
store.dispatch('session/logout');
uni.setStorageSync('showLoginTips', true);
uni.switchTab({ url: '/pages/personal/index' });
errorCreate(dataAxios.message, response.config.custom.hideError);
errorCreate(dataAxios.msg || dataAxios.message, response.config.custom.hideError);
break;
default:
// 不是正确的 code
@ -131,7 +131,7 @@ http.interceptors.response.use(
return dataAxios;
default:
// 不是正确的 code
errorCreate(dataAxios.msg, response.config.custom.hideError);
errorCreate(dataAxios.msg || dataAxios.message, response.config.custom.hideError);
break;
}
}
@ -208,7 +208,7 @@ function errorLog(error: Error, hideError: boolean) {
if (error.message) {
content = error.message;
} else {
content = '网络请求超时';
content = '提交异常,请检测填写数据,重试';
}
// 显示提示
hideError ||

Loading…
Cancel
Save