| | |
| | | <a-tabs v-model="activeKey" @change="handleChangeTabs"> |
| | | <a-tab-pane tab="ç©æåºåä¿¡æ¯" :key="refKeys[0]" :forceRender="true"> |
| | | <div style="display: flex; align-items: center; margin-bottom: 10px;"> |
| | | <span style="margin-right: 10px;">ç©æåºåä¿¡æ¯</span> |
| | | <a-tag color="green" style="font-weight: bold;"> |
| | | åºåæ»éï¼{{ totalInventoryQuantity }} |
| | | </a-tag> |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <div class="table-page-search-wrapper" > |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery" > |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="ç©æç¼ç "> |
| | |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="å·¥åå·"> |
| | | <j-search-select-tag placeholder="请è¾å
¥å·¥å·¥åå·" v-model="queryParam.workOrderId" dict="mes_production_work_order,work_order_code,id"></j-search-select-tag> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="ç©æç¼ç "> |
| | | <j-input dictCode="work_order_status" placeholder="请è¾å
¥ç©æç¼ç " v-model="queryParam.materialNumber"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="ç©æåç§°"> |
| | | <j-input dictCode="work_order_status" placeholder="请è¾å
¥ç©æåç§°" v-model="queryParam.materialName"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="æ¯å¦é½å¤"> |
| | | <a-select |
| | | placeholder="è¯·éæ©æ¯å¦é½å¤" |
| | | v-model="queryParam.checkFlag" |
| | | allowClear |
| | | > |
| | | <a-select-option value="æ¯">æ¯</a-select-option> |
| | | <a-select-option value="å¦">å¦</a-select-option> |
| | | </a-select> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :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> |
| | |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</a-button> |
| | | <a-button type="primary" icon="download" @click="handleExportXls('é½å¥æ§æ£æ¥è®°å½')">导åº</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> |
| | | <!-- é«çº§æ¥è¯¢åºå --> |
| | | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
| | | <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> |
| | |
| | | } |
| | | }, |
| | | { |
| | | title:'å·¥åID', |
| | | title:'å·¥åå·', |
| | | align:"center", |
| | | dataIndex: 'workOrderId' |
| | | dataIndex: 'workOrderId_dictText' |
| | | }, |
| | | { |
| | | title:'ç©æç¼å·', |
| | |
| | | deleteBatch: "/meskittingcompletenesscheck/mesKittingCompletenessCheck/deleteBatch", |
| | | exportXlsUrl: "/meskittingcompletenesscheck/mesKittingCompletenessCheck/exportXls", |
| | | importExcelUrl: "meskittingcompletenesscheck/mesKittingCompletenessCheck/importExcel", |
| | | |
| | | |
| | | }, |
| | | dictOptions:{}, |
| | | superFieldList:[], |
| | |
| | | dataIndex: 'delFlag' |
| | | }, |
| | | { |
| | | title:'ç³è¯·åID', |
| | | title:'å·¥åID', |
| | | align:"center", |
| | | dataIndex: 'requestId' |
| | | dataIndex: 'workOrderId' |
| | | }, |
| | | { |
| | | title:'设å¤ID', |
| | | align:"center", |
| | | dataIndex: 'equipmentId' |
| | | }, |
| | | { |
| | | title:'å·¥åºç¼ç ', |
| | | align:"center", |
| | | dataIndex: 'processCode' |
| | | }, |
| | | { |
| | | title:'å·¥åºåç§°', |
| | | align:"center", |
| | | dataIndex: 'processName' |
| | | }, |
| | | { |
| | | title:'ç©æç¼ç ', |
| | |
| | | dataIndex: 'materialName' |
| | | }, |
| | | { |
| | | title:'ç论æå¨æ°é', |
| | | title:'æ¹æ¬¡å·', |
| | | align:"center", |
| | | dataIndex: 'specifiedQuantity' |
| | | dataIndex: 'batchNumber' |
| | | }, |
| | | { |
| | | title:'å®é
æå¨æ°é', |
| | | title:'æ°é', |
| | | align:"center", |
| | | dataIndex: 'actualQuantity' |
| | | dataIndex: 'quantity' |
| | | }, |
| | | { |
| | | title:'车é´å©ä½æ°é', |
| | | title:'å©ä½æ°é', |
| | | align:"center", |
| | | dataIndex: 'remainingQuantity' |
| | | }, |
| | |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/mesmaterialloading/mesMaterialLoading/list", |
| | | delete: "/mesmaterialloading/mesMaterialLoading/delete", |
| | | deleteBatch: "/mesmaterialloading/mesMaterialLoading/deleteBatch", |
| | | exportXlsUrl: "/mesmaterialloading/mesMaterialLoading/exportXls", |
| | | importExcelUrl: "mesmaterialloading/mesMaterialLoading/importExcel", |
| | | list: "/mes/mesMaterialLoading/list", |
| | | delete: "/mes/mesMaterialLoading/delete", |
| | | deleteBatch: "/mes/mesMaterialLoading/deleteBatch", |
| | | exportXlsUrl: "/mes/mesMaterialLoading/exportXls", |
| | | importExcelUrl: "mes/mesMaterialLoading/importExcel", |
| | | |
| | | }, |
| | | dictOptions:{}, |
| | |
| | | getSuperFieldList(){ |
| | | let fieldList=[]; |
| | | fieldList.push({type:'int',value:'delFlag',text:'å 餿 è®°',dictCode:''}) |
| | | fieldList.push({type:'string',value:'requestId',text:'ç³è¯·åID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'workOrderId',text:'å·¥åID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentId',text:'设å¤ID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'processCode',text:'å·¥åºç¼ç ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'processName',text:'å·¥åºåç§°',dictCode:''}) |
| | | fieldList.push({type:'string',value:'materialNumber',text:'ç©æç¼ç ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'materialName',text:'ç©æåç§°',dictCode:''}) |
| | | fieldList.push({type:'double',value:'specifiedQuantity',text:'ç论æå¨æ°é',dictCode:''}) |
| | | fieldList.push({type:'double',value:'actualQuantity',text:'å®é
æå¨æ°é',dictCode:''}) |
| | | fieldList.push({type:'double',value:'remainingQuantity',text:'车é´å©ä½æ°é',dictCode:''}) |
| | | fieldList.push({type:'string',value:'batchNumber',text:'æ¹æ¬¡å·',dictCode:''}) |
| | | fieldList.push({type:'double',value:'quantity',text:'æ°é',dictCode:''}) |
| | | fieldList.push({type:'double',value:'remainingQuantity',text:'å©ä½æ°é',dictCode:''}) |
| | | this.superFieldList = fieldList |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false" title="䏿"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="å·¥åå·"> |
| | | <j-search-select-tag placeholder="请è¾å
¥å·¥å·¥åå·" v-model="queryParam.workOrderId" dict="mes_production_work_order,work_order_code,id"></j-search-select-tag> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="设å¤ID"> |
| | | <j-input placeholder="请è¾å
¥è®¾å¤ID" v-model="queryParam.equipmentId"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="ç©æç¼ç "> |
| | | <j-input dictCode="work_order_status" placeholder="请è¾å
¥ç©æç¼ç " v-model="queryParam.materialNumber"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="ç©æåç§°"> |
| | | <j-input dictCode="work_order_status" placeholder="请è¾å
¥ç©æåç§°" v-model="queryParam.materialName"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="æ¹æ¬¡å·"> |
| | | <j-input placeholder="请è¾å
¥æ¹æ¬¡å·" v-model="queryParam.batchNumber"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :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-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}" |
| | | class="j-table-force-nowrap" |
| | | @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> |
| | | |
| | | <mes-material-loading-modal ref="modalForm" @ok="modalFormOk"></mes-material-loading-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import MesMaterialLoadingModal from './modules/MesMaterialLoadingModal' |
| | | |
| | | export default { |
| | | name: 'MesMaterialLoadingList', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | MesMaterialLoadingModal |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'ä¸æç®¡ç页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title:'å·¥åå·', |
| | | align:"center", |
| | | dataIndex: 'workOrderId_dictText' |
| | | }, |
| | | { |
| | | title:'设å¤ID', |
| | | align:"center", |
| | | dataIndex: 'equipmentId' |
| | | }, |
| | | { |
| | | title:'å·¥åºç¼ç ', |
| | | align:"center", |
| | | dataIndex: 'processCode' |
| | | }, |
| | | { |
| | | title:'å·¥åºåç§°', |
| | | align:"center", |
| | | dataIndex: 'processName' |
| | | }, |
| | | { |
| | | title:'ç©æç¼ç ', |
| | | align:"center", |
| | | dataIndex: 'materialNumber' |
| | | }, |
| | | { |
| | | title:'ç©æåç§°', |
| | | align:"center", |
| | | dataIndex: 'materialName' |
| | | }, |
| | | { |
| | | title:'æ¹æ¬¡å·', |
| | | align:"center", |
| | | dataIndex: 'batchNumber' |
| | | }, |
| | | { |
| | | title:'æ°é', |
| | | align:"center", |
| | | dataIndex: 'quantity' |
| | | }, |
| | | { |
| | | title:'å©ä½æ°é', |
| | | align:"center", |
| | | dataIndex: 'remainingQuantity' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | fixed:"right", |
| | | width:147, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/mes/mesMaterialLoading/list", |
| | | delete: "/mes/mesMaterialLoading/delete", |
| | | deleteBatch: "/mes/mesMaterialLoading/deleteBatch", |
| | | exportXlsUrl: "/mes/mesMaterialLoading/exportXls", |
| | | importExcelUrl: "mes/mesMaterialLoading/importExcel", |
| | | |
| | | }, |
| | | dictOptions:{}, |
| | | superFieldList:[], |
| | | } |
| | | }, |
| | | created() { |
| | | this.getSuperFieldList(); |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | }, |
| | | }, |
| | | methods: { |
| | | initDictConfig(){ |
| | | }, |
| | | getSuperFieldList(){ |
| | | let fieldList=[]; |
| | | fieldList.push({type:'int',value:'delFlag',text:'å 餿 è®°',dictCode:''}) |
| | | fieldList.push({type:'string',value:'workOrderId',text:'å·¥åID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'equipmentId',text:'设å¤ID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'processCode',text:'å·¥åºç¼ç ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'processName',text:'å·¥åºåç§°',dictCode:''}) |
| | | fieldList.push({type:'string',value:'materialNumber',text:'ç©æç¼ç ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'materialName',text:'ç©æåç§°',dictCode:''}) |
| | | fieldList.push({type:'string',value:'batchNumber',text:'æ¹æ¬¡å·',dictCode:''}) |
| | | fieldList.push({type:'double',value:'quantity',text:'æ°é',dictCode:''}) |
| | | fieldList.push({type:'double',value:'remainingQuantity',text:'å©ä½æ°é',dictCode:''}) |
| | | this.superFieldList = fieldList |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | </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('ç©ææå¨æç»')">导åº</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> |
| | | <!-- é«çº§æ¥è¯¢åºå --> |
| | | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
| | | <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}" |
| | | class="j-table-force-nowrap" |
| | | @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> |
| | | |
| | | <mes-material-transfer-detail-modal ref="modalForm" @ok="modalFormOk"></mes-material-transfer-detail-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import MesMaterialTransferDetailModal from './modules/MesMaterialTransferDetailModal' |
| | | |
| | | export default { |
| | | name: 'MesMaterialTransferDetailList', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | MesMaterialTransferDetailModal |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'ç©ææå¨æç»ç®¡ç页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title:'å 餿 è®°', |
| | | align:"center", |
| | | dataIndex: 'delFlag' |
| | | }, |
| | | { |
| | | title:'ç³è¯·åID', |
| | | align:"center", |
| | | dataIndex: 'requestId' |
| | | }, |
| | | { |
| | | title:'ç©æç¼ç ', |
| | | align:"center", |
| | | dataIndex: 'materialNumber' |
| | | }, |
| | | { |
| | | title:'ç©æåç§°', |
| | | align:"center", |
| | | dataIndex: 'materialName' |
| | | }, |
| | | { |
| | | title:'ç论æå¨æ°é', |
| | | align:"center", |
| | | dataIndex: 'specifiedQuantity' |
| | | }, |
| | | { |
| | | title:'å®é
æå¨æ°é', |
| | | align:"center", |
| | | dataIndex: 'actualQuantity' |
| | | }, |
| | | { |
| | | title:'车é´å©ä½æ°é', |
| | | align:"center", |
| | | dataIndex: 'remainingQuantity' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | fixed:"right", |
| | | width:147, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/mes/mesMaterialTransferDetail/list", |
| | | delete: "/mes/mesMaterialTransferDetail/delete", |
| | | deleteBatch: "/mes/mesMaterialTransferDetail/deleteBatch", |
| | | exportXlsUrl: "/mes/mesMaterialTransferDetail/exportXls", |
| | | importExcelUrl: "mes/mesMaterialTransferDetail/importExcel", |
| | | |
| | | }, |
| | | dictOptions:{}, |
| | | superFieldList:[], |
| | | } |
| | | }, |
| | | created() { |
| | | this.getSuperFieldList(); |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | }, |
| | | }, |
| | | methods: { |
| | | initDictConfig(){ |
| | | }, |
| | | getSuperFieldList(){ |
| | | let fieldList=[]; |
| | | fieldList.push({type:'int',value:'delFlag',text:'å 餿 è®°',dictCode:''}) |
| | | fieldList.push({type:'string',value:'requestId',text:'ç³è¯·åID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'materialNumber',text:'ç©æç¼ç ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'materialName',text:'ç©æåç§°',dictCode:''}) |
| | | fieldList.push({type:'double',value:'specifiedQuantity',text:'ç论æå¨æ°é',dictCode:''}) |
| | | fieldList.push({type:'double',value:'actualQuantity',text:'å®é
æå¨æ°é',dictCode:''}) |
| | | fieldList.push({type:'double',value:'remainingQuantity',text:'车é´å©ä½æ°é',dictCode:''}) |
| | | this.superFieldList = fieldList |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
| | |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="ç产订åå·"> |
| | | <j-input placeholder="请è¾å
¥ç产订åå·" v-model="queryParam.orderCode"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="订åç±»å"> |
| | | <j-dict-select-tag dictCode="orderCategory" placeholder="请è¾å
¥è®¢åç±»å" |
| | | v-model="queryParam.orderCategory"></j-dict-select-tag> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="ç©æç¼å·"> |
| | | <j-input placeholder="请è¾å
¥ç©æç¼å·" v-model="queryParam.materialNumber"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="ç©æåç§°"> |
| | | <j-input placeholder="请è¾å
¥ç©æåç§°" v-model="queryParam.materialName"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="订åç¶æ"> |
| | | <j-dict-select-tag dictCode="order_status" placeholder="请è¾å
¥è®¢åç¶æ" |
| | | v-model="queryParam.order_status"></j-dict-select-tag> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="计åå·¥èºè·¯çº¿"> |
| | | <j-input placeholder="请è¾å
¥è®¡åå·¥èºè·¯çº¿" v-model="queryParam.processRoute"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="计åç©ææ¸
å"> |
| | | <j-input placeholder="请è¾å
¥è®¡åç©ææ¸
å" v-model="queryParam.materialListCode"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="å·¥åç¼ç "> |
| | | <j-input placeholder="请è¾å
¥å·¥åç¼ç " v-model="queryParam.factoryCode"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="å·¥ååç§°"> |
| | | <j-input placeholder="请è¾å
¥å·¥ååç§°" v-model="queryParam.factoryName"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="客æ·åå·"> |
| | | <j-input placeholder="请è¾å
¥å®¢æ·åå·" v-model="queryParam.customerOrderModel"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="客æ·åç§°"> |
| | | <j-input placeholder="请è¾å
¥å®¢æ·åç§°" v-model="queryParam.customer"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :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> |
| | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</a-button> |
| | | <a-button type="primary" icon="download" @click="handleExportXls('SAPç产订å')">导åº</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> |
| | | <!-- é«çº§æ¥è¯¢åºå --> |
| | | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
| | | <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-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>项 |
| | | <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> |
| | | |
| | |
| | | </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;"/> |
| | | <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> |
| | |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import MesProductionOrderModal from './modules/MesProductionOrderModal' |
| | | import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import MesProductionOrderModal from './modules/MesProductionOrderModal' |
| | | import { filterMultiDictText } from '@/components/dict/JDictSelectUtil' |
| | | |
| | | export default { |
| | | name: 'MesProductionOrderList', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | MesProductionOrderModal |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'SAPç产订å管ç页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title:'å 餿 è®°', |
| | | align:"center", |
| | | dataIndex: 'delFlag' |
| | | }, |
| | | { |
| | | title:'ç产订åå·', |
| | | align:"center", |
| | | dataIndex: 'orderCode' |
| | | }, |
| | | { |
| | | title:'订åç±»å', |
| | | align:"center", |
| | | dataIndex: 'orderCategory' |
| | | }, |
| | | { |
| | | title:'ç©æç¼å·', |
| | | align:"center", |
| | | dataIndex: 'materialNumber' |
| | | }, |
| | | { |
| | | title:'ç©æåç§°', |
| | | align:"center", |
| | | dataIndex: 'materialName' |
| | | }, |
| | | { |
| | | title:'计åå¼å§æ¥æ', |
| | | align:"center", |
| | | dataIndex: 'planStart' |
| | | }, |
| | | { |
| | | title:'计åç»ææ¥æ', |
| | | align:"center", |
| | | dataIndex: 'planEnd' |
| | | }, |
| | | { |
| | | title:'è®¢åæ°é', |
| | | align:"center", |
| | | dataIndex: 'orderQuantity' |
| | | }, |
| | | { |
| | | title:'产ååä½', |
| | | align:"center", |
| | | dataIndex: 'productionUnit_dictText' |
| | | }, |
| | | { |
| | | title:'订åç¶æ', |
| | | align:"center", |
| | | dataIndex: 'orderStatus_dictText' |
| | | }, |
| | | { |
| | | title:'ä¼å
级', |
| | | align:"center", |
| | | dataIndex: 'priority_dictText' |
| | | }, |
| | | { |
| | | title:'计åå·¥èºè·¯çº¿', |
| | | align:"center", |
| | | dataIndex: 'processRoute' |
| | | }, |
| | | { |
| | | title:'计åç©ææ¸
å', |
| | | align:"center", |
| | | dataIndex: 'materialListCode' |
| | | }, |
| | | { |
| | | title:'å·¥åç¼ç ', |
| | | align:"center", |
| | | dataIndex: 'factoryCode' |
| | | }, |
| | | { |
| | | title:'å·¥ååç§°', |
| | | align:"center", |
| | | dataIndex: 'factoryName' |
| | | }, |
| | | { |
| | | title:'客æ·åå·', |
| | | align:"center", |
| | | dataIndex: 'customerOrderModel' |
| | | }, |
| | | { |
| | | title:'客æ·åç§°', |
| | | align:"center", |
| | | dataIndex: 'customer' |
| | | }, |
| | | { |
| | | title:'夿³¨', |
| | | align:"center", |
| | | dataIndex: 'remark' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | fixed:"right", |
| | | width:147, |
| | | scopedSlots: { customRender: 'action' } |
| | | export default { |
| | | name: 'MesProductionOrderList', |
| | | mixins: [JeecgListMixin, mixinDevice], |
| | | components: { |
| | | MesProductionOrderModal |
| | | }, |
| | | data() { |
| | | return { |
| | | description: 'SAPç产订å管ç页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: 'center', |
| | | customRender: function(t, r, index) { |
| | | return parseInt(index) + 1 |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/mesproductionwork/mesProductionOrder/list", |
| | | delete: "/mesproductionwork/mesProductionOrder/delete", |
| | | deleteBatch: "/mesproductionwork/mesProductionOrder/deleteBatch", |
| | | exportXlsUrl: "/mesproductionwork/mesProductionOrder/exportXls", |
| | | importExcelUrl: "mesproductionwork/mesProductionOrder/importExcel", |
| | | |
| | | }, |
| | | dictOptions:{}, |
| | | superFieldList:[], |
| | | } |
| | | }, |
| | | created() { |
| | | this.getSuperFieldList(); |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | { |
| | | title: 'ç产订åå·', |
| | | align: 'center', |
| | | dataIndex: 'orderCode' |
| | | }, |
| | | { |
| | | title: '订åç±»å', |
| | | align: 'center', |
| | | dataIndex: 'orderCategory' |
| | | }, |
| | | { |
| | | title: 'ç©æç¼å·', |
| | | align: 'center', |
| | | dataIndex: 'materialNumber' |
| | | }, |
| | | { |
| | | title: 'ç©æåç§°', |
| | | align: 'center', |
| | | dataIndex: 'materialName' |
| | | }, |
| | | { |
| | | title: '计åå¼å§æ¥æ', |
| | | align: 'center', |
| | | dataIndex: 'planStart' |
| | | }, |
| | | { |
| | | title: '计åç»ææ¥æ', |
| | | align: 'center', |
| | | dataIndex: 'planEnd' |
| | | }, |
| | | { |
| | | title: 'è®¢åæ°é', |
| | | align: 'center', |
| | | dataIndex: 'orderQuantity' |
| | | }, |
| | | { |
| | | title: '产ååä½', |
| | | align: 'center', |
| | | dataIndex: 'productionUnit_dictText' |
| | | }, |
| | | { |
| | | title: '订åç¶æ', |
| | | align: 'center', |
| | | dataIndex: 'orderStatus_dictText' |
| | | }, |
| | | { |
| | | title: 'ä¼å
级', |
| | | align: 'center', |
| | | dataIndex: 'priority_dictText' |
| | | }, |
| | | { |
| | | title: '计åå·¥èºè·¯çº¿', |
| | | align: 'center', |
| | | dataIndex: 'processRoute' |
| | | }, |
| | | { |
| | | title: '计åç©ææ¸
å', |
| | | align: 'center', |
| | | dataIndex: 'materialListCode' |
| | | }, |
| | | { |
| | | title: 'å·¥åç¼ç ', |
| | | align: 'center', |
| | | dataIndex: 'factoryCode' |
| | | }, |
| | | { |
| | | title: 'å·¥ååç§°', |
| | | align: 'center', |
| | | dataIndex: 'factoryName' |
| | | }, |
| | | { |
| | | title: '客æ·åå·', |
| | | align: 'center', |
| | | dataIndex: 'customerOrderModel' |
| | | }, |
| | | { |
| | | title: '客æ·åç§°', |
| | | align: 'center', |
| | | dataIndex: 'customer' |
| | | }, |
| | | { |
| | | title: '夿³¨', |
| | | align: 'center', |
| | | dataIndex: 'remark' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align: 'center', |
| | | fixed: 'right', |
| | | width: 147, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | url: { |
| | | list: '/mesproductionwork/mesProductionOrder/list', |
| | | delete: '/mesproductionwork/mesProductionOrder/delete', |
| | | deleteBatch: '/mesproductionwork/mesProductionOrder/deleteBatch', |
| | | exportXlsUrl: '/mesproductionwork/mesProductionOrder/exportXls', |
| | | importExcelUrl: 'mesproductionwork/mesProductionOrder/importExcel' |
| | | |
| | | }, |
| | | dictOptions: {}, |
| | | superFieldList: [] |
| | | } |
| | | }, |
| | | created() { |
| | | this.getSuperFieldList() |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function() { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}` |
| | | } |
| | | }, |
| | | methods: { |
| | | initDictConfig() { |
| | | }, |
| | | methods: { |
| | | initDictConfig(){ |
| | | }, |
| | | getSuperFieldList(){ |
| | | let fieldList=[]; |
| | | fieldList.push({type:'int',value:'delFlag',text:'å 餿 è®°',dictCode:''}) |
| | | fieldList.push({type:'string',value:'orderCode',text:'ç产订åå·',dictCode:''}) |
| | | fieldList.push({type:'string',value:'orderCategory',text:'订åç±»å',dictCode:''}) |
| | | fieldList.push({type:'string',value:'materialNumber',text:'ç©æç¼å·',dictCode:''}) |
| | | fieldList.push({type:'string',value:'materialName',text:'ç©æåç§°',dictCode:''}) |
| | | fieldList.push({type:'datetime',value:'planStart',text:'计åå¼å§æ¥æ'}) |
| | | fieldList.push({type:'datetime',value:'planEnd',text:'计åç»ææ¥æ'}) |
| | | fieldList.push({type:'double',value:'orderQuantity',text:'è®¢åæ°é',dictCode:''}) |
| | | fieldList.push({type:'string',value:'productionUnit',text:'产ååä½',dictCode:'production_unit'}) |
| | | fieldList.push({type:'string',value:'orderStatus',text:'订åç¶æ',dictCode:'order_status'}) |
| | | fieldList.push({type:'string',value:'priority',text:'ä¼å
级',dictCode:'priority'}) |
| | | fieldList.push({type:'string',value:'processRoute',text:'计åå·¥èºè·¯çº¿',dictCode:''}) |
| | | fieldList.push({type:'string',value:'materialListCode',text:'计åç©ææ¸
å',dictCode:''}) |
| | | fieldList.push({type:'string',value:'factoryCode',text:'å·¥åç¼ç ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'factoryName',text:'å·¥ååç§°',dictCode:''}) |
| | | fieldList.push({type:'string',value:'customerOrderModel',text:'客æ·åå·',dictCode:''}) |
| | | fieldList.push({type:'string',value:'customer',text:'客æ·åç§°',dictCode:''}) |
| | | fieldList.push({type:'string',value:'remark',text:'夿³¨',dictCode:''}) |
| | | this.superFieldList = fieldList |
| | | } |
| | | getSuperFieldList() { |
| | | let fieldList = [] |
| | | fieldList.push({ type: 'int', value: 'delFlag', text: 'å 餿 è®°', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'orderCode', text: 'ç产订åå·', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'orderCategory', text: '订åç±»å', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'materialNumber', text: 'ç©æç¼å·', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'materialName', text: 'ç©æåç§°', dictCode: '' }) |
| | | fieldList.push({ type: 'datetime', value: 'planStart', text: '计åå¼å§æ¥æ' }) |
| | | fieldList.push({ type: 'datetime', value: 'planEnd', text: '计åç»ææ¥æ' }) |
| | | fieldList.push({ type: 'double', value: 'orderQuantity', text: 'è®¢åæ°é', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'productionUnit', text: '产ååä½', dictCode: 'production_unit' }) |
| | | fieldList.push({ type: 'string', value: 'orderStatus', text: '订åç¶æ', dictCode: 'order_status' }) |
| | | fieldList.push({ type: 'string', value: 'priority', text: 'ä¼å
级', dictCode: 'priority' }) |
| | | fieldList.push({ type: 'string', value: 'processRoute', text: '计åå·¥èºè·¯çº¿', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'materialListCode', text: '计åç©ææ¸
å', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'factoryCode', text: 'å·¥åç¼ç ', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'factoryName', text: 'å·¥ååç§°', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'customerOrderModel', text: '客æ·åå·', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'customer', text: '客æ·åç§°', dictCode: '' }) |
| | | fieldList.push({ type: 'string', value: 'remark', text: '夿³¨', dictCode: '' }) |
| | | this.superFieldList = fieldList |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
| | |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="å·¥åå·(ä»»å¡å·)"> |
| | | <j-input placeholder="请è¾å
¥å·¥åå·(ä»»å¡å·)" v-model="queryParam.workOrderCode"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="ç©æç¼å·"> |
| | | <j-input placeholder="请è¾å
¥ç©æç¼å·" v-model="queryParam.materialNumber"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="å·¥åç¶æ"> |
| | | <j-dict-select-tag dictCode="work_order_status" placeholder="请è¾å
¥å·¥åç¶æ" v-model="queryParam.workOrderStatus"></j-dict-select-tag> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="éåå¸äºº"> |
| | | <j-select-user-by-dep placeholder="请è¾å
¥éåå¸äºº" v-model="queryParam.republisher"></j-select-user-by-dep> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :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('æäº§å·¥å')">导åº</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> |
| | | <!-- é«çº§æ¥è¯¢åºå --> |
| | | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
| | | <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-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>项 |
| | |
| | | } |
| | | }, |
| | | { |
| | | title:'å 餿 è®°', |
| | | align:"center", |
| | | dataIndex: 'delFlag' |
| | | }, |
| | | { |
| | | title:'å·¥åå·(ä»»å¡å·)', |
| | | align:"center", |
| | | dataIndex: 'workOrderCode' |
| | |
| | | dataIndex: 'planQuantity' |
| | | }, |
| | | { |
| | | title:'产线ID(åä½)', |
| | | title:'产线(åä½)', |
| | | align:"center", |
| | | dataIndex: 'factoryId' |
| | | dataIndex: 'factoryId_dictText' |
| | | }, |
| | | { |
| | | title:'çç»ID', |
| | | title:'çç»', |
| | | align:"center", |
| | | dataIndex: 'groupId' |
| | | dataIndex: 'groupId_dictText' |
| | | }, |
| | | { |
| | | title:'çæ¬¡ID(åä½)', |
| | | title:'çæ¬¡(åä½)', |
| | | align:"center", |
| | | dataIndex: 'shiftId' |
| | | dataIndex: 'shiftId_dictText' |
| | | }, |
| | | { |
| | | title:'æäº§æ¥æ', |
| | |
| | | deleteBatch: "/mesproductionworkorder/mesProductionWorkOrder/deleteBatch", |
| | | exportXlsUrl: "/mesproductionworkorder/mesProductionWorkOrder/exportXls", |
| | | importExcelUrl: "mesproductionworkorder/mesProductionWorkOrder/importExcel", |
| | | |
| | | |
| | | }, |
| | | dictOptions:{}, |
| | | superFieldList:[], |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-card :bordered="false" title="æäº§å·¥å"> |
| | | <!-- æ¥è¯¢åºå --> |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="å·¥åå·(ä»»å¡å·)"> |
| | | <j-input placeholder="请è¾å
¥å·¥åå·(ä»»å¡å·)" v-model="queryParam.workOrderCode"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="ç©æç¼å·"> |
| | | <j-input placeholder="请è¾å
¥ç©æç¼å·" v-model="queryParam.materialNumber"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="å·¥åç¶æ"> |
| | | <j-dict-select-tag dictCode="work_order_status" placeholder="请è¾å
¥å·¥åç¶æ" v-model="queryParam.workOrderStatus"></j-dict-select-tag> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="éåå¸äºº"> |
| | | <j-select-user-by-dep placeholder="请è¾å
¥éåå¸äºº" v-model="queryParam.republisher"></j-select-user-by-dep> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :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> |
| | | |
| | | <div class="table-operator"> |
| | | <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> |
| | | <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}" |
| | | class="j-table-force-nowrap" |
| | | @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> |
| | | |
| | | <mes-production-work-order-modal ref="modalForm" @ok="modalFormOk"></mes-production-work-order-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import MesProductionWorkOrderModal from './modules/MesProductionWorkOrderModal' |
| | | import {filterMultiDictText} from '@/components/dict/JDictSelectUtil' |
| | | |
| | | export default { |
| | | name: 'MesProductionWorkOrderList', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | MesProductionWorkOrderModal |
| | | }, |
| | | data () { |
| | | return { |
| | | description: 'æäº§å·¥å管ç页é¢', |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title:'å·¥åå·(ä»»å¡å·)', |
| | | align:"center", |
| | | dataIndex: 'workOrderCode' |
| | | }, |
| | | { |
| | | title:'ç©æç¼ç ', |
| | | align:"center", |
| | | dataIndex: 'materialNumber' |
| | | }, |
| | | { |
| | | title:'ç©æåç§°', |
| | | align:"center", |
| | | dataIndex: 'materialName' |
| | | }, |
| | | { |
| | | title:'计åç产æ°é', |
| | | align:"center", |
| | | dataIndex: 'planQuantity' |
| | | }, |
| | | { |
| | | title:'产线(åä½)', |
| | | align:"center", |
| | | dataIndex: 'factoryId_dictText' |
| | | }, |
| | | { |
| | | title:'çç»', |
| | | align:"center", |
| | | dataIndex: 'groupId_dictText' |
| | | }, |
| | | { |
| | | title:'çæ¬¡(åä½)', |
| | | align:"center", |
| | | dataIndex: 'shiftId_dictText' |
| | | }, |
| | | { |
| | | title:'æäº§æ¥æ', |
| | | align:"center", |
| | | dataIndex: 'workOrderDate' |
| | | }, |
| | | { |
| | | title:'å·¥åç¶æ', |
| | | align:"center", |
| | | dataIndex: 'workOrderStatus_dictText' |
| | | }, |
| | | { |
| | | title:'å®é
æ¥å·¥æ°é', |
| | | align:"center", |
| | | dataIndex: 'actualQuantity' |
| | | }, |
| | | { |
| | | title:'åå¸äºº', |
| | | align:"center", |
| | | dataIndex: 'publisher' |
| | | }, |
| | | { |
| | | title:'å叿¶é´', |
| | | align:"center", |
| | | dataIndex: 'publishTime' |
| | | }, |
| | | { |
| | | title:'éåå¸äºº', |
| | | align:"center", |
| | | dataIndex: 'republisher' |
| | | }, |
| | | { |
| | | title:'éå叿¶é´', |
| | | align:"center", |
| | | dataIndex: 'republishTime' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | fixed:"right", |
| | | width:147, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/mesproductionworkorder/mesProductionWorkOrder/list", |
| | | delete: "/mesproductionworkorder/mesProductionWorkOrder/delete", |
| | | deleteBatch: "/mesproductionworkorder/mesProductionWorkOrder/deleteBatch", |
| | | exportXlsUrl: "/mesproductionworkorder/mesProductionWorkOrder/exportXls", |
| | | importExcelUrl: "mesproductionworkorder/mesProductionWorkOrder/importExcel", |
| | | |
| | | }, |
| | | dictOptions:{}, |
| | | superFieldList:[], |
| | | } |
| | | }, |
| | | created() { |
| | | this.getSuperFieldList(); |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | }, |
| | | }, |
| | | methods: { |
| | | initDictConfig(){ |
| | | }, |
| | | getSuperFieldList(){ |
| | | let fieldList=[]; |
| | | fieldList.push({type:'int',value:'delFlag',text:'å 餿 è®°',dictCode:''}) |
| | | fieldList.push({type:'string',value:'workOrderCode',text:'å·¥åå·(ä»»å¡å·)',dictCode:''}) |
| | | fieldList.push({type:'string',value:'materialNumber',text:'ç©æç¼ç ',dictCode:''}) |
| | | fieldList.push({type:'string',value:'materialName',text:'ç©æåç§°',dictCode:''}) |
| | | fieldList.push({type:'double',value:'planQuantity',text:'计åç产æ°é',dictCode:''}) |
| | | fieldList.push({type:'string',value:'factoryId',text:'产线ID(åä½)',dictCode:''}) |
| | | fieldList.push({type:'string',value:'groupId',text:'çç»ID',dictCode:''}) |
| | | fieldList.push({type:'string',value:'shiftId',text:'çæ¬¡ID(åä½)',dictCode:''}) |
| | | fieldList.push({type:'datetime',value:'workOrderDate',text:'æäº§æ¥æ'}) |
| | | fieldList.push({type:'string',value:'workOrderStatus',text:'å·¥åç¶æ',dictCode:'work_order_status'}) |
| | | fieldList.push({type:'double',value:'actualQuantity',text:'å®é
æ¥å·¥æ°é',dictCode:''}) |
| | | fieldList.push({type:'string',value:'publisher',text:'åå¸äºº',dictCode:''}) |
| | | fieldList.push({type:'datetime',value:'publishTime',text:'å叿¶é´'}) |
| | | fieldList.push({type:'string',value:'republisher',text:'éåå¸äºº',dictCode:''}) |
| | | fieldList.push({type:'datetime',value:'republishTime',text:'éå叿¶é´'}) |
| | | this.superFieldList = fieldList |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
| | |
| | | <div class="table-page-search-wrapper"> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="订åå·"> |
| | | <j-search-select-tag placeholder="请è¾å
¥è®¢åå·" v-model="queryParam.orderId" |
| | | dict="mes_production_order,order_code,id" |
| | | ></j-search-select-tag> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="å·¥åå·"> |
| | | <j-search-select-tag placeholder="请è¾å
¥å·¥åå·" v-model="queryParam.workOrderId" |
| | | dict="mes_production_work_order,work_order_code,id" |
| | | ></j-search-select-tag> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="产线åç§°"> |
| | | <j-search-select-tag |
| | | dict="base_factory,factory_name,id" |
| | | placeholder="è¯·éæ©äº§çº¿åç§°" |
| | | v-model="queryParam.factoryId" |
| | | display="factoryName" |
| | | codeField="id" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="æ¹æ¬¡å·"> |
| | | <j-input placeholder="请è¾å
¥æ¹æ¬¡å·" v-model="queryParam.batchNumber"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="æå·"> |
| | | <j-input placeholder="请è¾å
¥æå·" v-model="queryParam.palletNumber"></j-input> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="æ¥å·¥äºº"> |
| | | <j-select-user-by-dep placeholder="请è¾å
¥æ¥å·¥äºº" v-model="queryParam.reporter"></j-select-user-by-dep> |
| | | </a-form-item> |
| | | </a-col><a-col :xl="6" :lg="7" :md="8" :sm="24"> |
| | | <a-form-item label="线边ä»"> |
| | | <j-search-select-tag placeholder="请è¾å
¥çº¿è¾¹ä»åç§°" v-model="queryParam.warehouseId" |
| | | dict="base_line_side_warehouse,warehouse_name,id" |
| | | ></j-search-select-tag> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :xl="6" :lg="7" :md="8" :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> |
| | |
| | | |
| | | <!-- æä½æé®åºå --> |
| | | <div class="table-operator"> |
| | | <a-button @click="handleAdd" type="primary" icon="plus">æ°å¢</a-button> |
| | | <a-button type="primary" icon="download" @click="handleExportXls('工忥工')">导åº</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> |
| | | <!-- é«çº§æ¥è¯¢åºå --> |
| | | <j-super-query :fieldList="superFieldList" ref="superQueryModal" @handleSuperQuery="handleSuperQuery"></j-super-query> |
| | | <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> |
| | |
| | | } |
| | | }, |
| | | { |
| | | title:'å 餿 è®°', |
| | | align:"center", |
| | | dataIndex: 'delFlag' |
| | | }, |
| | | { |
| | | title:'订åID', |
| | | align:"center", |
| | | dataIndex: 'orderId' |
| | | dataIndex: 'orderId_dictText' |
| | | }, |
| | | { |
| | | title:'å·¥åID', |
| | | align:"center", |
| | | dataIndex: 'workOrderId' |
| | | dataIndex: 'workOrderId_dictText' |
| | | }, |
| | | { |
| | | title:'产线ID', |
| | | align:"center", |
| | | dataIndex: 'factoryId' |
| | | dataIndex: 'factoryId_dictText' |
| | | }, |
| | | { |
| | | title:'æ¹æ¬¡å·', |
| | |
| | | { |
| | | title:'线边ä»ID', |
| | | align:"center", |
| | | dataIndex: 'warehouseId' |
| | | dataIndex: 'warehouseId_dictText' |
| | | }, |
| | | { |
| | | title:'æåä¸çº¿æå°ç¶æ', |
| | |
| | | deleteBatch: "/mesworkreporting/mesWorkReporting/deleteBatch", |
| | | exportXlsUrl: "/mesworkreporting/mesWorkReporting/exportXls", |
| | | importExcelUrl: "mesworkreporting/mesWorkReporting/importExcel", |
| | | |
| | | |
| | | }, |
| | | dictOptions:{}, |
| | | superFieldList:[], |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="ç³è¯·åID" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="requestId"> |
| | | <a-input v-model="model.requestId" placeholder="请è¾å
¥ç³è¯·åID" ></a-input> |
| | | <a-form-model-item label="å·¥åID" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="workOrderId"> |
| | | <a-input v-model="model.workOrderId" placeholder="请è¾å
¥å·¥åID" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="设å¤ID" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="equipmentId"> |
| | | <a-input v-model="model.equipmentId" placeholder="请è¾å
¥è®¾å¤ID" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å·¥åºç¼ç " :labelCol="labelCol" :wrapperCol="wrapperCol" prop="processCode"> |
| | | <a-input v-model="model.processCode" placeholder="请è¾å
¥å·¥åºç¼ç " ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å·¥åºåç§°" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="processName"> |
| | | <a-input v-model="model.processName" placeholder="请è¾å
¥å·¥åºåç§°" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="ç论æå¨æ°é" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="specifiedQuantity"> |
| | | <a-input-number v-model="model.specifiedQuantity" placeholder="请è¾å
¥ç论æå¨æ°é" style="width: 100%" /> |
| | | <a-form-model-item label="æ¹æ¬¡å·" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="batchNumber"> |
| | | <a-input v-model="model.batchNumber" placeholder="请è¾å
¥æ¹æ¬¡å·" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å®é
æå¨æ°é" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="actualQuantity"> |
| | | <a-input-number v-model="model.actualQuantity" placeholder="请è¾å
¥å®é
æå¨æ°é" style="width: 100%" /> |
| | | <a-form-model-item label="æ°é" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="quantity"> |
| | | <a-input-number v-model="model.quantity" placeholder="请è¾å
¥æ°é" style="width: 100%" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="车é´å©ä½æ°é" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="remainingQuantity"> |
| | | <a-input-number v-model="model.remainingQuantity" placeholder="请è¾å
¥è½¦é´å©ä½æ°é" style="width: 100%" /> |
| | | <a-form-model-item label="å©ä½æ°é" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="remainingQuantity"> |
| | | <a-input-number v-model="model.remainingQuantity" placeholder="请è¾å
¥å©ä½æ°é" style="width: 100%" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | |
| | | validatorRules: { |
| | | }, |
| | | url: { |
| | | add: "/mesmaterialloading/mesMaterialLoading/add", |
| | | edit: "/mesmaterialloading/mesMaterialLoading/edit", |
| | | queryById: "/mesmaterialloading/mesMaterialLoading/queryById" |
| | | add: "/mes/mesMaterialLoading/add", |
| | | edit: "/mes/mesMaterialLoading/edit", |
| | | queryById: "/mes/mesMaterialLoading/queryById" |
| | | } |
| | | } |
| | | }, |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <a-spin :spinning="confirmLoading"> |
| | | <j-form-container :disabled="formDisabled"> |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail"> |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å 餿 è®°" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag"> |
| | | <a-input-number v-model="model.delFlag" placeholder="请è¾å
¥å 餿 è®°" style="width: 100%" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="ç³è¯·åID" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="requestId"> |
| | | <a-input v-model="model.requestId" placeholder="请è¾å
¥ç³è¯·åID" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="ç©æç¼ç " :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialNumber"> |
| | | <a-input v-model="model.materialNumber" placeholder="请è¾å
¥ç©æç¼ç " ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="ç©æåç§°" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="materialName"> |
| | | <a-input v-model="model.materialName" placeholder="请è¾å
¥ç©æåç§°" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="ç论æå¨æ°é" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="specifiedQuantity"> |
| | | <a-input-number v-model="model.specifiedQuantity" placeholder="请è¾å
¥ç论æå¨æ°é" style="width: 100%" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å®é
æå¨æ°é" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="actualQuantity"> |
| | | <a-input-number v-model="model.actualQuantity" placeholder="请è¾å
¥å®é
æå¨æ°é" style="width: 100%" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="车é´å©ä½æ°é" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="remainingQuantity"> |
| | | <a-input-number v-model="model.remainingQuantity" placeholder="请è¾å
¥è½¦é´å©ä½æ°é" style="width: 100%" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form-model> |
| | | </j-form-container> |
| | | </a-spin> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import { httpAction, getAction } from '@/api/manage' |
| | | import { validateDuplicateValue } from '@/utils/util' |
| | | |
| | | export default { |
| | | name: 'MesMaterialTransferDetailForm', |
| | | components: { |
| | | }, |
| | | props: { |
| | | //表åç¦ç¨ |
| | | disabled: { |
| | | type: Boolean, |
| | | default: false, |
| | | required: false |
| | | } |
| | | }, |
| | | data () { |
| | | return { |
| | | model:{ |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 5 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 16 }, |
| | | }, |
| | | confirmLoading: false, |
| | | validatorRules: { |
| | | }, |
| | | url: { |
| | | add: "/mes/mesMaterialTransferDetail/add", |
| | | edit: "/mes/mesMaterialTransferDetail/edit", |
| | | queryById: "/mes/mesMaterialTransferDetail/queryById" |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | formDisabled(){ |
| | | return this.disabled |
| | | }, |
| | | }, |
| | | created () { |
| | | //å¤ä»½modelåå§å¼ |
| | | this.modelDefault = JSON.parse(JSON.stringify(this.model)); |
| | | }, |
| | | methods: { |
| | | add () { |
| | | this.edit(this.modelDefault); |
| | | }, |
| | | edit (record) { |
| | | this.model = Object.assign({}, record); |
| | | this.visible = true; |
| | | }, |
| | | submitForm () { |
| | | const that = this; |
| | | // 触å表åéªè¯ |
| | | this.$refs.form.validate(valid => { |
| | | if (valid) { |
| | | that.confirmLoading = true; |
| | | let httpurl = ''; |
| | | let method = ''; |
| | | if(!this.model.id){ |
| | | httpurl+=this.url.add; |
| | | method = 'post'; |
| | | }else{ |
| | | httpurl+=this.url.edit; |
| | | method = 'put'; |
| | | } |
| | | httpAction(httpurl,this.model,method).then((res)=>{ |
| | | if(res.success){ |
| | | that.$message.success(res.message); |
| | | that.$emit('ok'); |
| | | }else{ |
| | | that.$message.warning(res.message); |
| | | } |
| | | }).finally(() => { |
| | | that.confirmLoading = false; |
| | | }) |
| | | } |
| | | |
| | | }) |
| | | }, |
| | | } |
| | | } |
| | | </script> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="width" |
| | | :visible="visible" |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | <mes-material-transfer-detail-form ref="realForm" @ok="submitCallback" :disabled="disableSubmit"></mes-material-transfer-detail-form> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import MesMaterialTransferDetailForm from './MesMaterialTransferDetailForm' |
| | | export default { |
| | | name: 'MesMaterialTransferDetailModal', |
| | | components: { |
| | | MesMaterialTransferDetailForm |
| | | }, |
| | | data () { |
| | | return { |
| | | title:'', |
| | | width:896, |
| | | visible: false, |
| | | disableSubmit: false |
| | | } |
| | | }, |
| | | methods: { |
| | | add () { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.add(); |
| | | }) |
| | | }, |
| | | edit (record) { |
| | | this.visible=true |
| | | this.$nextTick(()=>{ |
| | | this.$refs.realForm.edit(record); |
| | | }) |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | handleOk () { |
| | | this.$refs.realForm.submitForm(); |
| | | }, |
| | | submitCallback(){ |
| | | this.$emit('ok'); |
| | | this.visible = false; |
| | | }, |
| | | handleCancel () { |
| | | this.close() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail"> |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å 餿 è®°" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag"> |
| | | <a-input-number v-model="model.delFlag" placeholder="请è¾å
¥å 餿 è®°" style="width: 100%" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="ç产订åå·" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="orderCode"> |
| | | <a-input v-model="model.orderCode" placeholder="请è¾å
¥ç产订åå·" ></a-input> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="订åç±»å" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="orderCategory"> |
| | | <a-input v-model="model.orderCategory" placeholder="请è¾å
¥è®¢åç±»å" ></a-input> |
| | | <j-dict-select-tag v-model="model.orderCategory" dictCode="orderCategory" placeholder="请è¾å
¥è®¢åç±»å" ></j-dict-select-tag> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | |
| | | that.confirmLoading = false; |
| | | }) |
| | | } |
| | | |
| | | |
| | | }) |
| | | }, |
| | | } |
| | |
| | | <a-form-model ref="form" :model="model" :rules="validatorRules" slot="detail"> |
| | | <a-row> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å 餿 è®°" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="delFlag"> |
| | | <a-input-number v-model="model.delFlag" placeholder="请è¾å
¥å 餿 è®°" style="width: 100%" /> |
| | | </a-form-model-item> |
| | | </a-col> |
| | | <a-col :span="12"> |
| | | <a-form-model-item label="å·¥åå·(ä»»å¡å·)" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="workOrderCode"> |
| | | <a-input v-model="model.workOrderCode" placeholder="请è¾å
¥å·¥åå·(ä»»å¡å·)" ></a-input> |
| | | </a-form-model-item> |
| | |
| | | that.confirmLoading = false; |
| | | }) |
| | | } |
| | | |
| | | |
| | | }) |
| | | }, |
| | | } |