saleInvoiceForm.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527
  1. <template>
  2. <a-spin :spinning="loading">
  3. <JFormContainer :disabled="disabled">
  4. <template #detail>
  5. <a-form v-bind="formItemLayout" name="saleInvoiceForm" ref="formRef">
  6. <a-row>
  7. <a-col :span="12">
  8. <a-form-item label="发票编号(bill code)" v-bind="validateInfos.billCode" id="saleInvoiceForm-billCode" name="billCode" :labelCol="formItemLayout.labelCol1" :wrapperCol="formItemLayout.wrapperCol1">
  9. <a-input v-model:value="formData.billCode" placeholder="自动生成" disabled></a-input>
  10. </a-form-item>
  11. </a-col>
  12. <a-col :span="12">
  13. <a-form-item label="发票日期(bill date)" v-bind="validateInfos.billDate" id="saleInvoiceForm-billDate" name="billDate">
  14. <a-date-picker placeholder="请选择发票日期(bill date)" v-model:value="formData.billDate" value-format="YYYY-MM-DD" disabled style="width: 100%" allow-clear />
  15. </a-form-item>
  16. </a-col>
  17. <a-col :span="12">
  18. <a-form-item label="项目(project)" v-bind="validateInfos.projectName" id="saleInvoiceForm-projectName" name="projectName">
  19. <a-input-search v-model:value="formData.projectName" placeholder="请输入项目(project)" allow-clear enter-button="Search" :disabled="notAllowEdit" @search="onSearchProject"></a-input-search>
  20. </a-form-item>
  21. </a-col>
  22. <a-col :span="12">
  23. <a-form-item label="购方(buyer)" v-bind="validateInfos.buyer" id="saleInvoiceForm-buyer" name="buyer" :labelCol="formItemLayout.labelCol1" :wrapperCol="formItemLayout.wrapperCol1">
  24. <JSelectInput v-model:value="formData.buyer" placeholder="请选择" :options="customerOption" disabled></JSelectInput>
  25. </a-form-item>
  26. </a-col>
  27. <a-col :span="12">
  28. <a-form-item label="购方税号(buyer's tax number)" v-bind="validateInfos.buyerTaxNumber" id="saleInvoiceForm-buyerTaxNumber" name="buyerTaxNumber">
  29. <a-input v-model:value="formData.buyerTaxNumber" placeholder="请输入" allow-clear ></a-input>
  30. </a-form-item>
  31. </a-col>
  32. <a-col :span="12">
  33. <a-form-item label="购方电话(buyer's telphone)" v-bind="validateInfos.buyerTelphone" id="saleInvoiceForm-buyerTelphone" name="buyerTelphone">
  34. <a-input v-model:value="formData.buyerTelphone" placeholder="请输入" allow-clear ></a-input>
  35. </a-form-item>
  36. </a-col>
  37. <a-col :span="12">
  38. <a-form-item label="购方地址(buyer's addres)" v-bind="validateInfos.buyerAddres" id="saleInvoiceForm-buyerAddres" name="buyerAddres">
  39. <a-input v-model:value="formData.buyerAddres" placeholder="请输入" allow-clear ></a-input>
  40. </a-form-item>
  41. </a-col>
  42. <a-col :span="12">
  43. <a-form-item label="购方银行(buyer's bank)" v-bind="validateInfos.buyerBank" id="saleInvoiceForm-buyerBank" name="buyerBank">
  44. <a-input v-model:value="formData.buyerBank" placeholder="请输入" allow-clear ></a-input>
  45. </a-form-item>
  46. </a-col>
  47. <a-col :span="12">
  48. <a-form-item label="购方银行账户(buyer's bank account)" v-bind="validateInfos.buyerBankAccount" id="saleInvoiceForm-buyerBankAccount" name="buyerBankAccount">
  49. <a-input v-model:value="formData.buyerBankAccount" placeholder="请输入" allow-clear ></a-input>
  50. </a-form-item>
  51. </a-col>
  52. <a-col :span="12">
  53. <a-form-item label="开票抬头(invoice header)" v-bind="validateInfos.invoiceHeader" id="saleInvoiceForm-invoiceHeader" name="invoiceHeader">
  54. <a-input v-model:value="formData.invoiceHeader" placeholder="请输入" allow-clear disabled></a-input>
  55. </a-form-item>
  56. </a-col>
  57. <a-col :span="12">
  58. <a-form-item label="开票地址(invoice address)" v-bind="validateInfos.invoiceAddress" id="saleInvoiceForm-invoiceAddress" name="invoiceAddress">
  59. <a-input v-model:value="formData.invoiceAddress" placeholder="请输入" allow-clear disabled></a-input>
  60. </a-form-item>
  61. </a-col>
  62. <a-col :span="12">
  63. <a-form-item label="销方(saller)" v-bind="validateInfos.saller" id="saleInvoiceForm-saller" name="saller" :labelCol="formItemLayout.labelCol1" :wrapperCol="formItemLayout.wrapperCol1">
  64. <JSelectInput v-model:value="formData.saller" placeholder="请选择" :options="customerOption" ></JSelectInput>
  65. </a-form-item>
  66. </a-col>
  67. <a-col :span="12">
  68. <a-form-item label="销方税号(saller's tax number)" v-bind="validateInfos.sallerTaxNumber" id="saleInvoiceForm-sallerTaxNumber" name="sallerTaxNumber">
  69. <a-input v-model:value="formData.sallerTaxNumber" placeholder="请输入" allow-clear ></a-input>
  70. </a-form-item>
  71. </a-col>
  72. <a-col :span="12">
  73. <a-form-item label="销方电话(saller's telphone)" v-bind="validateInfos.sallerTelphone" id="saleInvoiceForm-sallerTelphone" name="sallerTelphone">
  74. <a-input v-model:value="formData.sallerTelphone" placeholder="请输入" allow-clear ></a-input>
  75. </a-form-item>
  76. </a-col>
  77. <a-col :span="12">
  78. <a-form-item label="销方地址(saller's address)" v-bind="validateInfos.invoiceAddress" id="saleInvoiceForm-sallerAddress" name="sallerAddress">
  79. <a-input v-model:value="formData.sallerAddress" placeholder="请输入" allow-clear ></a-input>
  80. </a-form-item>
  81. </a-col>
  82. <a-col :span="12">
  83. <a-form-item label="销方银行(saller's bank)" v-bind="validateInfos.sallerBank" id="saleInvoiceForm-sallerBank" name="sallerBank">
  84. <a-input v-model:value="formData.sallerBank" placeholder="请输入" allow-clear ></a-input>
  85. </a-form-item>
  86. </a-col>
  87. <a-col :span="12">
  88. <a-form-item label="销方银行账户(saller's bank account)" v-bind="validateInfos.sallerBankAccount" id="saleInvoiceForm-sallerBankAccount" name="sallerBankAccount">
  89. <a-input v-model:value="formData.sallerBankAccount" placeholder="请输入" allow-clear ></a-input>
  90. </a-form-item>
  91. </a-col>
  92. <a-col :span="12">
  93. <a-form-item label="F号(F number)" v-bind="validateInfos.fnumber" id="saleInvoiceForm-fnumber" name="fnumber">
  94. <a-input v-model:value="formData.fnumber" placeholder="请输入" allow-clear ></a-input>
  95. </a-form-item>
  96. </a-col>
  97. <a-col :span="12">
  98. <a-form-item label="备注(notes)" v-bind="validateInfos.quotationNotes" id="saleInvoiceForm-notes" name="notes" :labelCol="formItemLayout.labelCol1" :wrapperCol="formItemLayout.wrapperCol1">
  99. <a-input v-model:value="formData.notes" placeholder="请输入报价备注(quotation notes)" allow-clear AutoComplete="off"></a-input>
  100. </a-form-item>
  101. </a-col>
  102. </a-row>
  103. </a-form>
  104. </template>
  105. </JFormContainer>
  106. <!-- 子表单区域 -->
  107. <a-tabs v-model:activeKey="activeKey" animated style=" padding: 24px;padding-top: 0px;">
  108. <a-tab-pane tab="销售发票 - 发票明细(invoice details)" key="saleInvoiceDetails" :forceRender="true">
  109. <a-button type="primary" style="margin-right: 1%;margin-bottom: 1%;" @click="selectDeliveryList"> 选择发货通知单(select delevery notice)</a-button>
  110. <a-button type="primary" @click="selectCommissionList"> 选择佣金订单(selete commission order)</a-button>
  111. <j-vxe-table
  112. :keep-source="true"
  113. resizable
  114. ref="saleInvoiceDetailsTableRef"
  115. :loading="saleInvoiceDetailsTable.loading"
  116. :columns="saleInvoiceDetailsTable.columns"
  117. :dataSource="saleInvoiceDetailsTable.dataSource"
  118. :height="340"
  119. :disabled="disabled"
  120. :rowNumber="true"
  121. :rowSelection="true"
  122. asyncRemove
  123. @valueChange="changeValues"
  124. >
  125. <template #action="props">
  126. <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)">
  127. <a>删除(delete)</a>
  128. </a-popconfirm>
  129. </template>
  130. </j-vxe-table>
  131. </a-tab-pane>
  132. <a-tab-pane tab="销售发票 - 船明细(ship details)" key="saleInvoiceFormShip" :forceRender="true">
  133. <j-vxe-table
  134. :keep-source="true"
  135. resizable
  136. ref="saleInvoiceFormShipTableRef"
  137. :loading="saleInvoiceFormShipTable.loading"
  138. :columns="saleInvoiceFormShipTable.columns"
  139. :dataSource="saleInvoiceFormShipTable.dataSource"
  140. :height="340"
  141. :disabled="disabled"
  142. :rowNumber="true"
  143. :rowSelection="true"
  144. >
  145. <template #action="props" >
  146. <a @click="viewAccessory(props)" >查看配件信息(view accessory information)</a>
  147. </template>
  148. </j-vxe-table>
  149. </a-tab-pane>
  150. </a-tabs>
  151. <SelectDeliveryNoticeModal ref="SelectDeliveryNoticeModalRef"></SelectDeliveryNoticeModal>
  152. <BaseShipArchiveAccessoriesModal ref="BaseShipArchiveAccessoriesListRef"></BaseShipArchiveAccessoriesModal>
  153. <SelectCommissionOrderModal ref="SelectCommissionOrderModalRef"></SelectCommissionOrderModal>
  154. <SelectProjectModal ref="SelectProjectModalRef" @selectProject="addProject"></SelectProjectModal>
  155. </a-spin>
  156. </template>
  157. <script lang="ts">
  158. import { defineComponent, ref, reactive, computed, toRaw, onMounted } from 'vue';
  159. import { defHttp } from '/@/utils/http/axios';
  160. import { useValidateAntFormAndTable } from '/@/hooks/system/useJvxeMethods';
  161. import { querysaleInvoiceFormShipListByMainId,querySaleInvoiceDetailListByMainId,queryDataById, saveOrUpdate } from '../salesInvoiceForm.api';
  162. import { JVxeTable } from '/@/components/jeecg/JVxeTable';
  163. import {saleInvoiceShipColumns, saleInvoiceDetailColumns} from '../salesInvoiceForm.data';
  164. import BaseShipArchiveAccessoriesModal from '../../../publicComponents/BaseShipArchiveAccessoriesModal.vue';
  165. import SelectProjectModal from '../../../publicComponents/SelectProjectModal.vue';
  166. import SelectDeliveryNoticeModal from './SelectDeliveryNoticeModal.vue';
  167. import SelectCommissionOrderModal from './SelectCommissionOrderModal.vue';
  168. import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
  169. import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue';
  170. import { JDictSelectTag,JSelectMultiple} from '/@/components/Form';
  171. import JSelectInput from '/@/components/Form/src/jeecg/components/JSelectInput.vue';
  172. import { Form,message } from 'ant-design-vue';
  173. import { useUserStore } from '/@/store/modules/user';
  174. import moment from 'moment';
  175. const userStore = useUserStore();
  176. const useForm = Form.useForm;
  177. export default defineComponent({
  178. name: "saleInvoiceForm",
  179. components:{
  180. JVxeTable,
  181. JFormContainer,
  182. BaseShipArchiveAccessoriesModal,
  183. JUpload,
  184. SelectProjectModal,
  185. JDictSelectTag,
  186. JSelectInput,
  187. JSelectMultiple,
  188. SelectDeliveryNoticeModal,
  189. SelectCommissionOrderModal
  190. },
  191. props:{
  192. formDisabled:{
  193. type: Boolean,
  194. default: false
  195. },
  196. formData: { type: Object, default: ()=>{} },
  197. formBpm: { type: Boolean, default: true }
  198. },
  199. emits:['success'],
  200. setup(props, {emit}) {
  201. const loading = ref(false);
  202. const formRef = ref();
  203. const SelectDeliveryNoticeModalRef = ref();
  204. const SelectCommissionOrderModalRef = ref();
  205. var SelectProjectModalRef = ref()
  206. const saleInvoiceFormShipTableRef = ref();
  207. const saleInvoiceFormShipTable = reactive<Record<string, any>>({
  208. loading: false,
  209. columns:saleInvoiceShipColumns,
  210. dataSource: []
  211. });
  212. const saleInvoiceDetailsTableRef = ref();
  213. const saleInvoiceDetailsTable = reactive<Record<string, any>>({
  214. loading: false,
  215. columns: saleInvoiceDetailColumns,
  216. dataSource: []
  217. });
  218. var BaseShipArchiveAccessoriesListRef = ref();
  219. const activeKey = ref('saleInvoiceDetails');
  220. var notAllowEdit = ref(false);
  221. var classOption = ref([]);
  222. var customerOption =ref([]);
  223. const formData = reactive<Record<string, any>>({
  224. id: '',
  225. status: undefined,
  226. delFlag: undefined,
  227. sourceCode:'',
  228. billDate: moment(new Date()).format('YYYY-MM-DD'),
  229. billCode: '',
  230. project: '',
  231. projectName: '',
  232. buyer: '',
  233. buyerName: '',
  234. buyerTelphone: '',
  235. buyerAddres: '',
  236. buyerBank: '',
  237. buyerBankAccount: '',
  238. invoiceHeader: '',
  239. invoiceAddress:"",
  240. sallerTaxNumber: '',
  241. sallerTelphone: '',
  242. sallerAddress: '',
  243. sallerBank: '',
  244. sallerBankAccount: '',
  245. fnumber:'',
  246. notes:'',
  247. });
  248. //表单验证
  249. const validatorRules = reactive({
  250. });
  251. const {resetFields, validate, validateInfos} = useForm(formData, validatorRules, {immediate: false});
  252. const dbData = {};
  253. const formItemLayout = {
  254. labelCol: {xs: {span: 24}, sm: {span: 8}},
  255. wrapperCol: {xs: {span: 24}, sm: {span: 13}},
  256. labelCol1: {xs: {span: 24}, sm: {span: 8}},
  257. wrapperCol1: {xs: {span: 24}, sm: {span: 13}},
  258. };
  259. // 表单禁用
  260. const disabled = computed(()=>{
  261. if(props.formBpm === true){
  262. if(props.formData.disabled === false){
  263. return false;
  264. }else{
  265. return true;
  266. }
  267. }
  268. return props.formDisabled;
  269. });
  270. //新增方法
  271. function add() {
  272. resetFields();
  273. saleInvoiceFormShipTable.dataSource = [];
  274. saleInvoiceDetailsTable.dataSource = [];
  275. activeKey.value = 'saleInvoiceDetails'
  276. getOptiom()
  277. getCustomerOptions()
  278. formData.salesman=userStore.getUserInfo.username;
  279. formData.saleDepartment = userStore.getUserInfo.orgCode
  280. notAllowEdit.value = false
  281. }
  282. //编辑方法
  283. async function edit(row) {
  284. //主表数据
  285. await queryMainData(row.id);
  286. //子表数据
  287. const saleInvoiceFormShipDataList = await querysaleInvoiceFormShipListByMainId(row['id']);
  288. saleInvoiceFormShipTable.dataSource = [...saleInvoiceFormShipDataList];
  289. const saleInvoiceDetailsDataList = await querySaleInvoiceDetailListByMainId(row['id']);
  290. saleInvoiceDetailsTable.dataSource = [...saleInvoiceDetailsDataList];
  291. getOptiom()
  292. getCustomerOptions()
  293. notAllowEdit.value=true
  294. }
  295. //获取主表
  296. async function queryMainData(id) {
  297. const row = await queryDataById(id);
  298. resetFields();
  299. const tmpData = {};
  300. Object.keys(formData).forEach((key) => {
  301. if(row.hasOwnProperty(key)){
  302. tmpData[key] = row[key]
  303. }
  304. })
  305. //赋值
  306. Object.assign(formData,tmpData);
  307. }
  308. const {getSubFormAndTableData, transformData} = useValidateAntFormAndTable(activeKey, {
  309. 'saleQuotationShip': saleInvoiceFormShipTableRef,
  310. 'saleQuotationProduct': saleInvoiceDetailsTableRef,
  311. });
  312. //获取表单信息
  313. async function getFormData() {
  314. try {
  315. // 触发表单验证
  316. await validate();
  317. } catch ({ errorFields }) {
  318. if (errorFields) {
  319. const firstField = errorFields[0];
  320. if (firstField) {
  321. formRef.value.scrollToField(firstField.name, { behavior: 'smooth', block: 'center' });
  322. }
  323. }
  324. return Promise.reject(errorFields);
  325. }
  326. return transformData(toRaw(formData))
  327. }
  328. //保存
  329. async function submitForm() {
  330. if(formData.sourceCode==''){
  331. message.warning('请选择发票明细')
  332. }else{
  333. const mainData = await getFormData();
  334. const subData = await getSubFormAndTableData();
  335. const values = Object.assign({}, dbData, mainData, subData);
  336. console.log('表单提交数据', values)
  337. const isUpdate = values.id ? true : false
  338. await saveOrUpdate(values, isUpdate);
  339. //关闭弹窗
  340. emit('success');
  341. }
  342. }
  343. function setFieldsValue(values) {
  344. if(values){
  345. Object.keys(values).map(k=>{
  346. formData[k] = values[k];
  347. });
  348. }
  349. }
  350. /**
  351. * 值改变事件触发-树控件回调
  352. * @param key
  353. * @param value
  354. */
  355. function handleFormChange(key, value) {
  356. formData[key] = value;
  357. }
  358. //产品明细-删除行
  359. async function handleDelete1(prop) {
  360. var newArray = [...saleInvoiceDetailsTable.dataSource]
  361. newArray.splice(prop.rowIndex, 1)
  362. saleInvoiceDetailsTable.dataSource = newArray
  363. if( saleInvoiceDetailsTable.dataSource.length!==0){
  364. var arr = []
  365. saleInvoiceDetailsTable.dataSource.map(item=>{
  366. if(item.sourceId){
  367. arr.push(item.sourceId)
  368. }
  369. })
  370. if(arr.length==0){
  371. formData.sourceCode=''
  372. notAllowEdit.value=false
  373. }
  374. }else{
  375. formData.sourceCode=''
  376. notAllowEdit.value=false
  377. }
  378. }
  379. //选择项目
  380. function addProject(data) {
  381. if(data.length==0){
  382. formData.quotationProject =
  383. formData.quotationProjectName = ''
  384. }else{
  385. formData.quotationProject = data[0].id
  386. formData.quotationProjectName = data[0].name
  387. formData.quotationCustomer =data[0].customerId
  388. formData.quotationCustomerName =data[0].customerId_dictText
  389. }
  390. }
  391. //获取客户列表
  392. function getCustomerOptions(){
  393. let params = {pageSize:'-1',status:1}
  394. defHttp.get({url:'/cuspCode/cuspCustomerProfile/list',params}, { isTransformResponse: false }).then(res=>{
  395. if(res){
  396. customerOption.value = []
  397. res.result.records.forEach(item=>{
  398. customerOption.value.push({
  399. label: item.name,
  400. value: item.id,
  401. priority:item.priority,
  402. intermediatorCommission:item.intermediatorCommission,
  403. commission:item.commission
  404. })
  405. })
  406. }
  407. })
  408. }
  409. //查看配件信息
  410. function viewAccessory(prop){
  411. BaseShipArchiveAccessoriesListRef.value.getTable(prop.row)
  412. }
  413. //选择项目
  414. function onSearchProject(){
  415. SelectProjectModalRef.value.getTable()
  416. }
  417. //获取产品分类下拉框
  418. function getOptiom(){
  419. defHttp
  420. .get({ url: 'baseCode/baseProductClass/list'}, { isTransformResponse: false })
  421. .then((res) => {
  422. if (res.success) {
  423. classOption.value = []
  424. res.result.records.forEach(element => {
  425. var obj = {
  426. label: element.name?element.name:'无名称请维护',
  427. value: element.id?element.id:''
  428. };
  429. classOption.value.push( obj)
  430. });
  431. }
  432. })
  433. .finally(() => {
  434. // loading.value = false;
  435. });
  436. }
  437. function changeValues(prop){
  438. if(prop.col.key=='purchasePrice'||prop.col.key=='taxRate'||prop.col.key=='tariff'||prop.col.key=='discount'||prop.col.key=='grossMargin'||prop.col.key=='customerCommision'||prop.col.key=='intermediatorCommission'){
  439. if(prop.row.purchasePrice&&prop.row.taxRate&&prop.row.tariff&&prop.row.discount&&prop.row.grossMargin&&prop.row.customerCommision&&prop.row.intermediatorCommission){
  440. var num= prop.row.purchasePrice/1*(1+prop.row.taxRate/100)*(1+prop.row.tariff/100)*(1-prop.row.discount/100)/(1-prop.row.grossMargin/100-prop.row.customerCommision/100-prop.row.intermediatorCommission/100)
  441. prop.row.salePrice = num.toFixed(2)
  442. if(prop.row.quantity){
  443. prop.row.taxAmount = (prop.row.salePrice*prop.row.quantity).toFixed(2)
  444. }
  445. }
  446. }
  447. if(prop.col.key=='quantity'&&prop.row.salePrice&&prop.row.quantity){
  448. prop.row.taxAmount = (prop.row.salePrice*prop.row.quantity).toFixed(2)
  449. }
  450. }
  451. function selectDeliveryList(){
  452. SelectDeliveryNoticeModalRef.value.getTable()
  453. }
  454. function selectCommissionList(){
  455. SelectCommissionOrderModalRef.value.getTable()
  456. }
  457. return {
  458. saleInvoiceFormShipTableRef,
  459. saleInvoiceFormShipTable,
  460. saleInvoiceDetailsTableRef,
  461. saleInvoiceDetailsTable,
  462. validatorRules,
  463. validateInfos,
  464. activeKey,
  465. loading,
  466. formData,
  467. setFieldsValue,
  468. handleFormChange,
  469. formItemLayout,
  470. disabled,
  471. getFormData,
  472. submitForm,
  473. add,
  474. edit,
  475. formRef,
  476. BaseShipArchiveAccessoriesListRef,
  477. viewAccessory,
  478. handleDelete1,
  479. SelectProjectModalRef,
  480. onSearchProject,
  481. addProject,
  482. getOptiom,
  483. classOption,
  484. getCustomerOptions,
  485. customerOption,
  486. notAllowEdit,
  487. changeValues,
  488. SelectDeliveryNoticeModalRef,
  489. selectDeliveryList,
  490. SelectCommissionOrderModalRef,
  491. selectCommissionList
  492. }
  493. }
  494. });
  495. </script>
  496. <style lang="less" scoped>
  497. /** 时间和数字输入框样式 */
  498. :deep(.ant-input-number) {
  499. width: 100%;
  500. }
  501. :deep(.ant-calendar-picker) {
  502. width: 100%;
  503. }
  504. /deep/.vxe-table--body-wrapper{
  505. height: 100% !important;
  506. }
  507. /deep/.ant-modal-body{
  508. padding: 24px !important;
  509. }
  510. /deep/.ant-form-item{
  511. margin-bottom: 8px !important;
  512. }
  513. </style>