update: 更新所有input clear事件
This commit is contained in:
parent
06fb6cf294
commit
8eaf921cf4
|
@ -69,9 +69,7 @@ import { DeviceType, ImagesType, OrderType, StockCardType } from "@/utils/enum";
|
||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad } from "@dcloudio/uni-app";
|
||||||
import _ from "underscore";
|
import _ from "underscore";
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.formData as any)[item.key] = '';
|
||||||
(model1.formData as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
const model1 = reactive<any>({
|
const model1 = reactive<any>({
|
||||||
formData: {},
|
formData: {},
|
||||||
|
|
|
@ -109,9 +109,7 @@ import _ from "underscore";
|
||||||
import SupplierDialog from "./SupplierDialog.vue";
|
import SupplierDialog from "./SupplierDialog.vue";
|
||||||
import valid from "@/utils/validate";
|
import valid from "@/utils/validate";
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.order as any)[item.key] = '';
|
||||||
(model1.order as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
// 供应商选择
|
// 供应商选择
|
||||||
const showDialog = <
|
const showDialog = <
|
||||||
|
|
|
@ -117,9 +117,7 @@ import _ from "underscore";
|
||||||
import SupplierDialog from "./SupplierDialog.vue";
|
import SupplierDialog from "./SupplierDialog.vue";
|
||||||
import valid from "@/utils/validate";
|
import valid from "@/utils/validate";
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.order as any)[item.key] = '';
|
||||||
(model1.order as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
// 供应商选择
|
// 供应商选择
|
||||||
const showDialog = <
|
const showDialog = <
|
||||||
|
|
|
@ -71,9 +71,7 @@ import valid from "@/utils/validate";
|
||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad } from "@dcloudio/uni-app";
|
||||||
import _ from "underscore";
|
import _ from "underscore";
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.formData as any)[item.key] = '';
|
||||||
(model1.formData as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
// 最低价 最高价 常用价格
|
// 最低价 最高价 常用价格
|
||||||
const handleInput = (e: any, item: any) => {
|
const handleInput = (e: any, item: any) => {
|
||||||
|
|
|
@ -67,9 +67,7 @@ import { DeviceType, ImagesType, OrderType, StockCardType } from "@/utils/enum";
|
||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad } from "@dcloudio/uni-app";
|
||||||
import _ from "underscore";
|
import _ from "underscore";
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.formData as any)[item.key] = '';
|
||||||
(model1.formData as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
const model1 = reactive<any>({
|
const model1 = reactive<any>({
|
||||||
formData: {},
|
formData: {},
|
||||||
|
|
|
@ -94,9 +94,7 @@ import { DeviceType, ImagesType, OrderType, StockCardType } from "@/utils/enum";
|
||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad } from "@dcloudio/uni-app";
|
||||||
import _ from "underscore";
|
import _ from "underscore";
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.formData as any)[item.key] = '';
|
||||||
(model1.formData as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
const model1 = reactive<any>({
|
const model1 = reactive<any>({
|
||||||
formData: {},
|
formData: {},
|
||||||
|
|
|
@ -86,9 +86,7 @@ import { DeviceType, ImagesType, OrderType } from "@/utils/enum";
|
||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad } from "@dcloudio/uni-app";
|
||||||
import _ from "underscore";
|
import _ from "underscore";
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.formData as any)[item.key] = '';
|
||||||
(model1.formData as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
const { proxy }: any = getCurrentInstance();
|
const { proxy }: any = getCurrentInstance();
|
||||||
const model1 = reactive<any>({
|
const model1 = reactive<any>({
|
||||||
|
|
|
@ -67,9 +67,7 @@ import { GoodsApi } from "@/services";
|
||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad } from "@dcloudio/uni-app";
|
||||||
import _ from "underscore";
|
import _ from "underscore";
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.formData as any)[item.key] = '';
|
||||||
(model1.formData as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
const model1 = reactive<any>({
|
const model1 = reactive<any>({
|
||||||
formData: {},
|
formData: {},
|
||||||
|
|
|
@ -69,9 +69,7 @@ import { DeviceType, ImagesType, OrderType, StockCardType } from "@/utils/enum";
|
||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad } from "@dcloudio/uni-app";
|
||||||
import _ from "underscore";
|
import _ from "underscore";
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.formData as any)[item.key] = '';
|
||||||
(model1.formData as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
const model1 = reactive<any>({
|
const model1 = reactive<any>({
|
||||||
formData: {},
|
formData: {},
|
||||||
|
|
|
@ -71,9 +71,7 @@ import valid from "@/utils/validate";
|
||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad } from "@dcloudio/uni-app";
|
||||||
import _ from "underscore";
|
import _ from "underscore";
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.formData as any)[item.key] = '';
|
||||||
(model1.formData as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
const handleInput = (e: any, item: any) => {
|
const handleInput = (e: any, item: any) => {
|
||||||
if (item.key === "phone" || item.key === 'bankNumber') {
|
if (item.key === "phone" || item.key === 'bankNumber') {
|
||||||
|
|
|
@ -65,9 +65,7 @@ import { SupplierApi } from "@/services";
|
||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad } from "@dcloudio/uni-app";
|
||||||
import _ from "underscore";
|
import _ from "underscore";
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.formData as any)[item.key] = '';
|
||||||
(model1.formData as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
const model1 = reactive<any>({
|
const model1 = reactive<any>({
|
||||||
formData: {},
|
formData: {},
|
||||||
|
|
|
@ -73,9 +73,7 @@ import valid from "@/utils/validate";
|
||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad } from "@dcloudio/uni-app";
|
||||||
import _ from "underscore";
|
import _ from "underscore";
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.formData as any)[item.key] = '';
|
||||||
(model1.formData as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
const handleInput = (e: any, item: any) => {
|
const handleInput = (e: any, item: any) => {
|
||||||
if (item.key === "phone") {
|
if (item.key === "phone") {
|
||||||
|
|
|
@ -132,9 +132,7 @@ import ProductDialog from "./components/ProductDialog.vue";
|
||||||
import valid from "@/utils/validate";
|
import valid from "@/utils/validate";
|
||||||
|
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.order as any)[item.key] = '';
|
||||||
(model1.order as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
// 供应商选择
|
// 供应商选择
|
||||||
const showDialog = <
|
const showDialog = <
|
||||||
|
|
|
@ -130,9 +130,7 @@ import SupplierDialog from "./components/SupplierDialog.vue";
|
||||||
import ProductDialog from "./components/ProductDialog.vue";
|
import ProductDialog from "./components/ProductDialog.vue";
|
||||||
import valid from "@/utils/validate";
|
import valid from "@/utils/validate";
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.order as any)[item.key] = '';
|
||||||
(model1.order as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
// 供应商选择
|
// 供应商选择
|
||||||
const showDialog = <
|
const showDialog = <
|
||||||
|
|
|
@ -97,9 +97,7 @@ import { ProfileApi } from "@/services/index";
|
||||||
import LoginLayout from "./components/loginLayout.vue";
|
import LoginLayout from "./components/loginLayout.vue";
|
||||||
import valid from "@/utils/validate";
|
import valid from "@/utils/validate";
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.userInfo as any)[item.modelName] = '';
|
||||||
(model1.userInfo as any)[item.modelName] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
const loginForm = ref(null);
|
const loginForm = ref(null);
|
||||||
const model1 = <any>reactive({
|
const model1 = <any>reactive({
|
||||||
|
|
|
@ -70,9 +70,7 @@ const handleInput = (e: any, key: string) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.userInfo as any)[item.key] = '';
|
||||||
(model1.userInfo as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 表单属性清单
|
// 表单属性清单
|
||||||
|
|
|
@ -133,9 +133,7 @@ import ProductDialog from "../components/ProductDialog.vue";
|
||||||
import valid from "@/utils/validate";
|
import valid from "@/utils/validate";
|
||||||
import { countDots } from "@/utils";
|
import { countDots } from "@/utils";
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.order as any)[item.key] = '';
|
||||||
(model1.order as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
// 供应商选择
|
// 供应商选择
|
||||||
const showDialog = <
|
const showDialog = <
|
||||||
|
|
|
@ -109,9 +109,7 @@ import {
|
||||||
import valid from "@/utils/validate";
|
import valid from "@/utils/validate";
|
||||||
import { onLoad } from "@dcloudio/uni-app";
|
import { onLoad } from "@dcloudio/uni-app";
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.order as any)[item.key] = '';
|
||||||
(model1.order as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
const isShowFormItem = (item: any) => {
|
const isShowFormItem = (item: any) => {
|
||||||
if (model1.scaleStatusBtnType === ScaleStatusBtnType.ShipmentPay) {
|
if (model1.scaleStatusBtnType === ScaleStatusBtnType.ShipmentPay) {
|
||||||
|
|
|
@ -112,9 +112,7 @@ import _ from "underscore";
|
||||||
import ProductDialog from "../components/ProductDialog.vue";
|
import ProductDialog from "../components/ProductDialog.vue";
|
||||||
import valid from "@/utils/validate";
|
import valid from "@/utils/validate";
|
||||||
const handleClear = (item:any) => {
|
const handleClear = (item:any) => {
|
||||||
setTimeout(() => {
|
(model1.order as any)[item.key] = '';
|
||||||
(model1.order as any)[item.key] = '';
|
|
||||||
}, 100);
|
|
||||||
}
|
}
|
||||||
// 供应商选择
|
// 供应商选择
|
||||||
const showDialog = <
|
const showDialog = <
|
||||||
|
|
Loading…
Reference in New Issue