- {/* 审批过程中只能看 所以把底部隐藏 这样即使修改也没用 */}
-
-
-
-
-
-
-
- }
- onOk={() => {
- modalShopFormRef.current?.validateFields().then(async (res: any) => {
- let oldData: any = shopData && shopData.length > 0 ? JSON.parse(JSON.stringify(shopData)) : []
- let newList: any = []
- // 判断当前的里面有没有一样的
- if (oldData && oldData.length > 0) {
- oldData.forEach((item: any, index: number) => {
- if (item.ADDTIME === res.ADDTIME) {
- newList.push({
- ...item,
- ...res
- })
- } else {
- newList.push(item)
- }
- })
- } else {
- newList.push(res)
- }
-
- setShopData(newList)
- setEditSelectRow(undefined)
- setEditShopModal(false)
- })
- }}
- onCancel={() => {
- setEditSelectRow(undefined)
- setEditShopModal(false)
- }}
- >
-
-