Commit 3693f899 by lichengming

修改了备样管理和余样管理

parent d6b213d8
...@@ -459,7 +459,7 @@ export default { ...@@ -459,7 +459,7 @@ export default {
const errorIds = [] const errorIds = []
for (let i = 0; i < this.selectIds.length; i++) { for (let i = 0; i < this.selectIds.length; i++) {
if (this.selectData[i].status.display !== '处理审批通过') { if (this.selectData[i].status.display !== '处理审批通过') {
errorIds.push(this.selectData[i].sampleCode) errorIds.push(this.selectData[i].index + 1)
} }
} }
if (errorIds.length === 0) { if (errorIds.length === 0) {
...@@ -471,7 +471,18 @@ export default { ...@@ -471,7 +471,18 @@ export default {
} }
}) })
} else { } else {
this.$Message.warning('试样编号为 ' + errorIds + ' 的审批未通过') // this.$Notice.error({
// title: '文件格式不正确',
// duration: 10,
// desc: '试样编号为 ' + errorIds + ' 的审批未通过'
// })
// this.$Message.warning('试样编号为 ' + errorIds + ' 的审批未通过')
this.$notify({
title: '提示',
message: '第 ' + errorIds + ' 行数据的审批未通过',
duration: 0,
type: 'error'
})
// this.$Modal.confirm({ // this.$Modal.confirm({
// title: '提示', // title: '提示',
// content: '试样编号为 ' + errorIds + ' 的审批未通过' // content: '试样编号为 ' + errorIds + ' 的审批未通过'
...@@ -660,7 +671,12 @@ export default { ...@@ -660,7 +671,12 @@ export default {
} }
} }
</script> </script>
<style scoped> <style>
.el-notification__content p {
white-space: pre-wrap !important;
word-wrap: break-word;
word-break: break-all;
}
/******副样、备样卡片********/ /******副样、备样卡片********/
.reimbursement-item { .reimbursement-item {
flex: 1; flex: 1;
......
...@@ -379,7 +379,13 @@ export default { ...@@ -379,7 +379,13 @@ export default {
} }
}) })
} else { } else {
this.$Message.warning('第 ' + errorIds + ' 条数据的审批未通过') // this.$Message.warning('第 ' + errorIds + ' 条数据的审批未通过')
this.$notify({
title: '提示',
message: '第 ' + errorIds + ' 行数据的审批未通过',
duration: 4000,
type: 'error'
})
} }
} }
}, },
......
...@@ -974,7 +974,7 @@ Vue.prototype.$optColWidth = function(list) { ...@@ -974,7 +974,7 @@ Vue.prototype.$optColWidth = function(list) {
} }
return arrayList.length > 0 ? 85 + width * (arrayList.length - 1) : 0 return arrayList.length > 0 ? 85 + width * (arrayList.length - 1) : 0
} }
Vue.prototype.$defRow = 50 Vue.prototype.$defRow = 500
Vue.prototype.$setOptimization = function(msg) { Vue.prototype.$setOptimization = function(msg) {
// 默认 数据超过200条,启用虚拟加载,每次加载50条 // 默认 数据超过200条,启用虚拟加载,每次加载50条
let result = { gt: 200, oSize: 20, rSize: 50 } let result = { gt: 200, oSize: 20, rSize: 50 }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment