Merge remote-tracking branch 'origin/master'
| | |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="6" :sm="8"> |
| | | <a-form-item label="åå
·åç§°"> |
| | | <a-input placeholder="请è¾å
¥åå
·åç§°" v-model="queryParam.cuttingName" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-form-item label="åå
·åç§°"> |
| | | <a-input placeholder="请è¾å
¥åå
·åç§°" v-model="queryParam.cuttingName" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="6" :sm="8"> |
| | | <a-form-item label="åå
·åç±»"> |
| | | <j-search-select-tag |
| | | placeholder="è¯·éæ©åå
·åç±»" |
| | | v-model="queryParam.cuttingCategory" |
| | | dict="cutting_category" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <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> |
| | | <a-form-item label="åå
·åç±»"> |
| | | <j-search-select-tag |
| | | placeholder="è¯·éæ©åå
·åç±»" |
| | | v-model="queryParam.cuttingCategory" |
| | | dict="cutting_category" |
| | | /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col :md="6" :sm="8"> |
| | | <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> |
| | |
| | | <!-- æä½æé®åºå --> |
| | | <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-upload |
| | | name="file" |
| | | :showUploadList="false" |
| | | :multiple="false" |
| | | :headers="tokenHeader" |
| | | :action="importExcelUrl" |
| | | @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import">导å
¥</a-button> |
| | | </a-upload> |
| | | </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> |
| | | |
| | |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="id" |
| | | :rowKey="record => record.id" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="ipagination" |
| | | :loading="loading" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange,type:'radio'}" |
| | | :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type:'radio'}" |
| | | class="j-table-force-nowrap" |
| | | :customRow="customRow" |
| | | @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;"/> |
| | | <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 |
| | |
| | | |
| | | <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> |
| | | </a-dropdown> |
| | | </span> |
| | | |
| | | </a-table> |
| | | </div> |
| | | |
| | | <a-tabs defaultActiveKey="1"> |
| | | <a-tab-pane tab="æ©å±å±æ§" key="1"> |
| | | <cutting-properties-list ref="cuttingPropertiesList"></cutting-properties-list> |
| | | </a-tab-pane> |
| | | <!-- <a-tab-pane tab="é¢å®å¯¿å½" key="2"> |
| | | <rated-life-list ref="ratedLifeList"></rated-life-list> |
| | | </a-tab-pane> --> |
| | | </a-tabs> |
| | | <!-- tableåºå-end --> |
| | | <cutting-tool-modal ref="modalForm" @ok="modalFormOk"></cutting-tool-modal> |
| | | |
| | | <cutting-tool-modal ref="modalForm" @ok="handleOk"></cutting-tool-modal> |
| | | </a-card> |
| | | </template> |
| | | |
| | | <script> |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import CuttingToolModal from './modules/CuttingToolModal' |
| | | import CuttingPropertiesList from './CuttingPropertiesList' |
| | | import JDictSelectTag from '@/components/dict/JDictSelectTag' |
| | | import JSearchSelectTag from '@/components/dict/JSearchSelectTag' |
| | | |
| | | import '@/assets/less/TableExpand.less' |
| | | import { mixinDevice } from '@/utils/mixin' |
| | | import { JeecgListMixin } from '@/mixins/JeecgListMixin' |
| | | import CuttingToolModal from './modules/CuttingToolModal' |
| | | import CuttingPropertiesList from './CuttingPropertiesList' |
| | | import JDictSelectTag from '@/components/dict/JDictSelectTag' |
| | | import JSearchSelectTag from '@/components/dict/JSearchSelectTag' |
| | | |
| | | export default { |
| | | name: 'CuttingToolList', |
| | | mixins:[JeecgListMixin, mixinDevice], |
| | | components: { |
| | | CuttingToolModal,CuttingPropertiesList, JDictSelectTag, |
| | | export default { |
| | | name: 'CuttingToolList', |
| | | mixins: [JeecgListMixin, mixinDevice], |
| | | components: { |
| | | CuttingToolModal, |
| | | CuttingPropertiesList, |
| | | JDictSelectTag, |
| | | JSearchSelectTag |
| | | }, |
| | | 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: 'cuttingCode' |
| | | }, |
| | | { |
| | | title:'åå
·åç§°', |
| | | align:"center", |
| | | dataIndex: 'cuttingName' |
| | | }, |
| | | { |
| | | title:'åå
·åç±»', |
| | | align:"center", |
| | | dataIndex: 'cuttingCategory' |
| | | }, |
| | | { |
| | | title:'åæ¾ä½ç½®', |
| | | align:"center", |
| | | dataIndex: 'storeLocation' |
| | | }, |
| | | { |
| | | title:'ä¾åºå', |
| | | align:"center", |
| | | dataIndex: 'supplierId' |
| | | }, |
| | | { |
| | | title:'æå°å
è£
åä½', |
| | | align:"center", |
| | | dataIndex: 'minimumPackageUnit' |
| | | }, |
| | | { |
| | | title:'åå
·æè´¨', |
| | | align:"center", |
| | | dataIndex: 'cuttingMaterial' |
| | | }, |
| | | { |
| | | title:'åå·', |
| | | align:"center", |
| | | dataIndex: 'cuttingModel' |
| | | }, |
| | | { |
| | | title:'å¾å·', |
| | | align:"center", |
| | | dataIndex: 'drawingNumber' |
| | | }, |
| | | { |
| | | title:'åºåé¢è¦å¼', |
| | | align:"center", |
| | | dataIndex: 'inventoryWarning' |
| | | }, |
| | | { |
| | | title:'夿³¨', |
| | | align:"center", |
| | | dataIndex: 'remark' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align:"center", |
| | | fixed:"right", |
| | | width:147, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/cms/cuttingTool/getCuttingToolList", |
| | | delete: "/cms/cuttingTool/delete", |
| | | deleteBatch: "/cms/cuttingTool/deleteBatch", |
| | | exportXlsUrl: "/cms/cuttingTool/exportXls", |
| | | importExcelUrl: "cms/cuttingTool/importExcel", |
| | | |
| | | }, |
| | | data() { |
| | | return { |
| | | description: 'åå
·ä¿¡æ¯ç®¡ç页é¢', |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key: 'rowIndex', |
| | | width: 60, |
| | | align: "center", |
| | | customRender: (t, r, index) => parseInt(index) + 1 |
| | | }, |
| | | dictOptions:{}, |
| | | superFieldList:[], |
| | | } |
| | | }, |
| | | created() { |
| | | this.getSuperFieldList(); |
| | | }, |
| | | computed: { |
| | | importExcelUrl: function(){ |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | { |
| | | title: 'åå
·ç¼ç ', |
| | | align: "center", |
| | | dataIndex: 'cuttingCode' |
| | | }, |
| | | { |
| | | title: 'åå
·åç§°', |
| | | align: "center", |
| | | dataIndex: 'cuttingName' |
| | | }, |
| | | { |
| | | title: 'åå
·åç±»', |
| | | align: "center", |
| | | dataIndex: 'cuttingCategory' |
| | | }, |
| | | { |
| | | title: 'åæ¾ä½ç½®', |
| | | align: "center", |
| | | dataIndex: 'storeLocation' |
| | | }, |
| | | { |
| | | title: 'ä¾åºå', |
| | | align: "center", |
| | | dataIndex: 'supplierId' |
| | | }, |
| | | { |
| | | title: 'æå°å
è£
åä½', |
| | | align: "center", |
| | | dataIndex: 'minimumPackageUnit' |
| | | }, |
| | | { |
| | | title: 'åå
·æè´¨', |
| | | align: "center", |
| | | dataIndex: 'cuttingMaterial' |
| | | }, |
| | | { |
| | | title: 'åå·', |
| | | align: "center", |
| | | dataIndex: 'cuttingModel' |
| | | }, |
| | | { |
| | | title: 'å¾å·', |
| | | align: "center", |
| | | dataIndex: 'drawingNumber' |
| | | }, |
| | | { |
| | | title: 'åºåé¢è¦å¼', |
| | | align: "center", |
| | | dataIndex: 'inventoryWarning' |
| | | }, |
| | | { |
| | | title: '夿³¨', |
| | | align: "center", |
| | | dataIndex: 'remark' |
| | | }, |
| | | { |
| | | title: 'æä½', |
| | | dataIndex: 'action', |
| | | align: "center", |
| | | fixed: "right", |
| | | width: 147, |
| | | scopedSlots: { customRender: 'action' } |
| | | } |
| | | ], |
| | | url: { |
| | | list: "/cms/cuttingTool/getCuttingToolList", |
| | | delete: "/cms/cuttingTool/delete", |
| | | deleteBatch: "/cms/cuttingTool/deleteBatch", |
| | | exportXlsUrl: "/cms/cuttingTool/exportXls", |
| | | importExcelUrl: "cms/cuttingTool/importExcel" |
| | | }, |
| | | }, |
| | | methods: { |
| | | customRow(record) { |
| | | return { |
| | | dictOptions: {}, |
| | | superFieldList: [] |
| | | } |
| | | }, |
| | | computed: { |
| | | importExcelUrl() { |
| | | return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`; |
| | | } |
| | | }, |
| | | created() { |
| | | this.getSuperFieldList(); |
| | | }, |
| | | methods: { |
| | | customRow(record) { |
| | | return { |
| | | on: { |
| | | click: e => { |
| | | this.onSelectChange(record.id.split(","), [record]); |
| | | click: () => { |
| | | this.onSelectChange([record.id], [record]); |
| | | } |
| | | } |
| | | }; |
| | | }, |
| | | onSelectChange(selectedRowKeys) { |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | this.$refs.cuttingPropertiesList.getCuttingProperties(selectedRowKeys[0]); |
| | | }, |
| | | handleEdit: function (record) { |
| | | this.$refs.modalForm.edit(record) |
| | | this.$refs.modalForm.title = 'ç¼è¾' |
| | | this.$refs.modalForm.disableSubmit = false |
| | | onSelectChange(selectedRowKeys) { |
| | | this.selectedRowKeys = selectedRowKeys; |
| | | if (selectedRowKeys.length > 0) { |
| | | this.$refs.cuttingPropertiesList.getCuttingProperties(selectedRowKeys[0]); |
| | | } |
| | | }, |
| | | handleEdit(record) { |
| | | this.$refs.modalForm.edit(record); |
| | | this.$refs.modalForm.title = 'ç¼è¾'; |
| | | this.$refs.modalForm.disableSubmit = false; |
| | | }, |
| | | handleAdd() { |
| | | this.$refs.modalForm.add() |
| | | this.$refs.modalForm.title = 'æ°å¢' |
| | | this.$refs.modalForm.disableSubmit = false |
| | | this.$refs.modalForm.add(); |
| | | this.$refs.modalForm.title = 'æ°å¢'; |
| | | this.$refs.modalForm.disableSubmit = false; |
| | | }, |
| | | handleDetail:function(record){ |
| | | handleDetail(record) { |
| | | this.$refs.modalForm.edit(record); |
| | | this.$refs.modalForm.title="详æ
"; |
| | | this.$refs.modalForm.title = "详æ
"; |
| | | this.$refs.modalForm.disableSubmit = true; |
| | | }, |
| | | searchQuery() { |
| | |
| | | this.loadData(); |
| | | }, |
| | | searchReset() { |
| | | this.queryParam.cuttingCode = ''; |
| | | this.queryParam.cuttingName = ''; |
| | | this.queryParam.cuttingCategory = ''; |
| | | this.queryParam = { |
| | | cuttingCode: '', |
| | | cuttingName: '', |
| | | cuttingCategory: '' |
| | | }; |
| | | this.$refs.cuttingPropertiesList.getCuttingProperties("-1"); |
| | | this.loadData(); |
| | | }, |
| | | } |
| | | handleOk() { |
| | | // æ°å¢/ä¿®æ¹ æåæ¶ï¼éè½½å表 |
| | | this.loadData(); |
| | | //æ¸
空å表éä¸ |
| | | this.onClearSelected() |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | @import '~@assets/less/common.less'; |
| | | @import '~@assets/less/common.less'; |
| | | </style> |
| | |
| | | initDictConfig(){ |
| | | }, |
| | | handleAdd(){ |
| | | this.$refs.modalForm.add() |
| | | this.$refs.modalForm.title = 'æ°å¢' |
| | | this.$refs.modalForm.disableSubmit = false |
| | | this.$refs.modalForm.add() |
| | | this.$refs.modalForm.title = 'æ°å¢' |
| | | this.$refs.modalForm.disableSubmit = false |
| | | }, |
| | | getSuperFieldList(){ |
| | | let fieldList=[]; |
| | |
| | | slot-scope='text, record, index' |
| | | > |
| | | <div :key="col.dataIndex"> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <a-input |
| | | :value="text" |
| | |
| | | } |
| | | this.$nextTick(() => { |
| | | this.form.setFieldsValue( |
| | | pick(this.model, 'cuttingCode', 'cuttingName', 'cuttingCategory', 'storeLocation','cuttingModel', 'supplierId', 'minimumPackageUnit', |
| | | pick(this.model, 'cuttingCode', 'cuttingName', 'cuttingCategory', 'storeLocation','cuttingModel', 'supplierId', 'minimumPackageUnit', |
| | | 'cuttingMaterial','drawingNumber','inventoryWarning','remark') |
| | | ) |
| | | }) |
| | |
| | | this.deletePropertiesIds.push(record.id); |
| | | } |
| | | }, |
| | | |
| | | handleOk() { |
| | | const that = this |
| | | let dataSource = that.dataSource; |
| | |
| | | handleCancel() { |
| | | this.close() |
| | | }, |
| | | |
| | | |
| | | //æ·»å æ©å±å±æ§ |
| | | addPropertiesList() { |
| | | const temp = [...(this.dataSource || [])] |
| | |
| | | </template> |
| | | |
| | | <span slot="action" slot-scope="text, record"> |
| | | <a @click="handleDetail(record)">详æ
</a> |
| | | <span v-if="record.workOrderStatus === 'PUBLISHED' || record.workOrderStatus === 'EXECUTING'"> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleRePublish(record)">éåå¸</a> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'PUBLISHED'"> |
| | | <a-divider type="vertical" /> |
| | | <a-popconfirm title="ç¡®å®å¼å§æ§è¡å?" @confirm="() => handleExecute(record.id)"> |
| | | <a>æ§è¡</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'EXECUTING'"> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleWorkReport(record)">æ¥å·¥</a> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'NEW'"> |
| | | <a-divider type="vertical" /> |
| | | <a-popconfirm title="ç¡®å®åå¸å?" @confirm="() => handlePublish(record.id)"> |
| | | <a>åå¸</a> |
| | | </a-popconfirm> |
| | | <a-divider type="vertical" /> |
| | | <span v-if="record.workOrderStatus === 'NEW'"> |
| | | <a-popconfirm title="ç¡®å®åå¸å?" @confirm="() => handlePublish(record.id)"> |
| | | <a>åå¸</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'PUBLISHED' || record.workOrderStatus === 'EXECUTING'"> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleRePublish(record)">éåå¸</a> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'PUBLISHED' && record.completenessCheckFlag === '0'"> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleCompletenessCheck(record)">é½å¥æ§æ£æ¥</a> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'PUBLISHED' && record.equipmentInspectionFlag === '0'"> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleCompletenessCheck(record)">设å¤ç¹æ£</a> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'PUBLISHED' && record.processInspectionFlag === '0'"> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleCompletenessCheck(record)">å·¥èºç¹æ£</a> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'PUBLISHED' && record.completenessCheckFlag === '1' && record.equipmentInspectionFlag === '1' && record.processInspectionFlag === '1'"> |
| | | <a-divider type="vertical" /> |
| | | <a-popconfirm title="ç¡®å®å¼å§æ§è¡å?" @confirm="() => handleExecute(record.id)"> |
| | | <a>æ§è¡</a> |
| | | </a-popconfirm> |
| | | </span> |
| | | <span v-if="record.workOrderStatus === 'EXECUTING'"> |
| | | <a-divider type="vertical" /> |
| | | <a @click="handleWorkReport(record)">æ¥å·¥</a> |
| | | </span> |
| | | <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 v-if="record.workOrderStatus === 'NEW'"> |
| | | <a @click="handleEdit(record)">ç¼è¾</a> |
| | | </a-menu-item> |
| | | <a-menu-item> |
| | | <a-menu-item v-if="record.workOrderStatus === 'NEW'"> |
| | | <a-popconfirm title="ç¡®å®å é¤å?" @confirm="() => handleDelete(record.id)"> |
| | | <a>å é¤</a> |
| | | <a>å é¤</a> |
| | | </a-popconfirm> |
| | | </a-menu-item> |
| | | </a-menu> |
| | | </a-dropdown> |
| | | </span> |
| | | |
| | | </span> |
| | | </a-table> |
| | |
| | | <mes-production-order-modal ref="MesProductionOrderModal"></mes-production-order-modal> |
| | | <MesMaterialUnloadingList ref="MesMaterialUnloadingList"></MesMaterialUnloadingList> |
| | | <MesMaterialTransferDetailList ref="MesMaterialTransferDetailList"></MesMaterialTransferDetailList> |
| | | <MesProductionWorkOrderScheduleModal ref="MesProductionWorkOrderScheduleModal"></MesProductionWorkOrderScheduleModal> |
| | | <MesProductionWorkOrderScheduleModal ref="MesProductionWorkOrderScheduleModal" @ok="modalFormOk"></MesProductionWorkOrderScheduleModal> |
| | | <MesProductionWorkOrderRepublishModal ref="MesProductionWorkOrderRepublishModal" @ok="modalFormOk"></MesProductionWorkOrderRepublishModal> |
| | | <MesProductionWorkOrderReportModal ref="MesProductionWorkOrderReportModal" @ok="modalFormOk"></MesProductionWorkOrderReportModal> |
| | | <MesProductionWorkOrderCompletenessCheckModal ref="MesProductionWorkOrderCompletenessCheckModal" @ok="modalFormOk"></MesProductionWorkOrderCompletenessCheckModal> |
| | | </a-card> |
| | | </template> |
| | | |
| | |
| | | import MesProductionWorkOrderScheduleModal from '@views/mes/modules/MesProductionWorkOrderScheduleModal.vue' |
| | | import MesProductionWorkOrderRepublishModal from '@views/mes/modules/MesProductionWorkOrderRepublishModal.vue' |
| | | import MesProductionWorkOrderReportModal from '@views/mes/modules/MesProductionWorkOrderReportModal.vue' |
| | | import MesProductionWorkOrderCompletenessCheckModal from '@views/mes/modules/MesProductionWorkOrderCompletenessCheckModal.vue' |
| | | |
| | | export default { |
| | | name: 'MesProductionWorkOrderList', |
| | |
| | | MesProductionWorkOrderScheduleModal, |
| | | MesProductionWorkOrderRepublishModal, |
| | | MesProductionWorkOrderReportModal, |
| | | MesProductionWorkOrderCompletenessCheckModal |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | handleWorkReport(record) { |
| | | this.$refs.MesProductionWorkOrderReportModal.add(record) |
| | | }, |
| | | handleCompletenessCheck(record) { |
| | | this.$refs.MesProductionWorkOrderCompletenessCheckModal.check(record) |
| | | }, |
| | | async handleTransferDetail(row){ |
| | | console.log('row---->',row) |
| | | const transferDetailResult = await getAction(this.url.queryTransferDetailBy,{'requestId':row.id}) |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <j-modal |
| | | :title="title" |
| | | :width="width" |
| | | :visible="visible" |
| | | switchFullscreen |
| | | @ok="handleOk" |
| | | :okButtonProps="{ class:{'jee-hidden': disableSubmit} }" |
| | | @cancel="handleCancel" |
| | | cancelText="å
³é"> |
| | | |
| | | <a-table |
| | | ref="table" |
| | | size="middle" |
| | | :scroll="{x:true}" |
| | | bordered |
| | | rowKey="" |
| | | :columns="columns" |
| | | :dataSource="dataSource" |
| | | :pagination="false" |
| | | :loading="loading" |
| | | class="j-table-force-nowrap"> |
| | | |
| | | <template slot="checkFlag" slot-scope="text, record"> |
| | | <span v-if="text === '0'" style="color: red">å¦</span> |
| | | <span v-if="text === '1'" style="color: green">æ¯</span> |
| | | </template> |
| | | </a-table> |
| | | </j-modal> |
| | | </template> |
| | | |
| | | <script> |
| | | import { postAction, getAction } from '@api/manage' |
| | | |
| | | export default { |
| | | name: 'MesProductionWorkOrderReportModal', |
| | | data () { |
| | | return { |
| | | title: 'é½å¥æ§æ£æ¥', |
| | | width: 800, |
| | | visible: false, |
| | | loading: false, |
| | | disableSubmit: false, |
| | | model: {}, |
| | | validatorRules: { |
| | | }, |
| | | labelCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 6 }, |
| | | }, |
| | | wrapperCol: { |
| | | xs: { span: 24 }, |
| | | sm: { span: 18 }, |
| | | }, |
| | | dataSource: [], |
| | | columns: [ |
| | | { |
| | | title: '#', |
| | | dataIndex: '', |
| | | key:'rowIndex', |
| | | width:60, |
| | | align:"center", |
| | | customRender:function (t,r,index) { |
| | | return parseInt(index)+1; |
| | | } |
| | | }, |
| | | { |
| | | title:'ç©æç¼å·', |
| | | align:"center", |
| | | dataIndex: 'materialNumber' |
| | | }, |
| | | { |
| | | title:'ç©æåç§°', |
| | | align:"center", |
| | | dataIndex: 'materialName' |
| | | }, |
| | | { |
| | | title:'éæ±æ°é', |
| | | align:"center", |
| | | dataIndex: 'requiredQuantity' |
| | | }, |
| | | { |
| | | title:'å®é
æ°é', |
| | | align:"center", |
| | | dataIndex: 'actualQuantity' |
| | | }, |
| | | { |
| | | title:'åºæ¬åä½', |
| | | align:"center", |
| | | dataIndex: 'productionUnit' |
| | | }, |
| | | { |
| | | title:'æ¯å¦é½å¤', |
| | | align:"center", |
| | | dataIndex: 'checkFlag', |
| | | scopedSlots: { customRender: 'checkFlag' } |
| | | }, |
| | | // { |
| | | // title: 'æä½', |
| | | // dataIndex: 'action', |
| | | // align:"center", |
| | | // fixed:"right", |
| | | // width:147, |
| | | // scopedSlots: { customRender: 'action' } |
| | | // } |
| | | ], |
| | | url: { |
| | | report: '/mesworkreporting/mesWorkReporting/add', |
| | | selectReportWorkOrderList: '/mes/productionOrder/selectReportWorkOrderList', |
| | | workOrderCompletenessCheck: '/mesproductionworkorder/mesProductionWorkOrder/workOrderCompletenessCheck', |
| | | add: '/meskittingcompletenesscheck/mesKittingCompletenessCheck/addBatch' |
| | | }, |
| | | workOrderOptions: [] |
| | | } |
| | | }, |
| | | computed: { |
| | | formDisabled(){ |
| | | return this.disabled |
| | | }, |
| | | }, |
| | | methods: { |
| | | check (record) { |
| | | this.loading = true |
| | | getAction(this.url.workOrderCompletenessCheck, {id: record.id}).then(res => { |
| | | if (res.success) { |
| | | res.result.map(item => item.workOrderId = record.id) |
| | | this.dataSource = res.result |
| | | } |
| | | }).finally(() => { |
| | | this.loading = false |
| | | }) |
| | | this.visible = true |
| | | }, |
| | | close () { |
| | | this.$emit('close'); |
| | | this.visible = false; |
| | | }, |
| | | handleOk () { |
| | | postAction(this.url.add, this.dataSource).then(res => { |
| | | if (res.success) { |
| | | this.$message.success('æ£æ¥ç»æå·²ä¿å') |
| | | this.submitCallback() |
| | | } else { |
| | | this.$message.warning(res.message) |
| | | } |
| | | }) |
| | | }, |
| | | submitCallback(){ |
| | | this.$emit('ok'); |
| | | this.visible = false; |
| | | }, |
| | | handleCancel () { |
| | | this.close() |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | import { postAction, getAction } from '@api/manage' |
| | | |
| | | export default { |
| | | name: 'MesProductionWorkOrderRepublishModal', |
| | | name: 'MesProductionWorkOrderReportModal', |
| | | data () { |
| | | return { |
| | | title: 'æ¥å·¥', |
| | |
| | | sm: { span: 18 }, |
| | | }, |
| | | url: { |
| | | republish: '/mesproductionworkorder/mesProductionWorkOrder/republish', |
| | | report: '/mesworkreporting/mesWorkReporting/add', |
| | | selectReportWorkOrderList: '/mes/productionOrder/selectReportWorkOrderList' |
| | | }, |
| | | workOrderOptions: [] |
| | |
| | | if (valid) { |
| | | this.confirmLoading = true |
| | | let formData = { |
| | | id: this.model.id, |
| | | planQuantity: this.model.planQuantity, |
| | | republishReason: this.model.republishReason |
| | | orderId: this.model.orderId, |
| | | workOrderId: this.model.id, |
| | | factoryId: this.model.factoryId, |
| | | quantity: this.model.quantity |
| | | } |
| | | postAction(this.url.republish, formData).then(res => { |
| | | postAction(this.url.report, formData).then(res => { |
| | | if (res.success) { |
| | | this.$message.success(res.message) |
| | | this.submitCallback() |
| | |
| | | methods: { |
| | | add() { |
| | | this.model = {}; |
| | | this.model.seqLength = 4; |
| | | // this.model.seqLength = 4; |
| | | this.editable = false; |
| | | this.visible = true |
| | | }, |