修改单据获取按钮
This commit is contained in:
@@ -218,6 +218,7 @@
|
|||||||
/>
|
/>
|
||||||
<el-button type="primary" icon="el-icon-search" @click="handleQuery" style="margin-right: 10px;">搜索</el-button>
|
<el-button type="primary" icon="el-icon-search" @click="handleQuery" style="margin-right: 10px;">搜索</el-button>
|
||||||
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
||||||
|
<el-button icon="info" @click="handleErpData">获取订单数据</el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -243,8 +244,8 @@
|
|||||||
<el-table-column label="操作" width="260" align="center" fixed="right">
|
<el-table-column label="操作" width="260" align="center" fixed="right">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<el-button size="mini" type="text" @click="handleEdit(scope.row)" icon="el-icon-edit">编辑</el-button>
|
<el-button size="mini" type="text" @click="handleEdit(scope.row)" icon="el-icon-edit">编辑</el-button>
|
||||||
<el-button size="mini" type="text" @click="handleErpData(scope.row)" icon="el-icon-edit">补全数据
|
<!-- <el-button size="mini" type="text" @click="handleErpData(scope.row)" icon="el-icon-edit">补全数据-->
|
||||||
</el-button>
|
<!-- </el-button>-->
|
||||||
<el-button size="mini" type="text" @click="handlePrint(scope.row)" icon="el-icon-printer">打印</el-button>
|
<el-button size="mini" type="text" @click="handlePrint(scope.row)" icon="el-icon-printer">打印</el-button>
|
||||||
<el-button size="mini" type="text" @click="handleDelete(scope.row)" icon="el-icon-delete" class="danger-text">删除</el-button>
|
<el-button size="mini" type="text" @click="handleDelete(scope.row)" icon="el-icon-delete" class="danger-text">删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
@@ -619,9 +620,12 @@ export default {
|
|||||||
},
|
},
|
||||||
handleErpData(row) {
|
handleErpData(row) {
|
||||||
|
|
||||||
|
if (this.queryParams.spare1 === ''){
|
||||||
|
this.$message.error('请输入订单号')
|
||||||
|
}
|
||||||
|
|
||||||
const param = {
|
const param = {
|
||||||
spare1: row.spare1
|
spare1: this.queryParams.spare1
|
||||||
}
|
}
|
||||||
getErpProductCodeData(param).then(response => {
|
getErpProductCodeData(param).then(response => {
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
|
|||||||
Reference in New Issue
Block a user