组件问题修改

This commit is contained in:
zzyuan 2025-03-21 17:59:18 +08:00
parent f58abc9f0b
commit e1e701430d
9 changed files with 246 additions and 146 deletions

View File

@ -127,6 +127,18 @@ export function editMenuDishesApi(data) {
data: data data: data
}) })
} }
// 菜品列表-详情
export function menuDishesDetailApi(data) {
return request({
url: '/smart-canteen/api/v2/menudishes/detail/'+data.dishesId,
method: 'post',
headers: {
"merchant-id":"378915229716713472",
},
data: data
})
}
// 菜品列表-删除 // 菜品列表-删除
export function removeMenuDishesApi(dishesId) { export function removeMenuDishesApi(dishesId) {
return request({ return request({

View File

@ -10,7 +10,7 @@
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
format="yyyy-MM-dd HH:mm:ss" style="width: 240px" format="yyyy-MM-dd HH:mm:ss" style="width: 340px"
:default-time="['00:00:00', '23:59:59']" :default-time="['00:00:00', '23:59:59']"
:picker-options="pickerOptions" > :picker-options="pickerOptions" >
</el-date-picker> </el-date-picker>
@ -176,30 +176,34 @@
walletMinAmount:null, walletMinAmount:null,
walletMaxAmount:null, walletMaxAmount:null,
}, },
dateRange:[new Date(),new Date()], dateRange:this.defaultDateRange(),
pickerOptions: { pickerOptions: {
shortcuts: [{ shortcuts: [{
text: '最近一周', text: '最近一周',
onClick(picker) { onClick(picker) {
const start = new Date(); const end = new Date(new Date().toLocaleDateString());
const end = new Date(); end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1);
start.setTime(start.getTime() - 3600 * 1000 * 24 * 6); const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit('pick', [start, end]); picker.$emit('pick', [start, end]);
} }
},{ }, {
text: '最近一个月', text: '最近一个月',
onClick(picker) { onClick(picker) {
const start = new Date(); const end = new Date(new Date().toLocaleDateString());
const end = new Date(); end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1);
const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit('pick', [start, end]); picker.$emit('pick', [start, end]);
} }
},{ }, {
text: '最近三个月', text: '最近三个月',
onClick(picker) { onClick(picker) {
const start = new Date(); const end = new Date(new Date().toLocaleDateString());
const end = new Date(); end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1);
start.setTime(start.getTime() - 3600 * 1000 * 24 * 91); const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit('pick', [start, end]); picker.$emit('pick', [start, end]);
} }
}] }]
@ -284,6 +288,16 @@
// } // }
// } // }
}, },
defaultDateRange() {
const end = new Date(new Date().toLocaleDateString());
end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1);
const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime());
this.start = parseInt(start.getTime() / 1000)
this.end = parseInt(end.getTime() / 1000)
return [start, end]
},
// //
formatDate(date) { formatDate(date) {
// YYYY-MM-DD // YYYY-MM-DD

View File

@ -10,7 +10,7 @@
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
format="yyyy-MM-dd HH:mm:ss" style="width: 240px" format="yyyy-MM-dd HH:mm:ss" style="width: 340px"
:default-time="['00:00:00', '23:59:59']" :default-time="['00:00:00', '23:59:59']"
:picker-options="pickerOptions" > :picker-options="pickerOptions" >
</el-date-picker> </el-date-picker>
@ -176,30 +176,34 @@
walletMinAmount:null, walletMinAmount:null,
walletMaxAmount:null, walletMaxAmount:null,
}, },
dateRange:[new Date(),new Date()], dateRange:this.defaultDateRange(),
pickerOptions: { pickerOptions: {
shortcuts: [{ shortcuts: [{
text: '最近一周', text: '最近一周',
onClick(picker) { onClick(picker) {
const start = new Date(); const end = new Date(new Date().toLocaleDateString());
const end = new Date(); end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1);
start.setTime(start.getTime() - 3600 * 1000 * 24 * 6); const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit('pick', [start, end]); picker.$emit('pick', [start, end]);
} }
},{ }, {
text: '最近一个月', text: '最近一个月',
onClick(picker) { onClick(picker) {
const start = new Date(); const end = new Date(new Date().toLocaleDateString());
const end = new Date(); end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1);
const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit('pick', [start, end]); picker.$emit('pick', [start, end]);
} }
},{ }, {
text: '最近三个月', text: '最近三个月',
onClick(picker) { onClick(picker) {
const start = new Date(); const end = new Date(new Date().toLocaleDateString());
const end = new Date(); end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1);
start.setTime(start.getTime() - 3600 * 1000 * 24 * 91); const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit('pick', [start, end]); picker.$emit('pick', [start, end]);
} }
}] }]
@ -284,6 +288,16 @@
// } // }
// } // }
}, },
defaultDateRange() {
const end = new Date(new Date().toLocaleDateString());
end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1);
const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime());
this.start = parseInt(start.getTime() / 1000)
this.end = parseInt(end.getTime() / 1000)
return [start, end]
},
// //
formatDate(date) { formatDate(date) {
// YYYY-MM-DD // YYYY-MM-DD

View File

@ -10,7 +10,7 @@
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
format="yyyy-MM-dd HH:mm:ss" style="width: 240px" format="yyyy-MM-dd HH:mm:ss" style="width: 340px"
:default-time="['00:00:00', '23:59:59']" :default-time="['00:00:00', '23:59:59']"
:picker-options="pickerOptions" > :picker-options="pickerOptions" >
</el-date-picker> </el-date-picker>
@ -145,30 +145,34 @@
tableListData: [], tableListData: [],
// //
open: false, open: false,
dateRange:[new Date(),new Date()], dateRange:this.defaultDateRange(),
pickerOptions: { pickerOptions: {
shortcuts: [{ shortcuts: [{
text: '最近一周', text: '最近一周',
onClick(picker) { onClick(picker) {
const start = new Date(); const end = new Date(new Date().toLocaleDateString());
const end = new Date(); end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1);
start.setTime(start.getTime() - 3600 * 1000 * 24 * 6); const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit('pick', [start, end]); picker.$emit('pick', [start, end]);
} }
},{ }, {
text: '最近一个月', text: '最近一个月',
onClick(picker) { onClick(picker) {
const start = new Date(); const end = new Date(new Date().toLocaleDateString());
const end = new Date(); end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1);
const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit('pick', [start, end]); picker.$emit('pick', [start, end]);
} }
},{ }, {
text: '最近三个月', text: '最近三个月',
onClick(picker) { onClick(picker) {
const start = new Date(); const end = new Date(new Date().toLocaleDateString());
const end = new Date(); end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1);
start.setTime(start.getTime() - 3600 * 1000 * 24 * 91); const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit('pick', [start, end]); picker.$emit('pick', [start, end]);
} }
}] }]
@ -256,6 +260,16 @@
this.loading = false; this.loading = false;
}); });
}, },
defaultDateRange() {
const end = new Date(new Date().toLocaleDateString());
end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1);
const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime());
this.start = parseInt(start.getTime() / 1000)
this.end = parseInt(end.getTime() / 1000)
return [start, end]
},
// //
formatDate(date) { formatDate(date) {
// YYYY-MM-DD // YYYY-MM-DD

View File

@ -12,7 +12,7 @@
<el-form-item label="日期"> <el-form-item label="日期">
<el-date-picker <el-date-picker
v-model="dateRange" v-model="dateRange"
type="datetimerange" type="daterange"
align="right" align="right"
unlink-panels unlink-panels
range-separator="至" range-separator="至"
@ -76,7 +76,7 @@
<el-table-column label="用户手机号" align="center" prop="mobile" :show-overflow-tooltip="true" v-if="activeName=='cust'"/> <el-table-column label="用户手机号" align="center" prop="mobile" :show-overflow-tooltip="true" v-if="activeName=='cust'"/>
<el-table-column label="所属组织" align="center" prop="orgFullName" :show-overflow-tooltip="true" v-if="activeName=='cust'||activeName=='organization'"/> <el-table-column label="所属组织" align="center" prop="orgFullName" :show-overflow-tooltip="true" v-if="activeName=='cust'||activeName=='organization'"/>
<el-table-column label="用户类别" align="center" prop="psnTypeName" :show-overflow-tooltip="true" v-if="activeName=='cust'||activeName=='psn'"/> <el-table-column label="用户类别" align="center" prop="psnTypeName" :show-overflow-tooltip="true" v-if="activeName=='cust'||activeName=='psn'"/>
<el-table-column label="正常消费"> <el-table-column label="正常消费" align="center">
<el-table-column label="次数" align="center" prop="consumeNum" :show-overflow-tooltip="true" /> <el-table-column label="次数" align="center" prop="consumeNum" :show-overflow-tooltip="true" />
<el-table-column label="金额" align="center" prop="consumeAmount" :show-overflow-tooltip="true" > <el-table-column label="金额" align="center" prop="consumeAmount" :show-overflow-tooltip="true" >
<template slot-scope="scope"> <template slot-scope="scope">
@ -84,7 +84,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="补扣消费"> <el-table-column label="补扣消费" align="center">
<el-table-column label="次数" align="center" prop="consumeRepairNum" :show-overflow-tooltip="true" /> <el-table-column label="次数" align="center" prop="consumeRepairNum" :show-overflow-tooltip="true" />
<el-table-column label="金额" align="center" prop="consumeRepairAmount" :show-overflow-tooltip="true" > <el-table-column label="金额" align="center" prop="consumeRepairAmount" :show-overflow-tooltip="true" >
<template slot-scope="scope"> <template slot-scope="scope">
@ -92,7 +92,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table-column> </el-table-column>
<el-table-column label="退单退款"> <el-table-column label="退单退款" align="center">
<el-table-column label="次数" align="center" prop="consumeRefundNum" :show-overflow-tooltip="true"/> <el-table-column label="次数" align="center" prop="consumeRefundNum" :show-overflow-tooltip="true"/>
<el-table-column label="金额" align="center" prop="consumeRefundAmount" :show-overflow-tooltip="true"> <el-table-column label="金额" align="center" prop="consumeRefundAmount" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">

View File

@ -12,7 +12,7 @@
<el-form-item label="日期"> <el-form-item label="日期">
<el-date-picker <el-date-picker
v-model="dateRange" v-model="dateRange"
type="datetimerange" type="daterange"
align="right" align="right"
unlink-panels unlink-panels
range-separator="至" range-separator="至"

View File

@ -181,30 +181,34 @@
tableListData: [], tableListData: [],
// //
open: false, open: false,
dateRange:[new Date(),new Date()], dateRange:this.defaultDateRange(),
pickerOptions: { pickerOptions: {
shortcuts: [{ shortcuts: [{
text: '最近一周', text: '最近一周',
onClick(picker) { onClick(picker) {
const start = new Date(); const end = new Date(new Date().toLocaleDateString());
const end = new Date(); end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1);
start.setTime(start.getTime() - 3600 * 1000 * 24 * 6); const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
picker.$emit('pick', [start, end]); picker.$emit('pick', [start, end]);
} }
},{ }, {
text: '最近一个月', text: '最近一个月',
onClick(picker) { onClick(picker) {
const start = new Date(); const end = new Date(new Date().toLocaleDateString());
const end = new Date(); end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1);
const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30); start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
picker.$emit('pick', [start, end]); picker.$emit('pick', [start, end]);
} }
},{ }, {
text: '最近三个月', text: '最近三个月',
onClick(picker) { onClick(picker) {
const start = new Date(); const end = new Date(new Date().toLocaleDateString());
const end = new Date(); end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1);
start.setTime(start.getTime() - 3600 * 1000 * 24 * 91); const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
picker.$emit('pick', [start, end]); picker.$emit('pick', [start, end]);
} }
}] }]
@ -304,6 +308,16 @@
this.loading = false; this.loading = false;
}); });
}, },
defaultDateRange() {
const end = new Date(new Date().toLocaleDateString());
end.setTime(end.getTime() + 24 * 60 * 60 * 1000 - 1);
const start = new Date((new Date().toLocaleDateString()));
start.setTime(start.getTime());
this.start = parseInt(start.getTime() / 1000)
this.end = parseInt(end.getTime() / 1000)
return [start, end]
},
// //
formatDate(date) { formatDate(date) {
// YYYY-MM-DD // YYYY-MM-DD

View File

@ -296,7 +296,7 @@
emitPath: false,// falseid emitPath: false,// falseid
checkStrictly: true,// checkStrictly: true,//
value:'id',label:'treeName' value:'id',label:'treeName'
}" clearable @change="handleAreaChange"> }" clearable @change="handleAreaChange2">
</el-cascader> </el-cascader>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -305,8 +305,8 @@
<el-row> <el-row>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="所属食堂" prop="canteenId"> <el-form-item label="所属食堂" prop="canteenId">
<el-select v-model="baseForm.canteenId" placeholder="请选择所属食堂" style="width: 100%;" @change="handleCanteenChange"> <el-select v-model="baseForm.canteenId" placeholder="请选择所属食堂" style="width: 100%;" clearable @change="handleCanteenChange2">
<el-option v-for="item in canteenOptions" <el-option v-for="item in canteenOptions2"
:key="item.canteenId" :key="item.canteenId"
:label="item.canteenName" :label="item.canteenName"
:value="item.canteenId" :value="item.canteenId"
@ -316,8 +316,8 @@
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="所属档口" prop="stallId"> <el-form-item label="所属档口" prop="stallId">
<el-select v-model="baseForm.stallId" placeholder="请选择所属档口" style="width: 100%;" > <el-select v-model="baseForm.stallId" placeholder="请选择所属档口" style="width: 100%;" clearable>
<el-option v-for="item in stallOptions" <el-option v-for="item in stallOptions2"
:key="item.stallId" :key="item.stallId"
:label="item.stallName" :label="item.stallName"
:value="item.stallId" :value="item.stallId"
@ -593,7 +593,7 @@
import Treeselect from "@riophae/vue-treeselect"; import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css"; import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import { menuDishesTypeAllListApi,addMenuDishesTypeApi, editMenuDishesTypeApi, removeMenuDishesTypeApi, systemAreaTreeApi,getCanteenByAreaApi,getStallByCanteenApi} from "@/api/dish/dish"; import { menuDishesTypeAllListApi,addMenuDishesTypeApi, editMenuDishesTypeApi, removeMenuDishesTypeApi, systemAreaTreeApi,getCanteenByAreaApi,getStallByCanteenApi} from "@/api/dish/dish";
import { getMenuDishesListApi,addMenuDishesApi, editMenuDishesApi,removeMenuDishesApi } from "@/api/dish/dish"; import { getMenuDishesListApi,addMenuDishesApi, editMenuDishesApi,menuDishesDetailApi,removeMenuDishesApi } from "@/api/dish/dish";
import { getMenuDishesCookListApi, getMenuDishesLabelListApi, getMenuDishesTasteListApi, getMenuDishesEffectListApi, getMenuDishesStyleListApi, getMenuDishesSuitListApi } from "@/api/dish/type" import { getMenuDishesCookListApi, getMenuDishesLabelListApi, getMenuDishesTasteListApi, getMenuDishesEffectListApi, getMenuDishesStyleListApi, getMenuDishesSuitListApi } from "@/api/dish/type"
import { removeMaterialApi,batchRemoveMaterialApi} from "@/api/dish/material"; import { removeMaterialApi,batchRemoveMaterialApi} from "@/api/dish/material";
import { imgUpLoadTwo } from '@/api/system/upload' import { imgUpLoadTwo } from '@/api/system/upload'
@ -659,6 +659,8 @@
] ]
}, },
treeAreaOptions:[],// treeAreaOptions:[],//
canteenOptions2:[],//
stallOptions2:[],//
batchIds:[], batchIds:[],
openDish: false,// openDish: false,//
activeName:"baseInfo", activeName:"baseInfo",
@ -830,23 +832,41 @@
}); });
}, },
handleAreaChange(e){ handleAreaChange(e){
console.log(this.queryParams.areaIds)
let param= { let param= {
areaIdList:this.queryParams.areaIds||[this.baseForm.areaId] areaIdList:this.queryParams.areaIds
} }
getCanteenByAreaApi(param).then((response) => { getCanteenByAreaApi(param).then((response) => {
this.canteenOptions=response||[] this.canteenOptions=response||[]
}); });
}, },
handleCanteenChange(e){ handleAreaChange2(e){
console.log(this.queryParams.canteenIds)
let param= { let param= {
canteenIdList:this.queryParams.canteenIds||[this.baseForm.canteenId] areaIdList:[this.baseForm.areaId]
}
getCanteenByAreaApi(param).then((response) => {
this.canteenOptions2=response||[]
this.baseForm.canteenId=null
this.stallOptions2 = []
this.baseForm.stallId=null
});
},
handleCanteenChange(e){
let param= {
canteenIdList:this.queryParams.canteenIds
} }
getStallByCanteenApi(param).then((response) => { getStallByCanteenApi(param).then((response) => {
this.stallOptions=response||[] this.stallOptions=response||[]
}); });
}, },
handleCanteenChange2(e){
let param= {
canteenIdList:[this.baseForm.canteenId]
}
getStallByCanteenApi(param).then((response) => {
this.stallOptions2=response||[]
this.baseForm.stallId=null
});
},
/** 搜索按钮操作 */ /** 搜索按钮操作 */
handleQuery() { handleQuery() {
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;
@ -904,9 +924,6 @@
getMenuDishesSuitListApi({"content":JSON.stringify(param)}).then(response => { getMenuDishesSuitListApi({"content":JSON.stringify(param)}).then(response => {
this.dishesSuitOptions = response.data.records; this.dishesSuitOptions = response.data.records;
}); });
}, },
resetDishDialog(){ resetDishDialog(){
@ -948,16 +965,26 @@
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
console.log(row)
menuDishesDetailApi({"dishesId":row.dishesId}).then(response => {
this.getAllSelectList() this.getAllSelectList()
this.resetDishDialog() this.resetDishDialog()
this.baseForm = Object.assign({}, row) this.baseForm = response
this.$set(this.baseForm,"salesMode",row.salesMode+'') getCanteenByAreaApi({areaIdList:[this.baseForm.areaId]}).then((response) => {
this.$set(this.baseForm,"sizeType",row.sizeType+'') this.canteenOptions2=response||[]
this.$set(this.baseForm,"mealType",row.mealType+'') });
getStallByCanteenApi({canteenIdList:[this.baseForm.canteenId]}).then((response) => {
this.stallOptions2=response||[]
});
this.$set(this.baseForm,"salesMode",response.salesMode+'')
this.$set(this.baseForm,"sizeType",response.sizeType+'')
this.$set(this.baseForm,"mealType",response.mealType+'')
this.fileList=[{url:this.baseForm.imageUrl}] this.fileList=[{url:this.baseForm.imageUrl}]
this.checkUrlList=[this.baseForm.imageUrl] this.checkUrlList=[this.baseForm.imageUrl]
this.title = "修改"; this.title = "修改";
this.openDish = true; this.openDish = true;
});
}, },
/** 处理对话框提交 */ /** 处理对话框提交 */

View File

@ -121,7 +121,7 @@
<el-col :span="12"> <el-col :span="12">
<el-form-item label="超市仓库" prop="warehouseId"> <el-form-item label="超市仓库" prop="warehouseId">
<el-select v-model="baseForm.warehouseId" placeholder="请选择超市仓库" style="width: 100%;"> <el-select v-model="baseForm.warehouseId" placeholder="请选择超市仓库" style="width: 100%;">
<el-option v-for="item in wareHouseOptions" <el-option v-for="item in wareHouseOptions2"
:key="item.warehouseId" :key="item.warehouseId"
:label="item.warehouseName" :label="item.warehouseName"
:value="item.warehouseId" :value="item.warehouseId"
@ -343,6 +343,7 @@
areaIdList: [], areaIdList: [],
}, },
wareHouseOptions:[], wareHouseOptions:[],
wareHouseOptions2:[],
psnTypeOptions:[], psnTypeOptions:[],
userOptions:[], userOptions:[],
activeName:"baseSetting", activeName:"baseSetting",
@ -428,7 +429,10 @@
], ],
areaId: [ areaId: [
{ required: true, message: "所属区域不能为空", trigger: "blur" } { required: true, message: "所属区域不能为空", trigger: "blur" }
] ],
deliveryWayList: [
{ required: true, message: "配送方式不能为空", trigger: "change" }
],
}, },
// //
dialogTotal: 0, dialogTotal: 0,
@ -535,7 +539,7 @@
areaIdList:[this.baseForm.areaId] areaIdList:[this.baseForm.areaId]
} }
drpWareHousePageApi(param).then(response => { drpWareHousePageApi(param).then(response => {
this.wareHouseOptions = response.data.records this.wareHouseOptions2 = response.data.records
}); });
if(row.imgUrl){ if(row.imgUrl){
this.fileList=[{url:row.imgUrl}] this.fileList=[{url:row.imgUrl}]
@ -583,7 +587,8 @@
areaIdList:[val] areaIdList:[val]
} }
drpWareHousePageApi(param).then(response => { drpWareHousePageApi(param).then(response => {
this.wareHouseOptions = response.data.records this.wareHouseOptions2 = response.data.records
this.baseForm.warehouseId = null
}); });
}, },
// //