Explorar o código

导入字段修改&打包

Shan9312 hai 1 ano
pai
achega
b4812d97b3

BIN=BIN
dist-tmr-测试-20240613.zip


+ 5 - 5
src/views/shedProduction/materialRemainingRecord/index.vue

@@ -361,14 +361,14 @@ export default {
     uploadData() {
     uploadData() {
       return {
       return {
         name: 'checkbarname,checktimes,insertBarfeedremainUpload',
         name: 'checkbarname,checktimes,insertBarfeedremainUpload',
-        importParams: '栏舍名称,配方名称,原剩料所属时间,剩料量(kg),干物质,收集(一天/第一班/第二班/第三班),收集时间,操作人',
+        importParams: '栏舍名称,配方名称,原剩料所属时间,剩料量(kg),干物质,班次收集(一天/第一班/第二班/第三班),收集时间,操作人',
         sheetname: 'Sheet1',
         sheetname: 'Sheet1',
         // 登录牧场
         // 登录牧场
         pastureid: Cookies.get('pastureid'),
         pastureid: Cookies.get('pastureid'),
         // 日期参数
         // 日期参数
         dateParams: '原剩料所属时间',
         dateParams: '原剩料所属时间',
         // 必填参数
         // 必填参数
-        requiredParams: '栏舍名称,剩料量(kg),收集(一天/第一班/第二班/第三班)',
+        requiredParams: '栏舍名称,剩料量(kg),班次收集(一天/第一班/第二班/第三班)',
         // 为数值的参数
         // 为数值的参数
         numParams: '剩料量(kg)'
         numParams: '剩料量(kg)'
       }
       }
@@ -573,7 +573,7 @@ export default {
             } else {
             } else {
               const barid = new RegExp("key 'barid'")
               const barid = new RegExp("key 'barid'")
               if (barid.test(response.data)) {
               if (barid.test(response.data)) {
-                this.$message({ type: 'error', message: '该栏舍该收集今日剩料量已存在,不可重复生成', duration: 2000 })
+                this.$message({ type: 'error', message: '该栏舍该班次收集今日剩料量已存在,不可重复生成', duration: 2000 })
               } else {
               } else {
                 this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
                 this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
               }
               }
@@ -618,7 +618,7 @@ export default {
             } else {
             } else {
               const barid = new RegExp("key 'barid'")
               const barid = new RegExp("key 'barid'")
               if (barid.test(response.data)) {
               if (barid.test(response.data)) {
-                this.$message({ type: 'error', message: '该栏舍该收集今日剩料量已存在,不可重复生成', duration: 2000 })
+                this.$message({ type: 'error', message: '该栏舍该班次收集收集今日剩料量已存在,不可重复生成', duration: 2000 })
               } else {
               } else {
                 this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
                 this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
               }
               }
@@ -754,7 +754,7 @@ export default {
             if (response.msg === 'fail') {
             if (response.msg === 'fail') {
               const barid = new RegExp("key 'barid'")
               const barid = new RegExp("key 'barid'")
               if (barid.test(response.data)) {
               if (barid.test(response.data)) {
-                this.$notify({ type: 'warning', message: '该栏舍该收集今日剩料量已存在,不可重复生成', duration: 2000 })
+                this.$notify({ type: 'warning', message: '该栏舍该班次收集今日剩料量已存在,不可重复生成', duration: 2000 })
                 return
                 return
               }
               }
               this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })
               this.$notify({ title: '保存失败', message: response.data, type: 'warning', duration: 2000 })