|
@@ -97,6 +97,15 @@
|
|
v-hasPermi="['schedulingMr:schedulingMr:batchDelete']"
|
|
v-hasPermi="['schedulingMr:schedulingMr:batchDelete']"
|
|
>批量删除</el-button>
|
|
>批量删除</el-button>
|
|
</el-col>
|
|
</el-col>
|
|
|
|
+ <el-col :span="1.5">
|
|
|
|
+ <el-button
|
|
|
|
+ type="success"
|
|
|
|
+ plain
|
|
|
|
+ size="mini"
|
|
|
|
+ @click="handleStockAll"
|
|
|
|
+ v-hasPermi="['schedulingMr:schedulingMr:stock']"
|
|
|
|
+ >渠道库存设置</el-button>
|
|
|
|
+ </el-col>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
|
@@ -124,6 +133,7 @@
|
|
<span>{{ scope.row.performTimeEnd }}</span>
|
|
<span>{{ scope.row.performTimeEnd }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column label="可售总库存" align="center" prop="saleSeatNum" />
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
<el-table-column label="状态" align="center" prop="status">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-tag type="success" v-if="scope.row.status == '1'">启用</el-tag>
|
|
<el-tag type="success" v-if="scope.row.status == '1'">启用</el-tag>
|
|
@@ -147,6 +157,15 @@
|
|
@click="handleUpdate(scope.row)"
|
|
@click="handleUpdate(scope.row)"
|
|
v-hasPermi="['schedulingMr:schedulingMr:edit']"
|
|
v-hasPermi="['schedulingMr:schedulingMr:edit']"
|
|
>修改</el-button>
|
|
>修改</el-button>
|
|
|
|
+ <span v-hasPermi="['schedulingMr:schedulingMr:stock']" style="display: inline-block;">
|
|
|
|
+ <el-button
|
|
|
|
+ size="mini"
|
|
|
|
+ type="text"
|
|
|
|
+ v-if="scope.row.status == 1"
|
|
|
|
+ @click="handleStockAll(scope.row)"
|
|
|
|
+ style="margin-left: 10px;margin-right: 10px;"
|
|
|
|
+ >库存设置</el-button>
|
|
|
|
+ </span>
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
type="text"
|
|
type="text"
|
|
@@ -194,6 +213,7 @@
|
|
<el-button type="primary" @click="visibleStatus = false">确 定</el-button>
|
|
<el-button type="primary" @click="visibleStatus = false">确 定</el-button>
|
|
</div>
|
|
</div>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <stockAll ref="stockAll" @getList="getList" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -202,10 +222,12 @@
|
|
import { pageList, deleteById, deleteBatchById,ionline } from '@/api/schedulingMr/schedulingMr'
|
|
import { pageList, deleteById, deleteBatchById,ionline } from '@/api/schedulingMr/schedulingMr'
|
|
import addAndEdit from "./dialog/addAndEdit";
|
|
import addAndEdit from "./dialog/addAndEdit";
|
|
import { pageList as goodsIdsListApi } from '@/api/ticketMr/ticketMr'
|
|
import { pageList as goodsIdsListApi } from '@/api/ticketMr/ticketMr'
|
|
|
|
+import stockAll from "./dialog/stockAll.vue"
|
|
|
|
+import { row } from 'mathjs';
|
|
export default {
|
|
export default {
|
|
name: "SchedulingMr1",
|
|
name: "SchedulingMr1",
|
|
dicts: ['agreement_type'],
|
|
dicts: ['agreement_type'],
|
|
- components: { addAndEdit },
|
|
+ components: { addAndEdit,stockAll },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
// 遮罩层
|
|
// 遮罩层
|
|
@@ -379,6 +401,9 @@ export default {
|
|
this.visibleStatus = true
|
|
this.visibleStatus = true
|
|
this.visibleType = type;
|
|
this.visibleType = type;
|
|
this.newObj = obj;
|
|
this.newObj = obj;
|
|
|
|
+ },
|
|
|
|
+ handleStockAll(row) {
|
|
|
|
+ this.$refs["stockAll"].openDialog("新增数据",row);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|