diff --git a/src/views/mes/wm/productrecpt/index.vue b/src/views/mes/wm/productrecpt/index.vue index 1a6030c..72b380f 100644 --- a/src/views/mes/wm/productrecpt/index.vue +++ b/src/views/mes/wm/productrecpt/index.vue @@ -58,7 +58,7 @@ size="mini" :disabled="single" @click="handleUpdate" - v-hasPermi="['mes:wm:productrecpt:edit']" + v-hasPermi="['mes:productrecpt:edit']" >修改 @@ -69,7 +69,7 @@ size="mini" :disabled="multiple" @click="handleDelete" - v-hasPermi="['mes:wm:productrecpt:remove']" + v-hasPermi="['mes:productrecpt:remove']" >删除 @@ -110,7 +110,7 @@ icon="el-icon-video-play" v-if="scope.row.status =='PREPARE'" @click="handleExecute(scope.row)" - v-hasPermi="['mes:wm:productrecpt:edit']" + v-hasPermi="['mes:productrecpt:edit']" >执行入库 修改 删除 - + + @change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view' && form.status =='PREPARE'"> @@ -188,7 +188,7 @@ - + @@ -197,13 +197,13 @@ - 物料信息 + 物料信息 @@ -302,16 +302,16 @@ export default { }); }, getWarehouseList(){ - getTreeList().then( response =>{ + getTreeList().then( response =>{ this.warehouseOptions = response.data; this.warehouseOptions.map(w =>{ w.children.map(l =>{ - let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName'); + let lstr =JSON.stringify(l.children).replace(/locationId/g,'lId').replace(/areaId/g, 'pId').replace(/areaName/g,'pName'); l.children = JSON.parse(lstr); }); - - let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName'); - w.children = JSON.parse(wstr); + + let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName'); + w.children = JSON.parse(wstr); }); let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName'); @@ -459,7 +459,7 @@ export default { } }, //选择默认的仓库、库区、库位 - handleWarehouseChanged(obj){ + handleWarehouseChanged(obj){ if(obj !=null){ this.form.warehouseId = obj[0]; this.form.locationId = obj[1];