菜谱管理
This commit is contained in:
		
							parent
							
								
									cb27e520a2
								
							
						
					
					
						commit
						5fd26b998b
					
				| 
						 | 
				
			
			@ -85,7 +85,7 @@ export function addMenuRecipeApi(data) {
 | 
			
		|||
//菜谱-编辑
 | 
			
		||||
export function editMenuRecipeApi(data) {
 | 
			
		||||
  return request({
 | 
			
		||||
    url: '/smart-canteen/cook_recipe',
 | 
			
		||||
    url: '/smart-canteen/cook_recipe/edit',
 | 
			
		||||
    method: 'post',
 | 
			
		||||
    headers: {
 | 
			
		||||
        "merchant-id":"378915229716713472",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,7 +3,7 @@ import request from '@/utils/request'
 | 
			
		|||
// 仓库
 | 
			
		||||
export function drpWareHousePageApi(data) {
 | 
			
		||||
  return request({
 | 
			
		||||
    url: '/smart-canteen/warehouse_info/list',
 | 
			
		||||
    url: '/smart-canteen/supply_warehouse_info/list',
 | 
			
		||||
    method: 'get',
 | 
			
		||||
    headers: {
 | 
			
		||||
      "merchant-id":"378915229716713472",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -126,19 +126,19 @@
 | 
			
		|||
                    </div>
 | 
			
		||||
                    <div>
 | 
			
		||||
                        <div style="font-weight: bold;margin: 10px 0;">菜品分类</div>
 | 
			
		||||
                        <el-cascader v-model="queryDish.dishesTypeId"
 | 
			
		||||
                        <el-cascader v-model="queryDish.typeId"
 | 
			
		||||
                            :options="typeOptions" :filterable="true" style="width: 100%;" :show-all-levels="false"
 | 
			
		||||
                            :props="{ 
 | 
			
		||||
                                emitPath: false,// 若设置 false,则只返回该节点的值,只返回最后选择的id
 | 
			
		||||
                                checkStrictly: false,//来设置父子节点取消选中关联,从而达到选择任意一级选项的目的
 | 
			
		||||
                                value:'dishesTypeId',label:'dishesTypeName'
 | 
			
		||||
                                value:'typeId',label:'dishesTypeName'
 | 
			
		||||
                            }" clearable @change="getDishesPage">
 | 
			
		||||
                        </el-cascader>
 | 
			
		||||
                        <!-- <el-select v-model="queryDish.dishesTypeId" style="width: 100%;" clearable @change="getDishesPage">
 | 
			
		||||
                        <!-- <el-select v-model="queryDish.typeId" style="width: 100%;" clearable @change="getDishesPage">
 | 
			
		||||
                            <el-option v-for="item in typeOptions"
 | 
			
		||||
                                :key="item.dishesTypeId"
 | 
			
		||||
                                :key="item.typeId"
 | 
			
		||||
                                :label="item.dishesTypeName"
 | 
			
		||||
                                :value="item.dishesTypeId" 
 | 
			
		||||
                                :value="item.typeId" 
 | 
			
		||||
                            ></el-option>
 | 
			
		||||
                        </el-select> -->
 | 
			
		||||
                    </div>
 | 
			
		||||
| 
						 | 
				
			
			@ -166,7 +166,7 @@
 | 
			
		|||
                <div class="dialog-center">
 | 
			
		||||
                    <div class="dialog-center-header">菜品分类</div>
 | 
			
		||||
                    <div v-for="(item,index) in dishesTypeList" :key="index" style="width: 100%;text-align: center;margin: 10px 0;">
 | 
			
		||||
                        <el-button plain :class="dishesType==item.dishesTypeId?'primary':''" style="width: 80%;" @click="choseDishesType(item)">{{ item.dishesTypeName }}</el-button>
 | 
			
		||||
                        <el-button plain :class="dishesType==item.typeId?'primary':''" style="width: 80%;" @click="choseDishesType(item)">{{ item.dishesTypeName }}</el-button>
 | 
			
		||||
                    </div> 
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="dialog-right">
 | 
			
		||||
| 
						 | 
				
			
			@ -542,7 +542,7 @@ export default {
 | 
			
		|||
        // 查询菜品
 | 
			
		||||
        queryDish:{
 | 
			
		||||
            salesMode:null,
 | 
			
		||||
            dishesTypeId:null,
 | 
			
		||||
            typeId:null,
 | 
			
		||||
            dishesName:''
 | 
			
		||||
        },
 | 
			
		||||
        typeOptions:[],
 | 
			
		||||
| 
						 | 
				
			
			@ -843,9 +843,9 @@ export default {
 | 
			
		|||
            this.dishesList=item.dishesList; 
 | 
			
		||||
            this.dishesTypeList=[]
 | 
			
		||||
            this.dishesList.forEach(dish=>{
 | 
			
		||||
                let index = this.dishesTypeList.findIndex(v=>v.dishesTypeId==dish.dishesTypeId)
 | 
			
		||||
                let index = this.dishesTypeList.findIndex(v=>v.typeId==dish.typeId)
 | 
			
		||||
                if(index==-1){
 | 
			
		||||
                    this.dishesTypeList.push({dishesTypeId:dish.dishesTypeId,dishesTypeName:dish.dishesTypeName})
 | 
			
		||||
                    this.dishesTypeList.push({typeId:dish.typeId,dishesTypeName:dish.dishesTypeName})
 | 
			
		||||
                }
 | 
			
		||||
            }) 
 | 
			
		||||
            this.choseDishesType(this.dishesTypeList[0])
 | 
			
		||||
| 
						 | 
				
			
			@ -859,7 +859,7 @@ export default {
 | 
			
		|||
                "canteenId":this.baseInfo.canteenId,
 | 
			
		||||
                "stallId":this.baseInfo.stallId,
 | 
			
		||||
                "salesMode":this.queryDish.salesMode,
 | 
			
		||||
                "typeIds":[this.queryDish.dishesTypeId],
 | 
			
		||||
                "typeIds":[this.queryDish.typeId],
 | 
			
		||||
                "dishesName":this.queryDish.dishesName, 
 | 
			
		||||
                "pageNum":1,
 | 
			
		||||
                "pageSize":100
 | 
			
		||||
| 
						 | 
				
			
			@ -894,9 +894,9 @@ export default {
 | 
			
		|||
                    }
 | 
			
		||||
                })
 | 
			
		||||
                //判断是否为新菜品类型
 | 
			
		||||
                let typeIndex = this.dishesTypeList.findIndex(v=>v.dishesTypeId==obj.dishesTypeId)
 | 
			
		||||
                let typeIndex = this.dishesTypeList.findIndex(v=>v.typeId==obj.typeId)
 | 
			
		||||
                if(typeIndex==-1){
 | 
			
		||||
                    this.dishesTypeList.push({dishesTypeId:obj.dishesTypeId,dishesTypeName:obj.dishesTypeName})
 | 
			
		||||
                    this.dishesTypeList.push({typeId:obj.typeId,dishesTypeName:obj.dishesTypeName})
 | 
			
		||||
                }
 | 
			
		||||
            }else{
 | 
			
		||||
                this.dishesList.splice(index,1)
 | 
			
		||||
| 
						 | 
				
			
			@ -912,15 +912,15 @@ export default {
 | 
			
		|||
        },
 | 
			
		||||
        //选中菜品类型-更新右侧表格数据
 | 
			
		||||
        choseDishesType(item){
 | 
			
		||||
            this.dishesType = item.dishesTypeId;
 | 
			
		||||
            this.dishesType = item.typeId;
 | 
			
		||||
            this.dishesTableList = []
 | 
			
		||||
            this.dishesList.forEach(dish=>{
 | 
			
		||||
                if(dish.dishesTypeId==item.dishesTypeId){
 | 
			
		||||
                if(dish.typeId==item.typeId){
 | 
			
		||||
                    this.dishesTableList.push(dish)
 | 
			
		||||
                }
 | 
			
		||||
            })
 | 
			
		||||
            if(this.dishesTableList.length==0){//单个菜品分类中无菜品时,删除该分类
 | 
			
		||||
                let typeIndex = this.dishesTypeList.findIndex(v=>v.dishesTypeId==item.dishesTypeId)
 | 
			
		||||
                let typeIndex = this.dishesTypeList.findIndex(v=>v.typeId==item.typeId)
 | 
			
		||||
                if(typeIndex>-1){
 | 
			
		||||
                    this.dishesTypeList.splice(typeIndex,1)
 | 
			
		||||
                }
 | 
			
		||||
| 
						 | 
				
			
			@ -940,7 +940,7 @@ export default {
 | 
			
		|||
                        }
 | 
			
		||||
                    })
 | 
			
		||||
                    if(this.dishesTableList.length==0){//单个菜品分类中无菜品时,删除该分类
 | 
			
		||||
                        let typeIndex = this.dishesTypeList.findIndex(v=>v.dishesTypeId==item.dishesTypeId)
 | 
			
		||||
                        let typeIndex = this.dishesTypeList.findIndex(v=>v.typeId==item.typeId)
 | 
			
		||||
                        if(typeIndex>-1){
 | 
			
		||||
                            this.dishesTypeList.splice(typeIndex,1)
 | 
			
		||||
                        }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -126,19 +126,19 @@
 | 
			
		|||
                    </div>
 | 
			
		||||
                    <div>
 | 
			
		||||
                        <div style="font-weight: bold;margin: 10px 0;">菜品分类</div>
 | 
			
		||||
                        <el-cascader v-model="queryDish.dishesTypeId"
 | 
			
		||||
                        <el-cascader v-model="queryDish.typeId"
 | 
			
		||||
                            :options="typeOptions" :filterable="true" style="width: 100%;" :show-all-levels="false"
 | 
			
		||||
                            :props="{ 
 | 
			
		||||
                                emitPath: false,// 若设置 false,则只返回该节点的值,只返回最后选择的id
 | 
			
		||||
                                checkStrictly: false,//来设置父子节点取消选中关联,从而达到选择任意一级选项的目的
 | 
			
		||||
                                value:'dishesTypeId',label:'dishesTypeName'
 | 
			
		||||
                                value:'typeId',label:'dishesTypeName'
 | 
			
		||||
                            }" clearable @change="getDishesPage">
 | 
			
		||||
                        </el-cascader>
 | 
			
		||||
                        <!-- <el-select v-model="queryDish.dishesTypeId" style="width: 100%;" clearable @change="getDishesPage">
 | 
			
		||||
                        <!-- <el-select v-model="queryDish.typeId" style="width: 100%;" clearable @change="getDishesPage">
 | 
			
		||||
                            <el-option v-for="item in typeOptions"
 | 
			
		||||
                                :key="item.dishesTypeId"
 | 
			
		||||
                                :key="item.typeId"
 | 
			
		||||
                                :label="item.dishesTypeName"
 | 
			
		||||
                                :value="item.dishesTypeId" 
 | 
			
		||||
                                :value="item.typeId" 
 | 
			
		||||
                            ></el-option>
 | 
			
		||||
                        </el-select> -->
 | 
			
		||||
                    </div>
 | 
			
		||||
| 
						 | 
				
			
			@ -166,7 +166,7 @@
 | 
			
		|||
                <div class="dialog-center">
 | 
			
		||||
                    <div class="dialog-center-header">菜品分类</div>
 | 
			
		||||
                    <div v-for="(item,index) in dishesTypeList" :key="index" style="width: 100%;text-align: center;margin: 10px 0;">
 | 
			
		||||
                        <el-button plain :class="dishesType==item.dishesTypeId?'primary':''" style="width: 80%;" @click="choseDishesType(item)">{{ item.dishesTypeName }}</el-button>
 | 
			
		||||
                        <el-button plain :class="dishesType==item.typeId?'primary':''" style="width: 80%;" @click="choseDishesType(item)">{{ item.dishesTypeName }}</el-button>
 | 
			
		||||
                    </div> 
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="dialog-right">
 | 
			
		||||
| 
						 | 
				
			
			@ -543,7 +543,7 @@ export default {
 | 
			
		|||
        // 查询菜品
 | 
			
		||||
        queryDish:{
 | 
			
		||||
            salesMode:null,
 | 
			
		||||
            dishesTypeId:null,
 | 
			
		||||
            typeId:null,
 | 
			
		||||
            dishesName:''
 | 
			
		||||
        },
 | 
			
		||||
        typeOptions:[],
 | 
			
		||||
| 
						 | 
				
			
			@ -707,11 +707,11 @@ export default {
 | 
			
		|||
            }
 | 
			
		||||
            getMenuRecipeDetailApi(param).then((response) => {
 | 
			
		||||
                // console.log(response)
 | 
			
		||||
                if(response.length>0){
 | 
			
		||||
                    for (let i = 0; i < response.length; i++) {
 | 
			
		||||
                if(response.data.length>0){
 | 
			
		||||
                    for (let i = 0; i < response.data.length; i++) {
 | 
			
		||||
                        this.detailList.forEach(item=>{
 | 
			
		||||
                            if(item.mealtimeType==response[i].mealtimeType){
 | 
			
		||||
                                item.dishesList = response[i].dishesList;
 | 
			
		||||
                            if(item.mealtimeType==response.data[i].mealtimeType){
 | 
			
		||||
                                item.dishesList = response.data[i].dishesList;
 | 
			
		||||
                                item.dishesList.forEach(dish=>{
 | 
			
		||||
                                    this.$set(dish,'price',Number(dish.price/100))
 | 
			
		||||
                                    this.$set(dish,'salePrice',Number(dish.salePrice/100)||0)
 | 
			
		||||
| 
						 | 
				
			
			@ -730,11 +730,11 @@ export default {
 | 
			
		|||
            }
 | 
			
		||||
            getMenuRecipeTemplateDetailApi(param).then((response) => {
 | 
			
		||||
                // console.log(response)
 | 
			
		||||
                if(response.length>0){
 | 
			
		||||
                    for (let i = 0; i < response.length; i++) {
 | 
			
		||||
                if(response.data.length>0){
 | 
			
		||||
                    for (let i = 0; i < response.data.length; i++) {
 | 
			
		||||
                        this.detailList.forEach(item=>{
 | 
			
		||||
                            if(item.mealtimeType==response[i].mealtimeType){
 | 
			
		||||
                                item.dishesList = response[i].dishesList
 | 
			
		||||
                            if(item.mealtimeType==response.data[i].mealtimeType){
 | 
			
		||||
                                item.dishesList = response.data[i].dishesList
 | 
			
		||||
                                item.dishesList.forEach(dish=>{
 | 
			
		||||
                                    this.$set(dish,'price',Number(dish.price/100))
 | 
			
		||||
                                    this.$set(dish,'salePrice',Number(dish.salePrice/100)||0)
 | 
			
		||||
| 
						 | 
				
			
			@ -753,11 +753,11 @@ export default {
 | 
			
		|||
            }
 | 
			
		||||
            getMenuRecipeTemplateDetailApi(param).then((response) => {
 | 
			
		||||
                // console.log(response)
 | 
			
		||||
                if(response.length>0){
 | 
			
		||||
                    for (let i = 0; i < response.length; i++) {
 | 
			
		||||
                if(response.data.length>0){
 | 
			
		||||
                    for (let i = 0; i < response.data.length; i++) {
 | 
			
		||||
                        this.detailList.forEach(item=>{
 | 
			
		||||
                            if(item.mealtimeType==response[i].mealtimeType){
 | 
			
		||||
                                item.dishesList = response[i].dishesList
 | 
			
		||||
                            if(item.mealtimeType==response.data[i].mealtimeType){
 | 
			
		||||
                                item.dishesList = response.data[i].dishesList
 | 
			
		||||
                                item.dishesList.forEach(dish=>{
 | 
			
		||||
                                    this.$set(dish,'price',Number(dish.price/100))
 | 
			
		||||
                                    this.$set(dish,'salePrice',Number(dish.salePrice/100)||0)
 | 
			
		||||
| 
						 | 
				
			
			@ -1045,9 +1045,9 @@ export default {
 | 
			
		|||
            this.dishesList=item.dishesList; 
 | 
			
		||||
            this.dishesTypeList=[]
 | 
			
		||||
            this.dishesList.forEach(dish=>{
 | 
			
		||||
                let index = this.dishesTypeList.findIndex(v=>v.dishesTypeId==dish.dishesTypeId)
 | 
			
		||||
                let index = this.dishesTypeList.findIndex(v=>v.typeId==dish.typeId)
 | 
			
		||||
                if(index==-1){
 | 
			
		||||
                    this.dishesTypeList.push({dishesTypeId:dish.dishesTypeId,dishesTypeName:dish.dishesTypeName})
 | 
			
		||||
                    this.dishesTypeList.push({typeId:dish.typeId,dishesTypeName:dish.dishesTypeName})
 | 
			
		||||
                }
 | 
			
		||||
            }) 
 | 
			
		||||
            this.choseDishesType(this.dishesTypeList[0])
 | 
			
		||||
| 
						 | 
				
			
			@ -1061,7 +1061,7 @@ export default {
 | 
			
		|||
                "canteenId":this.baseInfo.canteenId,
 | 
			
		||||
                "stallId":this.baseInfo.stallId,
 | 
			
		||||
                "salesMode":this.queryDish.salesMode,
 | 
			
		||||
                "typeIds":[this.queryDish.dishesTypeId],
 | 
			
		||||
                "typeIds":[this.queryDish.typeId],
 | 
			
		||||
                "dishesName":this.queryDish.dishesName, 
 | 
			
		||||
                "pageNum":1,
 | 
			
		||||
                "pageSize":100
 | 
			
		||||
| 
						 | 
				
			
			@ -1096,9 +1096,9 @@ export default {
 | 
			
		|||
                    }
 | 
			
		||||
                })
 | 
			
		||||
                //判断是否为新菜品类型
 | 
			
		||||
                let typeIndex = this.dishesTypeList.findIndex(v=>v.dishesTypeId==obj.dishesTypeId)
 | 
			
		||||
                let typeIndex = this.dishesTypeList.findIndex(v=>v.typeId==obj.typeId)
 | 
			
		||||
                if(typeIndex==-1){
 | 
			
		||||
                    this.dishesTypeList.push({dishesTypeId:obj.dishesTypeId,dishesTypeName:obj.dishesTypeName})
 | 
			
		||||
                    this.dishesTypeList.push({typeId:obj.typeId,dishesTypeName:obj.dishesTypeName})
 | 
			
		||||
                }
 | 
			
		||||
            }else{
 | 
			
		||||
                this.dishesList.splice(index,1)
 | 
			
		||||
| 
						 | 
				
			
			@ -1114,15 +1114,15 @@ export default {
 | 
			
		|||
        },
 | 
			
		||||
        //选中菜品类型-更新右侧表格数据
 | 
			
		||||
        choseDishesType(item){ 
 | 
			
		||||
            this.dishesType = item.dishesTypeId;
 | 
			
		||||
            this.dishesType = item.typeId;
 | 
			
		||||
            this.dishesTableList = []
 | 
			
		||||
            this.dishesList.forEach(dish=>{
 | 
			
		||||
                if(dish.dishesTypeId==item.dishesTypeId){
 | 
			
		||||
                if(dish.typeId==item.typeId){
 | 
			
		||||
                    this.dishesTableList.push(dish)
 | 
			
		||||
                }
 | 
			
		||||
            })
 | 
			
		||||
            if(this.dishesTableList.length==0){//单个菜品分类中无菜品时,删除该分类
 | 
			
		||||
                let typeIndex = this.dishesTypeList.findIndex(v=>v.dishesTypeId==item.dishesTypeId)
 | 
			
		||||
                let typeIndex = this.dishesTypeList.findIndex(v=>v.typeId==item.typeId)
 | 
			
		||||
                if(typeIndex>-1){
 | 
			
		||||
                    this.dishesTypeList.splice(typeIndex,1)
 | 
			
		||||
                }
 | 
			
		||||
| 
						 | 
				
			
			@ -1142,7 +1142,7 @@ export default {
 | 
			
		|||
                        }
 | 
			
		||||
                    })
 | 
			
		||||
                    if(this.dishesTableList.length==0){//单个菜品分类中无菜品时,删除该分类
 | 
			
		||||
                        let typeIndex = this.dishesTypeList.findIndex(v=>v.dishesTypeId==item.dishesTypeId)
 | 
			
		||||
                        let typeIndex = this.dishesTypeList.findIndex(v=>v.typeId==item.typeId)
 | 
			
		||||
                        if(typeIndex>-1){
 | 
			
		||||
                            this.dishesTypeList.splice(typeIndex,1)
 | 
			
		||||
                        }
 | 
			
		||||
| 
						 | 
				
			
			@ -1412,11 +1412,11 @@ export default {
 | 
			
		|||
                    "recipeId": this.dialogQueryParams.recipeId
 | 
			
		||||
                }
 | 
			
		||||
                getMenuRecipeTemplateDetailApi(param).then((response) => {
 | 
			
		||||
                    if(response.length>0){
 | 
			
		||||
                        for (let i = 0; i < response.length; i++) {
 | 
			
		||||
                    if(response.data.length>0){
 | 
			
		||||
                        for (let i = 0; i < response.data.length; i++) {
 | 
			
		||||
                            this.dialogDetailList.forEach(item=>{
 | 
			
		||||
                                if(item.mealtimeType==response[i].mealtimeType){
 | 
			
		||||
                                    item.dishesList = response[i].dishesList;
 | 
			
		||||
                                if(item.mealtimeType==response.data[i].mealtimeType){
 | 
			
		||||
                                    item.dishesList = response.data[i].dishesList;
 | 
			
		||||
                                }
 | 
			
		||||
                            }) 
 | 
			
		||||
                        }  
 | 
			
		||||
| 
						 | 
				
			
			@ -1458,11 +1458,11 @@ export default {
 | 
			
		|||
                    "recipeId": this.dialogQueryParams.recipeId
 | 
			
		||||
                }
 | 
			
		||||
                getMenuRecipeTemplateDetailApi(param).then((response) => {
 | 
			
		||||
                    if(response.length>0){
 | 
			
		||||
                        for (let i = 0; i < response.length; i++) {
 | 
			
		||||
                    if(response.data.length>0){
 | 
			
		||||
                        for (let i = 0; i < response.data.length; i++) {
 | 
			
		||||
                            this.dialogDetailList.forEach(item=>{
 | 
			
		||||
                                if(item.mealtimeType==response[i].mealtimeType){
 | 
			
		||||
                                    item.dishesList = response[i].dishesList;
 | 
			
		||||
                                if(item.mealtimeType==response.data[i].mealtimeType){
 | 
			
		||||
                                    item.dishesList = response.data[i].dishesList;
 | 
			
		||||
                                }
 | 
			
		||||
                            }) 
 | 
			
		||||
                        }  
 | 
			
		||||
| 
						 | 
				
			
			@ -1608,11 +1608,11 @@ export default {
 | 
			
		|||
                    "recipeId": this.dialogQueryParams.recipeId
 | 
			
		||||
                }
 | 
			
		||||
                getMenuRecipeTemplateDetailApi(param).then((response) => {
 | 
			
		||||
                    if(response.length>0){
 | 
			
		||||
                        for (let i = 0; i < response.length; i++) {
 | 
			
		||||
                    if(response.data.length>0){
 | 
			
		||||
                        for (let i = 0; i < response.data.length; i++) {
 | 
			
		||||
                            this.dialogDetailList.forEach(item=>{
 | 
			
		||||
                                if(item.mealtimeType==response[i].mealtimeType){
 | 
			
		||||
                                    item.dishesList = response[i].dishesList;
 | 
			
		||||
                                if(item.mealtimeType==response.data[i].mealtimeType){
 | 
			
		||||
                                    item.dishesList = response.data[i].dishesList;
 | 
			
		||||
                                }
 | 
			
		||||
                            }) 
 | 
			
		||||
                        }  
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -146,7 +146,7 @@
 | 
			
		|||
            <el-table-column label="菜品数量" align="center" prop="dishesCount" v-if="activeName=='pageRecipe'"/>
 | 
			
		||||
            <el-table-column label="菜谱生效日期" align="center" prop="applyDateStringList" v-if="activeName=='pageRecipe'">
 | 
			
		||||
                <template slot-scope="scope">
 | 
			
		||||
                    <!-- <el-popover placement="top" width="400"> 
 | 
			
		||||
                    <el-popover placement="top" width="400"> 
 | 
			
		||||
                        <div style="width: 100%;padding: 10px;border-bottom: 1px solid #ccc;margin-bottom: 10px;">
 | 
			
		||||
                            {{currentMonth}}
 | 
			
		||||
                        </div> 
 | 
			
		||||
| 
						 | 
				
			
			@ -157,7 +157,7 @@
 | 
			
		|||
                            <div v-for="(item,index) in monthDaysList" :key="index" :class="scope.row.applyDateStringList.findIndex(v=>v==item)>-1 ? 'dateTable2' : 'dateTable'" class="" >{{item}}</div> 
 | 
			
		||||
                        </div> 
 | 
			
		||||
                    <div style="color: #1890ff;cursor: pointer;" slot="reference">查看详情</div> 
 | 
			
		||||
                    </el-popover> -->
 | 
			
		||||
                    </el-popover>
 | 
			
		||||
                </template>
 | 
			
		||||
            </el-table-column>
 | 
			
		||||
            <el-table-column label="用户范围" align="center" prop="effName" v-if="activeName=='pageRecipe'"/>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -443,13 +443,13 @@
 | 
			
		|||
        },
 | 
			
		||||
        handleTreeChange(e){
 | 
			
		||||
            console.log(e) 
 | 
			
		||||
            // let param = {
 | 
			
		||||
            //     areaId:e
 | 
			
		||||
            // } 
 | 
			
		||||
            // drpWareHousePageApi(param).then(response => {
 | 
			
		||||
            //     this.wareHouseOptions = response.rows
 | 
			
		||||
            //     this.queryParams.warehouseId = null
 | 
			
		||||
            // });
 | 
			
		||||
            let param = {
 | 
			
		||||
                areaId:e
 | 
			
		||||
            } 
 | 
			
		||||
            drpWareHousePageApi(param).then(response => {
 | 
			
		||||
                this.wareHouseOptions = response.rows
 | 
			
		||||
                this.queryParams.warehouseId = null
 | 
			
		||||
            });
 | 
			
		||||
        },
 | 
			
		||||
        getWareHouse() {
 | 
			
		||||
            drpWareHousePageApi({}).then(response => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue