SaleInquiryFormForm.vue 22 KB

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