员工管理界面优化

master
wjq 8 months ago
parent c3122c027b
commit 697e052991

@ -8,10 +8,10 @@
</div> </div>
<div style="display: flex"> <div style="display: flex">
<a-button class="editable-btn" @click="handleSubmit('in')"> <a-button class="editable-btn" @click="handleSubmit('in')">
入库商品 货品入库
</a-button> </a-button>
<a-button class="editable-btn" @click="handleSubmit('out')"> <a-button class="editable-btn" @click="handleSubmit('out')">
出库商品 货品出库
</a-button> </a-button>
<download-excel <download-excel
class="export-excel-wrapper" class="export-excel-wrapper"
@ -31,7 +31,7 @@
<a-table :loading="loading" :columns="columns" :data-source="data" rowKey="id"> <a-table :loading="loading" :columns="columns" :data-source="data" rowKey="id">
<a slot="name" slot-scope="text">{{ text }}</a> <a slot="name" slot-scope="text">{{ text }}</a>
<span slot="customTitle"><a-icon type="smile-o"/> 品名</span> <span slot="customTitle"><a-icon type="smile-o"/> 品名</span>
<span slot="count" slot-scope="count"> <span slot="count" slot-scope="count">
<a-tag color="#108ee9">{{ count }}</a-tag> <a-tag color="#108ee9">{{ count }}</a-tag>
</span> </span>
@ -45,14 +45,14 @@
@cancel="visible = false" @cancel="visible = false"
> >
<a-form-model :model="form"> <a-form-model :model="form">
<a-form-model-item label="请选品"> <a-form-model-item label="请选品">
<a-select v-model="selectIndex" placeholder="请选择入库的商品"> <a-select v-model="selectIndex" placeholder="请选择入库的货物">
<a-select-option :value="index" v-for="(item, index) in commodityList" :key="index"> <a-select-option :value="index" v-for="(item, index) in commodityList" :key="index">
{{ item.name }} {{ item.name }}
</a-select-option> </a-select-option>
</a-select> </a-select>
</a-form-model-item> </a-form-model-item>
<a-form-model-item label="品数量"> <a-form-model-item label="品数量">
<a-input-number id="inputNumber" v-model="form.count" :min="1"/> <a-input-number id="inputNumber" v-model="form.count" :min="1"/>
</a-form-model-item> </a-form-model-item>
<a-form-model-item label="备注"> <a-form-model-item label="备注">
@ -81,7 +81,7 @@ import InventoryRecords from "../../components/InventoryRecords";
const columns = [ const columns = [
{ {
title: '品ID', title: '品ID',
dataIndex: 'id', dataIndex: 'id',
key: 'id', key: 'id',
width: '50%' width: '50%'
@ -107,8 +107,8 @@ export default {
data() { data() {
return { return {
json_fields: { json_fields: {
"品ID": "cid", "品ID": "cid",
"品名称": "name", "品名称": "name",
"库存盘点数量": "count", "库存盘点数量": "count",
}, },
id: this.$route.params.id, id: this.$route.params.id,

Loading…
Cancel
Save