|
@@ -5,6 +5,7 @@
|
|
|
!addOrUpdateVisible &&
|
|
|
!detailVisible &&
|
|
|
!noteChangeVisible &&
|
|
|
+ !changeVisible &&
|
|
|
!attachVisible
|
|
|
"
|
|
|
>
|
|
@@ -179,21 +180,21 @@
|
|
|
v-if="isAuth('process-manage:list')"
|
|
|
type="text"
|
|
|
size="small"
|
|
|
- @click="detailHandle(scope.row.optionId)"
|
|
|
+ @click="detailHandle(scope.row.cruxId)"
|
|
|
>查看</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
v-if="isAuth('process-manage:update')"
|
|
|
type="text"
|
|
|
size="small"
|
|
|
- @click="addOrUpdateHandle(scope.row.optionId, false)"
|
|
|
+ @click="addOrUpdateHandle(scope.row)"
|
|
|
>编辑</el-button
|
|
|
>
|
|
|
<el-button
|
|
|
v-if="isAuth('process-manage:change')"
|
|
|
type="text"
|
|
|
size="small"
|
|
|
- @click="addOrUpdateHandle(scope.row.optionId, false)"
|
|
|
+ @click="changeHandle(scope.row.cruxId)"
|
|
|
>变更</el-button
|
|
|
>
|
|
|
</template>
|
|
@@ -210,12 +211,16 @@
|
|
|
>
|
|
|
</el-pagination>
|
|
|
</template>
|
|
|
+ <attach-detail v-if="attachVisible" ref="attachDetail" @onChose="onChose"/>
|
|
|
<process-add-or-update
|
|
|
ref="addOrUpdate"
|
|
|
v-if="addOrUpdateVisible"
|
|
|
@onChose="onChose"
|
|
|
@refreshDataList="search"
|
|
|
- ></process-add-or-update>
|
|
|
+ />
|
|
|
+ <process-detail v-if="detailVisible" ref="detail" @onChose="onChose" />
|
|
|
+ <process-change v-if="changeVisible" ref="change" @onChose="onChose" />
|
|
|
+ <note-change ref="noteChange" v-if="noteChangeVisible" @onChose="onChose"></note-change>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -223,14 +228,20 @@
|
|
|
import { getProductList } from '@/api/product'
|
|
|
import {getList} from '@/api/process'
|
|
|
import ProcessAddOrUpdate from './process-add-or-update.vue'
|
|
|
+import AttachDetail from '../common/attach-detail'
|
|
|
+import ProcessDetail from './process-detail'
|
|
|
+import ProcessChange from './process-change'
|
|
|
+import NoteChange from './material-tech-note-change'
|
|
|
+
|
|
|
export default {
|
|
|
name: 'tech-manage-process-manage',
|
|
|
- components: {ProcessAddOrUpdate},
|
|
|
+ components: {ProcessAddOrUpdate, AttachDetail, ProcessDetail, ProcessChange, NoteChange},
|
|
|
data () {
|
|
|
return {
|
|
|
addOrUpdateVisible: false,
|
|
|
detailVisible: false,
|
|
|
noteChangeVisible: false,
|
|
|
+ changeVisible: false,
|
|
|
attachVisible: false,
|
|
|
loading: false,
|
|
|
materialList: [],
|
|
@@ -244,6 +255,7 @@ export default {
|
|
|
},
|
|
|
created () {
|
|
|
this.getProductList()
|
|
|
+ this.getDataList()
|
|
|
},
|
|
|
mounted () {},
|
|
|
activated () {},
|
|
@@ -253,6 +265,7 @@ export default {
|
|
|
this.addOrUpdateVisible = false
|
|
|
this.detailVisible = false
|
|
|
this.noteChangeVisible = false
|
|
|
+ this.changeVisible = false
|
|
|
this.attachVisible = false
|
|
|
},
|
|
|
async getProductList (productName) {
|
|
@@ -306,10 +319,34 @@ export default {
|
|
|
this.dataListLoading = false
|
|
|
})
|
|
|
},
|
|
|
- addOrUpdateHandle (id) {
|
|
|
+ detailHandle (id) {
|
|
|
+ this.detailVisible = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.detail.init(id)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ addOrUpdateHandle (item) {
|
|
|
this.addOrUpdateVisible = true
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.addOrUpdate.init(id)
|
|
|
+ this.$refs.addOrUpdate.init(item.cruxId, item)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ attachDetails (attachList) {
|
|
|
+ this.attachVisible = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.attachDetail.init(attachList)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ changeHandle (id) {
|
|
|
+ this.changeVisible = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.change.init(id)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ noteChange () {
|
|
|
+ this.noteChangeVisible = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.noteChange.init()
|
|
|
})
|
|
|
}
|
|
|
}
|