浏览代码

采购询价单-删除无关文件

jingbb 5 月之前
父节点
当前提交
6055dd19cc

+ 0 - 17
src/views/purchase/purchaseInquiryForm/components/BaseShipArchive.api.ts

@@ -1,17 +0,0 @@
-import {defHttp} from '/@/utils/http/axios';
-import { useMessage } from "/@/hooks/web/useMessage";
-
-const { createConfirm } = useMessage();
-
-enum Api {
-  list = '/baseCode/baseShipArchive/list',
-  
-}
-
-/**
- * 列表接口
- * @param params
- */
-export const list = (params) =>
-  defHttp.get({url: Api.list, params});
-

+ 0 - 94
src/views/purchase/purchaseInquiryForm/components/BaseShipArchive.data.ts

@@ -1,94 +0,0 @@
-import {BasicColumn} from '/@/components/Table';
-import {FormSchema} from '/@/components/Table';
-import { rules} from '/@/utils/helper/validator';
-import { render } from '/@/utils/common/renderUtils';
-import { getWeekMonthQuarterYear } from '/@/utils';
-//列表数据
-export const columns: BasicColumn[] = [
-   {
-    title: 'IMO',
-    align:"center",
-    dataIndex: 'imo'
-   },
-   {
-    title: '船名称(ship name)',
-    align:"center",
-    dataIndex: 'shipName'
-   },
-   {
-    title: '客户名称(customer name)',
-    align:"center",
-    dataIndex: 'relateCustomer'
-   },
-];
-//查询数据
-export const searchFormSchema: FormSchema[] = [
-	{
-      label: "IMO",
-      field: 'imo',
-      component: 'Input',
-      // labelWidth: 150,
-      //colProps: {span: 6},
- 	},
-	{
-      label: "船名称(ship name)",
-      field: 'shipName',
-      labelWidth: 150,
-      component: 'Input',
-      //colProps: {span: 6},
- 	},
-   {
-    label: '客户名称(customer name)',
-    field: 'relateCustomer',
-    component: 'Input',
-    labelWidth: 180,
-
-   },
-	{
-      label: "hull number",
-      field: 'hullNumber',
-      component: 'Input',
-      //colProps: {span: 6},
- 	},
-   {
-    label: "船厂(ship factory)",
-    field: 'shipFactory',
-    component: 'JSelectMultiple',
-    labelWidth: 150,
-    componentProps:{
-      dictCode:"ship_factory"
-   },
-    //colProps: {span: 6},
- },
- {
-  label: "造船日期(ship date)",
-  field: "shipDate",
-  component: 'RangePicker',
-  labelWidth: 150,
-  componentProps: {
-      valueType: 'Date',
-      showTime:true
-  },
-  //colProps: {span: 6},
-},
-{
-  label: "船类型(ship type)",
-  field: 'shipType',
-  component: 'JSelectMultiple',
-  labelWidth: 180,
-  componentProps:{
-    dictCode:"ship_type"
- },
-      //colProps: {span: 6},
-},
-
-{
-  label: "状态(status)",
-  field: 'status',
-  component: 'JSelectMultiple',
-  componentProps:{
-    dictCode:"valid_status"
-  },
-  //colProps: {span: 6},
-},
-];

+ 0 - 84
src/views/purchase/purchaseInquiryForm/components/SelectShipSModal.vue

@@ -1,84 +0,0 @@
-<template>
-    <a-modal
-      title="选择船(select ship)"
-      width="95%"
-      :visible="visible"
-      :maskClosable="false"
-      switchFullscreen
-      @ok = "handleOk"
-      @cancel="handleCancel">
-      <div>
-            <!--引用表格-->
-        <BasicTable @register="registerTable" :rowSelection="rowSelection"></BasicTable>
-        </div>
-      </a-modal>
-</template>
-<script lang="ts" name="baseCode-baseShipArchive" setup>
-  import {ref, reactive } from 'vue';
-  import {BasicTable, useTable, TableAction} from '/@/components/Table';
-  import { useListPage } from '/@/hooks/system/useListPage'
-  import {columns, searchFormSchema} from './BaseShipArchive.data';
-  import {list} from './BaseShipArchive.api';
-  import { useMessage } from '/@/hooks/web/useMessage';
-  const queryParam = reactive<any>({});
-  var visible = ref(false);
-  const emit = defineEmits([ 'select']); //定义emit
-  //注册model
-  const { createMessage} = useMessage();
-  //注册table数据
-  const { tableContext} = useListPage({
-      tableProps:{
-           api:list,
-           columns,
-           canResize:false,
-           formConfig: {
-              schemas: searchFormSchema,
-              autoSubmitOnEnter:true,
-              showAdvancedButton:true,
-              fieldMapToNumber: [
-              ],
-              fieldMapToTime: [
-                 ['shipDate', ['shipDate_begin', 'shipDate_end'], 'YYYY-MM-DD HH:mm:ss'],
-              ],
-            },
-           showTableSetting:false,
-           showActionColumn:false,
-           actionColumn: {
-               width: 200,
-               fixed:'right'
-            },
-            beforeFetch: (params) => {
-              return Object.assign(params, queryParam);
-            },
-      }
-  })
-
-  const [registerTable, {reload},{ rowSelection, selectedRowKeys }] = tableContext
-  
-  function handleCancel() {
-    visible.value = false;
-    selectedRowKeys.value = []
-  }
-    function handleOk() {
-        if(selectedRowKeys.value.length==0){
-            createMessage('请选择数据')
-        }else{
-            emit('select',rowSelection.selectedRows)
-            handleCancel()
-        }  
-    }
-   function getTable(){
-    visible.value = true
-   }
-   defineExpose({
-    getTable
-  });
-
-
-</script>
-
-<style lang="less" scoped>
-  :deep(.ant-picker),:deep(.ant-input-number){
-    width: 100%;
-  }
-</style>