|
@@ -67,6 +67,13 @@
|
|
header-align="center"
|
|
header-align="center"
|
|
align="center"
|
|
align="center"
|
|
></el-table-column>
|
|
></el-table-column>
|
|
|
|
+ <el-table-column
|
|
|
|
+ label="申领人员"
|
|
|
|
+ min-width="100"
|
|
|
|
+ prop="applicantName"
|
|
|
|
+ header-align="center"
|
|
|
|
+ align="center"
|
|
|
|
+ ></el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
label="最小包装数量"
|
|
label="最小包装数量"
|
|
min-width="80"
|
|
min-width="80"
|
|
@@ -89,7 +96,7 @@
|
|
align="center"
|
|
align="center"
|
|
>
|
|
>
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-input v-model="scope.row.number" :class="{ 'input-error': scope.row.number === '' }" @input="handleInput" :disabled="oData.tagApplyStateId !='0'"></el-input>
|
|
|
|
|
|
+ <el-input v-model="scope.row.number" :class="{ 'input-error': scope.row.number === '' }" maxlength="10" @input="handleInput" :disabled="oData.tagApplyStateId !='0'"></el-input>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -149,7 +156,7 @@
|
|
<div class="flex center dialog-footer">
|
|
<div class="flex center dialog-footer">
|
|
<el-button
|
|
<el-button
|
|
@click="onCloseBtnClick"
|
|
@click="onCloseBtnClick"
|
|
- >取消</el-button>
|
|
|
|
|
|
+ >导入</el-button>
|
|
<el-button
|
|
<el-button
|
|
v-if="oData && oData.tagApplyStateId === '0'"
|
|
v-if="oData && oData.tagApplyStateId === '0'"
|
|
type="primary"
|
|
type="primary"
|
|
@@ -204,6 +211,14 @@ export default {
|
|
},
|
|
},
|
|
onBatchDeleteBtnClick () {
|
|
onBatchDeleteBtnClick () {
|
|
const { selectedList } = this
|
|
const { selectedList } = this
|
|
|
|
+ if (selectedList.length === this.list.length) {
|
|
|
|
+ this.$notify.error({
|
|
|
|
+ title: '删除失败',
|
|
|
|
+ message: '请至少保留一条标签',
|
|
|
|
+ position: 'bottom-right'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
this.$confirm(`此操作将删除选中的记录, 是否继续?`, '确认', {
|
|
this.$confirm(`此操作将删除选中的记录, 是否继续?`, '确认', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
@@ -217,6 +232,14 @@ export default {
|
|
}).catch(() => {})
|
|
}).catch(() => {})
|
|
},
|
|
},
|
|
onDeleteBtnClick (data) {
|
|
onDeleteBtnClick (data) {
|
|
|
|
+ if (this.list.length === 1) {
|
|
|
|
+ this.$notify.error({
|
|
|
|
+ title: '删除失败',
|
|
|
|
+ message: '请至少保留一条标签',
|
|
|
|
+ position: 'bottom-right'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
this.$confirm(`此操作将删除该记录, 是否继续?`, '确认', {
|
|
this.$confirm(`此操作将删除该记录, 是否继续?`, '确认', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
@@ -247,6 +270,15 @@ export default {
|
|
},
|
|
},
|
|
onConfirmOrderBtnClick () {
|
|
onConfirmOrderBtnClick () {
|
|
if (this.oData && this.oData.details.length > 0) {
|
|
if (this.oData && this.oData.details.length > 0) {
|
|
|
|
+ const datas = this.oData.details.filter(item => item.number && item.number > 0)
|
|
|
|
+ if (datas.length !== this.oData.details.length) {
|
|
|
|
+ this.$notify.error({
|
|
|
|
+ title: '失败',
|
|
|
|
+ message: '标签数量需大于0',
|
|
|
|
+ position: 'bottom-right'
|
|
|
|
+ })
|
|
|
|
+ return
|
|
|
|
+ }
|
|
this.$$request(this.$$api.updateConfirmOrder, this.oData).then((flag) => {
|
|
this.$$request(this.$$api.updateConfirmOrder, this.oData).then((flag) => {
|
|
if (flag) {
|
|
if (flag) {
|
|
this.$notify({
|
|
this.$notify({
|