|
|
@@ -47,7 +47,7 @@ export default {
|
|
47
|
47
|
},
|
|
48
|
48
|
editOrAdd: {
|
|
49
|
49
|
type: String,
|
|
50
|
|
- default: ''// edit 编辑(有价格), editForm 编辑询价单(无价格), add 新增询价单
|
|
|
50
|
+ default: ''// edit 编辑(有价格), editForm 编辑询价单(无价格), add 新增询价单, receptFormAdd 新增接收询价单
|
|
51
|
51
|
},
|
|
52
|
52
|
editInfo: {
|
|
53
|
53
|
type: Object,
|
|
|
@@ -124,12 +124,10 @@ export default {
|
|
124
|
124
|
// 编辑回显
|
|
125
|
125
|
initData() {
|
|
126
|
126
|
this.$nextTick(()=>{
|
|
127
|
|
- if (this.editOrAdd === 'edit' || this.editOrAdd === 'editForm') {
|
|
128
|
|
- this.info = JSON.parse(JSON.stringify(this.editInfo))
|
|
129
|
|
- this.showModal = true;
|
|
130
|
|
- if(this.info.model && this.info.dictValue){
|
|
131
|
|
- this.getChartData()
|
|
132
|
|
- }
|
|
|
127
|
+ this.info = JSON.parse(JSON.stringify(this.editInfo))
|
|
|
128
|
+ this.showModal = true;
|
|
|
129
|
+ if(this.info.model && this.info.dictValue){
|
|
|
130
|
+ this.getChartData()
|
|
133
|
131
|
}
|
|
134
|
132
|
})
|
|
135
|
133
|
},
|
|
|
@@ -216,9 +214,9 @@ export default {
|
|
216
|
214
|
})
|
|
217
|
215
|
},
|
|
218
|
216
|
showDialog() {
|
|
219
|
|
- if (this.editOrAdd === 'edit' || this.editOrAdd === 'editForm') {
|
|
|
217
|
+ if (this.editOrAdd === 'edit' || this.editOrAdd === 'editForm' || this.editOrAdd === 'receptFormAdd') {
|
|
220
|
218
|
this.initData();
|
|
221
|
|
- }else{
|
|
|
219
|
+ }else if(this.editOrAdd === 'add'){
|
|
222
|
220
|
this.clearForm()
|
|
223
|
221
|
this.showModal = true;
|
|
224
|
222
|
}
|