lx
This commit is contained in:
@@ -113,7 +113,7 @@
|
||||
</el-table>
|
||||
</el-card>
|
||||
<!--仓库表单-->
|
||||
<el-dialog :visible.sync="dialogFormVisible" title="增加仓库" center width="450px">
|
||||
<el-dialog :visible.sync="dialogFormVisible" title="仓库" center width="450px">
|
||||
<el-form ref="form" :model="form" :rules="rules" label-position="center" label-width="110px" class="demo-ruleForm">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
@@ -162,7 +162,7 @@
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="联系人" prop="ContactpeopleValue">
|
||||
<el-select v-model="form.ContactpeopleValue" clearable filterable size="small" placeholder="领用者" style="width: 200px;margin-right:10px">
|
||||
<el-select v-model="form.ContactpeopleValue" clearable filterable size="small" placeholder="联系人" style="width: 200px;margin-right:10px">
|
||||
<el-option
|
||||
v-for="item in Contactpeople"
|
||||
:key="item.value"
|
||||
|
||||
@@ -165,13 +165,13 @@
|
||||
size="small"
|
||||
icon="el-icon-search"
|
||||
style="margin-left: 10px"
|
||||
@click="pageCurrent3=1;pageSize3=10;total3=0;searchTable2()">查询</el-button>
|
||||
@click="pageCurrent3=1;pageSize3=10;total3=0;getReplacement()">查询</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
icon="el-icon-plus"
|
||||
style="margin-left: 10px"
|
||||
@click="addTableData">创建补投单</el-button>
|
||||
@click="addCard">创建补投单</el-button>
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
@@ -257,7 +257,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { initProject, searchmachine, searchTeam, searchAlterRecord, searchErrorRecord, searchReplacementCard } from '@/api/Inventory/PartsReplacement'
|
||||
import { initProject, searchmachine, searchTeam, searchAlterRecord, searchErrorRecord, searchReplacementCard, addReplacementCard } from '@/api/Inventory/PartsReplacement'
|
||||
import { mapGetters } from 'vuex'
|
||||
export default {
|
||||
data() {
|
||||
@@ -289,7 +289,8 @@ export default {
|
||||
MachineValue_check: '',
|
||||
GroupNumValue_check: '',
|
||||
repleacecard: '',
|
||||
repleacecard_check: ''
|
||||
repleacecard_check: '',
|
||||
people: ''
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@@ -299,8 +300,13 @@ export default {
|
||||
},
|
||||
created() {
|
||||
this.fetchData()
|
||||
this.getpeopleid()
|
||||
},
|
||||
methods: {
|
||||
// 获取人员编号
|
||||
getpeopleid() {
|
||||
this.people = this.id
|
||||
},
|
||||
fetchData() {
|
||||
this.getSelect(initProject, ['项目名称', '项目流水号'], 'Project') // 项目名称
|
||||
},
|
||||
@@ -416,7 +422,16 @@ export default {
|
||||
this.total3 = response.data.total
|
||||
this.listLoading3 = false
|
||||
})
|
||||
this.getErrorRecord()
|
||||
},
|
||||
addCard() {
|
||||
addReplacementCard(this.people).then(response => {
|
||||
if (response.data[0].result === '1') {
|
||||
this.$message.success('增加成功')
|
||||
this.getReplacement()
|
||||
} else {
|
||||
this.$message.error('删除失败')
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user