diff --git a/src/views/productManagement/ProWorkorder/index.vue b/src/views/productManagement/ProWorkorder/index.vue
index f56c3c1..937a927 100644
--- a/src/views/productManagement/ProWorkorder/index.vue
+++ b/src/views/productManagement/ProWorkorder/index.vue
@@ -7,18 +7,20 @@
start-placeholder="开始时间" end-placeholder="结束时间" placeholder="请选择工单日期区间" />
-
+
+
-
+
+
@@ -70,14 +72,14 @@
打印
-
+
@@ -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
- })
-}
/// ======================================