From 695aca45473fa12f60bfc1c0fb33b1dadc6ca46f Mon Sep 17 00:00:00 2001 From: "[li_she]" <[li.she@xujiesoft.com]> Date: Tue, 28 Sep 2021 09:01:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E7=BB=84?= =?UTF-8?q?=E4=BB=B6,=E6=89=B9=E9=87=8F=E4=BF=AE=E6=94=B9=E6=9C=89?= =?UTF-8?q?=E6=95=88=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/crollinfo/crollinfo.js | 3 + src/views/modules/common/column.vue | 8 ++ src/views/modules/common/search.vue | 14 +- src/views/modules/common/upload.vue | 10 +- .../expirationTimeModification.vue | 134 ++++++++++++------ .../sluggishMaterialWarning.vue | 2 +- src/views/modules/oss/oss-upload.vue | 10 +- src/views/modules/oss/oss.vue | 1 + .../expirationTimeModification.vue | 64 ++++++++- .../rawMaterials/sluggishMaterialWarning.vue | 2 +- 10 files changed, 184 insertions(+), 64 deletions(-) diff --git a/src/api/crollinfo/crollinfo.js b/src/api/crollinfo/crollinfo.js index 4f98085..9e2c1d5 100644 --- a/src/api/crollinfo/crollinfo.js +++ b/src/api/crollinfo/crollinfo.js @@ -8,3 +8,6 @@ export const updateExpireddate = data => createAPI(`/finishedProduct/crollinfo/u // 获取详情 export const infoRollno = data => createAPI(`/finishedProduct/crollinfo/infoRollno`,'post',data) + +//批量修改有效期 +export const batchUpdateExpireddate = data => createAPI(`/finishedProduct/crollinfo/batchUpdateExpireddate`,'post',data) diff --git a/src/views/modules/common/column.vue b/src/views/modules/common/column.vue index 1c0d187..bd365b0 100644 --- a/src/views/modules/common/column.vue +++ b/src/views/modules/common/column.vue @@ -50,6 +50,14 @@ + + 位置 + + + + + + diff --git a/src/views/modules/common/search.vue b/src/views/modules/common/search.vue index c7a10b6..1d1b579 100644 --- a/src/views/modules/common/search.vue +++ b/src/views/modules/common/search.vue @@ -178,16 +178,16 @@ export default { methods: { // 确认搜索条件 searchCriteria() { - const loading = this.$loading({ - lock: true, - text: '查询中', - spinner: 'el-icon-loading', - background: 'rgba(0, 0, 0, 0.7)' - }); + // const loading = this.$loading({ + // lock: true, + // text: '查询中', + // spinner: 'el-icon-loading', + // background: 'rgba(0, 0, 0, 0.7)' + // }); var filter = this.userColumnList.filter(item => item.queryValue!=""); this.$emit('childByValue', filter) setTimeout(() => { - loading.close(); + // loading.close(); }, 2000); }, // 获取 用户的配置 diff --git a/src/views/modules/common/upload.vue b/src/views/modules/common/upload.vue index 579eba8..b9f9566 100644 --- a/src/views/modules/common/upload.vue +++ b/src/views/modules/common/upload.vue @@ -28,16 +28,16 @@ }, methods: { init (id) { - this.url = this.$http.adornUrl(`/sys/oss/upload?token=${this.$cookie.get('token')}`) + this.url = this.$http.adornUrl(`/ftp/file/upload?token=${this.$cookie.get('token')}`) console.log(this.url) this.visible = true }, // 上传之前 beforeUploadHandle (file) { - if (file.type !== 'image/jpg' && file.type !== 'image/jpeg' && file.type !== 'image/png' && file.type !== 'image/gif') { - this.$message.error('只支持jpg、png、gif格式的图片!') - return false - } + // if (file.type !== 'image/jpg' && file.type !== 'image/jpeg' && file.type !== 'image/png' && file.type !== 'image/gif') { + // this.$message.error('只支持jpg、png、gif格式的图片!') + // return false + // } this.num++ }, // 上传成功 diff --git a/src/views/modules/finishedProductWarehouse/expirationTimeModification.vue b/src/views/modules/finishedProductWarehouse/expirationTimeModification.vue index c8b15eb..852e7b1 100644 --- a/src/views/modules/finishedProductWarehouse/expirationTimeModification.vue +++ b/src/views/modules/finishedProductWarehouse/expirationTimeModification.vue @@ -2,20 +2,25 @@
- +
- {{buttons.search}} - {{buttons.defaultTable}} + {{ buttons.search }} + {{ buttons.settingTable }} + {{ buttons.defaultTable }} - {{ buttons.settingTable}} + {{ buttons.updateExp }} + + + @@ -40,23 +45,42 @@ width="150" label="操作"> + - + - + + + + + + + + + + + 确定 + 取消 + +