<template>
|
<div>
|
<el-row style="width: 100%;display: flex; justify-content: space-around;margin-top: 10px;">
|
<el-col>
|
<p style="margin-left: 20px;">发货操作</p>
|
</el-col>
|
<el-col style="display: flex; justify-content: end;">
|
<el-button size="mini" icon="el-icon-plus" type="primary">新增</el-button>
|
<el-button size="mini" icon="el-icon-edit-outline">修改</el-button>
|
<el-button size="mini" icon="el-icon-delete">删除</el-button>
|
</el-col>
|
</el-row>
|
<el-row style="width: 100%;height: 60px;background-color: white;display: flex;align-items: center;margin-top: 10px;">
|
<el-form style="height: 60%;margin-left: 20px;" :inline="true" :model="formInline" class="demo-form-inline">
|
<el-form-item label="订单号:">
|
<el-input size="small" v-model="formInline.name" placeholder="请输入"></el-input>
|
</el-form-item>
|
<el-form-item label="客户名称:">
|
<el-input size="small" v-model="formInline.custormerName" placeholder="请输入客户名称"></el-input>
|
</el-form-item>
|
<el-form-item label="发货状态:">
|
<el-select v-model="formInline.state" placeholder="请选择">
|
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
|
</el-option>
|
</el-select>
|
</el-form-item>
|
<el-form-item>
|
<el-button size="mini" @click="resetForm('ruleForm')">重置</el-button>
|
<el-button size="mini" type="primary" @click="onSubmit">查询</el-button>
|
</el-form-item>
|
</el-form>
|
</el-row>
|
<el-row style="height: calc(100% - 125px);margin-top: 10px;background-color: white;">
|
<el-col style="margin-top: 10px;width: 98%;margin-left: 10px;height: calc(100% - 64px);">
|
<el-table ref="inspectionTable" height="100%" :cell-style="{ textAlign: 'center' }"
|
:header-cell-style="{ border: '0px', background: '#f5f7fa', color: '#606266', boxShadow: 'inset 0 1px 0 #ebeef5', textAlign: 'center' }"
|
:data="inspectionTable" style="width: 100%;">
|
<el-table-column label="选择" width="60">
|
<template>
|
<el-checkbox>备选项</el-checkbox>
|
</template>
|
</el-table-column>
|
<el-table-column prop="order_number" label="订单号" min-width="80" />
|
<el-table-column prop="customer_name" label="客户名称" min-width="100" />
|
<el-table-column prop="quality_traceability" label="产品大类" min-width="110" />
|
<el-table-column prop="material_code" label="质量追溯号" min-width="100" />
|
<el-table-column prop="material" label="规格型号" min-width="100" />
|
<el-table-column prop="unit" label="单位" min-width="100" />
|
<el-table-column prop="unit" label="库存数量" min-width="100" />
|
<el-table-column prop="unit" label="入库人" min-width="80" />
|
<el-table-column prop="unit" label="入库日期" min-width="100" />
|
<el-table-column prop="unit" label="发货状态" min-width="80" />
|
<el-table-column label="操作" min-width="80">
|
<template slot-scope="scope">
|
<el-button type="text" size="small" @click="goToDetail(scope.row)">查看</el-button>
|
<el-button type="text" size="small">打印</el-button>
|
<el-button v-if="scope.row.result == null" type="text" size="small" @click="goUp(scope.row)">编辑</el-button>
|
</template>
|
</el-table-column>
|
</el-table>
|
</el-col>
|
<!-- 分页器 -->
|
<el-col class="pagination">
|
<el-pagination :current-page="pageParams.pageSize" :page-sizes="[10, 50, 100, 200]"
|
:page-size="pageParams.countSize" layout="total, sizes, prev, pager, next, jumper" :total="pageParams.total"
|
@size-change="handleSizeChange" @current-change="handleCurrentChange" />
|
</el-col>
|
</el-row>
|
</div>
|
</template>
|
|
<script>
|
export default {
|
data() {
|
return {
|
options: [{
|
value: '0',
|
label: '全部'
|
}, {
|
value: '1',
|
label: '已发货'
|
}, {
|
value: '2',
|
label: '待发货'
|
}],
|
formInline: {
|
name: null,
|
custormerName: null,
|
state: '0'
|
},
|
pageParams: {
|
pageSize: 0,
|
countSize: 10,
|
total: 10
|
},
|
inspectionTable: []
|
}
|
},
|
methods: {
|
resetForm(formName) {
|
this.$refs[formName].resetFields();
|
},
|
onSubmit() {
|
|
},
|
handleSizeChange(val) {
|
|
},
|
handleCurrentChange(val) {
|
|
}
|
}
|
}
|
</script>
|
|
<style scoped>
|
.pagination {
|
width: 98%;
|
margin-top: 5px;
|
display: flex;
|
justify-content: end;
|
}
|
</style>>
|