|
|
|
@ -130,7 +130,7 @@
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改活动申请 对话框 --> |
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> |
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px"> |
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="110px"> |
|
|
|
|
<el-form-item label="活动名称" prop="macketingActivitiesId"> |
|
|
|
|
<!-- <el-input v-model="form.macketingActivitiesId" placeholder="请选择活动名称" />--> |
|
|
|
|
<el-select v-model="form.macketingActivitiesId" clearable placeholder="请选择活动名称" > |
|
|
|
@ -212,25 +212,30 @@ export default {
|
|
|
|
|
form: {}, |
|
|
|
|
// 表单校验 |
|
|
|
|
rules: { |
|
|
|
|
// 'blur'是鼠标失去焦点的时候会触发验证 |
|
|
|
|
macketingActivitiesId: [ { required: true, message: '请选择活动名称' }], |
|
|
|
|
collectionId: [ { required: true, message: '请选择作品' }], |
|
|
|
|
collectionNumber: [ { required: true, message: '请输入数量', trigger: 'change'}], |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
this.getList(); |
|
|
|
|
this.queryActivity(); |
|
|
|
|
this.production(); |
|
|
|
|
// this.queryActivity(); |
|
|
|
|
// this.production(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
|
|
|
|
|
/*** 查询藏品*/ |
|
|
|
|
production(){ |
|
|
|
|
this.worksCollection = []; |
|
|
|
|
getProduction().then(rest =>{ |
|
|
|
|
// console.log(rest.data); |
|
|
|
|
let est = rest.data; |
|
|
|
|
est.forEach( re =>{ |
|
|
|
|
let nub = { |
|
|
|
|
id:re.id, |
|
|
|
|
collectionName: re.collectionName +"——剩余 "+re.quantityIssued+"个" |
|
|
|
|
collectionName: re.collectionName +"——剩余 "+re.numberRemaining+"个" |
|
|
|
|
} |
|
|
|
|
this.worksCollection.push(nub); |
|
|
|
|
} ) |
|
|
|
@ -243,6 +248,7 @@ export default {
|
|
|
|
|
* 查询活动名称 |
|
|
|
|
*/ |
|
|
|
|
queryActivity(){ |
|
|
|
|
this.activity = []; |
|
|
|
|
getQueryActivity().then(rest =>{ |
|
|
|
|
//console.log(rest.data); |
|
|
|
|
let sets = rest.data; |
|
|
|
@ -309,6 +315,8 @@ export default {
|
|
|
|
|
this.reset(); |
|
|
|
|
this.open = true; |
|
|
|
|
this.title = "添加活动作品 "; |
|
|
|
|
this.queryActivity(); |
|
|
|
|
this.production(); |
|
|
|
|
}, |
|
|
|
|
/** 修改按钮操作 */ |
|
|
|
|
handleUpdate(row) { |
|
|
|
|