|
@@ -29,8 +29,13 @@
|
|
|
<trade-card title="设备信息" v-loading="loadingBtn">
|
|
|
<avue-crud ref="crud" :option="optionList" :data="data" :table-loading="loading" @saveColumn="saveColumn"
|
|
|
@resetColumn="resetColumn" :cell-style="cellStyle">
|
|
|
+
|
|
|
+ <template slot-scope="scope" slot="menuLeft">
|
|
|
+ <el-button type="primary" size="small" :disabled="option.disabled" @click="addRow">选择设备</el-button>
|
|
|
+ </template>
|
|
|
+
|
|
|
<template slot="headerSerial">
|
|
|
- <el-button type="primary" icon="el-icon-plus" size="mini" @click.stop="addRow"
|
|
|
+ <el-button type="primary" icon="el-icon-plus" size="mini" @click.stop="shebeAdd"
|
|
|
:disabled="option.disabled" circle></el-button>
|
|
|
</template>
|
|
|
|
|
@@ -915,6 +920,20 @@ export default {
|
|
|
this.$emit("goBack");
|
|
|
},
|
|
|
// ---------------------------------产品弹窗----------------------------------------
|
|
|
+ // 添加空的数据
|
|
|
+ shebeAdd(){
|
|
|
+ this.data.push({
|
|
|
+ $cellEdit: true,
|
|
|
+ storageId: null,
|
|
|
+ factoryId:null,
|
|
|
+ srcId:null,
|
|
|
+ factoryName:null,
|
|
|
+ code:'',
|
|
|
+ installDate:'',
|
|
|
+ equipmentDescribe:null,
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
// 产品弹窗导入
|
|
|
importGoods(){
|
|
|
if (this.goodsListSave.length > 0) {
|
|
@@ -933,6 +952,7 @@ export default {
|
|
|
equipmentDescribe:item.cname,
|
|
|
})
|
|
|
}
|
|
|
+ console.log(this.data,956)
|
|
|
}else {
|
|
|
for (let item of this.tableData) {
|
|
|
const srcId = item.id
|