2024-07-02 08:16:55 +08:00
|
|
|
|
<template>
|
2024-08-14 22:35:32 +08:00
|
|
|
|
<div style="margin-bottom: 10px; height: 100%; padding-left: 1%; padding-right: 1%;">
|
2024-07-02 08:16:55 +08:00
|
|
|
|
<el-config-provider :locale="zhCn">
|
2024-08-14 22:35:32 +08:00
|
|
|
|
<div style="display: flex;justify-content: space-between;">
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
<el-input v-model="goodsIdQuery" style="width: 256px; margin-right: 10px;" placeholder="料号"
|
|
|
|
|
|
:suffix-icon="Search" />
|
|
|
|
|
|
<el-button type="primary" @click="search()">搜索</el-button>
|
|
|
|
|
|
<el-button type="warning" @click="reset()">重置</el-button>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row>
|
|
|
|
|
|
<el-button style="background-color: #00CED1; color: #000;"
|
|
|
|
|
|
@click="uploadDialogVisible = true">导入</el-button>
|
|
|
|
|
|
<el-button style="background-color: #32CD32; color: #000;" @click="exportExcel()">导出</el-button>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</div>
|
2024-07-02 08:16:55 +08:00
|
|
|
|
<br />
|
2024-08-14 22:35:32 +08:00
|
|
|
|
<el-table :data="goodsList" stripe border v-loading="loading" class="table-class" highlight-current-row
|
|
|
|
|
|
max-height="650px" @row-click="getCurrentRow" :header-cell-style="{ 'text-align': 'center' }"
|
2024-07-02 08:16:55 +08:00
|
|
|
|
:cell-style="{ 'text-align': 'center' }">
|
|
|
|
|
|
<el-table-column width="65px" fixed="left">
|
|
|
|
|
|
<template v-slot="scope">
|
2024-08-12 16:38:52 +08:00
|
|
|
|
<el-radio :label="scope.row.goodsId" v-model="goodsId"> </el-radio>
|
2024-07-02 08:16:55 +08:00
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
2024-08-14 22:35:32 +08:00
|
|
|
|
<el-table-column prop="goodsId" label="料号" fixed="left" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="goodsName" label="描述" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="goodsUnit" label="单位" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="goodsType" label="物料分类" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="providerType" label="供应商分类" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="weight" label="重量" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="weightUnit" label="重量单位" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="quantityPerBox" label="每盒数量" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="unpackingType" label="拆包方式" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="vehicleType" label="料箱类型" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="vehicleTypeDescription" label="料箱类型描述" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="goodsInVehicleType" label="料箱类型2" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="feedingType" label="补料方式" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="feedingValue" label="补货点" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="dataSource" label="数据来源" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="lastUpdateTime" label="最近更新时间" :formatter="timeFormat" min-width="120px" />
|
|
|
|
|
|
<el-table-column prop="lastUpdateUser" label="最近更新用户" min-width="120px" />
|
2024-07-02 08:16:55 +08:00
|
|
|
|
<el-table-column fixed="right" label="操作" width="240px">
|
|
|
|
|
|
<template v-slot="scope">
|
|
|
|
|
|
<el-button plain type="primary" @click="editCurrentRowGoods(scope.row)">编辑</el-button>
|
|
|
|
|
|
<el-button plain type="danger" @click="deleteCurrentRowGoods(scope.row)">删除</el-button>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
<br />
|
|
|
|
|
|
<el-pagination v-model:current-page="currentPage" v-model:page-size="pageSize" :page-sizes="[10, 25, 50]"
|
|
|
|
|
|
:small="false" :disabled="false" :background="false" :default-page-size="10"
|
|
|
|
|
|
layout="total, sizes, prev, pager, next, jumper" :total="total" @size-change="search"
|
|
|
|
|
|
@current-change="search" />
|
|
|
|
|
|
<el-dialog v-model="dialogVisible" title="物料信息" width="40%" draggable :show-close="false">
|
2024-09-12 16:56:20 +08:00
|
|
|
|
<div
|
|
|
|
|
|
style="max-width: 100%; max-height: 500px; overflow: auto; display: flex; justify-content: center;">
|
2024-08-14 22:35:32 +08:00
|
|
|
|
<el-form ref="goodsFormRef" :model="goodsFormEntity" :label-position="labelPosition"
|
|
|
|
|
|
label-width="100px" style="width: 95%;" :rules="rules" status-icon>
|
|
|
|
|
|
<el-row :gutter="16">
|
|
|
|
|
|
<el-col :span="12" :offset="0">
|
|
|
|
|
|
<el-form-item label="料号" prop="goodsId">
|
|
|
|
|
|
<el-input v-model="goodsFormEntity.goodsId" disabled />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="描述" prop="goodsName">
|
|
|
|
|
|
<el-input v-model="goodsFormEntity.goodsName" clearable />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="16">
|
|
|
|
|
|
<el-col :span="12" :offset="0">
|
|
|
|
|
|
<el-form-item label="单位" prop="goodsUnit">
|
|
|
|
|
|
<el-input v-model="goodsFormEntity.goodsUnit" clearable />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="物料分类" prop="goodsType">
|
|
|
|
|
|
<el-input v-model="goodsFormEntity.goodsType" clearable />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="16">
|
|
|
|
|
|
<el-col :span="12" :offset="0">
|
|
|
|
|
|
<el-form-item label="供应商分类" prop="providerType">
|
|
|
|
|
|
<el-input v-model="goodsFormEntity.providerType" clearable />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="重量" prop="weight">
|
|
|
|
|
|
<el-input-number v-model.number="goodsFormEntity.weight" controls-position="right"
|
2024-09-12 16:56:20 +08:00
|
|
|
|
:precision="3" :step="0.1" :min="0" clearable />
|
2024-08-14 22:35:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="16">
|
|
|
|
|
|
<el-col :span="12" :offset="0">
|
|
|
|
|
|
<el-form-item label="重量单位" prop="weightUnit">
|
|
|
|
|
|
<el-input v-model="goodsFormEntity.weightUnit" clearable />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="每盒数量" prop="quantityPerBox">
|
2024-09-12 16:56:20 +08:00
|
|
|
|
<el-input-number v-model.number="goodsFormEntity.quantityPerBox"
|
|
|
|
|
|
controls-position="right" :min="0" clearable />
|
2024-08-14 22:35:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="16">
|
|
|
|
|
|
<el-col :span="12" :offset="0">
|
|
|
|
|
|
<el-form-item label="拆包方式" prop="unpackingType">
|
|
|
|
|
|
<el-input v-model="goodsFormEntity.unpackingType" clearable />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="料箱类型" prop="vehicleType">
|
|
|
|
|
|
<el-input v-model="goodsFormEntity.vehicleType" clearable />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="16">
|
|
|
|
|
|
<el-col :span="12" :offset="0">
|
|
|
|
|
|
<el-form-item label="料箱类型描述" prop="vehicleTypeDescription">
|
|
|
|
|
|
<el-input v-model="goodsFormEntity.vehicleTypeDescription" clearable />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="料箱类型2" prop="goodsInVehicleType">
|
|
|
|
|
|
<el-input v-model="goodsFormEntity.goodsInVehicleType" clearable />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="16">
|
|
|
|
|
|
<el-col :span="12" :offset="0">
|
|
|
|
|
|
<el-form-item label="补料方式" prop="feedingType">
|
|
|
|
|
|
<el-input v-model="goodsFormEntity.feedingType" clearable />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
<el-col :span="12">
|
|
|
|
|
|
<el-form-item label="补货点" prop="feedingValue">
|
2024-09-12 16:56:20 +08:00
|
|
|
|
<el-input-number v-model.number="goodsFormEntity.feedingValue"
|
|
|
|
|
|
controls-position="right" :min="0" clearable />
|
2024-08-14 22:35:32 +08:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
<el-row :gutter="16">
|
|
|
|
|
|
<el-col :span="12" :offset="0">
|
|
|
|
|
|
<el-form-item label="数据来源" prop="dataSource">
|
|
|
|
|
|
<el-input v-model="goodsFormEntity.dataSource" clearable />
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
</div>
|
2024-07-02 08:16:55 +08:00
|
|
|
|
<template #footer>
|
|
|
|
|
|
<span class="dialog-footer">
|
|
|
|
|
|
<el-button @click="dialogVisible = false">取消</el-button>
|
|
|
|
|
|
<el-button type="primary" @click="submitGoodsInfo(goodsFormEntity)">
|
|
|
|
|
|
确定
|
|
|
|
|
|
</el-button>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-dialog>
|
2024-08-14 22:35:32 +08:00
|
|
|
|
<el-dialog v-model="uploadDialogVisible" title="导入物料" width="40%" draggable :show-close="true">
|
|
|
|
|
|
<fieldset class="title-area">
|
|
|
|
|
|
<legend>导入物料</legend>
|
|
|
|
|
|
<UploadExcelGoods></UploadExcelGoods>
|
|
|
|
|
|
</fieldset>
|
|
|
|
|
|
</el-dialog>
|
2024-07-02 08:16:55 +08:00
|
|
|
|
</el-config-provider>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2024-08-12 16:38:52 +08:00
|
|
|
|
import store from '@/store'
|
|
|
|
|
|
import { getGoodsInfoByPage } from '@/api/goods.js'
|
2024-07-02 08:16:55 +08:00
|
|
|
|
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
|
2024-09-12 16:56:20 +08:00
|
|
|
|
import { ElMessageBox } from 'element-plus'
|
2024-07-02 08:16:55 +08:00
|
|
|
|
import { ref, reactive } from 'vue'
|
2024-08-14 22:35:32 +08:00
|
|
|
|
import { dateFormatter, timeFormatter } from '@/utils/formatter.js'
|
2024-09-12 16:56:20 +08:00
|
|
|
|
import { errorBox, infoBox, successBox } from '@/utils/myMessageBox.js'
|
2024-08-07 23:12:42 +08:00
|
|
|
|
import UploadExcelGoods from '@/excel/UploadExcelGoods.vue'
|
2024-07-02 08:16:55 +08:00
|
|
|
|
import { downloadMaterialExcel } from '@/api/excel.js'
|
2024-08-14 22:35:32 +08:00
|
|
|
|
import { Search } from '@element-plus/icons-vue'
|
2024-07-02 08:16:55 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
<script>
|
|
|
|
|
|
export default {
|
|
|
|
|
|
name: 'goods',
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2024-08-12 16:38:52 +08:00
|
|
|
|
goodsList: [],
|
|
|
|
|
|
goodsInfo: {},
|
2024-07-02 08:16:55 +08:00
|
|
|
|
currentPage: 1,
|
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
|
total: 0,
|
2024-08-12 16:38:52 +08:00
|
|
|
|
goodsIdQuery: '',
|
2024-07-02 08:16:55 +08:00
|
|
|
|
loading: true,
|
|
|
|
|
|
dialogVisible: false,
|
2024-08-14 22:35:32 +08:00
|
|
|
|
uploadDialogVisible: false,
|
|
|
|
|
|
goodsId: '',
|
2024-07-02 08:16:55 +08:00
|
|
|
|
goodsFormEntity: reactive({}),
|
|
|
|
|
|
labelPosition: 'top',
|
|
|
|
|
|
goodsFormRef: ref(),
|
|
|
|
|
|
rules: reactive({})
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
mounted() {
|
|
|
|
|
|
this.search()
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
search() {
|
|
|
|
|
|
this.loading = true
|
2024-08-12 16:38:52 +08:00
|
|
|
|
const request = {
|
|
|
|
|
|
pageNo: this.currentPage,
|
|
|
|
|
|
pageSize: this.pageSize,
|
|
|
|
|
|
goodsId: this.goodsIdQuery.trim(),
|
|
|
|
|
|
userName: store.getters.getUserName
|
2024-07-02 08:16:55 +08:00
|
|
|
|
}
|
2024-08-12 16:38:52 +08:00
|
|
|
|
getGoodsInfoByPage(request).then(res => {
|
2024-07-02 08:16:55 +08:00
|
|
|
|
const tableResponse = res.data
|
2024-08-12 16:38:52 +08:00
|
|
|
|
if (tableResponse.code == 0) {
|
|
|
|
|
|
this.goodsList = tableResponse.returnData.lists
|
|
|
|
|
|
this.total = tableResponse.returnData.total
|
|
|
|
|
|
} else {
|
2024-09-12 16:56:20 +08:00
|
|
|
|
errorBox(tableResponse.message)
|
2024-07-02 08:16:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
}).catch(err => {
|
2024-09-12 16:56:20 +08:00
|
|
|
|
console.log(err)
|
|
|
|
|
|
errorBox('查询物料错误')
|
2024-07-02 08:16:55 +08:00
|
|
|
|
})
|
|
|
|
|
|
this.loading = false
|
|
|
|
|
|
},
|
|
|
|
|
|
dateFormat: (row, column, cellValue, index) => {
|
|
|
|
|
|
return dateFormatter(cellValue)
|
|
|
|
|
|
},
|
2024-08-14 22:35:32 +08:00
|
|
|
|
timeFormat: (row, column, cellValue, index) => {
|
|
|
|
|
|
return timeFormatter(cellValue)
|
|
|
|
|
|
},
|
2024-07-02 08:16:55 +08:00
|
|
|
|
reset() {
|
2024-08-12 16:38:52 +08:00
|
|
|
|
this.goodsIdQuery = ''
|
2024-08-14 22:35:32 +08:00
|
|
|
|
this.search()
|
2024-07-02 08:16:55 +08:00
|
|
|
|
},
|
|
|
|
|
|
editCurrentRowGoods(row) {
|
2024-08-14 22:35:32 +08:00
|
|
|
|
this.goodsId = row.goodsId
|
|
|
|
|
|
this.goodsFormEntity = {
|
|
|
|
|
|
goodsId: row.goodsId,
|
|
|
|
|
|
goodsName: row.goodsName,
|
|
|
|
|
|
goodsUnit: row.goodsUnit,
|
|
|
|
|
|
goodsType: row.goodsType,
|
|
|
|
|
|
providerType: row.providerType,
|
|
|
|
|
|
weight: row.weight,
|
|
|
|
|
|
weightUnit: row.weightUnit,
|
|
|
|
|
|
quantityPerBox: row.quantityPerBox,
|
|
|
|
|
|
unpackingType: row.unpackingType,
|
|
|
|
|
|
vehicleType: row.vehicleType,
|
|
|
|
|
|
vehicleTypeDescription: row.vehicleTypeDescription,
|
|
|
|
|
|
goodsInVehicleType: row.goodsInVehicleType,
|
|
|
|
|
|
feedingType: row.feedingType,
|
|
|
|
|
|
feedingValue: row.feedingValue,
|
|
|
|
|
|
dataSource: row.dataSource,
|
|
|
|
|
|
}
|
2024-07-02 08:16:55 +08:00
|
|
|
|
this.dialogVisible = true
|
|
|
|
|
|
},
|
|
|
|
|
|
deleteCurrentRowGoods(row) {
|
2024-08-14 22:35:32 +08:00
|
|
|
|
this.goodsId = row.goodsId
|
|
|
|
|
|
ElMessageBox.confirm(
|
|
|
|
|
|
'该操作会删除选择的物料数据。\n是否继续',
|
|
|
|
|
|
'警告',
|
|
|
|
|
|
{
|
|
|
|
|
|
confirmButtonText: '确认',
|
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
|
type: 'warning',
|
2024-07-02 08:16:55 +08:00
|
|
|
|
}
|
2024-08-14 22:35:32 +08:00
|
|
|
|
).then(() => {
|
|
|
|
|
|
const params = {
|
|
|
|
|
|
goodsId: this.goodsId,
|
|
|
|
|
|
userName: store.getters.getUserName
|
|
|
|
|
|
}
|
|
|
|
|
|
deleteAllKateTasks(params).then(res => {
|
|
|
|
|
|
if (res.data.code == 0) {
|
2024-09-12 16:56:20 +08:00
|
|
|
|
successBox('删除物料信息成功')
|
2024-08-14 22:35:32 +08:00
|
|
|
|
this.search()
|
|
|
|
|
|
} else {
|
2024-09-12 16:56:20 +08:00
|
|
|
|
errorBox(res.data.message)
|
2024-08-14 22:35:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
|
console.log(err)
|
2024-09-12 16:56:20 +08:00
|
|
|
|
errorBox('删除物料信息失败')
|
2024-08-14 22:35:32 +08:00
|
|
|
|
})
|
|
|
|
|
|
}).catch(() => {
|
2024-09-12 16:56:20 +08:00
|
|
|
|
infoBox('操作取消')
|
2024-07-02 08:16:55 +08:00
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
submitGoodsInfo(formData) {
|
|
|
|
|
|
updatePartInfo(formData).then(res => {
|
|
|
|
|
|
if (res.data.code == 0) {
|
|
|
|
|
|
this.dialogVisible = false
|
2024-09-12 16:56:20 +08:00
|
|
|
|
successBox('更新物料信息成功')
|
2024-07-02 08:16:55 +08:00
|
|
|
|
this.search()
|
|
|
|
|
|
} else {
|
2024-09-12 16:56:20 +08:00
|
|
|
|
errorBox(res.data.message)
|
2024-07-02 08:16:55 +08:00
|
|
|
|
}
|
|
|
|
|
|
}).catch(err => {
|
2024-09-12 16:56:20 +08:00
|
|
|
|
errorBox('更新物料信息失败')
|
2024-07-02 08:16:55 +08:00
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
getCurrentRow(row) {
|
|
|
|
|
|
this.goodsId = row.goodsId
|
|
|
|
|
|
},
|
|
|
|
|
|
exportExcel() {
|
2024-08-14 22:35:32 +08:00
|
|
|
|
downloadMaterialExcel().then(res => {
|
|
|
|
|
|
const link = document.createElement('a');//创建a标签
|
|
|
|
|
|
try {
|
|
|
|
|
|
// let blob = new Blob([res.data],{type: 'application/vnd.ms-excel'}); //如果后台返回的不是blob对象类型,先定义成blob对象格式,该type导出为xls格式,
|
|
|
|
|
|
let blob = res.data //如果后台返回的直接是blob对象类型,直接获取数据
|
|
|
|
|
|
// let _fileName = res.headers['content-disposition'].split(';')[1].split('=')[1]; //拆解获取文件名,如果后端有给返回文件名的话
|
|
|
|
|
|
let _fileName = "导出物料信息" + dateFormatter(new Date) + ".xlsx"
|
|
|
|
|
|
link.style.display = 'none'//隐藏
|
2024-07-02 08:16:55 +08:00
|
|
|
|
|
2024-08-14 22:35:32 +08:00
|
|
|
|
// 兼容不同浏览器的URL对象
|
|
|
|
|
|
const url = window.URL || window.webkitURL || window.moxURL
|
|
|
|
|
|
link.href = url.createObjectURL(blob)
|
|
|
|
|
|
link.setAttribute('download', _fileName.substring(_fileName.lastIndexOf('_') + 1))
|
|
|
|
|
|
document.body.appendChild(link)
|
|
|
|
|
|
link.click()
|
|
|
|
|
|
document.body.removeChild(link)
|
|
|
|
|
|
url.revokeObjectURL(link.href)//移除url对象
|
|
|
|
|
|
} catch (e) {
|
2024-09-12 16:56:20 +08:00
|
|
|
|
console.log(e)
|
|
|
|
|
|
errorBox('下载文件失败')
|
2024-08-14 22:35:32 +08:00
|
|
|
|
}
|
|
|
|
|
|
}).catch(err => {
|
2024-09-12 16:56:20 +08:00
|
|
|
|
console.log(err)
|
|
|
|
|
|
errorBox('导出失败')
|
2024-07-02 08:16:55 +08:00
|
|
|
|
})
|
2024-08-14 22:35:32 +08:00
|
|
|
|
},
|
2024-07-02 08:16:55 +08:00
|
|
|
|
},
|
|
|
|
|
|
// watch: {
|
|
|
|
|
|
// currentPage() {
|
|
|
|
|
|
// this.getCurrentPageGoods()
|
|
|
|
|
|
// },
|
|
|
|
|
|
// pageSize() {
|
|
|
|
|
|
// this.getCurrentPageGoods()
|
|
|
|
|
|
// }
|
|
|
|
|
|
// }
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.el-pagination {
|
|
|
|
|
|
padding-left: 5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-row .el-button {
|
|
|
|
|
|
width: 72px;
|
|
|
|
|
|
margin-left: 0px;
|
|
|
|
|
|
margin-right: 5px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.table-class {
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-row .el-form-item {
|
|
|
|
|
|
width: 10% inherit;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-row .el-form-item .el-select-v2 {
|
|
|
|
|
|
width: 100% !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-row .el-form-item .el-input-number {
|
|
|
|
|
|
width: 100% !important;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.el-row .el-form-item .el-button {
|
|
|
|
|
|
margin: auto;
|
|
|
|
|
|
}
|
2024-08-14 22:35:32 +08:00
|
|
|
|
|
|
|
|
|
|
.title-area {
|
|
|
|
|
|
display: flex;
|
2024-09-02 13:46:13 +08:00
|
|
|
|
/* min-height: 10%; */
|
2024-08-14 22:35:32 +08:00
|
|
|
|
max-height: max-content;
|
|
|
|
|
|
margin-bottom: 10px;
|
|
|
|
|
|
min-width: inherit;
|
|
|
|
|
|
border: solid 1px;
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
box-shadow: 0px 15px 10px -15px #000;
|
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
padding: 10px;
|
|
|
|
|
|
}
|
2024-07-02 08:16:55 +08:00
|
|
|
|
</style>
|