|
@@ -9,6 +9,7 @@
|
|
|
<el-input v-model="searchInfo" placeholder="模糊搜索订单编号或者生产款号" @keyup.enter="onSubmit()" style="width: 220px;"></el-input>
|
|
<el-input v-model="searchInfo" placeholder="模糊搜索订单编号或者生产款号" @keyup.enter="onSubmit()" style="width: 220px;"></el-input>
|
|
|
<el-button type="primary" icon="search" @click="onSubmit" >查询</el-button>
|
|
<el-button type="primary" icon="search" @click="onSubmit" >查询</el-button>
|
|
|
<el-button type="primary" icon="edit" @click="hptg_onClick" :disabled="table_Selection === false" class="bt" title="核批通过">核批通过</el-button>
|
|
<el-button type="primary" icon="edit" @click="hptg_onClick" :disabled="table_Selection === false" class="bt" title="核批通过">核批通过</el-button>
|
|
|
|
|
+ <el-button type="primary" icon="edit" @click="ztgg_onClick" :disabled="table_Selection === false" class="bt" title="状态更改">状态更改</el-button>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-tag type="warning" style="font-size: 12px;">
|
|
<el-tag type="warning" style="font-size: 12px;">
|
|
|
<span>附件状态带有 “ </span>
|
|
<span>附件状态带有 “ </span>
|
|
@@ -44,7 +45,7 @@
|
|
|
<el-table-column align="left" label="订单编号" prop="订单编号" width="115" />
|
|
<el-table-column align="left" label="订单编号" prop="订单编号" width="115" />
|
|
|
<el-table-column align="left" label="生产款号" prop="生产款号" width="150" />
|
|
<el-table-column align="left" label="生产款号" prop="生产款号" width="150" />
|
|
|
<el-table-column align="left" label="款式" prop="款式" width="110" />
|
|
<el-table-column align="left" label="款式" prop="款式" width="110" />
|
|
|
- <el-table-column align="left" label="工单状态" prop="gd_statu" width="100" >
|
|
|
|
|
|
|
+ <el-table-column align="left" label="工单状态" prop="gd_statu" width="100" >
|
|
|
<template #default="{ row }">
|
|
<template #default="{ row }">
|
|
|
<el-tag :type="row.gd_statu === '1-计划中' ? 'warning' : (row.gd_statu === '2-生产中' ? 'success' : 'info')">
|
|
<el-tag :type="row.gd_statu === '1-计划中' ? 'warning' : (row.gd_statu === '2-生产中' ? 'success' : 'info')">
|
|
|
{{ row.gd_statu === '1-计划中' ? '计划中' : (row.gd_statu === '2-生产中' ? '生产中' : '已完工') }}
|
|
{{ row.gd_statu === '1-计划中' ? '计划中' : (row.gd_statu === '2-生产中' ? '生产中' : '已完工') }}
|
|
@@ -86,7 +87,22 @@
|
|
|
</div>
|
|
</div>
|
|
|
</el-tabs>
|
|
</el-tabs>
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
|
|
+ <!-- 状态更改弹窗 -->
|
|
|
|
|
+ <el-dialog v-model="dialogVisible" title="状态更改">
|
|
|
|
|
+ <el-radio-group v-model="selectedStatus" >
|
|
|
|
|
+ <el-radio
|
|
|
|
|
+ v-for="item in statusOptions"
|
|
|
|
|
+ :key="item.value"
|
|
|
|
|
+ :label="item.value"
|
|
|
|
|
+ >
|
|
|
|
|
+ {{ item.label }}
|
|
|
|
|
+ </el-radio>
|
|
|
|
|
+ </el-radio-group>
|
|
|
|
|
+ <template #footer>
|
|
|
|
|
+ <el-button @click="dialogVisible = false">取消</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="handleStatusConfirm">确认</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-dialog>
|
|
|
<!-- </el-main> -->
|
|
<!-- </el-main> -->
|
|
|
</layout-content>
|
|
</layout-content>
|
|
|
</layout>
|
|
</layout>
|
|
@@ -113,7 +129,7 @@
|
|
|
// 全量引入格式化工具 请按需保留
|
|
// 全量引入格式化工具 请按需保留
|
|
|
import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
|
|
import { Layout, LayoutSider, LayoutContent } from '@arco-design/web-vue';
|
|
|
import {ref, reactive} from 'vue'
|
|
import {ref, reactive} from 'vue'
|
|
|
- import {UnapprovalList,Approval} from '@/api/mes/job'
|
|
|
|
|
|
|
+ import {UnapprovalList,Approval,Apigdstatus} from '@/api/mes/job'
|
|
|
import {jcgetTab,workOrderDetail,getOrderProcessCount,PrintDetailList} from '@/api/yunyin/yunying'
|
|
import {jcgetTab,workOrderDetail,getOrderProcessCount,PrintDetailList} from '@/api/yunyin/yunying'
|
|
|
import PrintPage from './components/print.vue'
|
|
import PrintPage from './components/print.vue'
|
|
|
import {ElMessage} from "element-plus";
|
|
import {ElMessage} from "element-plus";
|
|
@@ -348,7 +364,35 @@ const hptg_onClick = async () => {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+const dialogVisible = ref(false);
|
|
|
|
|
+const selectedStatus = ref('');
|
|
|
|
|
+const statusOptions = [
|
|
|
|
|
+ { value: 'plan', label: '1-计划中' },
|
|
|
|
|
+ { value: 'production', label: '2-生产中' },
|
|
|
|
|
+ { value: 'complete', label: '3-已完工' }
|
|
|
|
|
+];
|
|
|
|
|
+
|
|
|
|
|
+const handleStatusConfirm = async () => {
|
|
|
|
|
+ if (!selectedStatus.value) {
|
|
|
|
|
+ ElMessage.warning('请选择状态');
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ // 在这里处理状态更改逻辑,例如发送请求到后端
|
|
|
|
|
+ const res = await Apigdstatus({ Uniqid: _Uniqid.value, gd_statu: selectedStatus.value });
|
|
|
|
|
+ if (res.code === 0) {
|
|
|
|
|
+ ElMessage.success(`已更改为:${selectedStatus.value}`);
|
|
|
|
|
+ dialogVisible.value = false;
|
|
|
|
|
+ onSubmit();
|
|
|
|
|
+ }else{
|
|
|
|
|
+ ElMessage.error('更改失败');
|
|
|
|
|
+ }
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
|
|
+//状态更改按钮
|
|
|
|
|
+const ztgg_onClick = async () => {
|
|
|
|
|
+ console.log(_Uniqid.value)
|
|
|
|
|
+ dialogVisible.value = true;
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|