diff --git a/src/components/social/inventoryUp/List_3501.vue b/src/components/social/inventoryUp/List_3501.vue
index 6ead3ed..489634d 100644
--- a/src/components/social/inventoryUp/List_3501.vue
+++ b/src/components/social/inventoryUp/List_3501.vue
@@ -60,6 +60,9 @@ let change_search = () => {
init()
}
const formatDate = (isoStr:any) => {
+ if (!isoStr){
+ return ''
+ }
const date = new Date(isoStr);
return `${date.getFullYear()}-${(date.getMonth()+1).toString().padStart(2,'0')}-${date.getDate().toString().padStart(2,'0')}`;
}
@@ -79,12 +82,23 @@ const formatDate = (isoStr:any) => {
-
-
+
+
+
+
+ {{scope.row.wholeNumber}}{{scope.row.packagingUnit}}
+
+
+
+
+
+ {{scope.row.fragmentNumber}}{{scope.row.minPackagingUnit}}
+
+
- {{ row.uploadStatus == 0 ? '未上传' : row.uploadStatus == 1 ? '已上传' : '异常' }}
+ {{ row.uploadStatus == 0 ? '未上传' : row.uploadStatus == 1 ? '已上传' :row.uploadStatus == 2 ? '异常':"无需上报" }}
@@ -93,7 +107,7 @@ const formatDate = (isoStr:any) => {
{{ formatDate(row.uploadDatetime) }}
-
+
diff --git a/src/components/social/inventoryUp/List_3502.vue b/src/components/social/inventoryUp/List_3502.vue
index f902525..558bca2 100644
--- a/src/components/social/inventoryUp/List_3502.vue
+++ b/src/components/social/inventoryUp/List_3502.vue
@@ -2,18 +2,18 @@
+
+
{{ typeMapping[row.type] }}
+
+
+ {{ socialTypeMapping[row.socialType] }}
+
+
{{ row.beforeWholeNumber }}{{ row.packagingUnit }}
@@ -114,11 +121,11 @@ const tableData = ref([])
let type = ref()
let typeName = ref('')
const searchInfo = ref({
- type: '',
+ socialType: '',
keyword: '',
})
-const searchStatus = ref({
- type: '',
+const searchStatus = ref({
+ socialType: '',
keyword: '',
})
const value1 = ref([])
@@ -133,7 +140,7 @@ interface TypeMapping {
[key: number]: string;
}
-const typeMapping: TypeMapping = {
+const socialTypeMapping: TypeMapping = {
101: '调拨入库',
102: '调拨出库',
103: '盘盈',
@@ -143,6 +150,17 @@ const typeMapping: TypeMapping = {
107: '其他出库',
108: '初始化入库'
}
+const typeMapping: TypeMapping = {
+ 1: "初始化",
+ 2: "采购入库",
+ 3: "盘盈入库",
+ 4: "发药出库",
+ 5: "领用出库",
+ 6: "报损出库",
+ 7: "盘亏出库",
+ 8: "退货出库",
+ 9: "零售退款入库"
+}
interface UploadStatus {
[key: number]: string;
@@ -152,6 +170,7 @@ const uploadStatus: UploadStatus = {
0: '未上传',
1: '已上传',
2: '异常',
+ 3: "无需上报",
}
onMounted(() => {
@@ -162,10 +181,10 @@ let init = () => {
const query = {
page: 1,
pageSize: 20,
- type: Number(searchInfo.value.type) || "",
- uploadStatus: searchStatus.value.type || "",
- createTimeBefore: value1.value[0] ? formatDate(value1.value[0]) : "",
- createTimeAfter: value1.value[1] ? formatDate(value1.value[1]) : "",
+ socialType: Number(searchInfo.value.socialType) || null,
+ uploadStatus: searchStatus.value.uploadStatus || null,
+ createTimeBefore: value1.value ? formatDate(value1.value[0]) : null,
+ createTimeAfter: value1.value ? formatDate(value1.value[1]) : null,
}
post("social/upload/get3502List", {query: query}).then((res: any) => {
tableData.value = res.list
@@ -189,7 +208,9 @@ let change_search = () => {
}
// 转成YYYY-MM-DD格式
const formatDate = (isoStr: any) => {
- console.log(isoStr, "isoStr")
+ if (!isoStr) {
+ return ''
+ }
const date = new Date(isoStr);
return `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date.getDate().toString().padStart(2, '0')}`;
}
@@ -198,10 +219,12 @@ const formatDate = (isoStr: any) => {