|
|
@@ -9,7 +9,7 @@
|
|
|
<el-input v-model="searchInfo" placeholder="搜索工单编号" clearable style="width: 200px;margin: 5px"></el-input>
|
|
|
<el-button type="primary" class="bt" icon="search" @click="on_search">查询</el-button>
|
|
|
<el-button type="primary" class="bt" icon="edit" @click="onout">领出</el-button>
|
|
|
- <el-button type="primary" class="bt" icon="document" @click="onwithdraw">收回</el-button>
|
|
|
+ <el-button type="primary" class="bt" icon="document" :disabled="!selectedIds" @click="onwithdraw">收回</el-button>
|
|
|
<el-button type="primary" class="bt" icon="delete" :disabled="!selectedIds" @click="on_delete">删除</el-button>
|
|
|
<el-button type="primary" icon="edit" class="bt"@click=" () => { dialogGxclhc = true;}">工序产量核查</el-button>
|
|
|
<el-button type="primary" class="bt" icon="download" @click="ToExcel" >导出到Excel</el-button>
|
|
|
@@ -45,12 +45,14 @@
|
|
|
highlight-current-row="true" @row-dblclick="updateCompanyFunc"
|
|
|
@row-click="tableRowClick" :show-overflow-tooltip="true"
|
|
|
>
|
|
|
+ >
|
|
|
<el-table-column sortable align="center" label="存货编码" prop="存货编码" width="120" />
|
|
|
<el-table-column sortable align="center" label="物料名称" prop="物料名称" width="120" />
|
|
|
<el-table-column align="center" label="印版名称" prop="印版名称" width="200" />
|
|
|
<el-table-column align="center" label="供方批号" prop="供方批号" width="200" />
|
|
|
<el-table-column align="center" label="制造日期" prop="制造日期" width="110" />
|
|
|
- <el-table-column align="center" label="原始印数" prop="原始印数" width="200" />
|
|
|
+ <el-table-column align="center" label="当前领用工单" prop="工单编号" width="130" />
|
|
|
+ <el-table-column align="center" label="原始印数" prop="原始印数" width="110" />
|
|
|
<el-table-column align="center" label="累计印数" prop="累计印数" width="110" />
|
|
|
<el-table-column align="center" label="考核印数" prop="考核印数" width="110" />
|
|
|
<el-table-column align="center" label="报废日期" prop="报废日期" width="200" />
|
|
|
@@ -80,12 +82,12 @@
|
|
|
@selection-change="wlmxSelectionChange">
|
|
|
<el-table-column type="selection" width="30" />
|
|
|
<el-table-column sortable align="center" label="领用机台" prop="领用机台" width="120" />
|
|
|
- <el-table-column sortable align="center" label="领用日期" prop="领用日期" width="120" />
|
|
|
- <el-table-column sortable align="center" label="退还日期" prop="退还日期" width="200" />
|
|
|
+ <el-table-column sortable align="center" label="领用日期" prop="领用日期" width="180" />
|
|
|
+ <el-table-column sortable align="center" label="退还日期" prop="退还日期" width="180" />
|
|
|
<el-table-column sortable align="center" label="印数" prop="印数" width="100" />
|
|
|
<el-table-column sortable align="center" label="工单编号" prop="工单编号" width="100" />
|
|
|
<el-table-column sortable align="center" label="成品代号" prop="成品代号" width="100" />
|
|
|
- <el-table-column sortable align="center" label="成品名称" prop="成品名称" width="100" />
|
|
|
+ <el-table-column sortable align="center" label="成品名称" prop="成品名称" width="220" />
|
|
|
</el-table>
|
|
|
|
|
|
<!-- 分页 -->
|
|
|
@@ -181,6 +183,25 @@
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <!-- 退回弹窗 -->
|
|
|
+ <el-dialog
|
|
|
+ v-model="dialogwithdrawVisible"
|
|
|
+ title="印版印数"
|
|
|
+ style="width: 20%; margin: 30vh auto;"
|
|
|
+ >
|
|
|
+ <el-form-item label="印数">
|
|
|
+ <el-input v-model="Plate.印数" placeholder="请输入印数" />
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
+ <template #footer>
|
|
|
+ <div class="dialog-footer" style="width: 100%;">
|
|
|
+ <el-button @click="rawcloseDialog" style="width: 100px; height: 40px;">关 闭</el-button>
|
|
|
+ <el-button type="primary" @click="rawenterDialog" style="width: 100px; height: 40px;">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+
|
|
|
|
|
|
<!-- 工单选择弹窗 -->
|
|
|
<el-dialog
|
|
|
@@ -248,6 +269,7 @@
|
|
|
import {getOrderInfo,} from '@/api/mes_api_gty/workOrderVerification'
|
|
|
import Gxclhc from '@/view/performance/12-orderAccounting/componets/gxclhc.vue'
|
|
|
import {getPPTab,getPPList,getMachine,getPPgdReceive,getPPCode,getPPReceive,getPPDelete} from "@/api/mes/job.js"
|
|
|
+ import {PrintDetailEdit,} from '@/api/jixiaoguanli/baogong'
|
|
|
const userStore = useUserStore()
|
|
|
const sys_id='['+userStore.userInfo.userName+'/'+userStore.userInfo.nickName+']'
|
|
|
defineOptions({name: 'Company'})
|
|
|
@@ -339,6 +361,7 @@ const transformData = (data) => {
|
|
|
const Plate = reactive({})
|
|
|
// 弹窗控制
|
|
|
const dialogPlateVisible = ref(false)
|
|
|
+ const dialogwithdrawVisible = ref(false)
|
|
|
const orderSelectDialogVisible = ref(false)
|
|
|
const machineSelectDialogVisible = ref(false)
|
|
|
|
|
|
@@ -361,9 +384,45 @@ const transformData = (data) => {
|
|
|
}else{
|
|
|
dialogPlateVisible.value = true;
|
|
|
}
|
|
|
- dialogPlateVisible.value = true;
|
|
|
}
|
|
|
|
|
|
+ const onwithdraw = async () => {
|
|
|
+ dialogwithdrawVisible.value = true;
|
|
|
+ }
|
|
|
+
|
|
|
+ // 删除操作
|
|
|
+const rawenterDialog = async () => {
|
|
|
+ try {
|
|
|
+ await ElMessageBox.confirm('确定收回吗', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ })
|
|
|
+
|
|
|
+ // 调用收回API,假设是批量删除接口
|
|
|
+ const res = await PrintDetailEdit({ id: selectedIds.value,number:Plate.印数})
|
|
|
+
|
|
|
+ if (res.code === 0) {
|
|
|
+ ElMessage.success('收回成功')
|
|
|
+ rawcloseDialog()
|
|
|
+ // 清空选中
|
|
|
+ selectedIds.value = []
|
|
|
+ } else {
|
|
|
+ ElMessage.error(res.msg || '收回失败')
|
|
|
+ }
|
|
|
+ } catch (error) {
|
|
|
+ if (error !== 'cancel') {
|
|
|
+ console.error('收回失败:', error)
|
|
|
+ ElMessage.error('收回操作已取消')
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+const rawcloseDialog = () => {
|
|
|
+ Plate.印数 = ''
|
|
|
+ dialogwithdrawVisible.value = false
|
|
|
+}
|
|
|
+
|
|
|
// 打开工单选择弹窗
|
|
|
const openOrderSelectDialog = async () => {
|
|
|
try {
|
|
|
@@ -478,8 +537,7 @@ const dhlenterDialog = () => {
|
|
|
|
|
|
|
|
|
const selectedIds = ref('')
|
|
|
-
|
|
|
-// 维修表格选择变化
|
|
|
+// 下方表格选择变化
|
|
|
const wlmxSelectionChange = (selection) => {
|
|
|
console.log('维修表格选择变化:', selection)
|
|
|
selectedIds.value = selection.map(item => item.UniqID).join(',')
|