|
@@ -1,18 +1,14 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div>
|
|
<div>
|
|
|
<layout>
|
|
<layout>
|
|
|
- <div class="gva-table-box">
|
|
|
|
|
- <h1 style="margin: 0%;margin-bottom: 6px;">出库领用</h1>
|
|
|
|
|
- <el-row :gutter="24" style="margin-bottom: 6px;">
|
|
|
|
|
- <el-input v-model="add_searchInfo" placeholder="请扫描订单号或输入生产款号进行出库领料"
|
|
|
|
|
- @keyup.enter="add_onSubmit"
|
|
|
|
|
- id="searchInput"
|
|
|
|
|
- style="width: 340px;height: 50px;margin-left: 10px;">
|
|
|
|
|
- </el-input>
|
|
|
|
|
- <el-button type="primary" @click="Reporting_onSubmit" style="height: 50px;font-size: 20px;">选择领用</el-button>
|
|
|
|
|
- <el-button type="primary" icon="reading" @click="details_onSubmit" style="height: 50px;font-size: 20px;">出库退还记录</el-button>
|
|
|
|
|
- </el-row>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <h1 style="margin: 0%;margin-bottom: 6px;">出库领用</h1>
|
|
|
|
|
+ <el-row :gutter="24" style="margin-bottom: 6px;">
|
|
|
|
|
+ <el-input v-model="add_searchInfo" placeholder="请扫描订单编号或输入生产款号模糊查询" @input="handleInput"
|
|
|
|
|
+ @keyup.enter="add_onSubmit" id="searchInput" style="width: 340px;height: 50px;margin-left: 10px;">
|
|
|
|
|
+ </el-input>
|
|
|
|
|
+ <el-button type="primary" @click="Reporting_onSubmit" style="height: 50px;font-size: 20px;">选择领用</el-button>
|
|
|
|
|
+ <el-button type="primary" icon="reading" @click="details_onSubmit" style="height: 50px;font-size: 20px;">出库退还记录</el-button>
|
|
|
|
|
+ </el-row>
|
|
|
<layout>
|
|
<layout>
|
|
|
|
|
|
|
|
<layout-content >
|
|
<layout-content >
|
|
@@ -26,13 +22,13 @@
|
|
|
@row-click="tableRowClick" :show-overflow-tooltip="true"
|
|
@row-click="tableRowClick" :show-overflow-tooltip="true"
|
|
|
@selection-change="handleSelectionChange">
|
|
@selection-change="handleSelectionChange">
|
|
|
<!-- <el-table-column type="selection" width="80" /> -->
|
|
<!-- <el-table-column type="selection" width="80" /> -->
|
|
|
- <el-table-column align="left" label="订单编号" prop="订单编号" width="105" />
|
|
|
|
|
- <el-table-column align="left" label="客户编号" prop="客户编号" width="80"/>
|
|
|
|
|
- <el-table-column align="left" label="生产款号" prop="生产款号" width="170"/>
|
|
|
|
|
- <el-table-column align="left" label="款式" prop="款式" width="170"/>
|
|
|
|
|
- <el-table-column align="left" label="接单日期" prop="接单日期" width="160"/>
|
|
|
|
|
- <el-table-column align="left" label="创建人员" prop="创建人员" width="160"/>
|
|
|
|
|
- <el-table-column align="left" label="创建时间" prop="创建时间" width="160"/>
|
|
|
|
|
|
|
+ <el-table-column align="left" label="订单编号" prop="订单编号" width="105" />
|
|
|
|
|
+ <el-table-column align="left" label="客户编号" prop="客户编号" width="80"/>
|
|
|
|
|
+ <el-table-column align="left" label="生产款号" prop="生产款号" width="170"/>
|
|
|
|
|
+ <el-table-column align="left" label="款式" prop="款式" width="170"/>
|
|
|
|
|
+ <el-table-column align="left" label="接单日期" prop="接单日期" width="160"/>
|
|
|
|
|
+ <el-table-column align="left" label="创建人员" prop="创建人员" width="160"/>
|
|
|
|
|
+ <el-table-column align="left" label="创建时间" prop="创建时间" width="160"/>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
<div class="dialog-footer" style="text-align: left;margin-right: 60px;">
|
|
<div class="dialog-footer" style="text-align: left;margin-right: 60px;">
|
|
|
</div>
|
|
</div>
|
|
@@ -42,34 +38,29 @@
|
|
|
</layout>
|
|
</layout>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <el-dialog v-model="res_bomdialogFormVisible" :before-close="res_bomcloseDialog" width="100%" style="height: 100%;margin: 0%;" destroy-on-close>
|
|
|
|
|
|
|
+ <el-dialog v-model="res_bomdialogFormVisible" :before-close="res_bomcloseDialog" width="100%" style="height: 100%;margin: 0%;padding: 0px 10px 0px 10px;" destroy-on-close>
|
|
|
<div class="dialog-footer" style="margin: 0px;">
|
|
<div class="dialog-footer" style="margin: 0px;">
|
|
|
- <el-input v-model="add_lysearchInfo" placeholder="请扫描订单号或输入生产款号进行出库领料"
|
|
|
|
|
- @keyup.enter="add_lyonSubmit" id="searchInput"
|
|
|
|
|
- style="width: 340px;height: 50px;margin-left: 10px;">
|
|
|
|
|
|
|
+ <el-input v-model="add_lysearchInfo" placeholder="请扫描订单编号进行操作"
|
|
|
|
|
+ @keyup.enter="add_lyonSubmit" id="ly_searchInput" style="width: 340px;height: 50px;margin-left: 10px;">
|
|
|
</el-input>
|
|
</el-input>
|
|
|
<el-button type="primary" @click="res_bomcloseDialog" style="width: 100px;height: 50px;margin-left: 10px;">关 闭</el-button>
|
|
<el-button type="primary" @click="res_bomcloseDialog" style="width: 100px;height: 50px;margin-left: 10px;">关 闭</el-button>
|
|
|
-
|
|
|
|
|
- <el-button type="primary" @click="print_lingyong" style="width: 100px;height: 50px;">增加至领用页</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" @click="print_lingyong" style="width: 100px;height: 50px;">增加至领用页</el-button>
|
|
|
<!-- <el-button type="primary" @click="del_lingyong" style="width: 100px;height: 50px;">删除面料领用</el-button> -->
|
|
<!-- <el-button type="primary" @click="del_lingyong" style="width: 100px;height: 50px;">删除面料领用</el-button> -->
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <el-divider><span style="font-size: 18px;color:red;font-weight: bold;margin-left: 20px;">绿色部分可进行填写</span></el-divider>
|
|
|
|
|
|
|
+ <el-divider style="margin: 10px 0px 20px;" ><span style="font-size: 18px;color:red;font-weight: bold;margin-left: 20px;">绿色部分填写领用数量</span></el-divider>
|
|
|
<el-descriptions class="margin-top" :column="4" :size="size" border>
|
|
<el-descriptions class="margin-top" :column="4" :size="size" border>
|
|
|
<el-descriptions-item label="订单编号" class="ddh">{{ ddhformData['ddh'] }}</el-descriptions-item>
|
|
<el-descriptions-item label="订单编号" class="ddh">{{ ddhformData['ddh'] }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="客户">{{ ddhformData['kh'] }}</el-descriptions-item>
|
|
<el-descriptions-item label="客户">{{ ddhformData['kh'] }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="生产款号">{{ ddhformData['sckh'] }}</el-descriptions-item>
|
|
<el-descriptions-item label="生产款号">{{ ddhformData['sckh'] }}</el-descriptions-item>
|
|
|
<el-descriptions-item label="款式">{{ ddhformData['ks'] }}</el-descriptions-item>
|
|
<el-descriptions-item label="款式">{{ ddhformData['ks'] }}</el-descriptions-item>
|
|
|
</el-descriptions>
|
|
</el-descriptions>
|
|
|
- <div style="margin-top: 5px;">
|
|
|
|
|
- <el-table ref="paichengRef"
|
|
|
|
|
- :show-overflow-tooltip="true"
|
|
|
|
|
- highlight-current-row="true"
|
|
|
|
|
|
|
+ <div>
|
|
|
|
|
+ <el-table ref="paichengRef" :show-overflow-tooltip="true" highlight-current-row="true"
|
|
|
:row-style="{ height: '0px' }" :header-cell-style="{ padding: '0px' }"
|
|
:row-style="{ height: '0px' }" :header-cell-style="{ padding: '0px' }"
|
|
|
:cell-style="{ padding: '0px' }" :header-row-style="{ height: '0px' }"
|
|
:cell-style="{ padding: '0px' }" :header-row-style="{ height: '0px' }"
|
|
|
style="width: 100%;height: 22vh" border tooltip-effect="dark"
|
|
style="width: 100%;height: 22vh" border tooltip-effect="dark"
|
|
|
- :data="resbomtableData" row-key="ID"
|
|
|
|
|
- :cell-class-name="scfjfpxsCellClass">
|
|
|
|
|
|
|
+ :data="resbomtableData" row-key="ID" :cell-class-name="scfjfpxsCellClass">
|
|
|
<template v-for="(item, idx) in resbom_tableColumns">
|
|
<template v-for="(item, idx) in resbom_tableColumns">
|
|
|
<el-table-column #default="{ row, column, $index }" align="left" :label="item.label" :width="item.width" >
|
|
<el-table-column #default="{ row, column, $index }" align="left" :label="item.label" :width="item.width" >
|
|
|
<div v-if="['领用'].includes(item.prop)">
|
|
<div v-if="['领用'].includes(item.prop)">
|
|
@@ -87,30 +78,27 @@
|
|
|
<el-divider>
|
|
<el-divider>
|
|
|
<span class="print-title" style="font-size: 18px;">面料领用页</span>
|
|
<span class="print-title" style="font-size: 18px;">面料领用页</span>
|
|
|
</el-divider>
|
|
</el-divider>
|
|
|
- <div style="display: flex; justify-content: space-between; margin-bottom: 10px;">
|
|
|
|
|
- <p style="font-size: 18px;">单号: LY2502240001</p>
|
|
|
|
|
- <p style="font-size: 18px;">领用日期: 2025-02-24</p>
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;">
|
|
|
|
|
+ <p style="font-size: 18px;margin-right: 20px;">领用单号:
|
|
|
|
|
+ <el-input v-model="danhao" style="width: 200px;" disabled/>
|
|
|
|
|
+ </p>
|
|
|
|
|
+ <p style="font-size: 18px;margin-right: 20px;">领用日期:
|
|
|
|
|
+ <el-input v-model="riqi" style="width: 200px;" disabled/>
|
|
|
|
|
+ </p>
|
|
|
|
|
+ </div>
|
|
|
<div style="margin-top: 5px;">
|
|
<div style="margin-top: 5px;">
|
|
|
- <el-table ref="paichengRef1"
|
|
|
|
|
- :show-overflow-tooltip="true"
|
|
|
|
|
- highlight-current-row="true"
|
|
|
|
|
- :row-style="{ height: '30px' }"
|
|
|
|
|
- :header-cell-style="{ padding: '0px' }"
|
|
|
|
|
- :cell-style="{ padding: '0px' }"
|
|
|
|
|
- :header-row-style="{ height: '10px' }"
|
|
|
|
|
- style="width: 100%; height: 40vh"
|
|
|
|
|
- border
|
|
|
|
|
- tooltip-effect="dark"
|
|
|
|
|
- :data="FabriccollartableData"
|
|
|
|
|
- row-key="ID"
|
|
|
|
|
- :cell-class-name="scfjfpxsCellClass"
|
|
|
|
|
|
|
+ <el-table ref="paichengRef1" :show-overflow-tooltip="true" highlight-current-row="true"
|
|
|
|
|
+ :row-style="{ height: '30px' }" :header-cell-style="{ padding: '0px' }"
|
|
|
|
|
+ :cell-style="{ padding: '0px' }" :header-row-style="{ height: '10px' }"
|
|
|
|
|
+ style="width: 100%; height: 40vh" border
|
|
|
|
|
+ tooltip-effect="dark" :data="FabriccollartableData"
|
|
|
|
|
+ row-key="ID" :cell-class-name="scfjfpxsCellClass"
|
|
|
@selection-change="FabriccollarhandleSelectionChange">
|
|
@selection-change="FabriccollarhandleSelectionChange">
|
|
|
<!-- <el-table-column type="selection" width="45" /> -->
|
|
<!-- <el-table-column type="selection" width="45" /> -->
|
|
|
<template v-for="(item, idx) in Fabriccollar_tableColumns">
|
|
<template v-for="(item, idx) in Fabriccollar_tableColumns">
|
|
|
- <el-table-column #default="{ row, column, $index }" align="left" :label="item.label" :width="item.width">
|
|
|
|
|
|
|
+ <el-table-column #default="{ row, column, $index }" align="left" :label="item.label" :width="item.width">
|
|
|
<div v-if="[''].includes(item.prop)">
|
|
<div v-if="[''].includes(item.prop)">
|
|
|
- <el-input v-model="row[item.prop]" :clearable="false"
|
|
|
|
|
|
|
+ <el-input v-model="row[item.prop]" :clearable="false"
|
|
|
:id="`input${idx}${$index}`"
|
|
:id="`input${idx}${$index}`"
|
|
|
@keyup="resbom_handleKeyDown($event, idx, $index, item.prop)"/>
|
|
@keyup="resbom_handleKeyDown($event, idx, $index, item.prop)"/>
|
|
|
</div>
|
|
</div>
|
|
@@ -119,12 +107,19 @@
|
|
|
</template>
|
|
</template>
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+ <br>
|
|
|
|
|
+ <div style="display: flex; justify-content: space-around; align-items: center; margin-bottom: 10px;">
|
|
|
|
|
+ <p style="font-size: 18px;">出库人:
|
|
|
|
|
+ <el-input v-model="chukuren" style="width: 200px;" disabled/>
|
|
|
|
|
+ </p>
|
|
|
|
|
+ <p style="font-size: 18px;">领用人:
|
|
|
|
|
+ <el-input v-model="linguser" style="width: 200px;" />
|
|
|
|
|
+ </p>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- <!-- 出库退还记录 -->
|
|
|
|
|
|
|
+ <!--详情记录 -->
|
|
|
<el-dialog v-model="pickingaddvisible" :before-close="()=> pickingaddvisible = false" style="width: 70%; margin: 5% auto; height: 79%;" :title="'出库退还记录'" destroy-on-close>
|
|
<el-dialog v-model="pickingaddvisible" :before-close="()=> pickingaddvisible = false" style="width: 70%; margin: 5% auto; height: 79%;" :title="'出库退还记录'" destroy-on-close>
|
|
|
<div class="dialog-footer" style="bottom: 10px; right: 10px; width: 100%;">
|
|
<div class="dialog-footer" style="bottom: 10px; right: 10px; width: 100%;">
|
|
|
<el-button type="primary" @click="ckth_closeDialog" style="width: 80px;height: 40px;">关 闭</el-button>
|
|
<el-button type="primary" @click="ckth_closeDialog" style="width: 80px;height: 40px;">关 闭</el-button>
|
|
@@ -148,11 +143,29 @@
|
|
|
<el-table-column align="left" sortable label="数量" prop="数量" width="105"/>
|
|
<el-table-column align="left" sortable label="数量" prop="数量" width="105"/>
|
|
|
<el-table-column align="left" sortable label="出库时间" prop="出库时间" width="160"/>
|
|
<el-table-column align="left" sortable label="出库时间" prop="出库时间" width="160"/>
|
|
|
<el-table-column align="left" sortable label="上报机台" prop="上报机台" width="160"/>
|
|
<el-table-column align="left" sortable label="上报机台" prop="上报机台" width="160"/>
|
|
|
-
|
|
|
|
|
</el-table>
|
|
</el-table>
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
|
+
|
|
|
|
|
+ <el-tab-pane label="入库记录" @click="showTable('入库记录')" name="second">
|
|
|
|
|
+ <el-table ref="multipleTable"
|
|
|
|
|
+ :row-style="{ height: '30px' }"
|
|
|
|
|
+ :cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
|
|
|
|
|
+ :header-cell-style="{ padding: '0px' }"
|
|
|
|
|
+ :show-overflow-tooltip="true"
|
|
|
|
|
+ highlight-current-row="true"
|
|
|
|
|
+ @row-click="rukutableclick"
|
|
|
|
|
+ @row-dblclick="rukuupdateCompanyFunc"
|
|
|
|
|
+ style="width: 100%;height: 36vh" border
|
|
|
|
|
+ :summary-method="getSummaries" tooltip-effect="dark" :data="rukutableData" row-key="ID" >
|
|
|
|
|
+ <el-table-column align="left" sortable label="订单编号" prop="订单编号" width="140"/>
|
|
|
|
|
+ <el-table-column align="left" sortable label="款号" prop="款号" width="180"/>
|
|
|
|
|
+ <el-table-column align="left" sortable label="数量" prop="数量" width="105"/>
|
|
|
|
|
+ <el-table-column align="left" sortable label="出库时间" prop="出库时间" width="160"/>
|
|
|
|
|
+ <el-table-column align="left" sortable label="上报机台" prop="上报机台" width="160"/>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </el-tab-pane>
|
|
|
|
|
|
|
|
- <el-tab-pane label="退还记录" @click="showTable('退还记录')" name="second">
|
|
|
|
|
|
|
+ <el-tab-pane label="退还记录" @click="showTable('退还记录')" name="third">
|
|
|
<el-table ref="multipleTable"
|
|
<el-table ref="multipleTable"
|
|
|
:row-style="{ height: '30px' }"
|
|
:row-style="{ height: '30px' }"
|
|
|
:cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
|
|
:cell-style="{ padding: '0px' }" :header-row-style="{ height: '20px' }"
|
|
@@ -196,7 +209,9 @@ export default {
|
|
|
// 全量引入格式化工具 请按需保留
|
|
// 全量引入格式化工具 请按需保留
|
|
|
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 {getSpotList,getSpotTab,orderSearch,outReport,orderBomList,FabricDetail} from '@/api/mes/job'
|
|
|
|
|
|
|
+import {getSpotList,getSpotTab,orderSearch,outReport,orderBomList,FabricDetail,
|
|
|
|
|
+gitReceiptNumber
|
|
|
|
|
+} from '@/api/mes/job'
|
|
|
import {ElMessage} from "element-plus";
|
|
import {ElMessage} from "element-plus";
|
|
|
// import { get } from 'scriptjs';
|
|
// import { get } from 'scriptjs';
|
|
|
defineOptions({name: 'Company'})
|
|
defineOptions({name: 'Company'})
|
|
@@ -228,12 +243,20 @@ const getMachineMacdata = async () => {
|
|
|
getMachineMacdata();
|
|
getMachineMacdata();
|
|
|
|
|
|
|
|
//全局调用参数
|
|
//全局调用参数
|
|
|
|
|
+const danhao = ref('')
|
|
|
|
|
+const riqi = ref('')
|
|
|
|
|
+const linguser = ref('')
|
|
|
|
|
+const chukuren = ref('')
|
|
|
const add_searchInfo = ref('')//搜索
|
|
const add_searchInfo = ref('')//搜索
|
|
|
const add_lysearchInfo = ref('')//搜索
|
|
const add_lysearchInfo = ref('')//搜索
|
|
|
const restableData = reactive([])//表格
|
|
const restableData = reactive([])//表格
|
|
|
const _orderid = ref('')//订单子编号
|
|
const _orderid = ref('')//订单子编号
|
|
|
const _kh = ref('')//生产款号
|
|
const _kh = ref('')//生产款号
|
|
|
|
|
|
|
|
|
|
+const handleInput = async ()=>{
|
|
|
|
|
+ add_onSubmit()
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
//查询按钮
|
|
//查询按钮
|
|
|
const add_onSubmit = async ()=>{
|
|
const add_onSubmit = async ()=>{
|
|
|
restableData.splice(0, restableData.length);//清空表格
|
|
restableData.splice(0, restableData.length);//清空表格
|
|
@@ -248,27 +271,33 @@ const add_onSubmit = async ()=>{
|
|
|
ddhformData.sckh = orderSearchdata.data[0]['生产款号']
|
|
ddhformData.sckh = orderSearchdata.data[0]['生产款号']
|
|
|
ddhformData.ks = orderSearchdata.data[0]['款式']
|
|
ddhformData.ks = orderSearchdata.data[0]['款式']
|
|
|
add_lysearchInfo.value = add_searchInfo.value
|
|
add_lysearchInfo.value = add_searchInfo.value
|
|
|
|
|
+
|
|
|
|
|
+ const gitReceiptNumberdata = await gitReceiptNumber({number:'出库'});
|
|
|
|
|
+ console.log(gitReceiptNumberdata)
|
|
|
|
|
+ danhao.value = gitReceiptNumberdata.data
|
|
|
|
|
+ chukuren.value = userStore.userInfo.nickName
|
|
|
|
|
+ riqi.value = currentDates
|
|
|
Reporting_onSubmit()
|
|
Reporting_onSubmit()
|
|
|
}else{
|
|
}else{
|
|
|
restableData.splice(0,orderSearchdata.length,...orderSearchdata.data);
|
|
restableData.splice(0,orderSearchdata.length,...orderSearchdata.data);
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
//表格行点击
|
|
//表格行点击
|
|
|
const tableRowClick = async (row)=>{
|
|
const tableRowClick = async (row)=>{
|
|
|
console.log(row)
|
|
console.log(row)
|
|
|
add_searchInfo.value = row.订单编号
|
|
add_searchInfo.value = row.订单编号
|
|
|
_orderid.value = row.订单编号
|
|
_orderid.value = row.订单编号
|
|
|
_kh.value = row.生产款号
|
|
_kh.value = row.生产款号
|
|
|
-
|
|
|
|
|
ddhformData.ddh = row['订单编号']
|
|
ddhformData.ddh = row['订单编号']
|
|
|
ddhformData.kh = row['客户编号']
|
|
ddhformData.kh = row['客户编号']
|
|
|
ddhformData.sckh = row['生产款号']
|
|
ddhformData.sckh = row['生产款号']
|
|
|
ddhformData.ks = row['款式']
|
|
ddhformData.ks = row['款式']
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-//出库查询
|
|
|
|
|
|
|
+//查询
|
|
|
const add_lyonSubmit = async ()=>{
|
|
const add_lyonSubmit = async ()=>{
|
|
|
const orderSearchdata = await orderSearch({search:add_lysearchInfo.value});
|
|
const orderSearchdata = await orderSearch({search:add_lysearchInfo.value});
|
|
|
if(orderSearchdata.data.length === 1){
|
|
if(orderSearchdata.data.length === 1){
|
|
@@ -293,12 +322,12 @@ const add_lyonSubmit = async ()=>{
|
|
|
item.领用 = '';
|
|
item.领用 = '';
|
|
|
return item
|
|
return item
|
|
|
});
|
|
});
|
|
|
|
|
+ add_lysearchInfo.value = ''
|
|
|
} catch (error) {
|
|
} catch (error) {
|
|
|
console.error(error);
|
|
console.error(error);
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-//===========报工==========
|
|
|
|
|
const res_bomdialogFormVisible = ref(false)
|
|
const res_bomdialogFormVisible = ref(false)
|
|
|
const resbomtableData = ref([]);
|
|
const resbomtableData = ref([]);
|
|
|
const FabriccollartableData = ref([]);
|
|
const FabriccollartableData = ref([]);
|
|
@@ -317,7 +346,7 @@ const resbom_tableColumns = ref(
|
|
|
{ label: '物料名称', prop: '物料名称', width: '160' },
|
|
{ label: '物料名称', prop: '物料名称', width: '160' },
|
|
|
{ label: '计划用料', prop: '计划用料', width: '105' },
|
|
{ label: '计划用料', prop: '计划用料', width: '105' },
|
|
|
{ label: '定额用料', prop: '定额用料', width: '110' },
|
|
{ label: '定额用料', prop: '定额用料', width: '110' },
|
|
|
- { label: '门封', prop: '门封', width: '110' },
|
|
|
|
|
|
|
+ { label: '门封', prop: '门封', width: '100' },
|
|
|
{ label: '裁床实际用料', prop: '裁床实际用料', width: '115' },
|
|
{ label: '裁床实际用料', prop: '裁床实际用料', width: '115' },
|
|
|
{ label: '裁床领用面料', prop: '裁床领用面料', width: '115' },
|
|
{ label: '裁床领用面料', prop: '裁床领用面料', width: '115' },
|
|
|
{ label: '裁床退回仓库面料', prop: '裁床退回仓库面料', width: '150' },
|
|
{ label: '裁床退回仓库面料', prop: '裁床退回仓库面料', width: '150' },
|
|
@@ -333,25 +362,25 @@ const resbom_tableColumns = ref(
|
|
|
const Fabriccollar_tableColumns = ref(
|
|
const Fabriccollar_tableColumns = ref(
|
|
|
[
|
|
[
|
|
|
{ label: '订单编号', prop: '订单编号', width: '90' },
|
|
{ label: '订单编号', prop: '订单编号', width: '90' },
|
|
|
- { label: '客户', prop: '客户编号', width: '90' },
|
|
|
|
|
|
|
+ { label: '客户', prop: '客户编号', width: '70' },
|
|
|
{ label: '生产款号', prop: '生产款号', width: '100' },
|
|
{ label: '生产款号', prop: '生产款号', width: '100' },
|
|
|
{ label: '款式', prop: '款式', width: '100' },
|
|
{ label: '款式', prop: '款式', width: '100' },
|
|
|
{ label: '物料名称', prop: '物料名称', width: '160' },
|
|
{ label: '物料名称', prop: '物料名称', width: '160' },
|
|
|
{ label: '计划用料', prop: '计划用料', width: '105' },
|
|
{ label: '计划用料', prop: '计划用料', width: '105' },
|
|
|
{ label: '定额用料', prop: '定额用料', width: '110' },
|
|
{ label: '定额用料', prop: '定额用料', width: '110' },
|
|
|
- { label: '门封', prop: '门封', width: '110' },
|
|
|
|
|
|
|
+ { label: '门封', prop: '门封', width: '100' },
|
|
|
{ label: '裁床实际用料', prop: '裁床实际用料', width: '115' },
|
|
{ label: '裁床实际用料', prop: '裁床实际用料', width: '115' },
|
|
|
{ label: '裁床领用面料', prop: '裁床领用面料', width: '115' },
|
|
{ label: '裁床领用面料', prop: '裁床领用面料', width: '115' },
|
|
|
{ label: '裁床退回仓库面料', prop: '裁床退回仓库面料', width: '150' },
|
|
{ label: '裁床退回仓库面料', prop: '裁床退回仓库面料', width: '150' },
|
|
|
{ label: '入库总量', prop: '入库总量', width: '90' },
|
|
{ label: '入库总量', prop: '入库总量', width: '90' },
|
|
|
{ label: '面料结余', prop: '面料结余', width: '90' },
|
|
{ label: '面料结余', prop: '面料结余', width: '90' },
|
|
|
- { label: '本次领用', prop: '领用', width: '110' },
|
|
|
|
|
|
|
+ { label: '本次领用', prop: '领用', width: '110'},
|
|
|
// { label: '备注', prop: '备注', width: '120' },
|
|
// { label: '备注', prop: '备注', width: '120' },
|
|
|
{ label: '投料单位', prop: '投料单位', width: '90' },
|
|
{ label: '投料单位', prop: '投料单位', width: '90' },
|
|
|
// { label: 'UNIQID', prop: 'UNIQID', width: '80' },
|
|
// { label: 'UNIQID', prop: 'UNIQID', width: '80' },
|
|
|
]
|
|
]
|
|
|
)
|
|
)
|
|
|
-//报工按钮
|
|
|
|
|
|
|
+//查询
|
|
|
const Reporting_onSubmit = async ()=>{
|
|
const Reporting_onSubmit = async ()=>{
|
|
|
if(_orderid.value === '' || _orderid.value === null){
|
|
if(_orderid.value === '' || _orderid.value === null){
|
|
|
ElMessage({type: 'warning',message: '请扫描订单后,再操作此功能'})
|
|
ElMessage({type: 'warning',message: '请扫描订单后,再操作此功能'})
|
|
@@ -386,37 +415,37 @@ const _TestCoefficient = async ()=>{
|
|
|
console.error(error);
|
|
console.error(error);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-// const resbom_handleKeyDown = (event, x, y, prop) => {
|
|
|
|
|
-// const currentElement = document.getElementById(`input${x}${y}`);
|
|
|
|
|
-// if (currentElement === null && currentElement === undefined) return
|
|
|
|
|
-// let move = 0
|
|
|
|
|
-// switch (event.keyCode) {
|
|
|
|
|
-// case 13: // Enter
|
|
|
|
|
-// case 40: // 向下箭头
|
|
|
|
|
-// if (y < resbomtableData.value.length )
|
|
|
|
|
-// document.getElementById(`input${x}${y + 1}`).focus();
|
|
|
|
|
-// break;
|
|
|
|
|
-// case 38: // 向上箭头
|
|
|
|
|
-// if ( y > 0) {
|
|
|
|
|
-// document.getElementById(`input${x}${y - 1}`).focus();
|
|
|
|
|
-// }
|
|
|
|
|
-// break;
|
|
|
|
|
-// case 39: // 向左箭头
|
|
|
|
|
-// if (x >= 0 && x <=6) {
|
|
|
|
|
-// move = x + 1
|
|
|
|
|
-// }
|
|
|
|
|
-// document.getElementById(`input${move}${y}`).focus();
|
|
|
|
|
-// break;
|
|
|
|
|
-// case 37: // 向右箭头
|
|
|
|
|
-// if (x = 0 && x <=6) {
|
|
|
|
|
-// move = x - 1
|
|
|
|
|
-// }
|
|
|
|
|
-// document.getElementById(`input${move}${y}`).focus();
|
|
|
|
|
-// break;
|
|
|
|
|
-// default:
|
|
|
|
|
-// break;
|
|
|
|
|
-// }
|
|
|
|
|
-// }
|
|
|
|
|
|
|
+const resbom_handleKeyDown = (event, x, y, prop) => {
|
|
|
|
|
+ const currentElement = document.getElementById(`input${x}${y}`);
|
|
|
|
|
+ if (currentElement === null && currentElement === undefined) return
|
|
|
|
|
+ let move = 0
|
|
|
|
|
+ switch (event.keyCode) {
|
|
|
|
|
+ case 13: // Enter
|
|
|
|
|
+ case 40: // 向下箭头
|
|
|
|
|
+ if (y < resbomtableData.value.length )
|
|
|
|
|
+ document.getElementById(`input${x}${y + 1}`).focus();
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 38: // 向上箭头
|
|
|
|
|
+ if ( y > 0) {
|
|
|
|
|
+ document.getElementById(`input${x}${y - 1}`).focus();
|
|
|
|
|
+ }
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 39: // 向左箭头
|
|
|
|
|
+ if (x >= 0 && x <=6) {
|
|
|
|
|
+ move = x + 1
|
|
|
|
|
+ }
|
|
|
|
|
+ document.getElementById(`input${move}${y}`).focus();
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 37: // 向右箭头
|
|
|
|
|
+ if (x = 0 && x <=6) {
|
|
|
|
|
+ move = x - 1
|
|
|
|
|
+ }
|
|
|
|
|
+ document.getElementById(`input${move}${y}`).focus();
|
|
|
|
|
+ break;
|
|
|
|
|
+ default:
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
const scfjfpxsCellClass = ({row, column, rowIndex, columnIndex}) =>{
|
|
const scfjfpxsCellClass = ({row, column, rowIndex, columnIndex}) =>{
|
|
|
if (column.label === '本次领用') {
|
|
if (column.label === '本次领用') {
|
|
|
return 'background-plan-usage-low';
|
|
return 'background-plan-usage-low';
|
|
@@ -438,7 +467,9 @@ const res_bomenterDialog = async() => {
|
|
|
number: item.领用 !== null ? item.领用 : "",
|
|
number: item.领用 !== null ? item.领用 : "",
|
|
|
rq: currentDate,
|
|
rq: currentDate,
|
|
|
name: "出库",
|
|
name: "出库",
|
|
|
- sys_id: _username.value
|
|
|
|
|
|
|
+ sys_id: _username.value,
|
|
|
|
|
+ // receipt_number:
|
|
|
|
|
+ recipient:linguser.value
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
console.log(formattedData);
|
|
console.log(formattedData);
|
|
@@ -459,6 +490,21 @@ const res_bomcloseDialog = () => {
|
|
|
|
|
|
|
|
// 增加至领用页
|
|
// 增加至领用页
|
|
|
const print_lingyong = async () => {
|
|
const print_lingyong = async () => {
|
|
|
|
|
+ if(add_lysearchInfo.value === ''){
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ const inputElement = document.getElementById('ly_searchInput');
|
|
|
|
|
+ if (inputElement) {
|
|
|
|
|
+ inputElement.focus();
|
|
|
|
|
+ }
|
|
|
|
|
+ }, 100);//100毫秒
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ setTimeout(() => {
|
|
|
|
|
+ const inputElement = document.getElementById('ly_searchInput');
|
|
|
|
|
+ if (inputElement) {
|
|
|
|
|
+ inputElement.focus();
|
|
|
|
|
+ }
|
|
|
|
|
+ }, 100);//100毫秒
|
|
|
const filteredData = resbomtableData.value.filter(item => item.领用 && item.领用.trim() !== "");
|
|
const filteredData = resbomtableData.value.filter(item => item.领用 && item.领用.trim() !== "");
|
|
|
// 将过滤后的数据添加到 FabriccollartableData
|
|
// 将过滤后的数据添加到 FabriccollartableData
|
|
|
FabriccollartableData.value.push(...filteredData);
|
|
FabriccollartableData.value.push(...filteredData);
|
|
@@ -494,14 +540,19 @@ const print_lingyong = async () => {
|
|
|
//=============出库退还记录==================
|
|
//=============出库退还记录==================
|
|
|
const cktableData = reactive([])
|
|
const cktableData = reactive([])
|
|
|
const thtableData = reactive([])
|
|
const thtableData = reactive([])
|
|
|
|
|
+const rukutableData = reactive([])
|
|
|
|
|
+
|
|
|
const pickingaddvisible = ref(false)//弹窗
|
|
const pickingaddvisible = ref(false)//弹窗
|
|
|
// const detailData = reactive({})
|
|
// const detailData = reactive({})
|
|
|
const add_prinkformData = reactive({});
|
|
const add_prinkformData = reactive({});
|
|
|
-//详情按钮
|
|
|
|
|
|
|
+//详情记录
|
|
|
const details_onSubmit = async ()=>{
|
|
const details_onSubmit = async ()=>{
|
|
|
pickingaddvisible.value = true
|
|
pickingaddvisible.value = true
|
|
|
const FabricDetaillist = await FabricDetail({order:_orderid.value});
|
|
const FabricDetaillist = await FabricDetail({order:_orderid.value});
|
|
|
|
|
+ const ruku_FabricDetaillist = await FabricDetail({order:_orderid.value,search:'入库'});
|
|
|
console.log(FabricDetaillist)
|
|
console.log(FabricDetaillist)
|
|
|
|
|
+ console.log(ruku_FabricDetaillist)
|
|
|
|
|
+ rukutableData.splice(0,ruku_FabricDetaillist.length,...ruku_FabricDetaillist.data['入库记录']);
|
|
|
cktableData.splice(0,FabricDetaillist.length,...FabricDetaillist.data['出库记录']);
|
|
cktableData.splice(0,FabricDetaillist.length,...FabricDetaillist.data['出库记录']);
|
|
|
thtableData.splice(0,FabricDetaillist.length,...FabricDetaillist.data['退还记录']);
|
|
thtableData.splice(0,FabricDetaillist.length,...FabricDetaillist.data['退还记录']);
|
|
|
}
|
|
}
|