|
|
@@ -16,7 +16,7 @@ |
|
|
|
right: 20px; |
|
|
|
display: flex; |
|
|
|
"> |
|
|
|
<el-button type="primary" plain :disabled="currentDet == null" class="btn-create" icon="el-icon-plus"> |
|
|
|
<el-button type="primary" plain :disabled="currentDet == null" class="btn-create" icon="el-icon-plus" @click="handleEqBtn"> |
|
|
|
分配设备 |
|
|
|
</el-button> |
|
|
|
<el-input icon="el-icon-search" placeholder="搜索" v-model="searchText" style="margin-left: 20px"> |
|
|
@@ -34,6 +34,18 @@ |
|
|
|
<!-- 分页组件 --> |
|
|
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNo" :limit.sync="queryParams.pageSize" |
|
|
|
@pagination="getList" /> |
|
|
|
|
|
|
|
<!-- 新增&编辑 --> |
|
|
|
<base-dialog |
|
|
|
:dialogTitle="eqTitle" |
|
|
|
:dialogVisible="centervisible" |
|
|
|
@cancel="handleCancel" |
|
|
|
@confirm="handleConfirm" |
|
|
|
:before-close="handleCancel" |
|
|
|
width='70%' |
|
|
|
> |
|
|
|
123 |
|
|
|
</base-dialog> |
|
|
|
</section> |
|
|
|
</template> |
|
|
|
|
|
|
@@ -58,9 +70,9 @@ export default { |
|
|
|
// width: 180, |
|
|
|
// filter: (val) => moment(val).format('yyyy-MM-DD HH:mm:ss'), |
|
|
|
// }, |
|
|
|
{ prop: 'name', label: '设备名称' }, |
|
|
|
{ prop: 'code', label: '物料BOM' }, |
|
|
|
{ prop: 'remark', label: '参数BOM' }, |
|
|
|
{ prop: 'equipmentId', label: '设备名称' }, |
|
|
|
{ prop: 'materialName', label: '物料BOM' }, |
|
|
|
{ prop: 'valueName', label: '参数BOM' }, |
|
|
|
], |
|
|
|
list: [], |
|
|
|
total: 0, |
|
|
@@ -69,7 +81,10 @@ export default { |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 10, |
|
|
|
}, |
|
|
|
searchText: '' |
|
|
|
searchText: '', |
|
|
|
eqTitle: '分配设备', |
|
|
|
centervisible: false, |
|
|
|
pageUrl: '/extend/process-flow-det-equipment/page' |
|
|
|
}; |
|
|
|
}, |
|
|
|
watch: { |
|
|
@@ -109,19 +124,39 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
getList({ detId, detName, detDesc, flowId, sectionName } = {}) { |
|
|
|
console.log('get list') |
|
|
|
|
|
|
|
}, |
|
|
|
getList() { |
|
|
|
this.list = [ |
|
|
|
{ name: '1', code: 'bomg-1', remark: 'Tochter' }, |
|
|
|
{ name: '2', code: 'bomg-2', remark: 'Bruder' }, |
|
|
|
{ name: '3', code: 'bomg-3', remark: 'Kalt' }, |
|
|
|
] |
|
|
|
async getList({ detId, detName, detDesc, flowId, sectionName } = {}) { |
|
|
|
const { code, data } = await this.recv({ pageNn: 1, pageSize: 100, flowDetId: detId }); |
|
|
|
if (code == 0) { |
|
|
|
if (data) { |
|
|
|
this.list = data.list |
|
|
|
} |
|
|
|
return { cells: [] }; |
|
|
|
} |
|
|
|
return Promise.reject(this.infoUrl + ' 接口出错!'); |
|
|
|
}, |
|
|
|
|
|
|
|
// getList({ detId, detName, detDesc, flowId, sectionName } = {}) { |
|
|
|
// console.log('get list') |
|
|
|
|
|
|
|
// }, |
|
|
|
// getList() { |
|
|
|
// this.list = [ |
|
|
|
// { name: '1', code: 'bomg-1', remark: 'Tochter' }, |
|
|
|
// { name: '2', code: 'bomg-2', remark: 'Bruder' }, |
|
|
|
// { name: '3', code: 'bomg-3', remark: 'Kalt' }, |
|
|
|
// ] |
|
|
|
// }, |
|
|
|
clearList() { |
|
|
|
this.list = []; |
|
|
|
}, |
|
|
|
handleEqBtn() { |
|
|
|
this.centervisible = true |
|
|
|
}, |
|
|
|
handleConfirm() { |
|
|
|
this.centervisible = false |
|
|
|
}, |
|
|
|
handleCancel() { |
|
|
|
this.centervisible = false |
|
|
|
} |
|
|
|
}, |
|
|
|
}; |
|
|
|