<template>
|
<div class="assembly viewWrap">
|
<a ref="download" style="display: none" />
|
<ProductList ref="productList"></ProductList>
|
<h2>组装任务计划管理</h2>
|
<!-- 搜索功能区 -->
|
<div class="wrap">
|
<div class="searchWrap">
|
<div class="searchItem">
|
<span class="searchTitle">产品</span>
|
<el-select v-model="proId" ref="productList1" @focus="onShowProductList1" placeholder="请选择" style="width:220px;" clearable>
|
<el-option v-for="(item, index) in selectData" :key="index" :label="`${item.name} / ${item.type}`" :value="item.id">
|
</el-option>
|
</el-select>
|
</div>
|
<div class="searchItem">
|
<span class="searchTitle">开始日期</span>
|
<el-date-picker v-model="startDate" value-format="yyyy-MM-dd" type="date" style="width:220px;"
|
placeholder="选择日期">
|
</el-date-picker>
|
</div>
|
<div class="searchItem">
|
<span class="searchTitle">结束日期</span>
|
<el-date-picker v-model="endDate" value-format="yyyy-MM-dd" type="date" style="width:220px;"
|
placeholder="选择日期">
|
</el-date-picker>
|
</div>
|
<div class="searchButton">
|
<el-button type="primary" @click="onGetSearchData">查询</el-button>
|
<el-button @click="onClearSearchData">清空</el-button>
|
</div>
|
</div>
|
</div>
|
|
<!-- 数据功能按钮区 -->
|
<el-button type="primary" icon="el-icon-plus" style="width: 100px; margin-top: 20px;"
|
@click="handleFormDataAdd">添加</el-button>
|
|
<!-- 数据表格区 -->
|
<el-table stripe :data="tableData" height="0" style="margin-top: 20px;">
|
<el-table-column type="index" label="序号" fixed> </el-table-column>
|
<el-table-column prop="name" label="名称" fixed> </el-table-column>
|
<el-table-column prop="proName" label="产品"> </el-table-column>
|
<el-table-column prop="proType" label="型号"> </el-table-column>
|
<el-table-column prop="batchNo" label="产品批次" width="100">
|
</el-table-column>
|
<el-table-column prop="processName" label="生产流程"> </el-table-column>
|
<el-table-column prop="number" label="生产数量" width="100">
|
</el-table-column>
|
<!-- <el-table-column prop="creatorName" label="创建人" width="100"></el-table-column> -->
|
<el-table-column prop="status" label="状态" width="100">
|
<template slot-scope="scope">
|
<el-tag v-if="scope.row.status == 1" type="success">
|
<i class="iconfont icon-kaishi" style="font-size: 12px;"></i>
|
执行中
|
</el-tag>
|
<el-tag v-if="scope.row.status == 0" type="warning">
|
<i class="iconfont icon-zanting" style="font-size: 12px;"></i>
|
暂停
|
</el-tag>
|
<el-tag v-if="scope.row.status == -1" type="danger">
|
<i class="iconfont icon-jieshu" style="font-size: 12px;"></i>
|
结束
|
</el-tag>
|
</template>
|
</el-table-column>
|
<el-table-column prop="dt" label="创建时间" width="170">
|
</el-table-column>
|
<el-table-column prop="startDate" label="开始日期" width="110">
|
</el-table-column>
|
<el-table-column prop="endDate" label="结束日期" width="110">
|
</el-table-column>
|
<el-table-column prop="content" label="作业内容"> </el-table-column>
|
<el-table-column label="操作" width="280" fixed="right">
|
<template slot-scope="scope">
|
<el-button icon="el-icon-edit" @click.native.prevent="handleFormDataEdit(scope.row)" type="text" size="small">
|
编辑
|
</el-button>
|
<el-button v-if="scope.row.status != 0" @click.native.prevent="handleStatus(scope.row, 0, '暂停')" type="text"
|
size="small">
|
<i class="iconfont icon-zanting" style="font-size: 12px;"></i>
|
暂停
|
</el-button>
|
<el-button v-if="scope.row.status != 1" @click.native.prevent="handleStatus(scope.row, 1, '执行')" type="text"
|
size="small">
|
<i class="iconfont icon-kaishi" style="font-size: 12px;"></i>
|
执行
|
</el-button>
|
<el-button v-if="scope.row.status != -1" @click.native.prevent="handleStatus(scope.row, -1, '结束')" type="text"
|
size="small">
|
<i class="iconfont icon-jieshu" style="font-size: 12px;"></i>
|
结束
|
</el-button>
|
<el-button type="text" size="small" @click.native.prevent="onShowCodeList(scope.row)">
|
<i class="iconfont icon-erweima" style="font-size: 12px;"></i>
|
设备码清单
|
</el-button>
|
</template>
|
</el-table-column>
|
</el-table>
|
|
<!-- 分页组件 -->
|
<el-pagination style="margin-top: 20px;" @size-change="onGetTableData" @current-change="onGetTableData"
|
:current-page.sync="pageCurr" :page-size.sync="pageSize" :page-sizes="[10, 20, 50, 100]"
|
layout="total, sizes, prev, pager, next, jumper" :total="total">
|
</el-pagination>
|
|
<!-- 表单 -->
|
<el-dialog :title="dialogTitle" :visible.sync="showFromData" width="600px" :before-close="handleFormDataClose">
|
<el-form :model="formData" :rules="formRules" ref="formData" label-width="140px">
|
<el-form-item label="ID" prop="id" style="display: none;">
|
<el-input style="width:320px" v-model="formData.id" disabled></el-input>
|
</el-form-item>
|
<el-form-item label="名称" prop="name">
|
<el-input style="width:320px" v-model="formData.name" clearable></el-input>
|
</el-form-item>
|
<el-form-item label="订单" prop="orderId">
|
<el-select v-model="formData.orderId" placeholder="请选择" style="width:320px;" clearable
|
@change="handleOrderIdChange">
|
<el-option v-for="(item, index) in orderData" :key="index" :label="item.name" :value="item.id">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
<el-form-item label="产品" prop="proId">
|
<el-select v-model="formData.proId" placeholder="请选择" style="width:320px;" clearable
|
@change="handleProIdChange">
|
<el-option v-for="(item, index) in selectData" :key="index" :label="`${item.name} / ${item.type}`" :value="item.id">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
<el-form-item label="生产流程" prop="processId">
|
<el-select v-model="formData.processId" placeholder="请选择" style="width:320px;" clearable>
|
<el-option v-for="(item, index) in processData" :key="index" :label="item.name" :value="item.id">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
<el-form-item label="生产数量" prop="number">
|
<el-input-number style="width:320px" v-model="formData.number" clearable></el-input-number>
|
</el-form-item>
|
<el-form-item label="作业内容" prop="content">
|
<el-input style="width:320px" v-model="formData.content" clearable></el-input>
|
</el-form-item>
|
<el-form-item label="状态" prop="status">
|
<el-select v-model="formData.status" placeholder="请选择" style="width:320px;" clearable>
|
<el-option label="执行中" :value="1"></el-option>
|
<el-option label="暂停" :value="0"></el-option>
|
<el-option label="停止" :value="-1"></el-option>
|
</el-select>
|
</el-form-item>
|
<el-form-item label="开始日期" prop="status">
|
<el-date-picker v-model="formData.startDate" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" style="width:320px;">
|
</el-date-picker>
|
</el-form-item>
|
<el-form-item label="结束日期" prop="endDate">
|
<el-date-picker v-model="formData.endDate" value-format="yyyy-MM-dd" type="date" placeholder="选择日期" style="width:320px;">
|
</el-date-picker>
|
</el-form-item>
|
</el-form>
|
<span slot="footer" class="dialog-footer">
|
<el-button @click="handleFormDataClose">取 消</el-button>
|
<el-button type="primary" @click="handleFormDataSubmit">确 定</el-button>
|
</span>
|
</el-dialog>
|
|
<!-- 设备码清单 -->
|
<el-dialog title="设备码清单" :visible.sync="showCodeList" width="1000px">
|
<!-- 数据功能按钮区 -->
|
<el-button type="primary" icon="el-icon-plus" @click="handleCodeAdd">补增</el-button>
|
<el-button type="primary" icon="el-icon-download" @click="handleExport">导出二维码</el-button>
|
<el-button type="primary" icon="el-icon-download" @click="handleExportNo">导出设备号</el-button>
|
|
<el-table stripe :data="codeList" style="margin-top: 20px; overflow: auto;">
|
<el-table-column type="index" label="序号"> </el-table-column>
|
<el-table-column prop="deviceNo" label="设备号"> </el-table-column>
|
<el-table-column label="二维码" width="120">
|
<template slot-scope="scope">
|
<el-button type="text" size="small" @click.native.prevent="handleShowCode(scope.row)">
|
<i class="iconfont icon-erweima" style="font-size: 12px;"></i>
|
查看二维码
|
</el-button>
|
</template>
|
</el-table-column>
|
</el-table>
|
|
<!-- 分页组件 -->
|
<el-pagination style="margin-top: 20px;" @size-change="onGetCodeListData" @current-change="onGetCodeListData"
|
:current-page.sync="codeListPageCurr" :page-size.sync="codeListPageSize" :page-sizes="[10, 20, 50, 100]"
|
layout="total, sizes, prev, pager, next, jumper" :total="codeListTotal">
|
</el-pagination>
|
<!-- 二维码 -->
|
<div class="codeWrap" v-show="showCode" @click="handleCloseCode">
|
<transition name="el-zoom-in-center">
|
<img v-show="showCode" :src="imgBase64" />
|
</transition>
|
<div class="codeMessage">点击屏幕关闭二维码</div>
|
</div>
|
</el-dialog>
|
</div>
|
</template>
|
|
<style lang="less" scoped>
|
.assembly {
|
padding: 20px;
|
}
|
</style>
|
|
<script>
|
import ProductList from '@/components/ProductList'
|
|
export default {
|
name: "assembly",
|
components: { ProductList },
|
data() {
|
return {
|
proId: null,
|
startDate: null,
|
endDate: null,
|
pageSize: 10,
|
pageCurr: 1,
|
total: 0,
|
tableData: [],
|
showFromData: false,
|
formData: {
|
id: null,
|
name: null,
|
orderId: null,
|
proId: null,
|
processId: null,
|
number: null,
|
content: null,
|
startDate: null,
|
endDate: null,
|
status: null,
|
},
|
formRules: {
|
name: [{ required: true, message: "必填项", trigger: "blur" }],
|
proId: [{ required: true, message: "必填项", trigger: "blur" }],
|
processId: [{ required: true, message: "必填项", trigger: "blur" }],
|
number: [{ required: true, message: "必填项", trigger: "blur" }],
|
content: [{ required: true, message: "必填项", trigger: "blur" }],
|
startDate: [{ required: true, message: "必填项", trigger: "blur" }],
|
endDate: [{ required: true, message: "必填项", trigger: "blur" }],
|
status: [{ required: true, message: "必填项", trigger: "blur" }],
|
},
|
orderData: [],
|
selectData: [],
|
processData: [],
|
dialogTitle: null,
|
|
showCodeList: false,
|
batchId: null,
|
planId: null,
|
codeList: [],
|
codeListPageSize: 10,
|
codeListPageCurr: 1,
|
codeListTotal: 0,
|
addNum: null,
|
showCode: false,
|
imgBase64: null,
|
};
|
},
|
computed: {},
|
watch: {
|
// "formData.orderId": function(newVal, oldVal) {
|
// // if (newVal) {
|
// // this.onGetSelectData();
|
// // } else {
|
// // }
|
// this.formData.proId = null;
|
// this.selectData = [];
|
// this.onGetSelectData();
|
// },
|
// "formData.proId": function(newVal, oldVal) {
|
// if (newVal) {
|
// this.onGetProcessData();
|
// } else {
|
// this.formData.processId = null;
|
// this.processData = [];
|
// }
|
// },
|
},
|
mounted() {
|
this.onGetTableData();
|
this.onGetOrderData();
|
this.onGetSelectData();
|
this.onGetProcessData();
|
},
|
methods: {
|
// 执行条件查询
|
onGetSearchData: function () {
|
this.pageCurr = 1;
|
this.onGetTableData();
|
},
|
// 清空查询条件
|
onClearSearchData: function () {
|
this.proId = null;
|
this.startDate = null;
|
this.endDate = null;
|
this.pageCurr = 1;
|
this.onGetTableData();
|
},
|
// 获取表格数据
|
onGetTableData: function () {
|
var that = this;
|
var data = {
|
proId: this.proId,
|
startDate: this.startDate,
|
endDate: this.endDate,
|
pageSize: this.pageSize,
|
pageCurr: this.pageCurr,
|
};
|
that
|
.$axiosAdmin({
|
method: "post",
|
url: "production/assembly/some",
|
data: JSON.stringify(data),
|
})
|
.then((res) => {
|
if (res.success == true) {
|
that.tableData = res.content.obj;
|
that.total = res.content.itemTotal;
|
} else {
|
that.$alert(res.content, "提示", {
|
confirmButtonText: "确定",
|
});
|
}
|
})
|
.catch((err) => {
|
console.log(err);
|
});
|
},
|
// 添加
|
handleFormDataAdd: function () {
|
this.formData.id = null;
|
this.formData.name = null;
|
this.formData.orderId = null;
|
this.formData.proId = null;
|
this.formData.processId = null;
|
this.formData.number = null;
|
this.formData.content = null;
|
this.formData.startDate = null;
|
this.formData.endDate = null;
|
this.formData.status = null;
|
this.showFromData = true;
|
this.dialogTitle = "添加组装任务计划";
|
},
|
// 关闭
|
handleFormDataClose: function () {
|
this.formData.id = null;
|
this.formData.name = null;
|
this.formData.orderId = null;
|
this.formData.proId = null;
|
this.formData.processId = null;
|
this.formData.number = null;
|
this.formData.content = null;
|
this.formData.startDate = null;
|
this.formData.endDate = null;
|
this.formData.status = null;
|
this.showFromData = false;
|
this.dialogTitle = null;
|
this.selectData = [];
|
this.processData = [];
|
this.$refs["formData"].resetFields();
|
},
|
// 编辑
|
handleFormDataEdit: function (row) {
|
this.formData.id = row.id;
|
this.formData.name = row.name;
|
this.formData.orderId = row.orderId;
|
this.formData.proId = row.proId;
|
this.formData.processId = row.processId;
|
this.formData.number = row.number;
|
this.formData.content = row.content;
|
this.formData.startDate = row.startDate;
|
this.formData.endDate = row.endDate;
|
this.formData.status = row.status;
|
this.showFromData = true;
|
this.dialogTitle = "编辑组装任务计划";
|
this.onGetProcessData();
|
},
|
handleOrderIdChange: function () {
|
this.formData.proId = null;
|
this.formData.processId = null;
|
this.onGetSelectData();
|
},
|
handleProIdChange: function () {
|
this.formData.processId = null;
|
this.onGetProcessData();
|
},
|
// 提交数据确认
|
handleFormDataSubmit: function () {
|
this.$confirm(`此操作将保存并更新数据, 是否继续?`, "提示", {
|
confirmButtonText: "确定",
|
cancelButtonText: "取消",
|
type: "warning",
|
})
|
.then(() => {
|
this.onFormDataSubmit();
|
})
|
.catch(() => {
|
this.$message({
|
type: "info",
|
message: "已取消",
|
});
|
});
|
},
|
// 提交数据
|
onFormDataSubmit: function () {
|
var that = this;
|
var url, data;
|
if (this.formData.id) {
|
url = "production/assembly/update";
|
data = {
|
id: this.formData.id,
|
name: this.formData.name,
|
orderId: this.formData.orderId,
|
proId: this.formData.proId,
|
processId: this.formData.processId,
|
number: this.formData.number,
|
content: this.formData.content,
|
startDate: this.formData.startDate,
|
endDate: this.formData.endDate,
|
status: this.formData.status,
|
};
|
} else {
|
url = "production/assembly/save";
|
data = {
|
name: this.formData.name,
|
orderId: this.formData.orderId,
|
proId: this.formData.proId,
|
processId: this.formData.processId,
|
number: this.formData.number,
|
content: this.formData.content,
|
startDate: this.formData.startDate,
|
endDate: this.formData.endDate,
|
status: this.formData.status,
|
};
|
}
|
that
|
.$axiosAdmin({
|
method: "post",
|
url: url,
|
data: JSON.stringify(data),
|
})
|
.then((res) => {
|
if (res.success == true) {
|
that.$message({
|
type: "success",
|
message: "已成功",
|
});
|
that.handleFormDataClose();
|
that.onGetTableData();
|
} else {
|
that.$alert(res.content, "提示", {
|
confirmButtonText: "确定",
|
});
|
}
|
})
|
.catch((err) => {
|
console.log(err);
|
});
|
},
|
// 状态变更确认
|
handleStatus(row, status, msg) {
|
this.$confirm(`此操作将 ${msg} 该任务, 是否继续?`, "提示", {
|
confirmButtonText: "确定",
|
cancelButtonText: "取消",
|
type: "warning",
|
})
|
.then(() => {
|
this.onStatus(row, status);
|
})
|
.catch(() => {
|
this.onGetTableData();
|
this.$message({
|
type: "info",
|
message: "已取消",
|
});
|
});
|
},
|
// 执行状态变更
|
onStatus: function (row, status) {
|
var that = this;
|
var data = {
|
id: row.id,
|
status: status,
|
};
|
that
|
.$axiosAdmin({
|
method: "post",
|
url: "production/assembly/updateStatus",
|
data: JSON.stringify(data),
|
})
|
.then((res) => {
|
if (res.success == true) {
|
that.$message({
|
type: "success",
|
message: "已成功",
|
});
|
} else {
|
that.$alert(res.content, "提示", {
|
confirmButtonText: "确定",
|
});
|
}
|
that.onGetTableData();
|
})
|
.catch((err) => {
|
console.log(err);
|
that.onGetTableData();
|
});
|
},
|
// 获取产品数据
|
onGetOrderData: function () {
|
var that = this;
|
that
|
.$axiosAdmin({
|
method: "get",
|
url: "production/order/all",
|
})
|
.then((res) => {
|
if (res.success == true) {
|
this.orderData = res.content;
|
} else {
|
that.$alert(res.content, "提示", {
|
confirmButtonText: "确定",
|
});
|
}
|
})
|
.catch((err) => {
|
console.log(err);
|
});
|
},
|
// 获取产品数据
|
onGetSelectData: function () {
|
if (!this.formData.orderId) {
|
this.formData.orderId = ""
|
}
|
var that = this;
|
that
|
.$axiosAdmin({
|
method: "get",
|
url: "platform/product/getProduct?orderId=" + this.formData.orderId,
|
})
|
.then((res) => {
|
if (res.success == true) {
|
this.selectData = res.content;
|
} else {
|
that.$alert(res.content, "提示", {
|
confirmButtonText: "确定",
|
});
|
}
|
})
|
.catch((err) => {
|
console.log(err);
|
});
|
},
|
// 获取流程数据
|
onGetProcessData: function () {
|
var that = this;
|
var data = {
|
proId: this.formData.proId,
|
};
|
that
|
.$axiosAdmin({
|
method: "get",
|
url: "production/process/queryAll",
|
params: data,
|
})
|
.then((res) => {
|
if (res.success == true) {
|
that.processData = res.content;
|
var unmatched = true;
|
that.processData.forEach((item) => {
|
if (that.formData.processId == item.id) {
|
unmatched = false;
|
}
|
});
|
if (unmatched) {
|
that.formData.processId = null;
|
}
|
} else {
|
that.$alert(res.content, "提示", {
|
confirmButtonText: "确定",
|
});
|
}
|
})
|
.catch((err) => {
|
console.log(err);
|
});
|
},
|
// 查看设备码清单
|
onShowCodeList: function (row) {
|
this.batchId = row.batchId;
|
this.planId = row.id;
|
this.codeList = [];
|
this.codeListPageSize = 10;
|
this.codeListPageCurr = 1;
|
this.codeListTotal = 0;
|
this.addNum = null;
|
this.showCodeList = true;
|
this.onGetCodeListData();
|
},
|
// 关闭设备码清单
|
onCloseCodeList: function () {
|
this.batchId = null;
|
this.planId = null;
|
this.codeList = [];
|
this.codeListPageSize = 10;
|
this.codeListPageCurr = 1;
|
this.codeListTotal = 0;
|
this.addNum = null;
|
this.showCodeList = false;
|
},
|
// 获取设备码清单数据
|
onGetCodeListData: function () {
|
if (!this.batchId) return;
|
var that = this;
|
var data = {
|
batchId: this.batchId,
|
pageSize: this.codeListPageSize,
|
pageCurr: this.codeListPageCurr,
|
};
|
that
|
.$axiosAdmin({
|
method: "post",
|
url: "production/assembly/someDevice",
|
data: JSON.stringify(data),
|
})
|
.then((res) => {
|
if (res.success == true) {
|
that.codeList = res.content.obj;
|
that.codeListTotal = res.content.itemTotal;
|
} else {
|
that.$alert(res.content, "提示", {
|
confirmButtonText: "确定",
|
});
|
}
|
})
|
.catch((err) => {
|
console.log(err);
|
});
|
},
|
// 查看二维码
|
handleShowCode: function (row) {
|
this.imgBase64 = row.qrCode;
|
this.showCode = true;
|
},
|
// 关闭二维码
|
handleCloseCode: function () {
|
this.imgBase64 = null;
|
this.showCode = false;
|
},
|
// 导出二维码
|
handleExport: function () {
|
var that = this;
|
var data = {
|
batchId: this.batchId,
|
};
|
that
|
.$axiosAdmin({
|
method: "get",
|
responseType: "blob",
|
url: "production/assembly/exportDevice",
|
params: data,
|
})
|
.then((res) => {
|
const blob = res;
|
that.$refs.download.href = window.URL.createObjectURL(
|
new Blob([blob], {
|
type:
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
})
|
);
|
that.$refs.download.download = `二维码清单.xlsx`;
|
that.$refs.download.click();
|
})
|
.catch((err) => {
|
console.log(err);
|
});
|
},
|
// 导出设备号
|
handleExportNo: function () {
|
var that = this;
|
var data = {
|
batchId: this.batchId,
|
};
|
that
|
.$axiosAdmin({
|
method: "get",
|
responseType: "blob",
|
url: "production/assembly/exportDeviceNo",
|
params: data,
|
})
|
.then((res) => {
|
const blob = res;
|
that.$refs.download.href = window.URL.createObjectURL(
|
new Blob([blob], {
|
type:
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
})
|
);
|
that.$refs.download.download = `设备号清单.xlsx`;
|
that.$refs.download.click();
|
})
|
.catch((err) => {
|
console.log(err);
|
});
|
},
|
// 补增设备码
|
handleCodeAdd: function () {
|
this.$prompt("请输入数量", "补增设备码", {
|
confirmButtonText: "确定",
|
cancelButtonText: "取消",
|
inputPattern: /^[0-9]*$/,
|
inputErrorMessage: "数量格式不正确",
|
})
|
.then(({ value }) => {
|
this.$confirm(
|
`此操作将在该任务中补增 ${value} 个设备码, 是否继续?`,
|
"提示",
|
{
|
confirmButtonText: "确定",
|
cancelButtonText: "取消",
|
type: "warning",
|
}
|
)
|
.then(() => {
|
this.onCodeAdd(value);
|
})
|
.catch(() => {
|
this.$message({
|
type: "info",
|
message: "已取消",
|
});
|
});
|
})
|
.catch(() => {
|
this.$message({
|
type: "info",
|
message: "已取消",
|
});
|
});
|
},
|
// 执行补增设备码
|
onCodeAdd: function (value) {
|
if (!this.planId) return;
|
if (!value) return;
|
var that = this;
|
var data = {
|
planId: this.planId,
|
addNum: value,
|
};
|
that
|
.$axiosAdmin({
|
method: "post",
|
url: "production/assembly/addDevice",
|
data: JSON.stringify(data),
|
})
|
.then((res) => {
|
if (res.success == true) {
|
that.$message({
|
type: "success",
|
message: "已成功",
|
});
|
that.onGetCodeListData();
|
that.onGetTableData();
|
} else {
|
that.$alert(res.content, "提示", {
|
confirmButtonText: "确定",
|
});
|
}
|
})
|
.catch((err) => {
|
console.log(err);
|
});
|
},
|
onShowProductList1: function () {
|
this.$refs.productList1.blur()
|
this.$refs.productList.show((res) => {
|
if (!res) return;
|
this.proId = res.id
|
})
|
},
|
onShowProductList2: function () {
|
this.$refs.productList2.blur()
|
this.$refs.productList.show((res) => {
|
if (!res) return;
|
this.formData.proId = res.id
|
})
|
},
|
},
|
};
|
</script>
|