From c2417d66aa2db613c2c4db1c4a053225e72e238b Mon Sep 17 00:00:00 2001
From: yyb <995253665@qq.com>
Date: 星期一, 11 五月 2026 15:51:22 +0800
Subject: [PATCH] 销售台账发货新增部分发货字段
---
src/views/inventoryManagement/receiptManagement/Record.vue | 25 ++++++++++++++++++++++++-
1 files changed, 24 insertions(+), 1 deletions(-)
diff --git a/src/views/inventoryManagement/receiptManagement/Record.vue b/src/views/inventoryManagement/receiptManagement/Record.vue
index cd103ea..aefac4e 100644
--- a/src/views/inventoryManagement/receiptManagement/Record.vue
+++ b/src/views/inventoryManagement/receiptManagement/Record.vue
@@ -15,6 +15,11 @@
style="width: 240px"
placeholder="璇疯緭鍏�"
clearable/>
+ <span class="search_title ml10">鍚堝悓鍙凤細</span>
+ <el-input v-model="searchForm.salesContractNo"
+ style="width: 240px"
+ placeholder="璇疯緭鍏ュ悎鍚屽彿"
+ clearable/>
<span class="search_title ml10">鏉ユ簮锛�</span>
<el-select v-model="searchForm.recordType"
style="width: 240px"
@@ -58,8 +63,12 @@
prop="inboundBatches"
width="280"
show-overflow-tooltip/>
+ <el-table-column label="鍚堝悓鍙�"
+ prop="salesContractNo"
+ show-overflow-tooltip/>
<el-table-column label="鍏ュ簱鏃堕棿"
prop="createTime"
+ :formatter="formatTableDateYmd"
show-overflow-tooltip/>
<el-table-column label="浜у搧澶х被"
prop="productName"
@@ -67,6 +76,9 @@
<el-table-column label="瑙勬牸鍨嬪彿"
prop="model"
show-overflow-tooltip/>
+ <el-table-column label="鍘氬害(mm)"
+ prop="thickness"
+ show-overflow-tooltip />
<el-table-column label="鍗曚綅"
prop="unit"
show-overflow-tooltip/>
@@ -111,8 +123,16 @@
import {
findAllQualifiedStockInRecordTypeOptions, findAllUnQualifiedStockInRecordTypeOptions,
} from "@/api/basicData/enum.js";
+import {parseTime} from "@/utils/ruoyi";
const {proxy} = getCurrentInstance();
+
+const formatTableDateYmd = (row, column, cellValue) => {
+ if (cellValue == null || cellValue === "") {
+ return "";
+ }
+ return parseTime(cellValue, "{y}-{m}-{d}") || "";
+};
const props = defineProps({
type: {
@@ -129,13 +149,14 @@
const stockRecordTypeOptions = ref([]);
const page = reactive({
current: 1,
- size: 100,
+ size: 10,
});
const total = ref(0);
const data = reactive({
searchForm: {
productName: "",
+ salesContractNo: "",
timeStr: "",
recordType: "",
},
@@ -163,10 +184,12 @@
const params = {...page, type: props.type};
params.timeStr = searchForm.value.timeStr;
params.productName = searchForm.value.productName;
+ params.salesContractNo = searchForm.value.salesContractNo;
params.recordType = searchForm.value.recordType;
getStockInRecordListPage(params)
.then(res => {
tableData.value = res.data.records;
+ total.value = res.data.total || 0;
}).finally(() => {
tableLoading.value = false;
})
--
Gitblit v1.9.3