|
@@ -170,12 +170,9 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { saveAndEdit, addSave } from "@/api/schedulingMr/schedulingMr";
|
|
|
+import { saveAndEdit, addSave,goodsPageList as goodsPageListApi, } from "@/api/schedulingMr/schedulingMr";
|
|
|
import { pageList } from "@/api/venueMr/venueMr";
|
|
|
import { goodsPageList } from '@/api/programmeMr/programmeMr'
|
|
|
-import {
|
|
|
- goodsPageList as goodsPageListApi,
|
|
|
- } from '@/api/windowTicketSales/ticketingSales'
|
|
|
import { merchantPageList } from '@/api/performanceHallMr/performanceHallMr'
|
|
|
import Editor from "@/components/Editor";
|
|
|
import { getToken } from "@/utils/auth";
|
|
@@ -225,16 +222,13 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
/** 票务信息 */
|
|
|
- async goodsPageListFun(){
|
|
|
+ async goodsPageListFun(value){
|
|
|
try {
|
|
|
let res = await goodsPageListApi({
|
|
|
- pageNum: 1,
|
|
|
- pageSize: 999,
|
|
|
- classifyId: 1,
|
|
|
- goodsType: 2,
|
|
|
+ performId: value
|
|
|
})
|
|
|
if(res.code == 200){
|
|
|
- this.goodsPageListS = res.data.rows
|
|
|
+ this.goodsPageListS = res.data
|
|
|
}
|
|
|
} catch (error) {
|
|
|
}
|
|
@@ -251,7 +245,8 @@ export default {
|
|
|
this.reset();
|
|
|
this.getList();
|
|
|
this.goodsPageList();
|
|
|
- this.goodsPageListFun();
|
|
|
+ this.goodsPageListS = []
|
|
|
+ //this.goodsPageListFun();
|
|
|
// this.merchantPageList();
|
|
|
if (obj){
|
|
|
this.title = "编辑排期";
|
|
@@ -266,6 +261,9 @@ export default {
|
|
|
if(obj.goodsIds) {
|
|
|
this.$set(this.form, 'goodsIds', obj.goodsIds.split(','));
|
|
|
}
|
|
|
+ if(obj.performId) {
|
|
|
+ this.goodsPageListFun(obj.performId);
|
|
|
+ }
|
|
|
this.getList(obj.theatreName);
|
|
|
let map = {
|
|
|
name: obj.timeSnapshot,
|
|
@@ -317,7 +315,12 @@ export default {
|
|
|
this.selectPerform = item;
|
|
|
}
|
|
|
})
|
|
|
+ this.goodsPageListS = []
|
|
|
+ if(id) {
|
|
|
+ this.goodsPageListFun(id);
|
|
|
+ }
|
|
|
this.$set(this.form, 'performDate' , '')
|
|
|
+ this.$set(this.form, 'goodsIds' , [])
|
|
|
},
|
|
|
// yyyy-mm-dd 转时时间戳
|
|
|
dateToTimestamp(year, month, day) {
|