123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- // 更新企业信息
- import { ToastShow } from "../components/toast/toast";
- import { RetrieveData } from "../data/storage";
- import { RequestNetwork } from "../data/encryption";
- export const UpdateCompany = async() => {
- let company = JSON.parse(await RetrieveData('company'));
- const account = await RetrieveData('account');
- let token = await RetrieveData('token');
- if (token) {
- const url = '/sys/entInfo/updateBriefInfo';
- let response = await RequestNetwork(
- url,
- token,
- {
- entTaxId: company.entTaxId,
- entName: '',
- entType: '',
- entShortName: '',
- provinceCity: '',
- entAddress: '',
- availableTaxes: '',
- entContactPerson: '',
- entPhone: '',
- bankName: '',
- bankAccountNumber: '',
- payees: '',
- reviewers: '',
- drawers: '',
- defaultTaxCode: '',
- defaultItemName: '',
- defaultInvoiceDevice: '',
- doConfirm: '',
- mobile: account,
- reqChannel: 3,
- },
- false,
- 1,
- );
- if (response) {
- if (response.code === 0) {
- this.props.navigation.navigate('buyer_qrcode', {
- recordId: response.data.recordId,
- });
- }
- } else {
- ToastShow(3, response.msg);
- }
- }
- }
|