| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | :labelCol="{span:3}" |
| | | :wrapperCol="{span:21}" |
| | | :labelCol="{span:4}" |
| | | :wrapperCol="{span:18}" |
| | | label="文件类型" |
| | | > |
| | | <a-radio-group |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="请选择文档类型" |
| | | :triggerChange="true" |
| | | dictCode="mom_eam_document_type,name,id, del_flag!='1'" |
| | | v-decorator="['fileType', validatorRules.fileType ]" |
| | | /> |
| | | <!-- <a-radio-group |
| | | v-for="(item,index) in fileTypes" |
| | | :key="index" |
| | | button-style="solid" |
| | |
| | | <a-radio-button :value="item.value"> |
| | | {{item.text}} |
| | | </a-radio-button> |
| | | </a-radio-group> |
| | | </a-radio-group> --> |
| | | |
| | | </a-form-item> |
| | | </a-col> |
| | |
| | | handleCancel() { |
| | | this.close(); |
| | | }, |
| | | initFileTypes() { |
| | | ajaxGetDictItems("common_upload_type", null).then((res) => { |
| | | if (res.success) { |
| | | this.fileTypes = res.result; |
| | | } |
| | | }) |
| | | }, |
| | | // initFileTypes() { |
| | | // ajaxGetDictItems("common_upload_type", null).then((res) => { |
| | | // if (res.success) { |
| | | // this.fileTypes = res.result; |
| | | // } |
| | | // }) |
| | | // }, |
| | | |
| | | }, |
| | | |
| | | created() { |
| | | this.initFileTypes(); |
| | | // this.initFileTypes(); |
| | | const token = Vue.ls.get(ACCESS_TOKEN); |
| | | const tenantid = Vue.ls.get(TENANT_ID) |
| | | this.headers = { |
| | |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | @cancel="handleCancel" |
| | | cancelText="关闭"> |
| | | cancelText="关闭" |
| | | > |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules"> |
| | | <a-form-model |
| | | ref="form" |
| | | :model="model" |
| | | :rules="validatorRules" |
| | | > |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="文档编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="num"> |
| | | <a-form-model-item |
| | | label="文档编号" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="num" |
| | | > |
| | | <a-input |
| | | placeholder="请输入文档编号" |
| | | v-model="model.num" |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="文档类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fileType"> |
| | | <a-form-model-item |
| | | label="文档类型" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="fileType" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="请选择文档类型" |
| | | :triggerChange="true" |
| | | dictCode="common_upload_type" |
| | | dictCode="mom_eam_document_type,name,id, del_flag!='1'" |
| | | v-model="model.fileType" |
| | | /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="文档上传" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="fileType"> |
| | | <a-form-model-item |
| | | label="文档上传" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | > |
| | | <!-- prop="fileType" --> |
| | | <a-upload-dragger |
| | | name="file" |
| | | :customRequest="customRequest" |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="文件名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="name"> |
| | | <a-form-model-item |
| | | label="文件名称" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="name" |
| | | > |
| | | <a-input |
| | | placeholder="请输入文件名称" |
| | | v-model="model.name" |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="备注" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="remark"> |
| | | <a-form-model-item |
| | | label="备注" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="remark" |
| | | > |
| | | <a-textarea |
| | | placeholder="请输入备注" |
| | | allow-clear |
| | |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | @cancel="handleCancel" |
| | | cancelText="关闭"> |
| | | cancelText="关闭" |
| | | > |
| | | <a-spin :spinning="confirmLoading"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules"> |
| | | <a-form-model |
| | | ref="form" |
| | | :model="model" |
| | | :rules="validatorRules" |
| | | > |
| | | <a-row> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="文档编号" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="num"> |
| | | <a-input v-model="model.num" placeholder="请输入文档编号" ></a-input> |
| | | <a-form-model-item |
| | | label="文档编号" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="num" |
| | | > |
| | | <a-input |
| | | v-model="model.num" |
| | | placeholder="请输入文档编号" |
| | | ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="文档类型" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="documentTypeId"> |
| | | <a-form-model-item |
| | | label="文档类型" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="documentTypeId" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="请选择文档类型" |
| | | :triggerChange="true" |
| | | dictCode="common_upload_type" |
| | | dictCode="mom_eam_document_type,name,id, del_flag!='1'" |
| | | v-model="model.documentTypeId" |
| | | /> |
| | | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="24"> |
| | | <a-form-model-item label="上传" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="file"> |
| | | <j-upload :returnUrl= "false" :isMultiple="false" v-model="model.file" ></j-upload> |
| | | <a-form-model-item |
| | | label="上传" |
| | | :labelCol="labelCol" |
| | | :wrapperCol="wrapperCol" |
| | | prop="file" |
| | | > |
| | | <j-upload |
| | | :returnUrl="false" |
| | | :isMultiple="false" |
| | | v-model="model.file" |
| | | ></j-upload> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | | <a-form-item |
| | | :labelCol="{span:4}" |
| | | :wrapperCol="{span:18}" |
| | | label="文件类型" |
| | | > |
| | | <j-dict-select-tag |
| | | allow-clear |
| | | placeholder="请选择文档类型" |
| | | :triggerChange="true" |
| | | dictCode="mom_eam_document_type,name,id, del_flag!='1'" |
| | | v-decorator="['fileType', validatorRules.fileType ]" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <!-- <a-col :span="24"> |
| | | <a-form-item |
| | | :labelCol="{span:3}" |
| | | :wrapperCol="{span:21}" |
| | | label="文件类型" |
| | |
| | | v-decorator="['fileType', validatorRules.fileType ]" |
| | | :disabled="disableSubmit" |
| | | > |
| | | |
| | | <a-radio-button :value="item.value"> |
| | | {{item.text}} |
| | | </a-radio-button> |
| | | </a-radio-group> |
| | | |
| | | </a-form-item> |
| | | </a-col> |
| | | </a-col> --> |
| | | </a-row> |
| | | <a-row :gutter="24"> |
| | | <a-col :span="24"> |
| | |
| | | <template> |
| | | <a-card :bordered="false" :class="'cust-erp-sub-tab'"> |
| | | <a-card |
| | | :bordered="false" |
| | | :class="'cust-erp-sub-tab'" |
| | | > |
| | | <!-- 查询区域 --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-form |
| | | layout="inline" |
| | | @keyup.enter.native="searchQuery" |
| | | > |
| | | <a-row :gutter="24"> |
| | | </a-row> |
| | | </a-form> |
| | |
| | | <!-- 查询区域-END --> |
| | | |
| | | <!-- 操作按钮区域 --> |
| | | <div class="table-operator" v-if="mainId"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> |
| | | <div |
| | | class="table-operator" |
| | | v-if="mainId" |
| | | > |
| | | <a-button |
| | | @click="handleAdd" |
| | | type="primary" |
| | | icon="plus" |
| | | >新增</a-button> |
| | | <!-- <a-button type="primary" icon="download" @click="handleExportXls('设备文档')">导出</a-button> |
| | | <a-upload |
| | | name="file" |
| | |
| | | </a-upload> --> |
| | | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item key="1" @click="batchDel"><a-icon type="delete"/>删除</a-menu-item> |
| | | <a-menu-item |
| | | key="1" |
| | | @click="batchDel" |
| | | ><a-icon type="delete" />删除</a-menu-item> |
| | | </a-menu> |
| | | <a-button style="margin-left: 8px"> 批量操作 <a-icon type="down" /></a-button> |
| | | </a-dropdown> |
| | |
| | | |
| | | <!-- table区域-begin --> |
| | | <div> |
| | | <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;"> |
| | | <div |
| | | class="ant-alert ant-alert-info" |
| | | style="margin-bottom: 16px;" |
| | | > |
| | | <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
| | | <a style="margin-left: 24px" @click="onClearSelected">清空</a> |
| | | <a |
| | | style="margin-left: 24px" |
| | | @click="onClearSelected" |
| | | >清空</a> |
| | | </div> |
| | | |
| | | <a-table |
| | |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | @change="handleTableChange"> |
| | | @change="handleTableChange" |
| | | > |
| | | |
| | | <span |
| | | slot="size" |
| | |
| | | </a-table> |
| | | </div> |
| | | <pdf-view ref="pdfview"></pdf-view> |
| | | <equipmentDocument-modal ref="modalForm" @ok="modalFormOk" :mainId="mainId"></equipmentDocument-modal> |
| | | <equipmentDocument-modal |
| | | ref="modalForm" |
| | | @ok="modalFormOk" |
| | | :mainId="mainId" |
| | | ></equipmentDocument-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | title: '文档编号', |
| | | dataIndex: 'num', |
| | | align: "center", |
| | | width:300, |
| | | }, |
| | | { |
| | | title: '文档名称', |
| | | align: 'center', |
| | | dataIndex: 'name', |
| | | width:300, |
| | | }, |
| | | { |
| | | title: '文档类型', |
| | | align: 'center', |
| | | dataIndex: 'type_dictText', |
| | | width:300, |
| | | dataIndex: 'fileType_dictText', |
| | | }, |
| | | { |
| | | title: '上传时间', |
| | | align: "center", |
| | | dataIndex: 'createTime', |
| | | width:300, |
| | | }, |
| | | { |
| | | title: '上传者', |
| | | align: "center", |
| | | dataIndex: 'createBy', |
| | | width:300, |
| | | }, |
| | | { |
| | | title: '大小', |