|
@@ -71,20 +71,6 @@
|
|
|
required: false,
|
|
|
message: '请输入释冷温度',
|
|
|
trigger: ['blur', 'change']
|
|
|
- }, {
|
|
|
- required: false,
|
|
|
- validator: (rule, value, callback) => {
|
|
|
- if (!value && rule.required) {
|
|
|
- return callback(new Error('请输入释冷温度'));
|
|
|
- }
|
|
|
- if (value) {
|
|
|
- if (!/^(\d+)?(\.\d+)?$/.test(value)) {
|
|
|
- return callback(new Error('请输入有效的数值'));
|
|
|
- }
|
|
|
- }
|
|
|
- return callback();
|
|
|
- },
|
|
|
- trigger: ['blur', 'change']
|
|
|
}],
|
|
|
forColdTime: [{
|
|
|
required: false,
|
|
@@ -188,7 +174,7 @@
|
|
|
label: this.recipientsModel.label,
|
|
|
freezeClaim: this.recipientsModel.freezeClaim,
|
|
|
iceColdAddress: this.recipientsModel.iceColdAddress,
|
|
|
- forColdTime: Number(this.recipientsModel.forColdTime),
|
|
|
+ forColdTime: Number(this.recipientsModel.forColdTime),
|
|
|
suitableForCold: Number(this.recipientsModel.suitableForCold),
|
|
|
status: null,
|
|
|
sort: Number(this.recipientsModel.sort),
|
|
@@ -200,6 +186,9 @@
|
|
|
}
|
|
|
params.codeList.push(this.recipientsModel.code)
|
|
|
this.printLoading = true
|
|
|
+ uni.showLoading({
|
|
|
+ mask: true
|
|
|
+ });
|
|
|
if (this.recipientsModel.id) {
|
|
|
params.id = this.recipientsModel.id
|
|
|
params.code = this.recipientsModel.code
|
|
@@ -213,8 +202,10 @@
|
|
|
uni.$u.toast(res.msg)
|
|
|
}
|
|
|
this.printLoading = false
|
|
|
+ uni.hideLoading();
|
|
|
}).catch(() => {
|
|
|
this.printLoading = false
|
|
|
+ uni.hideLoading();
|
|
|
})
|
|
|
} else {
|
|
|
this.$api.post('/api/ice-raft', params).then(res => {
|
|
@@ -226,8 +217,10 @@
|
|
|
uni.$u.toast(res.msg)
|
|
|
}
|
|
|
this.printLoading = false
|
|
|
+ uni.hideLoading();
|
|
|
}).catch(() => {
|
|
|
this.printLoading = false
|
|
|
+ uni.hideLoading();
|
|
|
})
|
|
|
}
|
|
|
} else {
|