¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item |
| | | label="å·¥å
·ç¼å·" |
| | | :labelCol="{span: 5}" |
| | | :wrapperCol="{span: 18, offset: 1}" |
| | | > |
| | | <a-input |
| | | placeholder="请è¾å
¥å·¥å
·ç¼ç æ£ç´¢" |
| | | v-model="queryParam.toolCode" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item |
| | | label="åå®¶" |
| | | :labelCol="{span: 5}" |
| | | :wrapperCol="{span: 18, offset: 1}" |
| | | > |
| | | <a-input |
| | | placeholder="请è¾å
¥åå®¶æ£ç´¢" |
| | | v-model="queryParam.supplierId" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item |
| | | label="æè´¨" |
| | | :labelCol="{span: 5}" |
| | | :wrapperCol="{span: 18, offset: 1}" |
| | | > |
| | | <a-input |
| | | placeholder="请è¾å
¥æè´¨æ£ç´¢" |
| | | v-model="queryParam.toolMaterial" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <a-form-item |
| | | label="åå
·è§æ ¼" |
| | | :labelCol="{span: 5}" |
| | | :wrapperCol="{span: 18, offset: 1}" |
| | | > |
| | | <a-input |
| | | placeholder="请è¾å
¥åå
·è§æ ¼æ£ç´¢" |
| | | v-model="queryParam.toolModel" |
| | | ></a-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="6" :sm="24"> |
| | | <span style="float: left;overflow: hidden;" class="table-page-search-submitButtons"> |
| | | <a-button type="primary" @click="searchQuery" icon="search">æ¥è¯¢</a-button> |
| | | <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">éç½®</a-button> |
| | | </span> |
| | | </a-col> |
| | | |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <!-- æ¥è¯¢åºå-END --> |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <!-- <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</a-button>--> |
| | | <!-- <a-button type="primary" icon="download" @click="handleExportXls('tms_store_early warning')">导åº</a-button>--> |
| | | <!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">--> |
| | | <!-- <a-button type="primary" icon="import">导å
¥</a-button>--> |
| | | <!-- </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> |
| | | <a-button style="margin-left: 8px"> æ¹éæä½ <a-icon type="down" /></a-button> |
| | | </a-dropdown> |
| | | </div> |
| | | |
| | | <!-- tableåºå-begin --> |
| | | <div> |
| | | <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> |
| | | </div> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}" |
| | | :rowClassName="setRowClassName" |
| | | @change="handleTableChange"> |
| | | |
| | | <template slot="htmlSlot" slot-scope="text"> |
| | | <div v-html="text"></div> |
| | | </template> |
| | | <template slot="imgSlot" slot-scope="text,record"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ å¾ç</span> |
| | | <img v-else :src="getImgView(text)" :preview="record.id" height="25px" alt="" style="max-width:80px;font-size: 12px;font-style: italic;"/> |
| | | </template> |
| | | <template slot="fileSlot" slot-scope="text"> |
| | | <span v-if="!text" style="font-size: 12px;font-style: italic;">æ æä»¶</span> |
| | | <a-button |
| | | v-else |
| | | :ghost="true" |
| | | type="primary" |
| | | icon="download" |
| | | size="small" |
| | | @click="downloadFile(text)"> |
| | | ä¸è½½ |
| | | </a-button> |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | |
| | | <a-divider type="vertical" /> |
| | | <a-dropdown> |
| | | <a class="ant-dropdown-link">æ´å¤ <a-icon type="down" /></a> |
| | | <a-menu slot="overlay"> |
| | | <a-menu-item> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a-popconfirm title="ç¡®å®å é¤å?" @confirm="() => handleDelete(record.id)"> |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | |
| | | <tools-store-early-warning-modal ref="modalForm" @ok="modalFormOk"></tools-store-early-warning-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import ToolsStoreEarlyWarningModal from './modules/ToolsStoreEarlyWarningModal.vue' |
| | | |
| | | export default { |
| | | name: 'TmsStoreEarlyWarningList', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | ToolsStoreEarlyWarningModal |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'tms_store_early warning管ç页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title:'ç¼ç ', |
| | | align:"center", |
| | | dataIndex: 'classifyId' |
| | | }, |
| | | { |
| | | title:'åç§°', |
| | | align:"center", |
| | | dataIndex: 'toolName' |
| | | }, |
| | | { |
| | | title:'å·¥å
፱Ȍ', |
| | | align:"center", |
| | | dataIndex: 'toolType' |
| | | }, |
| | | { |
| | | title:'è§æ ¼', |
| | | align:"center", |
| | | dataIndex: 'toolModel' |
| | | }, |
| | | { |
| | | title:'æè´¨', |
| | | align:"center", |
| | | dataIndex: 'materialName' |
| | | }, |
| | | { |
| | | title:'åå¨ä½ç½®', |
| | | align:"center", |
| | | dataIndex: 'goodsShelvesId' |
| | | }, |
| | | { |
| | | title:'åå®¶', |
| | | align:"center", |
| | | dataIndex: 'supplierId' |
| | | }, |
| | | { |
| | | title:'åºåä¸é', |
| | | align:"center", |
| | | dataIndex: 'highestInventory' |
| | | }, |
| | | { |
| | | title:'åºåä¸é', |
| | | align:"center", |
| | | dataIndex: 'lowerInventory' |
| | | }, |
| | | { |
| | | title:'æ»åºåæ°é', |
| | | align:"center", |
| | | dataIndex: 'totalCount' |
| | | }, |
| | | { |
| | | title:'å¯ç¨åºåæ°é', |
| | | align:"center", |
| | | dataIndex: 'availableQuantity' |
| | | }, |
| | | { |
| | | title:'ç¶æ;', |
| | | align:"center", |
| | | dataIndex: 'status' |
| | | }, |
| | | { |
| | | title:'夿³¨', |
| | | align:"center", |
| | | dataIndex: 'remark' |
| | | }, |
| | | ], |
| | | url: { |
| | | list: "tms/toolsStoreEarlyWarning/list", |
| | | delete: "tms/toolsStoreEarlyWarning/delete", |
| | | deleteBatch: "tools/tmsStoreEarlyWarning/deleteBatch", |
| | | exportXlsUrl: "tools/tmsStoreEarlyWarning/exportXls", |
| | | importExcelUrl: "toolsStoreEarlyWarning/importExcel", |
| | | |
| | | }, |
| | | dictOptions:{}, |
| | | superFieldList:[], |
| | | } |
| | | }, |
| | | created() { |
| | | this.getSuperFieldList(); |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | }, |
| | | }, |
| | | methods: { |
| | | setRowClassName(record,index){ |
| | | |
| | | //夿并è¿åè¡çæ ·å¼åç§° |
| | | if(record){ |
| | | return "bg-blue" |
| | | } |
| | | }, |
| | | initDictConfig(){ |
| | | }, |
| | | getSuperFieldList(){ |
| | | let fieldList=[]; |
| | | fieldList.push({type:'string',value:'toolCode',text:'ç¼ç ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'toolName',text:'åç§°',dictCode:''}) |
| | | fieldList.push({type:'string',value:'toolType',text:'å·¥å
፱Ȍ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'toolModel',text:'è§æ ¼',dictCode:''}) |
| | | fieldList.push({type:'string',value:'supplierId',text:'æè´¨',dictCode:''}) |
| | | fieldList.push({type:'string',value:'goodsShelvesId',text:'åå¨ä½ç½®',dictCode:''}) |
| | | fieldList.push({type:'string',value:'toolModel',text:'åå·/å¾å·',dictCode:''}) |
| | | fieldList.push({type:'string',value:'supplierId',text:'åå®¶',dictCode:''}) |
| | | fieldList.push({type:'string',value:'toolMaterial',text:'æè´¨',dictCode:''}) |
| | | fieldList.push({type:'string',value:'totalCount',text:'æ»åºåæ°é',dictCode:''}) |
| | | fieldList.push({type:'string',value:'availableQuantity',text:'å¯ç¨åºåæ°é',dictCode:''}) |
| | | fieldList.push({type:'BigDecimal',value:'lowerInventory',text:'åºåä¸é',dictCode:''}) |
| | | fieldList.push({type:'string',value:'highestInventory',text:'åºåä¸é',dictCode:''}) |
| | | fieldList.push({type:'string',value:'status',text:'ç¶æ;',dictCode:''}) |
| | | fieldList.push({type:'string',value:'remark',text:'夿³¨',dictCode:''}) |
| | | fieldList.push({type:'string',value:'tenantId',text:'ç§æ·å·',dictCode:''}) |
| | | this.superFieldList = fieldList |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | ::v-deep .bg-blue{ |
| | | |
| | | background-color:#C1194E; |
| | | |
| | | } |
| | | </style> |