成产工单去除下拉
This commit is contained in:
parent
2c27929acd
commit
8399c5aa27
@ -7,18 +7,20 @@
|
||||
start-placeholder="开始时间" end-placeholder="结束时间" placeholder="请选择工单日期区间" />
|
||||
</el-form-item>
|
||||
<el-form-item label="组别" prop="groupCode">
|
||||
<el-select v-model="queryParams.groupCode" placeholder="全部">
|
||||
<!-- <el-select v-model="queryParams.groupCode" placeholder="全部">
|
||||
<el-option label="全部" value="" />
|
||||
<el-option v-for="(item, index) in allGroupOptions" :key="index" :label="item.label"
|
||||
:value="item.value" />
|
||||
</el-select>
|
||||
</el-select> -->
|
||||
<el-input v-model="queryParams.groupCode" placeholder="请输入组别" />
|
||||
</el-form-item>
|
||||
<el-form-item label="线别" prop="lineCode">
|
||||
<el-select v-model="queryParams.lineCode" placeholder="全部">
|
||||
<!-- <el-select v-model="queryParams.lineCode" placeholder="全部">
|
||||
<el-option label="全部" value="" />
|
||||
<el-option v-for="(item, index) in allRouteOptions" :key="index" :label="item.label"
|
||||
:value="item.value" />
|
||||
</el-select>
|
||||
</el-select> -->
|
||||
<el-input v-model="queryParams.lineCode" placeholder="请输入线别" />
|
||||
</el-form-item>
|
||||
</div>
|
||||
<el-form-item label="工单号" prop="workorder">
|
||||
@ -70,14 +72,14 @@
|
||||
<el-button class="tool-box" color="#55557f" v-hasPermi="['productManagement:proworkorder:list']"
|
||||
icon="Printer" @click="handlePrint"> 打印 </el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<!-- <el-col :span="1.5">
|
||||
<el-button class="tool-box" color="#0077cc" icon="Refresh" @click="syncPaintBOM"> 更新涂装BOM
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button class="tool-box" color="#aa00ff" icon="List" @click="openCreateMaterialPlanDialog"> 更新MRP
|
||||
</el-button>
|
||||
</el-col>
|
||||
</el-col> -->
|
||||
|
||||
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList" :columns="columns"></right-toolbar>
|
||||
</el-row>
|
||||
@ -841,23 +843,23 @@ async function initDict() {
|
||||
/// ===================================================
|
||||
|
||||
/// ===================== 获取单位下拉 ====================
|
||||
import { listBaseUnit } from '@/api/baseManagement/baseunit.js'
|
||||
function getUnitOptions() {
|
||||
const params = {
|
||||
status: 1
|
||||
}
|
||||
listBaseUnit(params).then((res) => {
|
||||
if (res.code === 200) {
|
||||
options.value.unitOptions = res.data.result.map((item) => {
|
||||
return {
|
||||
dictLabel: `${item.unitName}`,
|
||||
dictValue: `${item.unitCode}`
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
getUnitOptions()
|
||||
// import { listBaseUnit } from '@/api/baseManagement/baseunit.js'
|
||||
// function getUnitOptions() {
|
||||
// const params = {
|
||||
// status: 1
|
||||
// }
|
||||
// listBaseUnit(params).then((res) => {
|
||||
// if (res.code === 200) {
|
||||
// options.value.unitOptions = res.data.result.map((item) => {
|
||||
// return {
|
||||
// dictLabel: `${item.unitName}`,
|
||||
// dictValue: `${item.unitCode}`
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// getUnitOptions()
|
||||
|
||||
/// ======================================================
|
||||
|
||||
@ -905,21 +907,21 @@ function getGroupOptions(routeCode = null) {
|
||||
}
|
||||
})
|
||||
}
|
||||
import { listBaseGroup } from '@/api/baseManagement/basegroup.js'
|
||||
function getAllGroupOptions() {
|
||||
listBaseGroup({ pageNum: 1, pageSize: 100, status: 1 }).then((res) => {
|
||||
const { code, data } = res
|
||||
if (code == 200) {
|
||||
groupOptions.value = data.result.map((item) => {
|
||||
return {
|
||||
label: `${item.groupCode}-${item.groupName}`,
|
||||
value: `${item.groupCode}`
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
getAllGroupOptions()
|
||||
// import { listBaseGroup } from '@/api/baseManagement/basegroup.js'
|
||||
// function getAllGroupOptions() {
|
||||
// listBaseGroup({ pageNum: 1, pageSize: 100, status: 1 }).then((res) => {
|
||||
// const { code, data } = res
|
||||
// if (code == 200) {
|
||||
// groupOptions.value = data.result.map((item) => {
|
||||
// return {
|
||||
// label: `${item.groupCode}-${item.groupName}`,
|
||||
// value: `${item.groupCode}`
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// getAllGroupOptions()
|
||||
/// =================================================================
|
||||
|
||||
// 关闭dialog
|
||||
@ -1359,35 +1361,7 @@ function search02Change(value) {
|
||||
import { GeneratePaintBOM } from '@/api/materialManagement/mmcallrequests/mmcallrequests.js'
|
||||
// 同步涂装车间BOM清单
|
||||
let isSyncing = false
|
||||
function syncPaintBOM() {
|
||||
if (isSyncing) {
|
||||
proxy.$modal.msgWarning('正在同步中,请稍候...')
|
||||
return
|
||||
}
|
||||
|
||||
isSyncing = true
|
||||
proxy.$modal.loading('正在同步BOM清单,请稍候...')
|
||||
|
||||
// 设置30秒超时
|
||||
const timeout = setTimeout(() => {
|
||||
proxy.$modal.closeLoading()
|
||||
isSyncing = false
|
||||
proxy.$modal.msgError('同步时间过长,已转入后台处理')
|
||||
}, 30000)
|
||||
|
||||
GeneratePaintBOM().then((res) => {
|
||||
clearTimeout(timeout) // 清除超时计时器
|
||||
if (res.code === 200) {
|
||||
proxy.$modal.msgSuccess('同步成功')
|
||||
}
|
||||
}).catch((error) => {
|
||||
clearTimeout(timeout) // 清除超时计时器
|
||||
proxy.$modal.msgError('同步失败: ' + error.message)
|
||||
}).finally(() => {
|
||||
proxy.$modal.closeLoading()
|
||||
isSyncing = false
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/// ======================================
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user