|
@@ -5,7 +5,67 @@
|
|
|
class="z-card flex column flex-1 fit-size"
|
|
|
>
|
|
|
<div class="wrapper flex column layout-gap">
|
|
|
- <div class="flex valign-center">
|
|
|
+ <!-- <div class="flex valign-center">
|
|
|
+ <el-button
|
|
|
+ :disabled="selectedList.length === 0"
|
|
|
+ plain
|
|
|
+ icon="el-icon-plus"
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ class="custom-plain-button"
|
|
|
+ @click="onCodeBtnClick"
|
|
|
+ >赋码</el-button>
|
|
|
+
|
|
|
+ <el-button
|
|
|
+ :disabled="selectedList.length === 0"
|
|
|
+ plain
|
|
|
+ type="primary"
|
|
|
+ size="small"
|
|
|
+ class="custom-plain-button"
|
|
|
+ @click="onBatchPrintBtnClick"
|
|
|
+ >
|
|
|
+ <div class="flex center" style="height:1em">
|
|
|
+ <svg
|
|
|
+ viewBox="0 0 1024 1024"
|
|
|
+ version="1.1"
|
|
|
+ xmlns="http://www.w3.org/2000/svg"
|
|
|
+ width="14"
|
|
|
+ height="14"
|
|
|
+ >
|
|
|
+ <path d="M928 288H96v384h160v224h512V672h160zM704 832H320V544h384z m160-224h-96v-128H256v128h-96V352h704zM320 192h384v64h64V128H256v128h64v-64z" fill="currentColor"></path>
|
|
|
+ <path d="M384 608h256v64H384zM384 704h256v64H384z" fill="currentColor"></path>
|
|
|
+ <path d="M800 416m-32 0a32 32 0 1 0 64 0 32 32 0 1 0-64 0Z" fill="currentColor"></path>
|
|
|
+ </svg>
|
|
|
+ <span style="margin-left:5px;">批量打印</span>
|
|
|
+ </div>
|
|
|
+ </el-button>
|
|
|
+ </div> -->
|
|
|
+ <el-form label-width="80px">
|
|
|
+ <el-row :gutter="$$Constant.LAYOUT_GAP">
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="供应商">
|
|
|
+ <my-select
|
|
|
+ v-model="query.providerId"
|
|
|
+ :options="optionGroup.Provider ? optionGroup.Provider.list : []"
|
|
|
+ filterable
|
|
|
+ clearable
|
|
|
+ placeholder="输入供应商"
|
|
|
+ ></my-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-form-item label="状态">
|
|
|
+ <my-select
|
|
|
+ v-model="query.tagApplyStateId"
|
|
|
+ :options="optionGroup.TagApplyState ? optionGroup.TagApplyState.list : []"
|
|
|
+ >
|
|
|
+ </my-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <div class="flex valign-right" style="justify-content: flex-end;">
|
|
|
+ <el-button type="primary" class="filter-button" @click="onSearchBtnClick">查询</el-button>
|
|
|
<el-button
|
|
|
:disabled="selectedList.length === 0"
|
|
|
plain
|
|
@@ -40,6 +100,9 @@
|
|
|
</div>
|
|
|
</el-button>
|
|
|
</div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
|
|
|
<div class="flex-1 fit-size">
|
|
|
<el-table
|
|
@@ -198,11 +261,20 @@ export default {
|
|
|
.filter(data => data.tagApplyStateId === '2')
|
|
|
.map(data => data[$$idProp])
|
|
|
|
|
|
- this.$$request(this.$$api.setCode, ids).then((flag) => {
|
|
|
- if (flag) {
|
|
|
+ if (!Array.isArray(ids) || ids.length === 0) {
|
|
|
+ this.$notify.error({
|
|
|
+ title: '失败',
|
|
|
+ message: '所有订单都已赋码,无需重复操作!',
|
|
|
+ position: 'bottom-right'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ this.$$request(this.$$api.setCode, ids).then((data) => {
|
|
|
+ if (data && typeof data === 'number') {
|
|
|
this.$notify({
|
|
|
title: '成功',
|
|
|
- message: '操作成功',
|
|
|
+ message: `已成功赋码 ${data}个`,
|
|
|
type: 'success',
|
|
|
position: 'bottom-right'
|
|
|
})
|