a
This commit is contained in:
@@ -8,10 +8,10 @@
|
||||
<el-button size="small" icon="el-icon-search" type="primary" plain style="margin-left: 10px" @click="pageSize=30; pageCurrent=1;searchTable()">查询</el-button>
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="打印备料单" placement="top"/>
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="将选中零件分配为外购备料" placement="top">
|
||||
<el-button type="primary" size="small" icon="el-icon-s-shop" plain style="margin-left: 50px" @click="edit2()">外购备料</el-button>
|
||||
<el-button :loading="edit2_loading" type="primary" size="small" icon="el-icon-s-shop" plain style="margin-left: 50px" @click="edit2()">外购备料</el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="将选中零件分配为自家备料" placement="top">
|
||||
<el-button type="distribution" size="small" icon="el-icon-setting" style="margin-left:20px" @click="edit('BL')">自家备料</el-button>
|
||||
<el-button :loading="edit_loading" type="distribution" size="small" icon="el-icon-setting" style="margin-left:20px" @click="edit('BL')">自家备料</el-button>
|
||||
</el-tooltip>
|
||||
<el-tooltip :open-delay="1200" effect="dark" content="已导出和未导出备料单" placement="top">
|
||||
<el-checkbox v-model="all" size="small">查询全部</el-checkbox>
|
||||
@@ -149,6 +149,8 @@ import $ from 'jquery'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
edit2_loading: false,
|
||||
edit_loading: false,
|
||||
a: 0,
|
||||
tableData2: [],
|
||||
partName: '',
|
||||
@@ -233,7 +235,13 @@ export default {
|
||||
this.tableData2 = val
|
||||
},
|
||||
edit() {
|
||||
this.edit_loading = true
|
||||
var that = this
|
||||
setTimeout(function() {
|
||||
that.edit_loading = false
|
||||
}, 5000)
|
||||
if (this.tableData2.length === 0) {
|
||||
this.edit_loading = false
|
||||
this.$message.warning('暂无数据')
|
||||
} else {
|
||||
this.a = 0
|
||||
@@ -250,8 +258,13 @@ export default {
|
||||
}
|
||||
},
|
||||
edit2() {
|
||||
console.log(this.$store.state.user.id, 9090)
|
||||
this.edit2_loading = true
|
||||
var that = this
|
||||
setTimeout(function() {
|
||||
that.edit2_loading = false
|
||||
}, 5000)
|
||||
if (this.tableData2.length === 0) {
|
||||
this.edit2_loading = false
|
||||
this.$message.warning('暂无数据')
|
||||
} else {
|
||||
this.a = 0
|
||||
|
||||
Reference in New Issue
Block a user