From 8eaf921cf453b301491600d5c547e09f531e6494 Mon Sep 17 00:00:00 2001 From: admin <> Date: Fri, 26 Apr 2024 15:39:40 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0=E6=89=80=E6=9C=89i?= =?UTF-8?q?nput=20clear=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pagesApp/components/addCustomer.vue | 4 +--- src/pagesApp/components/addIncomeDetail.vue | 4 +--- src/pagesApp/components/addPayment.vue | 4 +--- src/pagesApp/components/addReceiveProduct.vue | 4 +--- src/pagesApp/components/addReceiveType.vue | 4 +--- src/pagesApp/components/addRole.vue | 4 +--- src/pagesApp/components/addShipmentProduct.vue | 4 +--- src/pagesApp/components/addShipmentType.vue | 4 +--- src/pagesApp/components/addStockCard.vue | 4 +--- src/pagesApp/components/addSupplier.vue | 4 +--- src/pagesApp/components/addSupplierType.vue | 4 +--- src/pagesApp/components/addUser.vue | 4 +--- src/pagesApp/receiveSpl.vue | 4 +--- src/pagesApp/shipmentSpl.vue | 4 +--- src/pagesLogin/login/forgetPwd.vue | 4 +--- src/pagesLogin/profile/modifyPwd.vue | 4 +--- src/pagesReceive/form/pricingForm.vue | 4 +--- src/pagesShipment/form/settlementForm.vue | 4 +--- src/pagesShipment/form/shipmentForm.vue | 4 +--- 19 files changed, 19 insertions(+), 57 deletions(-) diff --git a/src/pagesApp/components/addCustomer.vue b/src/pagesApp/components/addCustomer.vue index 26d7b3d..fc8f719 100644 --- a/src/pagesApp/components/addCustomer.vue +++ b/src/pagesApp/components/addCustomer.vue @@ -69,9 +69,7 @@ import { DeviceType, ImagesType, OrderType, StockCardType } from "@/utils/enum"; import { onLoad } from "@dcloudio/uni-app"; import _ from "underscore"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.formData as any)[item.key] = ''; - }, 100); + (model1.formData as any)[item.key] = ''; } const model1 = reactive({ formData: {}, diff --git a/src/pagesApp/components/addIncomeDetail.vue b/src/pagesApp/components/addIncomeDetail.vue index c9698c9..3ac55ed 100644 --- a/src/pagesApp/components/addIncomeDetail.vue +++ b/src/pagesApp/components/addIncomeDetail.vue @@ -109,9 +109,7 @@ import _ from "underscore"; import SupplierDialog from "./SupplierDialog.vue"; import valid from "@/utils/validate"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.order as any)[item.key] = ''; - }, 100); + (model1.order as any)[item.key] = ''; } // 供应商选择 const showDialog = < diff --git a/src/pagesApp/components/addPayment.vue b/src/pagesApp/components/addPayment.vue index 172bd29..7355d3f 100644 --- a/src/pagesApp/components/addPayment.vue +++ b/src/pagesApp/components/addPayment.vue @@ -117,9 +117,7 @@ import _ from "underscore"; import SupplierDialog from "./SupplierDialog.vue"; import valid from "@/utils/validate"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.order as any)[item.key] = ''; - }, 100); + (model1.order as any)[item.key] = ''; } // 供应商选择 const showDialog = < diff --git a/src/pagesApp/components/addReceiveProduct.vue b/src/pagesApp/components/addReceiveProduct.vue index 7256a7e..5885a9f 100644 --- a/src/pagesApp/components/addReceiveProduct.vue +++ b/src/pagesApp/components/addReceiveProduct.vue @@ -71,9 +71,7 @@ import valid from "@/utils/validate"; import { onLoad } from "@dcloudio/uni-app"; import _ from "underscore"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.formData as any)[item.key] = ''; - }, 100); + (model1.formData as any)[item.key] = ''; } // 最低价 最高价 常用价格 const handleInput = (e: any, item: any) => { diff --git a/src/pagesApp/components/addReceiveType.vue b/src/pagesApp/components/addReceiveType.vue index d960d8f..b7ec8ef 100644 --- a/src/pagesApp/components/addReceiveType.vue +++ b/src/pagesApp/components/addReceiveType.vue @@ -67,9 +67,7 @@ import { DeviceType, ImagesType, OrderType, StockCardType } from "@/utils/enum"; import { onLoad } from "@dcloudio/uni-app"; import _ from "underscore"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.formData as any)[item.key] = ''; - }, 100); + (model1.formData as any)[item.key] = ''; } const model1 = reactive({ formData: {}, diff --git a/src/pagesApp/components/addRole.vue b/src/pagesApp/components/addRole.vue index 08a8150..3ea8c51 100644 --- a/src/pagesApp/components/addRole.vue +++ b/src/pagesApp/components/addRole.vue @@ -94,9 +94,7 @@ import { DeviceType, ImagesType, OrderType, StockCardType } from "@/utils/enum"; import { onLoad } from "@dcloudio/uni-app"; import _ from "underscore"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.formData as any)[item.key] = ''; - }, 100); + (model1.formData as any)[item.key] = ''; } const model1 = reactive({ formData: {}, diff --git a/src/pagesApp/components/addShipmentProduct.vue b/src/pagesApp/components/addShipmentProduct.vue index 222148e..22b07a0 100644 --- a/src/pagesApp/components/addShipmentProduct.vue +++ b/src/pagesApp/components/addShipmentProduct.vue @@ -86,9 +86,7 @@ import { DeviceType, ImagesType, OrderType } from "@/utils/enum"; import { onLoad } from "@dcloudio/uni-app"; import _ from "underscore"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.formData as any)[item.key] = ''; - }, 100); + (model1.formData as any)[item.key] = ''; } const { proxy }: any = getCurrentInstance(); const model1 = reactive({ diff --git a/src/pagesApp/components/addShipmentType.vue b/src/pagesApp/components/addShipmentType.vue index 3337dd6..4fc7d37 100644 --- a/src/pagesApp/components/addShipmentType.vue +++ b/src/pagesApp/components/addShipmentType.vue @@ -67,9 +67,7 @@ import { GoodsApi } from "@/services"; import { onLoad } from "@dcloudio/uni-app"; import _ from "underscore"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.formData as any)[item.key] = ''; - }, 100); + (model1.formData as any)[item.key] = ''; } const model1 = reactive({ formData: {}, diff --git a/src/pagesApp/components/addStockCard.vue b/src/pagesApp/components/addStockCard.vue index ff83738..155c4da 100644 --- a/src/pagesApp/components/addStockCard.vue +++ b/src/pagesApp/components/addStockCard.vue @@ -69,9 +69,7 @@ import { DeviceType, ImagesType, OrderType, StockCardType } from "@/utils/enum"; import { onLoad } from "@dcloudio/uni-app"; import _ from "underscore"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.formData as any)[item.key] = ''; - }, 100); + (model1.formData as any)[item.key] = ''; } const model1 = reactive({ formData: {}, diff --git a/src/pagesApp/components/addSupplier.vue b/src/pagesApp/components/addSupplier.vue index c3d3473..538a797 100644 --- a/src/pagesApp/components/addSupplier.vue +++ b/src/pagesApp/components/addSupplier.vue @@ -71,9 +71,7 @@ import valid from "@/utils/validate"; import { onLoad } from "@dcloudio/uni-app"; import _ from "underscore"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.formData as any)[item.key] = ''; - }, 100); + (model1.formData as any)[item.key] = ''; } const handleInput = (e: any, item: any) => { if (item.key === "phone" || item.key === 'bankNumber') { diff --git a/src/pagesApp/components/addSupplierType.vue b/src/pagesApp/components/addSupplierType.vue index 450e4cf..97872fe 100644 --- a/src/pagesApp/components/addSupplierType.vue +++ b/src/pagesApp/components/addSupplierType.vue @@ -65,9 +65,7 @@ import { SupplierApi } from "@/services"; import { onLoad } from "@dcloudio/uni-app"; import _ from "underscore"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.formData as any)[item.key] = ''; - }, 100); + (model1.formData as any)[item.key] = ''; } const model1 = reactive({ formData: {}, diff --git a/src/pagesApp/components/addUser.vue b/src/pagesApp/components/addUser.vue index 68f846b..5e2ab2a 100644 --- a/src/pagesApp/components/addUser.vue +++ b/src/pagesApp/components/addUser.vue @@ -73,9 +73,7 @@ import valid from "@/utils/validate"; import { onLoad } from "@dcloudio/uni-app"; import _ from "underscore"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.formData as any)[item.key] = ''; - }, 100); + (model1.formData as any)[item.key] = ''; } const handleInput = (e: any, item: any) => { if (item.key === "phone") { diff --git a/src/pagesApp/receiveSpl.vue b/src/pagesApp/receiveSpl.vue index 4de7e9c..0c71b14 100644 --- a/src/pagesApp/receiveSpl.vue +++ b/src/pagesApp/receiveSpl.vue @@ -132,9 +132,7 @@ import ProductDialog from "./components/ProductDialog.vue"; import valid from "@/utils/validate"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.order as any)[item.key] = ''; - }, 100); + (model1.order as any)[item.key] = ''; } // 供应商选择 const showDialog = < diff --git a/src/pagesApp/shipmentSpl.vue b/src/pagesApp/shipmentSpl.vue index bfe02ef..3c2ecd6 100644 --- a/src/pagesApp/shipmentSpl.vue +++ b/src/pagesApp/shipmentSpl.vue @@ -130,9 +130,7 @@ import SupplierDialog from "./components/SupplierDialog.vue"; import ProductDialog from "./components/ProductDialog.vue"; import valid from "@/utils/validate"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.order as any)[item.key] = ''; - }, 100); + (model1.order as any)[item.key] = ''; } // 供应商选择 const showDialog = < diff --git a/src/pagesLogin/login/forgetPwd.vue b/src/pagesLogin/login/forgetPwd.vue index 50d26ac..cc65df0 100644 --- a/src/pagesLogin/login/forgetPwd.vue +++ b/src/pagesLogin/login/forgetPwd.vue @@ -97,9 +97,7 @@ import { ProfileApi } from "@/services/index"; import LoginLayout from "./components/loginLayout.vue"; import valid from "@/utils/validate"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.userInfo as any)[item.modelName] = ''; - }, 100); + (model1.userInfo as any)[item.modelName] = ''; } const loginForm = ref(null); const model1 = reactive({ diff --git a/src/pagesLogin/profile/modifyPwd.vue b/src/pagesLogin/profile/modifyPwd.vue index 258599f..45c44c1 100644 --- a/src/pagesLogin/profile/modifyPwd.vue +++ b/src/pagesLogin/profile/modifyPwd.vue @@ -70,9 +70,7 @@ const handleInput = (e: any, key: string) => { }; const handleClear = (item:any) => { - setTimeout(() => { - (model1.userInfo as any)[item.key] = ''; - }, 100); + (model1.userInfo as any)[item.key] = ''; } // 表单属性清单 diff --git a/src/pagesReceive/form/pricingForm.vue b/src/pagesReceive/form/pricingForm.vue index ae16662..6ed249e 100644 --- a/src/pagesReceive/form/pricingForm.vue +++ b/src/pagesReceive/form/pricingForm.vue @@ -133,9 +133,7 @@ import ProductDialog from "../components/ProductDialog.vue"; import valid from "@/utils/validate"; import { countDots } from "@/utils"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.order as any)[item.key] = ''; - }, 100); + (model1.order as any)[item.key] = ''; } // 供应商选择 const showDialog = < diff --git a/src/pagesShipment/form/settlementForm.vue b/src/pagesShipment/form/settlementForm.vue index 333d0ea..bff52ac 100644 --- a/src/pagesShipment/form/settlementForm.vue +++ b/src/pagesShipment/form/settlementForm.vue @@ -109,9 +109,7 @@ import { import valid from "@/utils/validate"; import { onLoad } from "@dcloudio/uni-app"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.order as any)[item.key] = ''; - }, 100); + (model1.order as any)[item.key] = ''; } const isShowFormItem = (item: any) => { if (model1.scaleStatusBtnType === ScaleStatusBtnType.ShipmentPay) { diff --git a/src/pagesShipment/form/shipmentForm.vue b/src/pagesShipment/form/shipmentForm.vue index adf7686..be521c1 100644 --- a/src/pagesShipment/form/shipmentForm.vue +++ b/src/pagesShipment/form/shipmentForm.vue @@ -112,9 +112,7 @@ import _ from "underscore"; import ProductDialog from "../components/ProductDialog.vue"; import valid from "@/utils/validate"; const handleClear = (item:any) => { - setTimeout(() => { - (model1.order as any)[item.key] = ''; - }, 100); + (model1.order as any)[item.key] = ''; } // 供应商选择 const showDialog = <