|
|
@@ -302,8 +302,26 @@ export default {
|
|
|
this.fromData.number = this.mydata.num
|
|
|
this.fromData.unit = this.mydata.unit
|
|
|
if (this.fromData.unit) {
|
|
|
- console.log(998)
|
|
|
- this.fromData.sourceId = this.mydata.sourceId
|
|
|
+ const obj = [
|
|
|
+ { id: 1, name: '征集购买' },
|
|
|
+ { id: 2, name: '接受捐赠' },
|
|
|
+ { id: 3, name: '依法交换' },
|
|
|
+ { id: 4, name: '拨交' },
|
|
|
+ { id: 5, name: '移交' },
|
|
|
+ { id: 6, name: '旧藏' },
|
|
|
+ { id: 7, name: '发掘' },
|
|
|
+ { id: 8, name: '采集' },
|
|
|
+ { id: 9, name: '拣选' },
|
|
|
+ { id: 10, name: '其他' }
|
|
|
+ ]
|
|
|
+ for (const k in obj) {
|
|
|
+ // console.log(998, obj[k], '---', this.mydata.sourceId)
|
|
|
+ if (obj[k].name === this.mydata.sourceId) {
|
|
|
+ // console.log(123)
|
|
|
+ this.fromData.sourceId = obj[k].id
|
|
|
+ }
|
|
|
+ }
|
|
|
+ // this.fromData.sourceId = this.mydata.sourceId
|
|
|
}
|
|
|
this.fromData.description = this.mydata.description
|
|
|
this.fromData.people = this.mydata.realName
|