产品入库按钮权限
This commit is contained in:
parent
1db7a0dd89
commit
5d2189d261
@ -58,7 +58,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
:disabled="single"
|
:disabled="single"
|
||||||
@click="handleUpdate"
|
@click="handleUpdate"
|
||||||
v-hasPermi="['mes:wm:productrecpt:edit']"
|
v-hasPermi="['mes:productrecpt:edit']"
|
||||||
>修改</el-button>
|
>修改</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
@ -69,7 +69,7 @@
|
|||||||
size="mini"
|
size="mini"
|
||||||
:disabled="multiple"
|
:disabled="multiple"
|
||||||
@click="handleDelete"
|
@click="handleDelete"
|
||||||
v-hasPermi="['mes:wm:productrecpt:remove']"
|
v-hasPermi="['mes:productrecpt:remove']"
|
||||||
>删除</el-button>
|
>删除</el-button>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="1.5">
|
<el-col :span="1.5">
|
||||||
@ -110,7 +110,7 @@
|
|||||||
icon="el-icon-video-play"
|
icon="el-icon-video-play"
|
||||||
v-if="scope.row.status =='PREPARE'"
|
v-if="scope.row.status =='PREPARE'"
|
||||||
@click="handleExecute(scope.row)"
|
@click="handleExecute(scope.row)"
|
||||||
v-hasPermi="['mes:wm:productrecpt:edit']"
|
v-hasPermi="['mes:productrecpt:edit']"
|
||||||
>执行入库</el-button>
|
>执行入库</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -118,7 +118,7 @@
|
|||||||
icon="el-icon-edit"
|
icon="el-icon-edit"
|
||||||
@click="handleUpdate(scope.row)"
|
@click="handleUpdate(scope.row)"
|
||||||
v-if="scope.row.status =='PREPARE'"
|
v-if="scope.row.status =='PREPARE'"
|
||||||
v-hasPermi="['mes:wm:productrecpt:edit']"
|
v-hasPermi="['mes:productrecpt:edit']"
|
||||||
>修改</el-button>
|
>修改</el-button>
|
||||||
<el-button
|
<el-button
|
||||||
size="mini"
|
size="mini"
|
||||||
@ -126,12 +126,12 @@
|
|||||||
icon="el-icon-delete"
|
icon="el-icon-delete"
|
||||||
@click="handleDelete(scope.row)"
|
@click="handleDelete(scope.row)"
|
||||||
v-if="scope.row.status =='PREPARE'"
|
v-if="scope.row.status =='PREPARE'"
|
||||||
v-hasPermi="['mes:wm:productrecpt:remove']"
|
v-hasPermi="['mes:productrecpt:remove']"
|
||||||
>删除</el-button>
|
>删除</el-button>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|
||||||
<pagination
|
<pagination
|
||||||
v-show="total>0"
|
v-show="total>0"
|
||||||
:total="total"
|
:total="total"
|
||||||
@ -154,7 +154,7 @@
|
|||||||
<el-switch v-model="autoGenFlag"
|
<el-switch v-model="autoGenFlag"
|
||||||
active-color="#13ce66"
|
active-color="#13ce66"
|
||||||
active-text="自动生成"
|
active-text="自动生成"
|
||||||
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view' && form.status =='PREPARE'">
|
@change="handleAutoGenChange(autoGenFlag)" v-if="optType != 'view' && form.status =='PREPARE'">
|
||||||
</el-switch>
|
</el-switch>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
@ -188,7 +188,7 @@
|
|||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="24">
|
<el-col :span="24">
|
||||||
<el-form-item label="备注" prop="remark">
|
<el-form-item label="备注" prop="remark">
|
||||||
@ -197,13 +197,13 @@
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-divider v-if="form.recptId !=null" content-position="center">物料信息</el-divider>
|
<el-divider v-if="form.recptId !=null" content-position="center">物料信息</el-divider>
|
||||||
<el-card shadow="always" v-if="form.recptId !=null" class="box-card">
|
<el-card shadow="always" v-if="form.recptId !=null" class="box-card">
|
||||||
<Productrecptline :recptId="form.recptId" :optType="optType" :workorderId="form.workorderId" :itemId="form.itemId"></Productrecptline>
|
<Productrecptline :recptId="form.recptId" :optType="optType" :workorderId="form.workorderId" :itemId="form.itemId"></Productrecptline>
|
||||||
</el-card>
|
</el-card>
|
||||||
<div slot="footer" class="dialog-footer">
|
<div slot="footer" class="dialog-footer">
|
||||||
<el-button type="primary" @click="cancel" v-if="optType =='view' || form.status !='PREPARE' ">返回</el-button>
|
<el-button type="primary" @click="cancel" v-if="optType =='view' || form.status !='PREPARE' ">返回</el-button>
|
||||||
<el-button type="primary" @click="submitForm" v-if="form.status =='PREPARE' && optType !='view' ">保 存</el-button>
|
<el-button type="primary" @click="submitForm" v-if="form.status =='PREPARE' && optType !='view' ">保 存</el-button>
|
||||||
<el-button @click="cancel">取 消</el-button>
|
<el-button @click="cancel">取 消</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@ -302,16 +302,16 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
getWarehouseList(){
|
getWarehouseList(){
|
||||||
getTreeList().then( response =>{
|
getTreeList().then( response =>{
|
||||||
this.warehouseOptions = response.data;
|
this.warehouseOptions = response.data;
|
||||||
this.warehouseOptions.map(w =>{
|
this.warehouseOptions.map(w =>{
|
||||||
w.children.map(l =>{
|
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);
|
l.children = JSON.parse(lstr);
|
||||||
});
|
});
|
||||||
|
|
||||||
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
let wstr = JSON.stringify(w.children).replace(/warehouseId/g,'wId').replace(/locationId/g, 'pId').replace(/locationName/g,'pName');
|
||||||
w.children = JSON.parse(wstr);
|
w.children = JSON.parse(wstr);
|
||||||
|
|
||||||
});
|
});
|
||||||
let ostr=JSON.stringify(this.warehouseOptions).replace(/warehouseId/g,'pId').replace(/warehouseName/g, 'pName');
|
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){
|
if(obj !=null){
|
||||||
this.form.warehouseId = obj[0];
|
this.form.warehouseId = obj[0];
|
||||||
this.form.locationId = obj[1];
|
this.form.locationId = obj[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user