|
|
|
@ -17,7 +17,7 @@ |
|
|
|
<el-button type="info" @click="updatePartModal">维护</el-button> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label=" "> |
|
|
|
<el-button type="info" @click="">完成</el-button> |
|
|
|
<el-button type="info" @click="updateInquiryDetailStatus()">完成</el-button> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
|
|
|
|
@ -176,6 +176,8 @@ import {Decimal} from "decimal.js"; |
|
|
|
import BomCreate from "./bom_create.vue"; |
|
|
|
import RoutingCreate from "./routing_create.vue"; |
|
|
|
import PartCreate from "./part_create.vue"; |
|
|
|
import {updateInquiryDetailStatusAndPart} from "../../../api/inquiry/inquiryDetail"; |
|
|
|
import {EventBus} from "../../../main"; |
|
|
|
export default { |
|
|
|
components: { |
|
|
|
PartCreate, |
|
|
|
@ -350,6 +352,13 @@ export default { |
|
|
|
this.height = window.innerHeight - 151 |
|
|
|
}) |
|
|
|
}, |
|
|
|
activated() { |
|
|
|
console.log(this.$route.query.data) |
|
|
|
if (this.$route.query.data) { |
|
|
|
this.searchData = this.$route.query.data |
|
|
|
this.getNodeTree(); |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
// 每页数 |
|
|
|
sizeChangeHandle2 (val) { |
|
|
|
@ -850,6 +859,34 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
updateInquiryDetailStatus () { |
|
|
|
let inData = { |
|
|
|
id: this.searchData.id, |
|
|
|
partBomStatus: this.searchData.partBomStatus, |
|
|
|
updateBy: this.$store.state.user.name, |
|
|
|
} |
|
|
|
this.$confirm('是否确认完成?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
updateInquiryDetailStatusAndPart(inData).then(({data}) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.$message({ |
|
|
|
message: '操作成功', |
|
|
|
type: 'success' |
|
|
|
}) |
|
|
|
EventBus.$emit('refreshInquiryOneDetail1') |
|
|
|
EventBus.$emit('refreshInquiryOneDetail2') |
|
|
|
} else { |
|
|
|
this.$alert(data.msg, '错误', { |
|
|
|
confirmButtonText: '确定' |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 收藏 OR 取消收藏 |
|
|
|
favoriteFunction() { |
|
|
|
let userFavorite = { |
|
|
|
|