|
@@ -1461,10 +1461,24 @@ const onSubmit = async () => {
|
|
|
taskId.value &&
|
|
taskId.value &&
|
|
|
!noGasTasks.value.includes(taskId.value)
|
|
!noGasTasks.value.includes(taskId.value)
|
|
|
) {
|
|
) {
|
|
|
|
|
+ // if (dailyInjectGasTime.fillContent > 0) {
|
|
|
|
|
+ // if (nonSumItem.fillContent <= 0) {
|
|
|
|
|
+ // uni.showToast({
|
|
|
|
|
+ // title: "当日运转时间大于0,注气量也需要大于0",
|
|
|
|
|
+ // icon: "none",
|
|
|
|
|
+ // });
|
|
|
|
|
+ // return;
|
|
|
|
|
+ // }
|
|
|
|
|
+ // }
|
|
|
if (dailyInjectGasTime.fillContent > 0) {
|
|
if (dailyInjectGasTime.fillContent > 0) {
|
|
|
- if (nonSumItem.fillContent <= 0) {
|
|
|
|
|
|
|
+ const hasDailyGasInjection =
|
|
|
|
|
+ nonSumItem.fillContent !== undefined &&
|
|
|
|
|
+ nonSumItem.fillContent !== null &&
|
|
|
|
|
+ nonSumItem.fillContent !== "";
|
|
|
|
|
+
|
|
|
|
|
+ if (!hasDailyGasInjection) {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
- title: "当日运转时间大于0,注气量也需要大于0",
|
|
|
|
|
|
|
+ title: "当日运转时间大于0,需要填写当日注气量",
|
|
|
icon: "none",
|
|
icon: "none",
|
|
|
});
|
|
});
|
|
|
return;
|
|
return;
|