13
0

2 Ревизии 19df2a33b0 ... c5ce3b3619

Автор SHA1 Съобщение Дата
  张旭伟 c5ce3b3619 fix(sterilization, strain): 格式化日期字段只保留年月日 преди 1 месец
  张旭伟 a7bd159966 fix(strain inbound): 处理入库日期格式截断问题 преди 1 месец
променени са 3 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      src/view/sterilization/add.vue
  2. 1 1
      src/view/strain/inbound/add.vue
  3. 1 1
      src/view/strain/usage/add.vue

+ 1 - 1
src/view/sterilization/add.vue

@@ -168,7 +168,7 @@ const loadData = async (id: number) => {
   if (d) {
     state.form = {
       id: d.id || 0,
-      recordDate: d.recordDate || '',
+      recordDate: d.recordDate ? d.recordDate.slice(0, 10) : '',
       operatorId: d.operatorId || 0,
       operator: d.operator || '',
       sterilizationItems: d.sterilizationItems || '',

+ 1 - 1
src/view/strain/inbound/add.vue

@@ -122,7 +122,7 @@ const loadData = async (id: number) => {
       strainName: d.strainName || '',
       preservationTemp: d.preservationTemp || '',
       storageLocation: d.storageLocation || '',
-      inboundDate: d.inboundDate || '',
+      inboundDate: d.inboundDate ? d.inboundDate.slice(0, 10) : '',
       inboundPersonId: d.inboundPersonId || 0,
       inboundPerson: d.inboundPerson || '',
       quantity: d.quantity || '',

+ 1 - 1
src/view/strain/usage/add.vue

@@ -120,7 +120,7 @@ const loadData = async (id: number) => {
     state.form = {
       id: d.id || 0,
       strainName: d.strainName || '',
-      usageDate: d.usageDate || '',
+      usageDate: d.usageDate ? d.usageDate.slice(0, 10) : '',
       usagePersonId: d.usagePersonId || 0,
       usagePerson: d.usagePerson || '',
       usageQuantity: d.usageQuantity || '',