|
@@ -179,7 +179,7 @@ import { useRouter, useRoute } from "vue-router";
|
|
|
import { GETSYSFILED, MOD, GETPERSONNEL, GETGENERATEFOEM, GETBUSINESSLIST, UPDATEINSET, BUSINESSDETELE, BATCHTRANSFER, MODURL, tableColumn, BUSIESS_GETSATE, URL_IMPOERBUSINESS, BUSIESS_INFO, URL_EXPORTBUSINESS } from './api'
|
|
|
import { GETTABLELIST } from '@/pages/product/api'
|
|
|
import { post, get, uploadFile } from "@/utils/request";
|
|
|
-import { getAllListByCode, getFromValue, resetFromValue, getFirstDayOfMonth, createTaskFromType, formatDate, confirmAction, downloadTemplate, downloadFile } from '@/utils/tools'
|
|
|
+import { getAllListByCode, getFromValue, resetFromValue, getFirstDayOfMonth, createTaskFromType, formatDate, confirmAction, downloadTemplate, downloadFile, judgmentaAmounteEqual } from '@/utils/tools'
|
|
|
import { createTask } from '@/components/TaskModal/taskFunction'
|
|
|
import { formatDateTime } from '@/utils/times'
|
|
|
import { GenerateForm } from '@zmjs/form-design';
|
|
@@ -253,7 +253,7 @@ const productTableListValue = ref([])
|
|
|
function editBusiness(visibles: boolean) {
|
|
|
businessTemplateRef.value?.getData().then((res: any) => {
|
|
|
let productTableListData = relatedProductsRef?.value?.returnData()
|
|
|
- if(!productTableListData) {
|
|
|
+ if(!productTableListData || judgmentaAmounteEqual({...businessTemplateValue.value, ...res}, productTableListData)) {
|
|
|
return
|
|
|
}
|
|
|
productTableListData.forEach((item: any) => {
|