SaleInquiryFormForm.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557
  1. <template>
  2. <a-spin :spinning="loading">
  3. <JFormContainer :disabled="disabled">
  4. <template #detail>
  5. <a-form v-bind="formItemLayout" name="SaleInquiryFormForm" ref="formRef">
  6. <a-row>
  7. <a-col :span="12">
  8. <a-form-item label="询价单号(bill code)" v-bind="validateInfos.billCode" id="SaleInquiryFormForm-billCode" name="billCode">
  9. <a-input v-model:value="formData.billCode" placeholder="请输入询价单号(bill code)" 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="SaleInquiryFormForm-billDate" name="billDate">
  14. <a-date-picker placeholder="请选择单据日期(bill date)" v-model:value="formData.billDate" 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="询价项目(inquiry project)" v-bind="validateInfos.projectName" id="SaleInquiryFormForm-inquiryProject" name="inquiryProject">
  19. <a-input-search v-model:value="formData.projectName" placeholder="请输入询价项目(inquiry project)" 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="询价客户(inquiry customer)" v-bind="validateInfos.inquiryCustomer" id="SaleInquiryFormForm-inquiryCustomer" name="inquiryCustomer">
  24. <JSelectInput v-model:value="formData.inquiryCustomer" placeholder="请选择" :options="customerOption" disabled></JSelectInput>
  25. </a-form-item>
  26. </a-col>
  27. <a-col :span="12">
  28. <a-form-item label="询价平台(inquiry platform)" v-bind="validateInfos.inquiryPlatform" id="SaleInquiryFormForm-inquiryPlatform" name="inquiryPlatform">
  29. <JDictSelectTag v-model:value="formData.inquiryPlatform" placeholder="请选择" dictCode="inquiry_platform"/>
  30. </a-form-item>
  31. </a-col>
  32. <a-col :span="12">
  33. <a-form-item label="客户询价单号(customer inquiry number)" v-bind="validateInfos.customerInquiryNumber" id="SaleInquiryFormForm-customerInquiryNumber" name="customerInquiryNumber">
  34. <a-input v-model:value="formData.customerInquiryNumber" placeholder="请输入客户询价单号(customer inquiry number)" allow-clear ></a-input>
  35. </a-form-item>
  36. </a-col>
  37. <a-col :span="12">
  38. <a-form-item label="询价有效期(inquiry period)" v-bind="validateInfos.inquiryPeriodEnd" id="SaleInquiryFormForm-inquiryPeriodEnd" name="inquiryPeriodEnd">
  39. <a-range-picker v-model:value="inquiryPeriod" :format="['YYYY-MM-DD','YYYY-MM-DD']" @change="onChangeInquiryPeriod" style="width: 100%" />
  40. </a-form-item>
  41. </a-col>
  42. <a-col :span="12">
  43. <a-form-item label="优先级(priority)" v-bind="validateInfos.priority" id="SaleInquiryFormForm-priority" name="priority">
  44. <JDictSelectTag v-model:value="formData.priority" placeholder="请选择" dictCode="priority"/>
  45. </a-form-item>
  46. </a-col>
  47. <a-col :span="12">
  48. <a-form-item label="产品分类(production class)" v-bind="validateInfos.productionClass" id="SaleInquiryFormForm-productionClass" name="productionClass">
  49. <JSelectInput v-model:value="formData.productionClass" placeholder="请选择" :options="classOption" ></JSelectInput>
  50. </a-form-item>
  51. </a-col>
  52. <a-col :span="12">
  53. <a-form-item label="机型(model)" v-bind="validateInfos.model" id="SaleInquiryFormForm-model" name="model">
  54. <JDictSelectTag v-model:value="formData.model" placeholder="请选择" dictCode="model_typer"/>
  55. </a-form-item>
  56. </a-col>
  57. <a-col :span="12">
  58. <a-form-item label="厂家(maker)" v-bind="validateInfos.maker" id="SaleInquiryFormForm-maker" name="maker">
  59. <a-input v-model:value="formData.maker" placeholder="请输入厂家(maker)" allow-clear ></a-input>
  60. </a-form-item>
  61. </a-col>
  62. <a-col :span="12">
  63. <a-form-item label="销售部门(sale department)" v-bind="validateInfos.saleDepartment" id="SaleInquiryFormForm-saleDepartment" name="saleDepartment">
  64. <a-input v-model:value="formData.saleDepartment" placeholder="" allow-clear disabled></a-input>
  65. </a-form-item>
  66. </a-col>
  67. <a-col :span="12">
  68. <a-form-item label="业务员(salesman)" v-bind="validateInfos.salesman" id="SaleInquiryFormForm-salesman" name="salesman">
  69. <a-input v-model:value="formData.salesman" placeholder="" allow-clear disabled></a-input>
  70. </a-form-item>
  71. </a-col>
  72. <a-col :span="12">
  73. <a-form-item label="交期(delivery time)" v-bind="validateInfos.deliveryTime" id="SaleInquiryFormForm-deliveryTime" name="deliveryTime">
  74. <a-date-picker placeholder="请选择交期(delivery time)" v-model:value="formData.deliveryTime" @change="changeDeliveryTime" value-format="YYYY-MM-DD" format="YYYY-MM-DD" style="width: 100%" allow-clear />
  75. </a-form-item>
  76. </a-col>
  77. <a-col :span="12">
  78. <a-form-item label="采购询价组(procurement inquiry team)" v-bind="validateInfos.inquiryTeam" id="SaleInquiryFormForm-inquiryTeam" name="inquiryTeam">
  79. <JSelectDept v-model:value="formData.inquiryTeam" :multiple="false"/>
  80. </a-form-item>
  81. </a-col>
  82. <a-col :span="12">
  83. <a-form-item label="询价备注(inquiry notes)" v-bind="validateInfos.inquiryNotes" id="SaleInquiryFormForm-inquiryNotes" name="inquiryNotes">
  84. <a-input v-model:value="formData.inquiryNotes" placeholder="请输入询价备注(inquiry notes)" allow-clear ></a-input>
  85. </a-form-item>
  86. </a-col>
  87. <a-col :span="12">
  88. <a-form-item label="附件(attachs)" v-bind="validateInfos.attachs" id="SaleInquiryFormForm-attachs" name="attachs">
  89. <JUpload v-model:value="formData.attachs"></JUpload>
  90. </a-form-item>
  91. </a-col>
  92. </a-row>
  93. </a-form>
  94. </template>
  95. </JFormContainer>
  96. <!-- 子表单区域 -->
  97. <a-tabs v-model:activeKey="activeKey" animated style=" padding: 24px;padding-top: 0px;">
  98. <a-tab-pane tab="销售询价单 - 船明细(ship details)" key="saleInquiryFormShip" :forceRender="true">
  99. <a-button type="primary" @click="selectShip"> 选择船(select ship)</a-button>
  100. <j-vxe-table
  101. :keep-source="true"
  102. resizable
  103. ref="saleInquiryFormShipTableRef"
  104. :loading="saleInquiryFormShipTable.loading"
  105. :columns="saleInquiryFormShipTable.columns"
  106. :dataSource="saleInquiryFormShipTable.dataSource"
  107. :height="340"
  108. :disabled="disabled"
  109. :rowNumber="true"
  110. :rowSelection="true"
  111. >
  112. <template #action="props" >
  113. <a @click="viewAccessory(props)" >查看配件信息(view accessory information)</a>
  114. <a-divider type="vertical"/>
  115. <a-popconfirm title="确定删除吗?" @confirm="handleDelete(props)">
  116. <a>删除(delete)</a>
  117. </a-popconfirm>
  118. </template>
  119. </j-vxe-table>
  120. </a-tab-pane>
  121. <a-tab-pane tab="销售询价单 - 产品明细(product details)" key="saleInquiryFormProduct" :forceRender="true">
  122. <a-button type="primary" @click="selectProducts" style="margin-right: 1%;margin-bottom: 1%;"> 选择产品(select product)</a-button>
  123. <a-button type="primary" @click="setNeed" style="margin-right: 1%;"> 设置需要船检证书(set need ship inspection certificate)</a-button>
  124. <a-button type="primary" @click="setNotNeed"> 设置不需要船检证书(set need not ship inspection certificate)</a-button>
  125. <j-vxe-table
  126. :keep-source="true"
  127. resizable
  128. ref="saleInquiryFormProductTableRef"
  129. :loading="saleInquiryFormProductTable.loading"
  130. :columns="saleInquiryFormProductTable.columns"
  131. :dataSource="saleInquiryFormProductTable.dataSource"
  132. :height="340"
  133. :disabled="disabled"
  134. :rowNumber="true"
  135. :rowSelection="true"
  136. asyncRemove
  137. >
  138. <template #action="props">
  139. <a-popconfirm title="确定删除吗?" @confirm="handleDelete1(props)">
  140. <a>删除(delete)</a>
  141. </a-popconfirm>
  142. </template>
  143. </j-vxe-table>
  144. </a-tab-pane>
  145. </a-tabs>
  146. <SelectShipSModal ref="SelectShipSModalRef" @select="addShip"></SelectShipSModal>
  147. <BaseShipArchiveAccessoriesModal ref="BaseShipArchiveAccessoriesListRef"></BaseShipArchiveAccessoriesModal>
  148. <SelectPrpductModal ref="SelectPrpductModalRef" @selectProduct="addProduct"></SelectPrpductModal>
  149. <SelectProjectModal ref="SelectProjectModalRef" @selectProject="addProject"></SelectProjectModal>
  150. </a-spin>
  151. </template>
  152. <script lang="ts">
  153. import { defineComponent, ref, reactive, computed, toRaw} from 'vue';
  154. import { defHttp } from '/@/utils/http/axios';
  155. import { useValidateAntFormAndTable } from '/@/hooks/system/useJvxeMethods';
  156. import { querySaleInquiryFormShipListByMainId, querySaleInquiryFormProductListByMainId, queryDataById, saveOrUpdate } from '../SaleInquiryForm.api';
  157. import { JVxeTable } from '/@/components/jeecg/JVxeTable';
  158. import {saleInquiryFormShipColumns, saleInquiryFormProductColumns} from '../SaleInquiryForm.data';
  159. import SelectShipSModal from '../../../publicComponents/SelectShipSModal.vue';
  160. import BaseShipArchiveAccessoriesModal from '../../../publicComponents/BaseShipArchiveAccessoriesModal.vue';
  161. import SelectPrpductModal from '../../../publicComponents/SelectPrpductModal.vue';
  162. import SelectProjectModal from './SelectProjectModal.vue';
  163. import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
  164. import JUpload from '/@/components/Form/src/jeecg/components/JUpload/JUpload.vue';
  165. import { JDictSelectTag} from '/@/components/Form';
  166. import JSelectInput from '/@/components/Form/src/jeecg/components/JSelectInput.vue';
  167. import JSelectDept from '/@/components/Form/src/jeecg/components/JSelectDept.vue';
  168. import { Form } from 'ant-design-vue';
  169. import { useUserStore } from '/@/store/modules/user';
  170. import moment from 'moment';
  171. const userStore = useUserStore();
  172. const useForm = Form.useForm;
  173. export default defineComponent({
  174. name: "SaleInquiryFormForm",
  175. components:{
  176. JVxeTable,
  177. JFormContainer,
  178. SelectShipSModal,
  179. BaseShipArchiveAccessoriesModal,
  180. SelectPrpductModal,
  181. JUpload,
  182. SelectProjectModal,
  183. JDictSelectTag,
  184. JSelectInput,
  185. JSelectDept
  186. },
  187. props:{
  188. formDisabled:{
  189. type: Boolean,
  190. default: false
  191. },
  192. formData: { type: Object, default: ()=>{} },
  193. formBpm: { type: Boolean, default: true }
  194. },
  195. emits:['success'],
  196. setup(props, {emit}) {
  197. const loading = ref(false);
  198. const formRef = ref();
  199. var SelectPrpductModalRef = ref()
  200. var SelectProjectModalRef = ref()
  201. var inquiryPeriod = ref([])
  202. const saleInquiryFormShipTableRef = ref();
  203. const saleInquiryFormShipTable = reactive<Record<string, any>>({
  204. loading: false,
  205. columns: saleInquiryFormShipColumns,
  206. dataSource: []
  207. });
  208. const saleInquiryFormProductTableRef = ref();
  209. const saleInquiryFormProductTable = reactive<Record<string, any>>({
  210. loading: false,
  211. columns: saleInquiryFormProductColumns,
  212. dataSource: []
  213. });
  214. var SelectShipSModalRef = ref();
  215. var BaseShipArchiveAccessoriesListRef = ref();
  216. const activeKey = ref('saleInquiryFormShip');
  217. var classOption = ref([]);
  218. var customerOption =ref([]);
  219. const formData = reactive<Record<string, any>>({
  220. id: '',
  221. status: undefined,
  222. delFlag: undefined,
  223. otherStatus: '',
  224. submit: '',
  225. billDate: moment(new Date()).format('YYYY-MM-DD'),
  226. billCode: '',
  227. inquiryProject: '',
  228. projectName:"",
  229. inquiryCustomer: '',
  230. customerName:'',
  231. inquiryPlatform: '',
  232. customerInquiryNumber: '',
  233. inquiryPeriodEnd: '',
  234. inquiryPeriodBegin: '',
  235. priority: '',
  236. productionClass: '',
  237. model: '',
  238. maker: '',
  239. saleDepartment: '',
  240. salesman: '',
  241. inquiryTeam: '',
  242. deliveryTime: '',
  243. attachs: '',
  244. inquiryNotes: '',
  245. });
  246. //表单验证
  247. const validatorRules = reactive({
  248. });
  249. const {resetFields, validate, validateInfos} = useForm(formData, validatorRules, {immediate: false});
  250. const dbData = {};
  251. const formItemLayout = {
  252. labelCol: {xs: {span: 24}, sm: {span: 5}},
  253. wrapperCol: {xs: {span: 24}, sm: {span: 16}},
  254. };
  255. // 表单禁用
  256. const disabled = computed(()=>{
  257. if(props.formBpm === true){
  258. if(props.formData.disabled === false){
  259. return false;
  260. }else{
  261. return true;
  262. }
  263. }
  264. return props.formDisabled;
  265. });
  266. function add() {
  267. resetFields();
  268. saleInquiryFormShipTable.dataSource = [];
  269. saleInquiryFormProductTable.dataSource = [];
  270. activeKey.value = 'saleInquiryFormShip'
  271. getOptiom()
  272. getCustomerOptions()
  273. inquiryPeriod.value = []
  274. formData.salesman=userStore.getUserInfo.username;
  275. formData.saleDepartment = userStore.getUserInfo.orgCode
  276. }
  277. async function edit(row) {
  278. //主表数据
  279. await queryMainData(row.id);
  280. //子表数据
  281. const saleInquiryFormShipDataList = await querySaleInquiryFormShipListByMainId(row['id']);
  282. saleInquiryFormShipTable.dataSource = [...saleInquiryFormShipDataList];
  283. const saleInquiryFormProductDataList = await querySaleInquiryFormProductListByMainId(row['id']);
  284. saleInquiryFormProductTable.dataSource = [...saleInquiryFormProductDataList];
  285. getOptiom()
  286. getCustomerOptions()
  287. inquiryPeriod.value[0]=formData.inquiryPeriodBegin?moment(formData.inquiryPeriodBegin):''
  288. inquiryPeriod.value[1]=formData.inquiryPeriodEnd?moment(formData.inquiryPeriodEnd):''
  289. }
  290. async function queryMainData(id) {
  291. const row = await queryDataById(id);
  292. resetFields();
  293. const tmpData = {};
  294. Object.keys(formData).forEach((key) => {
  295. if(row.hasOwnProperty(key)){
  296. tmpData[key] = row[key]
  297. }
  298. })
  299. //赋值
  300. Object.assign(formData,tmpData);
  301. }
  302. const {getSubFormAndTableData, transformData} = useValidateAntFormAndTable(activeKey, {
  303. 'saleInquiryFormShip': saleInquiryFormShipTableRef,
  304. 'saleInquiryFormProduct': saleInquiryFormProductTableRef,
  305. });
  306. async function getFormData() {
  307. try {
  308. // 触发表单验证
  309. await validate();
  310. } catch ({ errorFields }) {
  311. if (errorFields) {
  312. const firstField = errorFields[0];
  313. if (firstField) {
  314. formRef.value.scrollToField(firstField.name, { behavior: 'smooth', block: 'center' });
  315. }
  316. }
  317. return Promise.reject(errorFields);
  318. }
  319. return transformData(toRaw(formData))
  320. }
  321. async function submitForm() {
  322. const mainData = await getFormData();
  323. const subData = await getSubFormAndTableData();
  324. const values = Object.assign({}, dbData, mainData, subData);
  325. console.log('表单提交数据', values)
  326. const isUpdate = values.id ? true : false
  327. await saveOrUpdate(values, isUpdate);
  328. //关闭弹窗
  329. emit('success');
  330. }
  331. function setFieldsValue(values) {
  332. if(values){
  333. Object.keys(values).map(k=>{
  334. formData[k] = values[k];
  335. });
  336. }
  337. }
  338. /**
  339. * 值改变事件触发-树控件回调
  340. * @param key
  341. * @param value
  342. */
  343. function handleFormChange(key, value) {
  344. formData[key] = value;
  345. }
  346. async function handleDelete(prop) {
  347. var newArray = [...saleInquiryFormShipTable.dataSource]
  348. newArray.splice(prop.rowIndex, 1)
  349. saleInquiryFormShipTable.dataSource = newArray
  350. }
  351. async function handleDelete1(prop) {
  352. var newArray = [...saleInquiryFormProductTable.dataSource]
  353. newArray.splice(prop.rowIndex, 1)
  354. saleInquiryFormProductTable.dataSource = newArray
  355. }
  356. function selectShip(){
  357. SelectShipSModalRef.value.getTable()
  358. }
  359. function addShip(data){
  360. var arr = data.concat(saleInquiryFormShipTable.dataSource)
  361. arr.map(item=>item.shipowner = item.relateCustomer)
  362. saleInquiryFormShipTable.dataSource=arr
  363. }
  364. function addProduct(data){
  365. var arrProduct = data.concat(saleInquiryFormProductTable.dataSource)
  366. arrProduct.map(item=>{
  367. item.productClass = item.classId_dictText
  368. item.productCode = item.code
  369. item.unit = item.measurementUnit
  370. item.deliveryTime = formData.deliveryTime
  371. item.productId = item.id
  372. })
  373. saleInquiryFormProductTable.dataSource=arrProduct
  374. }
  375. function addProject(data) {
  376. if(data.length==0){
  377. formData.inquiryProject = ''
  378. formData.projectName = ''
  379. }else{
  380. formData.inquiryProject = data[0].id
  381. formData.projectName = data[0].name
  382. formData.inquiryCustomer =data[0].customerId
  383. formData.customerName =data[0].customerId_dictText
  384. customerOption.value.map(item=>{
  385. if(item.value==data[0].customerId){
  386. formData.priority =item.priority
  387. }
  388. })
  389. }
  390. }
  391. function getCustomerOptions(){
  392. let params = {pageSize:'-1',status:1}
  393. defHttp.get({url:'/cuspCode/cuspCustomerProfile/list',params}, { isTransformResponse: false }).then(res=>{
  394. if(res){
  395. customerOption.value = []
  396. res.result.records.forEach(item=>{
  397. customerOption.value.push({
  398. label: item.name,
  399. value: item.id,
  400. priority:item.priority
  401. })
  402. })
  403. }
  404. })
  405. }
  406. function viewAccessory(prop){
  407. BaseShipArchiveAccessoriesListRef.value.getTable(prop.row)
  408. }
  409. function selectProducts(){
  410. SelectPrpductModalRef.value.getTable()
  411. }
  412. function setNeed(){
  413. const values = saleInquiryFormProductTableRef.value.getSelectionData()
  414. values.map(item=>{
  415. saleInquiryFormProductTable.dataSource.map(event=>{
  416. if(item.id == event.id){
  417. event.needShip = 1
  418. }
  419. })
  420. const xTable = saleInquiryFormProductTableRef.value!.getXTable();//关键代码 如果不更新 重新加载表格即可
  421. xTable.loadData(saleInquiryFormProductTable.dataSource)
  422. })
  423. }
  424. function setNotNeed(){
  425. const values = saleInquiryFormProductTableRef.value.getSelectionData()
  426. values.map(item=>{
  427. saleInquiryFormProductTable.dataSource.map(event=>{
  428. if(item.id == event.id){
  429. event.needShip = 0
  430. }
  431. })
  432. const xTable = saleInquiryFormProductTableRef.value!.getXTable();//关键代码 如果不更新 重新加载表格即可
  433. xTable.loadData(saleInquiryFormProductTable.dataSource)
  434. })
  435. }
  436. function onSearchProject(){
  437. SelectProjectModalRef.value.getTable()
  438. }
  439. function getOptiom(){
  440. defHttp
  441. .get({ url: 'baseCode/baseProductClass/list'}, { isTransformResponse: false })
  442. .then((res) => {
  443. if (res.success) {
  444. classOption.value = []
  445. res.result.records.forEach(element => {
  446. var obj = {
  447. label: element.name?element.name:'无名称请维护',
  448. value: element.id?element.id:''
  449. };
  450. classOption.value.push( obj)
  451. });
  452. }
  453. })
  454. .finally(() => {
  455. // loading.value = false;
  456. });
  457. }
  458. function onChangeInquiryPeriod(data){
  459. inquiryPeriod.value = data
  460. formData.inquiryPeriodBegin = data[0].format('YYYY-MM-DD')
  461. formData.inquiryPeriodEnd = data[1].format('YYYY-MM-DD')
  462. }
  463. function changeDeliveryTime(props){
  464. if(saleInquiryFormProductTable.dataSource.length>0){
  465. var newArr = [...saleInquiryFormProductTable.dataSource]
  466. newArr.map(item=>{
  467. item.deliveryTime = props
  468. })
  469. saleInquiryFormProductTable.dataSource = newArr
  470. }
  471. }
  472. return {
  473. saleInquiryFormShipTableRef,
  474. saleInquiryFormShipTable,
  475. saleInquiryFormProductTableRef,
  476. saleInquiryFormProductTable,
  477. validatorRules,
  478. validateInfos,
  479. activeKey,
  480. loading,
  481. formData,
  482. setFieldsValue,
  483. handleFormChange,
  484. formItemLayout,
  485. disabled,
  486. getFormData,
  487. submitForm,
  488. SelectShipSModalRef,
  489. add,
  490. edit,
  491. formRef,
  492. selectShip,
  493. addShip,
  494. addProduct,
  495. BaseShipArchiveAccessoriesListRef,
  496. viewAccessory,
  497. handleDelete,
  498. handleDelete1,
  499. selectProducts,
  500. setNeed,
  501. setNotNeed,
  502. SelectPrpductModalRef,
  503. SelectProjectModalRef,
  504. onSearchProject,
  505. addProject,
  506. getOptiom,
  507. classOption,
  508. getCustomerOptions,
  509. customerOption,
  510. inquiryPeriod,
  511. onChangeInquiryPeriod,
  512. changeDeliveryTime
  513. }
  514. }
  515. });
  516. </script>
  517. <style lang="less" scoped>
  518. /** 时间和数字输入框样式 */
  519. :deep(.ant-input-number) {
  520. width: 100%;
  521. }
  522. :deep(.ant-calendar-picker) {
  523. width: 100%;
  524. }
  525. /deep/.vxe-table--body-wrapper{
  526. height: 100% !important;
  527. }
  528. /deep/.ant-modal-body{
  529. padding: 24px !important;
  530. }
  531. /deep/.ant-form-item{
  532. margin-bottom: 8px !important;
  533. }
  534. </style>