|
|
|
@ -5,20 +5,17 @@ import { PlusOutlined } from "@ant-design/icons";
|
|
|
|
|
import { isNotEmpty } from "@/utils/commons";
|
|
|
|
|
import * as config from "@/config";
|
|
|
|
|
import dayjs from "dayjs";
|
|
|
|
|
import useAuthStore from '@/stores/Auth';
|
|
|
|
|
import useInvoiceStore, { fetchInvoiceDetail, postEditInvoiceDetail, postAddInvoice } from '@/stores/Invoice';
|
|
|
|
|
import { fetchInvoiceDetail, postEditInvoiceDetail, postAddInvoice } from '@/stores/Invoice';
|
|
|
|
|
import { removeFeedbackImages } from '@/stores/Feedback';
|
|
|
|
|
import BackBtn from '@/components/BackBtn';
|
|
|
|
|
import { usingStorage } from "@/hooks/usingStorage";
|
|
|
|
|
|
|
|
|
|
const { Title,Text } = Typography;
|
|
|
|
|
const { TextArea } = Input;
|
|
|
|
|
|
|
|
|
|
function Detail() {
|
|
|
|
|
const navigate = useNavigate();
|
|
|
|
|
const { GMDSN, GSN } = useParams();
|
|
|
|
|
const [userId, travelAgencyId, token] = useAuthStore((state) => [state.loginUser.userId, state.loginUser.travelAgencyId, state.loginUser.token]);
|
|
|
|
|
// const { invoiceStore, authStore } = useStore();
|
|
|
|
|
// const { invoiceGroupInfo, invoiceProductList, invoiceCurrencyList, invoiceZDDetail } = invoiceStore;
|
|
|
|
|
const {userId, travelAgencyId, token} = usingStorage();
|
|
|
|
|
const [form] = Form.useForm();
|
|
|
|
|
const [dataLoading, setDataLoading] = useState(false);
|
|
|
|
|
const [edited, setEdited] = useState(true); //表单是否允许编辑
|
|
|
|
|