ArriveGoodsFormForm.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520
  1. <template>
  2. <a-spin :spinning="loading">
  3. <JFormContainer :disabled="disabled">
  4. <template #detail>
  5. <a-form v-bind="formItemLayout" name="ArriveGoodsForm" ref="formRef">
  6. <a-row>
  7. <a-col :span="12">
  8. <a-form-item label="到货单号(bill code)" v-bind="validateInfos.billCode" id="ArriveGoodsForm-billCode" name="billCode">
  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="到货日期(arrival date)" v-bind="validateInfos.arrivalDate" :label-col="formItemLayout.labelCol1" :wrapper-col="formItemLayout.wrapperCol1" id="ArriveGoodsForm-arrivalDate" name="arrivalDate">
  14. <a-date-picker placeholder="请选择到货日期(arrival date)" v-model:value="formData.arrivalDate" value-format="YYYY-MM-DD" 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="ArriveGoodsForm-projectName" name="projectName">
  19. <a-input-search v-model:value="formData.projectName" placeholder="请输入项目(project)" readOnly :disabled="notAllowEdit" AutoComplete="off" allow-clear enter-button="Search" @search="onSearchProject"></a-input-search>
  20. </a-form-item>
  21. </a-col>
  22. <a-col :span="12">
  23. <a-form-item label="供应商(supplier)" v-bind="validateInfos.supplierName" :label-col="formItemLayout.labelCol1" :wrapper-col="formItemLayout.wrapperCol1" id="ArriveGoodsForm-supplierName" name="supplierName">
  24. <ApiSelect
  25. :api="supplierOption"
  26. showSearch
  27. v-model:value="formData.supplier"
  28. :filterOption="true"
  29. resultField="records"
  30. labelField="name"
  31. valueField="id"
  32. :params='{pageSize:-1}'
  33. @change="changeSupplier"
  34. optionFilterProp='label'
  35. />
  36. </a-form-item>
  37. </a-col>
  38. <a-col :span="12">
  39. <a-form-item label="优先级(priority)" v-bind="validateInfos.priority" id="ArriveGoodsForm-priority" name="priority">
  40. <JDictSelectTag v-model:value="formData.priority" placeholder="请选择" dictCode="priority" disabled/>
  41. </a-form-item>
  42. </a-col>
  43. <a-col :span="12">
  44. <a-form-item label="产品分类(production class)" v-bind="validateInfos.productionClass" :label-col="formItemLayout.labelCol1" :wrapper-col="formItemLayout.wrapperCol1" id="ArriveGoodsForm-productionClass" name="productionClass">
  45. <ApiSelect
  46. :api="ClassList"
  47. showSearch
  48. v-model:value="formData.productionClass"
  49. optionFilterProp="label"
  50. resultField="records"
  51. labelField="name"
  52. valueField="id"
  53. :params='{pageSize:-1}'
  54. disabled
  55. />
  56. </a-form-item>
  57. </a-col>
  58. <a-col :span="12">
  59. <a-form-item label="机型(model)" v-bind="validateInfos.model" id="ArriveGoodsForm-model" name="model">
  60. <JDictSelectTag v-model:value="formData.model" placeholder="请选择" dictCode="model_typer" disabled />
  61. </a-form-item>
  62. </a-col>
  63. <a-col :span="12">
  64. <a-form-item label="厂家(maker)" v-bind="validateInfos.maker" :label-col="formItemLayout.labelCol1" :wrapper-col="formItemLayout.wrapperCol1" id="ArriveGoodsForm-maker" name="maker">
  65. <a-input v-model:value="formData.maker" placeholder="请输入厂家(maker)" allow-clear disabled></a-input>
  66. </a-form-item>
  67. </a-col>
  68. <a-col :span="12">
  69. <a-form-item label="发货方式(delivery)" v-bind="validateInfos.delivery" id="ArriveGoodsForm-delivery" name="delivery">
  70. <JDictSelectTag v-model:value="formData.delivery" placeholder="请选择" dictCode="delivery_methods" disabled/>
  71. </a-form-item>
  72. </a-col>
  73. <a-col :span="12">
  74. <a-form-item label="包装要求(package requirement)" v-bind="validateInfos.packagebRequirement" :label-col="formItemLayout.labelCol1" :wrapper-col="formItemLayout.wrapperCol1" id="ArriveGoodsForm-packagebRequirement" name="packagebRequirement">
  75. <a-input v-model:value="formData.packagebRequirement" placeholder="请输入包装要求(package requirement)" allow-clear disabled></a-input>
  76. </a-form-item>
  77. </a-col>
  78. <a-col :span="12">
  79. <a-form-item label="运单号(waybill number)" v-bind="validateInfos.waybillNumber" id="ArriveGoodsForm-waybillNumber" name="waybillNumber">
  80. <a-input v-model:value="formData.waybillNumber" placeholder="请输入运单号(waybill number)" allow-clear AutoComplete="off"></a-input>
  81. </a-form-item>
  82. </a-col>
  83. <a-col :span="12">
  84. <a-form-item label="收件人(recipient)" v-bind="validateInfos.recipient" :label-col="formItemLayout.labelCol1" :wrapper-col="formItemLayout.wrapperCol1" id="ArriveGoodsForm-recipient" name="recipient">
  85. <a-input v-model:value="formData.recipient" placeholder="请输入收件人(recipient)" allow-clear disabled></a-input>
  86. </a-form-item>
  87. </a-col>
  88. <a-col :span="12">
  89. <a-form-item label="收件人电话(recipient tel)" v-bind="validateInfos.recipientTel" id="ArriveGoodsForm-recipientTel" name="recipientTel">
  90. <a-input v-model:value="formData.recipientTel" placeholder="请输入收件人电话(recipient tel)" allow-clear disabled></a-input>
  91. </a-form-item>
  92. </a-col>
  93. <a-col :span="12">
  94. <a-form-item label="收件人地址(recipient address)" v-bind="validateInfos.recipientAddress" :label-col="formItemLayout.labelCol1" :wrapper-col="formItemLayout.wrapperCol1" id="ArriveGoodsForm-recipientAddress" name="recipientAddress">
  95. <a-input v-model:value="formData.recipientAddress" placeholder="请输入收件人地址(recipient address)" allow-clear disabled></a-input>
  96. </a-form-item>
  97. </a-col>
  98. <a-col :span="12">
  99. <a-form-item label="质保条款(warranty terms)" v-bind="validateInfos.warrantyTerms" id="ArriveGoodsForm-warrantyTerms" name="warrantyTerms">
  100. <a-input v-model:value="formData.warrantyTerms" placeholder="请输入质保条款(warranty terms)" allow-clear disabled></a-input>
  101. </a-form-item>
  102. </a-col>
  103. <a-col :span="12">
  104. <a-form-item label="采购部门(purchase department)" v-bind="validateInfos.purchaseDepartment" :label-col="formItemLayout.labelCol1" :wrapper-col="formItemLayout.wrapperCol1" id="ArriveGoodsForm-purchaseDepartment" name="purchaseDepartment">
  105. <a-input v-model:value="formData.purchaseDepartmentName" placeholder="请输入" allow-clear disabled></a-input>
  106. </a-form-item>
  107. </a-col>
  108. <a-col :span="12">
  109. <a-form-item label="采购员(purchasesman)" v-bind="validateInfos.purchaseman" id="ArriveGoodsForm-purchaseman" name="purchaseman">
  110. <a-input v-model:value="formData.purchasemanName" placeholder="请输入采购员(salesman)" allow-clear disabled ></a-input>
  111. </a-form-item>
  112. </a-col>
  113. <a-col :span="12">
  114. <a-form-item label="发票/发货日期(delivery/invoice date)" v-bind="validateInfos.invoiceDate" :label-col="formItemLayout.labelCol1" :wrapper-col="formItemLayout.wrapperCol1" id="ArriveGoodsForm-invoiceDate" name="invoiceDate">
  115. <a-date-picker placeholder="请选择发票/发货日期(delivery/invoice date)" v-model:value="formData.invoiceDate" value-format="YYYY-MM-DD" style="width: 100%" allow-clear />
  116. </a-form-item>
  117. </a-col>
  118. <a-col :span="12">
  119. <a-form-item label="备注(notes)" v-bind="validateInfos.notes" id="ArriveGoodsForm-notes" name="notes">
  120. <a-input v-model:value="formData.notes" AutoComplete="off"></a-input>
  121. </a-form-item>
  122. </a-col>
  123. <a-col :span="12">
  124. <a-form-item label="到货详情(arrival details)" v-bind="validateInfos.arrivalDetails" :label-col="formItemLayout.labelCol1" :wrapper-col="formItemLayout.wrapperCol1" id="ArriveGoodsForm-arrivalDetails" name="arrivalDetails" >
  125. <JUpload v-model:value="formData.arrivalDetails"></JUpload>
  126. </a-form-item>
  127. </a-col>
  128. </a-row>
  129. </a-form>
  130. </template>
  131. </JFormContainer>
  132. <!-- 子表单区域 -->
  133. <a-tabs v-model:activeKey="activeKey" animated style=" padding: 24px;padding-top: 0px;">
  134. <a-tab-pane tab="到货单 - 到货明细(arrive details)" key="arriveDetailsFormProduct" :forceRender="true">
  135. <a-button type="primary" style="margin-right: 1%;margin-bottom: 1%;" @click="selectPurchaseOrderList"> 选择采购单(select purchase order)</a-button>
  136. <j-vxe-table
  137. :keep-source="true"
  138. resizable
  139. ref="arriveDetailsFormProductTableRef"
  140. :loading="arriveDetailsFormProductTable.loading"
  141. :columns="arriveDetailsFormProductTable.columns"
  142. :dataSource="arriveDetailsFormProductTable.dataSource"
  143. :maxHeight="340"
  144. :disabled="disabled"
  145. :rowNumber="true"
  146. :rowSelection="true"
  147. asyncRemove
  148. >
  149. <template #action="props">
  150. <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)">
  151. <a>删除(delete)</a>
  152. </a-popconfirm>
  153. </template>
  154. </j-vxe-table>
  155. </a-tab-pane>
  156. <a-tab-pane tab="到货单 - 船明细(ship details)" key="ArriveGoodsFormShipFormShip" :forceRender="true">
  157. <j-vxe-table
  158. :keep-source="true"
  159. resizable
  160. ref="ArriveGoodsFormShipTableRef"
  161. :loading="ArriveGoodsFormShipFormShipTable.loading"
  162. :columns="ArriveGoodsFormShipFormShipTable.columns"
  163. :dataSource="ArriveGoodsFormShipFormShipTable.dataSource"
  164. :maxHeight="340"
  165. :disabled="disabled"
  166. :rowNumber="true"
  167. :rowSelection="true"
  168. >
  169. <template #action="props" >
  170. <a @click="viewAccessory(props)">查看配件信息(view accessory information)</a>
  171. </template>
  172. </j-vxe-table>
  173. </a-tab-pane>
  174. </a-tabs>
  175. <SelectProjectModal ref="SelectProjectModalRef" @selectProject="addProject"></SelectProjectModal>
  176. <BaseShipArchiveAccessoriesModal ref="BaseShipArchiveAccessoriesModalRef"></BaseShipArchiveAccessoriesModal>
  177. <SelectPurchaseOrderModal ref="SelectPurchaseOrderModalRef" @selectPurchaseOrder="addAddiveGoods"></SelectPurchaseOrderModal>
  178. </a-spin>
  179. </template>
  180. <script lang="ts">
  181. import { defineComponent, ref, reactive, computed, toRaw} from 'vue';
  182. import { defHttp } from '/@/utils/http/axios';
  183. import { useValidateAntFormAndTable } from '/@/hooks/system/useJvxeMethods';
  184. import { queryArriveGoodsShipTable, queryArriveGoodsDetailByMainId, queryDataById,ClassList, saveOrUpdate,supplierOption} from '../ArriveGoodsForm.api';
  185. import { JVxeTable } from '/@/components/jeecg/JVxeTable';
  186. import {ArriveGoodsFormShipColumns, ArriveGoodsDetailColumns} from '../ArriveGoodsForm.data';
  187. import SelectProjectModal from '../../../publicComponents/SelectProjectModal.vue';
  188. import BaseShipArchiveAccessoriesModal from '../../../publicComponents/BaseShipArchiveAccessoriesModal.vue';
  189. import SelectPurchaseOrderModal from '../../../publicComponents/SelectPurchaseOrderModal.vue';
  190. import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
  191. import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue';
  192. import { JDictSelectTag} from '/@/components/Form';
  193. import JSelectInput from '/@/components/Form/src/jeecg/components/JSelectInput.vue';
  194. import { ApiSelect, } from '/@/components/Form/index';
  195. import { Form, message } from 'ant-design-vue';
  196. import { useUserStore } from '/@/store/modules/user';
  197. import moment from 'moment';
  198. const useForm = Form.useForm;
  199. export default defineComponent({
  200. name: "ArriveGoodsFormForm",
  201. components:{
  202. JVxeTable,
  203. JFormContainer,
  204. JUpload,
  205. JDictSelectTag,
  206. JSelectInput,
  207. SelectProjectModal,
  208. BaseShipArchiveAccessoriesModal,
  209. SelectPurchaseOrderModal,
  210. ApiSelect,
  211. },
  212. props:{
  213. formDisabled:{
  214. type: Boolean,
  215. default: false
  216. },
  217. formData: { type: Object, default: ()=>{} },
  218. formBpm: { type: Boolean, default: true }
  219. },
  220. emits:['success'],
  221. setup(props, {emit}) {
  222. const userStore = useUserStore();
  223. const loading = ref(false);
  224. const formRef = ref();
  225. const ArriveGoodsFormShipTableRef = ref();
  226. const SelectProjectModalRef = ref()
  227. const BaseShipArchiveAccessoriesModalRef = ref();
  228. const SelectPurchaseOrderModalRef = ref();
  229. const ArriveGoodsFormShipFormShipTable = reactive<Record<string, any>>({
  230. loading: false,
  231. columns: ArriveGoodsFormShipColumns,
  232. dataSource: []
  233. });
  234. const arriveDetailsFormProductTableRef = ref();
  235. const arriveDetailsFormProductTable = reactive<Record<string, any>>({
  236. loading: false,
  237. columns: ArriveGoodsDetailColumns,
  238. dataSource: []
  239. });
  240. const activeKey = ref('arriveDetailsFormProduct');
  241. var notAllowEdit = ref(false);
  242. const formData = reactive<Record<string, any>>({
  243. id: '',
  244. status: undefined,
  245. delFlag: undefined,
  246. sourceCode:'',
  247. billCode:'',
  248. arrivalDate: moment(new Date()).format('YYYY-MM-DD'),
  249. project: '',
  250. projectName:'',
  251. supplier:"",
  252. supplierName:'',
  253. priority: '',
  254. productionClass: '',
  255. model: '',
  256. maker: '',
  257. delivery:'',
  258. waybillNumber:'',
  259. packagebRequirement:'',
  260. recipient:'',
  261. recipientTel:'',
  262. recipientAddress:'',
  263. warrantyTerms:'',
  264. purchaseDepartment:'',
  265. purchaseDepartmentName:'',
  266. purchaseman:'',
  267. purchasemanName:'',
  268. invoiceDate:'',
  269. notes:'',
  270. arrivalDetails:"",
  271. });
  272. //表单验证
  273. const validatorRules = reactive({
  274. });
  275. const {resetFields, validate, validateInfos} = useForm(formData, validatorRules, {immediate: false});
  276. const dbData = {};
  277. const formItemLayout = {
  278. labelCol: {xs: {span: 24}, sm: {span: 5}},
  279. wrapperCol: {xs: {span: 24}, sm: {span: 16}},
  280. labelCol1: {xs: {span: 24}, sm: {span: 7}},
  281. wrapperCol1: {xs: {span: 24}, sm: {span: 15}},
  282. };
  283. // 表单禁用
  284. const disabled = computed(()=>{
  285. if(props.formBpm === true){
  286. if(props.formData.disabled === false){
  287. return false;
  288. }else{
  289. return true;
  290. }
  291. }
  292. return props.formDisabled;
  293. });
  294. function add() {
  295. resetFields();
  296. ArriveGoodsFormShipFormShipTable.dataSource = [];
  297. arriveDetailsFormProductTable.dataSource = [];
  298. activeKey.value = 'arriveDetailsFormProduct'
  299. formData.purchaseman=userStore.getUserInfo.username;
  300. formData.purchasemanName=userStore.getUserInfo.realname;
  301. formData.purchaseDepartment = userStore.getUserInfo.orgCode
  302. formData.purchaseDepartmentName = userStore.getUserInfo.orgName
  303. }
  304. async function edit(row) {
  305. //主表数据
  306. await queryMainData(row.id);
  307. //子表数据
  308. const ArriveGoodsFormShipFormShipDataList = await queryArriveGoodsShipTable(row['id']);
  309. ArriveGoodsFormShipFormShipTable.dataSource = [...ArriveGoodsFormShipFormShipDataList];
  310. const arriveDetailsFormProductDataList = await queryArriveGoodsDetailByMainId(row['id']);
  311. arriveDetailsFormProductTable.dataSource = [...arriveDetailsFormProductDataList];
  312. if(arriveDetailsFormProductTable.dataSource.length!==0){
  313. notAllowEdit.value = true
  314. }else{
  315. notAllowEdit.value = false
  316. }
  317. }
  318. async function queryMainData(id) {
  319. const row = await queryDataById(id);
  320. resetFields();
  321. const tmpData = {};
  322. Object.keys(formData).forEach((key) => {
  323. if(row.hasOwnProperty(key)){
  324. tmpData[key] = row[key]
  325. }
  326. })
  327. //赋值
  328. Object.assign(formData,tmpData);
  329. }
  330. const {getSubFormAndTableData, transformData} = useValidateAntFormAndTable(activeKey, {
  331. 'purDeliveryNodeShip': ArriveGoodsFormShipTableRef,
  332. 'purDeliveryNoteArrival': arriveDetailsFormProductTableRef,
  333. });
  334. async function getFormData() {
  335. try {
  336. // 触发表单验证
  337. await validate();
  338. } catch ({ errorFields }) {
  339. if (errorFields) {
  340. const firstField = errorFields[0];
  341. if (firstField) {
  342. formRef.value.scrollToField(firstField.name, { behavior: 'smooth', block: 'center' });
  343. }
  344. }
  345. return Promise.reject(errorFields);
  346. }
  347. return transformData(toRaw(formData))
  348. }
  349. async function submitForm() {
  350. const mainData = await getFormData();
  351. const subData = await getSubFormAndTableData();
  352. const values = Object.assign({}, dbData, mainData, subData);
  353. console.log('表单提交数据', values)
  354. const isUpdate = values.id ? true : false
  355. await saveOrUpdate(values, isUpdate);
  356. //关闭弹窗
  357. emit('success');
  358. }
  359. function setFieldsValue(values) {
  360. if(values){
  361. Object.keys(values).map(k=>{
  362. formData[k] = values[k];
  363. });
  364. }
  365. }
  366. function onSearchProject(){
  367. SelectProjectModalRef.value.getTable()
  368. }
  369. function selectPurchaseOrderList(){
  370. SelectPurchaseOrderModalRef.value.getTable(formData)
  371. }
  372. function getShipList(id){
  373. let params = {id:id}
  374. let url = '/purCode/purOrder/queryPurOrderShipByMainId'
  375. defHttp.get({url:url,params}, { isTransformResponse: false }).then(res=>{
  376. if(res){
  377. ArriveGoodsFormShipFormShipTable.dataSource = res.result
  378. }
  379. })
  380. }
  381. function addProject(data){
  382. if(data.length==0){
  383. formData.project = ''
  384. formData.projectName = ''
  385. }else{
  386. formData.project = data[0].id
  387. formData.projectName = data[0].code
  388. }
  389. }
  390. //查看配件信息
  391. function viewAccessory(prop){
  392. BaseShipArchiveAccessoriesModalRef.value.getTable(prop.row)
  393. }
  394. //产品明细-删除行
  395. function handleDelete(prop) {
  396. var newArray = [...arriveDetailsFormProductTable.dataSource]
  397. newArray.splice(prop.rowIndex, 1)
  398. arriveDetailsFormProductTable.dataSource = newArray
  399. if(arriveDetailsFormProductTable.dataSource.length!==0){
  400. notAllowEdit.value = true
  401. }else{
  402. notAllowEdit.value = false
  403. }
  404. }
  405. function addAddiveGoods(data){
  406. data.map(item=>{
  407. item.model = item.childModel
  408. item.sourceId = item.childId
  409. item.orderQuantity=item.quantity
  410. item.arrivalQuantity=item.arrivalQuantity?Number(item.arrivalQuantity):0
  411. item.quantity = Number(item.orderQuantity)-item.arrivalQuantity
  412. })
  413. var arr = data.concat(arriveDetailsFormProductTable.dataSource)
  414. arriveDetailsFormProductTable.dataSource=arr
  415. notAllowEdit.value=true
  416. formData.sourceCode =data[0].billCode
  417. formData.project = data[0].project
  418. formData.projectName = data[0].projectName
  419. formData.supplierName = data[0].supplierName
  420. formData.supplier= data[0].supplier
  421. formData.priority =data[0].priority
  422. formData.productionClass =data[0].productionClass
  423. formData.model =data[0].headModel
  424. formData.maker =data[0].maker
  425. formData.delivery = data[0].delivery
  426. formData.packagebRequirement = data[0].packagebRequirement
  427. formData.recipient = data[0].recipient
  428. formData.recipientTel = data[0].recipientTel
  429. formData.recipientAddress = data[0].recipientAddress
  430. getShipList(data[0].headId)
  431. }
  432. async function changeSupplier(prop){
  433. if(prop){
  434. var params={id:formData.supplier}
  435. var obj = await supplierOption(params)
  436. formData.suppilerName = obj.records[0].name
  437. }else{
  438. formData.supplier = ''
  439. formData.supplierName = ''
  440. }
  441. }
  442. /**
  443. * 值改变事件触发-树控件回调
  444. * @param key
  445. * @param value
  446. */
  447. function handleFormChange(key, value) {
  448. formData[key] = value;
  449. }
  450. return {
  451. ArriveGoodsFormShipTableRef,
  452. ArriveGoodsFormShipFormShipTable,
  453. arriveDetailsFormProductTableRef,
  454. arriveDetailsFormProductTable,
  455. validatorRules,
  456. validateInfos,
  457. activeKey,
  458. loading,
  459. formData,
  460. setFieldsValue,
  461. handleFormChange,
  462. formItemLayout,
  463. disabled,
  464. getFormData,
  465. submitForm,
  466. add,
  467. edit,
  468. formRef,
  469. onSearchProject,
  470. SelectProjectModalRef,
  471. addProject,
  472. handleDelete,
  473. BaseShipArchiveAccessoriesModalRef,
  474. viewAccessory,
  475. notAllowEdit,
  476. SelectPurchaseOrderModalRef,
  477. selectPurchaseOrderList,
  478. addAddiveGoods,
  479. changeSupplier,
  480. supplierOption,
  481. ClassList,
  482. }
  483. }
  484. });
  485. </script>
  486. <style lang="less" scoped>
  487. /** 时间和数字输入框样式 */
  488. :deep(.ant-input-number) {
  489. width: 100%;
  490. }
  491. :deep(.ant-calendar-picker) {
  492. width: 100%;
  493. }
  494. /deep/.vxe-table--body-wrapper{
  495. height: 100% !important;
  496. }
  497. /deep/.ant-modal-body{
  498. padding: 24px !important;
  499. }
  500. /deep/.ant-form-item{
  501. margin-bottom: 8px !important;
  502. }
  503. </style>