|
|
|
@ -1,5 +1,6 @@ |
|
|
|
|
<template> |
|
|
|
|
<a-card :bordered="false"> |
|
|
|
|
<p style="font-size: 30px;color:#333;padding-left: 40%">{{biaoTi}}</p> |
|
|
|
|
<!-- 查询区域 --> |
|
|
|
|
<div class="table-page-search-wrapper"> |
|
|
|
|
<a-form layout="inline" @keyup.enter.native="searchQuery"> |
|
|
|
@ -22,7 +23,8 @@ |
|
|
|
|
|
|
|
|
|
<!-- 操作按钮区域 --> |
|
|
|
|
<div class="table-operator"> |
|
|
|
|
<a-button @click="handleAdd" type="primary" icon="plus">新增</a-button> |
|
|
|
|
<a-button @click="fanhui" type="primary" icon="plus">返回</a-button> |
|
|
|
|
<!-- <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>--> |
|
|
|
@ -81,9 +83,10 @@ |
|
|
|
|
<span slot="action" slot-scope="text, record"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> |
|
|
|
|
<a>删除</a> |
|
|
|
|
</a-popconfirm> |
|
|
|
|
<!-- <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">--> |
|
|
|
|
<!-- <a>删除</a>--> |
|
|
|
|
<!-- </a-popconfirm>--> |
|
|
|
|
<a @click="openDetail(record.processId)">详情</a> |
|
|
|
|
<a-divider type="vertical" /> |
|
|
|
|
<a @click="up(record.id)">升序</a> |
|
|
|
|
<a-divider type="vertical" /> |
|
|
|
@ -92,7 +95,7 @@ |
|
|
|
|
|
|
|
|
|
</a-table> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<ZyProcessDetail ref="zyProcessDetail"></ZyProcessDetail> |
|
|
|
|
<zy-product-process-modal @valueChange="valueChange" ref="modalForm" @ok="modalFormOk"></zy-product-process-modal> |
|
|
|
|
</a-card> |
|
|
|
|
</template> |
|
|
|
@ -105,17 +108,19 @@ |
|
|
|
|
import ZyProductProcessModal from './modules/ZyProductProcessModal' |
|
|
|
|
import {getAction} from "@api/manage"; |
|
|
|
|
import {filterObj} from "@/utils/util"; |
|
|
|
|
|
|
|
|
|
import ZyProcessDetail from '@/views/process/modules/ZyProcessDetail' |
|
|
|
|
export default { |
|
|
|
|
name: 'ZyProductProcessList', |
|
|
|
|
mixins:[JeecgListMixin, mixinDevice], |
|
|
|
|
components: { |
|
|
|
|
ZyProductProcessModal |
|
|
|
|
ZyProductProcessModal, |
|
|
|
|
ZyProcessDetail |
|
|
|
|
}, |
|
|
|
|
data () { |
|
|
|
|
return { |
|
|
|
|
description: '产品工序管理页面', |
|
|
|
|
processId:'', |
|
|
|
|
biaoTi:'', |
|
|
|
|
// 表头 |
|
|
|
|
columns: [ |
|
|
|
|
{ |
|
|
|
@ -175,6 +180,10 @@ |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
openDetail(id) { |
|
|
|
|
this.$refs.zyProcessDetail.showModal(id) |
|
|
|
|
// this.$children[0].showModal(id) |
|
|
|
|
}, |
|
|
|
|
up(id){ |
|
|
|
|
getAction(this.url.up,{id:id}).then((res)=>{ |
|
|
|
|
if(res.success){ |
|
|
|
@ -208,6 +217,7 @@ |
|
|
|
|
loadParameter() { |
|
|
|
|
if (this.loadRouteType === false) { |
|
|
|
|
this.id = this.$route.query.id; |
|
|
|
|
this.biaoTi=this.$route.query.productName+"产品工序管理"; |
|
|
|
|
console.log("***********") |
|
|
|
|
this.loadRouteType = true; |
|
|
|
|
} |
|
|
|
@ -261,6 +271,12 @@ |
|
|
|
|
this.processId = '' |
|
|
|
|
this.loadData(1); |
|
|
|
|
}, |
|
|
|
|
fanhui(){ |
|
|
|
|
this.$router.push({ |
|
|
|
|
/*返回产品*/ |
|
|
|
|
path: '/WorkProduct',/*在引号中填写返回vue*/ |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|