diff --git a/src/api/mes/workScheduling/index.ts b/src/api/mes/workScheduling/index.ts
index b3773b0..27fae34 100644
--- a/src/api/mes/workScheduling/index.ts
+++ b/src/api/mes/workScheduling/index.ts
@@ -36,6 +36,10 @@ export function getWorkSchedulingInfo(number) {
return http.get('/mes/workScheduling/get?id=' + number)
}
+export function updateWorkScheduling(params) {
+ return http.post('/mes/workScheduling/update-status', params)
+}
+
export function getWorkSchedulingDetail(number) {
return http.get('/mes/work-scheduling-detail/get-info?schedulingCode=' + number)
}
diff --git a/src/pages/mes/workScheduling/workScheduling.vue b/src/pages/mes/workScheduling/workScheduling.vue
index 34bc67b..547aa8b 100644
--- a/src/pages/mes/workScheduling/workScheduling.vue
+++ b/src/pages/mes/workScheduling/workScheduling.vue
@@ -60,7 +60,7 @@
齐套检查
- 开工
+ 开工
叫料
@@ -221,11 +221,31 @@ function openBomInspect(item, index) {
proxy.$tab.navigateTo(`/pages/mes/workScheduling/bomInspect?planNoDay=${item.planNoDay}`)
}
+//齐套检查
function openInspectItem(item, index) {
const objString = JSON.stringify(item);
proxy.$tab.navigateTo(`/pages/mes/workScheduling/inspectionItems?obj=${objString}`)
}
+//开工
+function kaigong(item){
+ proxy.$modal.confirm("是否确认提交").then(()=>{
+ proxy.$modal.loading('加载中')
+ item.status = '1'
+ const objString = JSON.stringify(item);
+ workSchedulingListApi.updateWorkScheduling(objString).then((res) => {
+ proxy.$modal.showToast('成功')
+ tabsChange(2);
+ loading.value = false
+ proxy.$modal.closeLoading()
+ }).catch(() => {
+ proxy.$modal.closeLoading()
+ loading.value = false
+ })
+ })
+
+}
+
//切换标签页
function tabsChange(index) {
current.value = index