|
|
|
|
@ -8,7 +8,7 @@
|
|
|
|
|
:inline="true"
|
|
|
|
|
label-width="68px"
|
|
|
|
|
>
|
|
|
|
|
<el-form-item label="" prop="code">
|
|
|
|
|
<el-form-item label="编码" prop="code">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.code"
|
|
|
|
|
placeholder="请输入编码"
|
|
|
|
|
@ -41,22 +41,6 @@
|
|
|
|
|
class="!w-240px"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="" prop="status">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="queryParams.status"
|
|
|
|
|
@change="handleQuery"
|
|
|
|
|
placeholder="请选择状态"
|
|
|
|
|
clearable
|
|
|
|
|
class="!w-240px"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in getIntDictOptions(DICT_TYPE.MES_TASK_STATUS)"
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
<el-form-item label="备注" prop="remark">
|
|
|
|
|
<el-input
|
|
|
|
|
@ -105,6 +89,16 @@
|
|
|
|
|
|
|
|
|
|
<!-- 列表 -->
|
|
|
|
|
<ContentWrap>
|
|
|
|
|
<el-tabs v-model="activeName" @tab-click="handleTabClick">
|
|
|
|
|
<el-tab-pane label="所有" name="" />
|
|
|
|
|
<el-tab-pane label="草稿" name="0" />
|
|
|
|
|
<el-tab-pane label="送审" name="1" />
|
|
|
|
|
<el-tab-pane label="下达" name="2" />
|
|
|
|
|
<el-tab-pane label="计划" name="3" />
|
|
|
|
|
<el-tab-pane label="开工" name="4" />
|
|
|
|
|
<el-tab-pane label="完工" name="5" />
|
|
|
|
|
<el-tab-pane label="入库" name="6" />
|
|
|
|
|
</el-tabs>
|
|
|
|
|
<el-table
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
:data="list"
|
|
|
|
|
@ -122,53 +116,20 @@
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="备注" align="center" prop="remark" />
|
|
|
|
|
<el-table-column label="是否启用" align="center" prop="isEnable">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<dict-tag :type="DICT_TYPE.INFRA_BOOLEAN_STRING" :value="scope.row.isEnable" />
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
<el-table-column label="操作" align="center" min-width="200px">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
link
|
|
|
|
|
type="success"
|
|
|
|
|
@click="openSaleForm(scope.row.id)"
|
|
|
|
|
v-hasPermi="['mes:task:update']"
|
|
|
|
|
>
|
|
|
|
|
销售单
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
link
|
|
|
|
|
type="info"
|
|
|
|
|
@click="openItemNeed(scope.row.code, scope.row.id)"
|
|
|
|
|
v-hasPermi="['mes:task:update']"
|
|
|
|
|
>
|
|
|
|
|
<el-button link type="info" @click="openItemNeed(scope.row.code, scope.row.id)" v-hasPermi="['mes:task:update']">
|
|
|
|
|
物料
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
link
|
|
|
|
|
type="success"
|
|
|
|
|
v-hasPermi="['mes:task:update']"
|
|
|
|
|
>
|
|
|
|
|
做计划
|
|
|
|
|
<!-- 下达后不可更改-->
|
|
|
|
|
<el-button v-if="scope.row.status<2" link type="success" @click="openSaleForm(scope.row.id)" v-hasPermi="['mes:task:update']">
|
|
|
|
|
销售单
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
link
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="openForm('update', scope.row.id)"
|
|
|
|
|
v-hasPermi="['mes:task:update']"
|
|
|
|
|
>
|
|
|
|
|
<el-button v-if="scope.row.status<2" link type="primary" @click="openForm('update', scope.row.id)" v-hasPermi="['mes:task:update']">
|
|
|
|
|
编辑
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
link
|
|
|
|
|
type="danger"
|
|
|
|
|
@click="handleDelete(scope.row.id)"
|
|
|
|
|
v-hasPermi="['mes:task:delete']"
|
|
|
|
|
>
|
|
|
|
|
<el-button v-if="scope.row.status<2" link type="danger" @click="handleDelete(scope.row.id)" v-hasPermi="['mes:task:delete']">
|
|
|
|
|
删除
|
|
|
|
|
</el-button>
|
|
|
|
|
</template>
|
|
|
|
|
@ -310,4 +271,10 @@ const itemFormRef = ref()
|
|
|
|
|
const openItemNeed = (taskCode:string, taskId: number) => {
|
|
|
|
|
itemFormRef.value.open("task","任务单-"+taskCode, taskId)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/** tab 切换 */
|
|
|
|
|
const handleTabClick = (tab: TabsPaneContext) => {
|
|
|
|
|
queryParams.status = tab.paneName
|
|
|
|
|
handleQuery()
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|