|
@@ -5,10 +5,8 @@
|
|
|
<el-input v-model="records_searchInfo" placeholder="可搜索入库单号、订单编号、款号、款式、物料名称" @input="records_handleInput"
|
|
<el-input v-model="records_searchInfo" placeholder="可搜索入库单号、订单编号、款号、款式、物料名称" @input="records_handleInput"
|
|
|
@keyup.enter="search_onSubmit" id="searchInput" style="width: 460px;height: 50px;margin-left: 10px;">
|
|
@keyup.enter="search_onSubmit" id="searchInput" style="width: 460px;height: 50px;margin-left: 10px;">
|
|
|
</el-input>
|
|
</el-input>
|
|
|
- <el-button type="primary" @click="search_onSubmit" style="height: 50px;font-size: 20px;marg
|
|
|
|
|
- in-left: 20px;">查询</el-button>
|
|
|
|
|
- <el-button type="primary" @click="Reporting_onSubmit" style="height: 50px;font-size: 20px;marg
|
|
|
|
|
- in-left: 20px;">面料入库</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" @click="search_onSubmit" style="height: 50px;font-size: 20px;margin-left: 20px;">查询</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="Reporting_onSubmit" style="height: 50px;font-size: 20px;margin-left: 20px;">面料入库</el-button>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<layout>
|
|
<layout>
|
|
|
<layout-sider :resize-directions="['right']" :width="190" style="margin-right: 10px;">
|
|
<layout-sider :resize-directions="['right']" :width="190" style="margin-right: 10px;">
|
|
@@ -72,6 +70,16 @@
|
|
|
<el-dialog v-model="recorddialogFormVisible" :before-close="record_bomcloseDialog" width="100%" style="height: 100%;margin: 0%;padding: 0px 10px 0px 10px;" destroy-on-close>
|
|
<el-dialog v-model="recorddialogFormVisible" :before-close="record_bomcloseDialog" width="100%" style="height: 100%;margin: 0%;padding: 0px 10px 0px 10px;" destroy-on-close>
|
|
|
<el-button type="danger" @click="record_closeDialog" style="width: 100px;height: 50px;margin-left: 10px;">关 闭</el-button>
|
|
<el-button type="danger" @click="record_closeDialog" style="width: 100px;height: 50px;margin-left: 10px;">关 闭</el-button>
|
|
|
<el-button type="primary" @click="edit_closeDialog" style="width: 100px;height: 50px;margin-left: 10px;">更 新</el-button>
|
|
<el-button type="primary" @click="edit_closeDialog" style="width: 100px;height: 50px;margin-left: 10px;">更 新</el-button>
|
|
|
|
|
+ <!-- <el-form-item label="选择年月" label-width="100px"> -->
|
|
|
|
|
+ 选择年月: <el-date-picker
|
|
|
|
|
+ v-model="rkrq"
|
|
|
|
|
+ type="date"
|
|
|
|
|
+ placeholder="选择年月"
|
|
|
|
|
+ :default-value="new Date()"
|
|
|
|
|
+ @change="onchange_data"
|
|
|
|
|
+ style="width: 200px;"
|
|
|
|
|
+ />
|
|
|
|
|
+ <!-- </el-form-item> -->
|
|
|
<div class="gva-table-box">
|
|
<div class="gva-table-box">
|
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
<el-tab-pane label="入库明细" name="first">
|
|
<el-tab-pane label="入库明细" name="first">
|
|
@@ -109,7 +117,17 @@
|
|
|
<el-table-column align="left" label="库存总量" prop="库存数量" width="90"/>
|
|
<el-table-column align="left" label="库存总量" prop="库存数量" width="90"/>
|
|
|
<el-table-column align="left" label="投料单位" prop="单位" width="90"/>
|
|
<el-table-column align="left" label="投料单位" prop="单位" width="90"/>
|
|
|
<el-table-column align="left" label="部门" prop="departname" width="110"/>
|
|
<el-table-column align="left" label="部门" prop="departname" width="110"/>
|
|
|
- <el-table-column align="left" label="备注" prop="remark" width="300"/>
|
|
|
|
|
|
|
+ <el-table-column label="备注" prop="remark" width="300" align="left">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <el-input class="green-bg-item"
|
|
|
|
|
+ v-model="scope.row.remark"
|
|
|
|
|
+ size="mini"
|
|
|
|
|
+ :min="0"
|
|
|
|
|
+ @input="handleInputChange(scope.row)"
|
|
|
|
|
+ style="width: 280px;"
|
|
|
|
|
+ />
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="left" label="入库人员" prop="操作机台" width="100"/>
|
|
<el-table-column align="left" label="入库人员" prop="操作机台" width="100"/>
|
|
|
<el-table-column align="left" label="入库日期" prop="日期" width="100"/>
|
|
<el-table-column align="left" label="入库日期" prop="日期" width="100"/>
|
|
|
<el-table-column align="left" label="创建日期" prop="创建日期" width="160"/>
|
|
<el-table-column align="left" label="创建日期" prop="创建日期" width="160"/>
|
|
@@ -319,6 +337,7 @@ inputStash,rApictedit,
|
|
|
InputOrderSearch,outReport,FabricDetail,gitReceiptNumber,FabricDetaillist,
|
|
InputOrderSearch,outReport,FabricDetail,gitReceiptNumber,FabricDetaillist,
|
|
|
FabricDetaildel,ReceiptList,ReceiptDetail,fetchMonthlyFabricRecords} from '@/api/mes/job'
|
|
FabricDetaildel,ReceiptList,ReceiptDetail,fetchMonthlyFabricRecords} from '@/api/mes/job'
|
|
|
import { ElMessage, ElMessageBox,ElUpload, ElButton } from 'element-plus';
|
|
import { ElMessage, ElMessageBox,ElUpload, ElButton } from 'element-plus';
|
|
|
|
|
+import dayjs, { Dayjs } from 'dayjs';
|
|
|
import { useUserStore } from '@/pinia/modules/user'
|
|
import { useUserStore } from '@/pinia/modules/user'
|
|
|
// import { get } from 'scriptjs';
|
|
// import { get } from 'scriptjs';
|
|
|
defineOptions({name: 'Company'})
|
|
defineOptions({name: 'Company'})
|
|
@@ -910,6 +929,7 @@ const _danhao = ref('')
|
|
|
//查看明细
|
|
//查看明细
|
|
|
const record_deleteRow = async (row) => {
|
|
const record_deleteRow = async (row) => {
|
|
|
console.log(row)
|
|
console.log(row)
|
|
|
|
|
+ rkrq.value = row.日期
|
|
|
recorddialogFormVisible.value = true
|
|
recorddialogFormVisible.value = true
|
|
|
rdetailstableData.splice(0,rdetailstableData.length);
|
|
rdetailstableData.splice(0,rdetailstableData.length);
|
|
|
_danhao.value = row['出库单']
|
|
_danhao.value = row['出库单']
|
|
@@ -923,11 +943,20 @@ const record_closeDialog = async (row) => {
|
|
|
console.log(row)
|
|
console.log(row)
|
|
|
recorddialogFormVisible.value = false
|
|
recorddialogFormVisible.value = false
|
|
|
}
|
|
}
|
|
|
|
|
+const rkrq = ref('')
|
|
|
|
|
+//选择日期
|
|
|
|
|
+const onchange_data = (val) => {
|
|
|
|
|
+ if (val) {
|
|
|
|
|
+ rkrq.value = dayjs(val).format('YYYY-MM-DD')
|
|
|
|
|
+ } else {
|
|
|
|
|
+ rkrq.value = ''
|
|
|
|
|
+ }
|
|
|
|
|
+}
|
|
|
|
|
|
|
|
//更新
|
|
//更新
|
|
|
const edit_closeDialog = async (row) => {
|
|
const edit_closeDialog = async (row) => {
|
|
|
console.log(_danhao.value)
|
|
console.log(_danhao.value)
|
|
|
- // console.log(rdetailstableData)
|
|
|
|
|
|
|
+ console.log(rdetailstableData)
|
|
|
//将修改的数据放入数组给到接口
|
|
//将修改的数据放入数组给到接口
|
|
|
const formattedData = rdetailstableData
|
|
const formattedData = rdetailstableData
|
|
|
.map(item => {
|
|
.map(item => {
|
|
@@ -935,10 +964,14 @@ const edit_closeDialog = async (row) => {
|
|
|
id: item.id !== null ? item.id : "",
|
|
id: item.id !== null ? item.id : "",
|
|
|
name: "入库",
|
|
name: "入库",
|
|
|
sys_id:userStore.userInfo.nickName,
|
|
sys_id:userStore.userInfo.nickName,
|
|
|
- 数量: item.数量 !== null ? item.数量 : ""
|
|
|
|
|
|
|
+ 数量: item.数量 !== null ? item.数量 : "",
|
|
|
|
|
+ 退还类型:'',
|
|
|
|
|
+ remark: item.remark !== null ? item.remark : "",
|
|
|
|
|
+ rq: rkrq.value,
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
console.log(formattedData)
|
|
console.log(formattedData)
|
|
|
|
|
+
|
|
|
const rApictedit_data = await rApictedit(formattedData);
|
|
const rApictedit_data = await rApictedit(formattedData);
|
|
|
if (rApictedit_data.code === 0) {
|
|
if (rApictedit_data.code === 0) {
|
|
|
ElMessage({ type: 'success', message: '更新成功' });
|
|
ElMessage({ type: 'success', message: '更新成功' });
|
|
@@ -946,6 +979,7 @@ const edit_closeDialog = async (row) => {
|
|
|
rdetailstableData.splice(0,rdetailstableData.length);
|
|
rdetailstableData.splice(0,rdetailstableData.length);
|
|
|
const FabricDetaillists = await ReceiptDetail({receipt:_danhao.value});
|
|
const FabricDetaillists = await ReceiptDetail({receipt:_danhao.value});
|
|
|
rdetailstableData.splice(0,FabricDetaillists.length,...FabricDetaillists.data);
|
|
rdetailstableData.splice(0,FabricDetaillists.length,...FabricDetaillists.data);
|
|
|
|
|
+ records_onSubmit();
|
|
|
} else {
|
|
} else {
|
|
|
ElMessage({ type: 'error', message: '更新失败' });
|
|
ElMessage({ type: 'error', message: '更新失败' });
|
|
|
}
|
|
}
|