|
@@ -82,14 +82,21 @@
|
|
|
<el-button
|
|
<el-button
|
|
|
type="success"
|
|
type="success"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
- v-if="timeDimensionPlanType == 3"
|
|
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ timeDimensionPlanType == 3 &&
|
|
|
|
|
+ $hasPermission('aps:productionplan:add')
|
|
|
|
|
+ "
|
|
|
@click="factAdd(3)"
|
|
@click="factAdd(3)"
|
|
|
>新增</el-button
|
|
>新增</el-button
|
|
|
>
|
|
>
|
|
|
<!-- <el-button type="success" size="mini" @click="homogeneityInspect"
|
|
<!-- <el-button type="success" size="mini" @click="homogeneityInspect"
|
|
|
>齐套性检查</el-button
|
|
>齐套性检查</el-button
|
|
|
> -->
|
|
> -->
|
|
|
- <el-dropdown trigger="click" @command="homogeneityInspect">
|
|
|
|
|
|
|
+ <el-dropdown
|
|
|
|
|
+ trigger="click"
|
|
|
|
|
+ @command="homogeneityInspect"
|
|
|
|
|
+ v-if="$hasPermission('aps:productionpaln:homogeneityInspect')"
|
|
|
|
|
+ >
|
|
|
<el-button size="mini" type="success">齐套性检查</el-button>
|
|
<el-button size="mini" type="success">齐套性检查</el-button>
|
|
|
<el-dropdown-menu slot="dropdown">
|
|
<el-dropdown-menu slot="dropdown">
|
|
|
<el-dropdown-item command="1"> 自制件 </el-dropdown-item>
|
|
<el-dropdown-item command="1"> 自制件 </el-dropdown-item>
|
|
@@ -100,24 +107,55 @@
|
|
|
<el-button
|
|
<el-button
|
|
|
type="primary"
|
|
type="primary"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
- v-if="isshow"
|
|
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ isshow && $hasPermission('aps:productionplan:plandecomposition')
|
|
|
|
|
+ "
|
|
|
@click="disassemblePlan"
|
|
@click="disassemblePlan"
|
|
|
>计划分解</el-button
|
|
>计划分解</el-button
|
|
|
>
|
|
>
|
|
|
- <el-button type="primary" size="mini">补单计划</el-button>
|
|
|
|
|
- <el-button type="info" size="mini">计划行事历</el-button>
|
|
|
|
|
- <el-button type="warning" size="mini">预警设置</el-button>
|
|
|
|
|
- <el-button type="primary" size="mini" v-if="isshow" @click="handleMerge"
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ v-if="$hasPermission('aps:productionplan:orderplan')"
|
|
|
|
|
+ >补单计划</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="info"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ v-if="$hasPermission('aps:productionplan:plannedcalendar')"
|
|
|
|
|
+ >计划行事历</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="warning"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ v-if="$hasPermission('aps:productionplan:alertsettings')"
|
|
|
|
|
+ >预警设置</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ v-if="isshow && $hasPermission('aps:productionplan:batchmerging')"
|
|
|
|
|
+ @click="handleMerge"
|
|
|
>合批</el-button
|
|
>合批</el-button
|
|
|
>
|
|
>
|
|
|
- <el-button type="danger" size="mini">延期申请</el-button>
|
|
|
|
|
- <el-button type="danger" size="mini">变更申请</el-button>
|
|
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ v-if="$hasPermission('aps:productionplan:extensionapplication')"
|
|
|
|
|
+ >延期申请</el-button
|
|
|
|
|
+ >
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ type="danger"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ v-if="$hasPermission('aps:productionplan:changerequest')"
|
|
|
|
|
+ >变更申请</el-button
|
|
|
|
|
+ >
|
|
|
<el-button
|
|
<el-button
|
|
|
type="info"
|
|
type="info"
|
|
|
icon="el-icon-upload2"
|
|
icon="el-icon-upload2"
|
|
|
size="mini"
|
|
size="mini"
|
|
|
@click="$refs.importDialogRef.open()"
|
|
@click="$refs.importDialogRef.open()"
|
|
|
- v-if="isImport"
|
|
|
|
|
|
|
+ v-if="isImport && $hasPermission('aps:productionplan:upload')"
|
|
|
>导入</el-button
|
|
>导入</el-button
|
|
|
>
|
|
>
|
|
|
</div>
|
|
</div>
|
|
@@ -248,7 +286,8 @@
|
|
|
row.status == 2 &&
|
|
row.status == 2 &&
|
|
|
row.splitBatch != 1 &&
|
|
row.splitBatch != 1 &&
|
|
|
row.approvalStatus != 1 &&
|
|
row.approvalStatus != 1 &&
|
|
|
- row.approvalStatus != 2
|
|
|
|
|
|
|
+ row.approvalStatus != 2 &&
|
|
|
|
|
+ $hasPermission('aps:productionplan:info')
|
|
|
"
|
|
"
|
|
|
@click="handleOrderPublish(1, row)"
|
|
@click="handleOrderPublish(1, row)"
|
|
|
>
|
|
>
|
|
@@ -256,7 +295,7 @@
|
|
|
</el-link>
|
|
</el-link>
|
|
|
<el-link
|
|
<el-link
|
|
|
type="primary"
|
|
type="primary"
|
|
|
- v-if="row.status == 3"
|
|
|
|
|
|
|
+ v-if="row.status == 3 && $hasPermission('aps:productionplan:info')"
|
|
|
:underline="false"
|
|
:underline="false"
|
|
|
@click="handleOrderPublish(2, row)"
|
|
@click="handleOrderPublish(2, row)"
|
|
|
>
|
|
>
|
|
@@ -268,7 +307,8 @@
|
|
|
row.splitBatch != 2 &&
|
|
row.splitBatch != 2 &&
|
|
|
row.splitBatch != 1 &&
|
|
row.splitBatch != 1 &&
|
|
|
!row.joinPlanCode &&
|
|
!row.joinPlanCode &&
|
|
|
- activeName == 'first'
|
|
|
|
|
|
|
+ activeName == 'first' &&
|
|
|
|
|
+ $hasPermission('aps:productionplan:update')
|
|
|
"
|
|
"
|
|
|
type="primary"
|
|
type="primary"
|
|
|
:underline="false"
|
|
:underline="false"
|
|
@@ -278,7 +318,12 @@
|
|
|
</el-link>
|
|
</el-link>
|
|
|
|
|
|
|
|
<el-link
|
|
<el-link
|
|
|
- v-if="row.joinPlanCode && activeName == 'first' && row.status != 4"
|
|
|
|
|
|
|
+ v-if="
|
|
|
|
|
+ row.joinPlanCode &&
|
|
|
|
|
+ activeName == 'first' &&
|
|
|
|
|
+ row.status != 4 &&
|
|
|
|
|
+ $hasPermission('aps:productionplan:delete')
|
|
|
|
|
+ "
|
|
|
type="danger"
|
|
type="danger"
|
|
|
:underline="false"
|
|
:underline="false"
|
|
|
@click="handleDel(row)"
|
|
@click="handleDel(row)"
|
|
@@ -291,7 +336,8 @@
|
|
|
!row.childList.length &&
|
|
!row.childList.length &&
|
|
|
activeName == 'first' &&
|
|
activeName == 'first' &&
|
|
|
isLineNumbre &&
|
|
isLineNumbre &&
|
|
|
- row.status != 4
|
|
|
|
|
|
|
+ row.status != 4 &&
|
|
|
|
|
+ $hasPermission('aps:productionplan:delete')
|
|
|
"
|
|
"
|
|
|
type="danger"
|
|
type="danger"
|
|
|
:underline="false"
|
|
:underline="false"
|