214 行
8.1 KiB
HTML
可执行文件
214 行
8.1 KiB
HTML
可执行文件
<!--[1.7.90]-->
|
|
<style>
|
|
th {
|
|
background-color: #f5f7fa !important;
|
|
}
|
|
|
|
th > .cell {
|
|
white-space: nowrap !important;
|
|
text-align: center;
|
|
}
|
|
|
|
th, td {
|
|
text-align: center;
|
|
line-height: 30px;
|
|
padding: 0;
|
|
}
|
|
|
|
th > .cell, td > .cell {
|
|
text-align: center;
|
|
}
|
|
|
|
.el-pagination {
|
|
padding: 8px;
|
|
}
|
|
|
|
.el-table__row > td:last-child > .cell {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.center-content {
|
|
margin: 10px 0 10px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.center-content .el-input__inner {
|
|
padding: 0 15px;
|
|
text-align: left;
|
|
}
|
|
|
|
.el-input {
|
|
margin-bottom: 10px;
|
|
}
|
|
</style>
|
|
<div class="purchaseBox" id="modify" v-cloak>
|
|
<el-collapse accordion>
|
|
<el-collapse-item>
|
|
<template slot="title">
|
|
<el-button type="text" size="mini">调价单须知>>></el-button>
|
|
</template>
|
|
<div>1. 初始化入库指商品档案新增商品填入库存与进价对当时进价修改</div>
|
|
<div>2. 采购单指采购单的商品进价修改,已入库的入库价将会修改,采购单金额,采购入库单,补货入库单,采购应付款的金额会发生相应改变</div>
|
|
<div>3. 其他入库指入库单的其他入库的商品进价修改,入库单金额会相应改变</div>
|
|
<div>4. 价格修改后将会重新计算商品的成本价,并生成成本价记录数据</div>
|
|
</el-collapse-item>
|
|
</el-collapse>
|
|
<div class="center-content">
|
|
<div>
|
|
<template>
|
|
<el-select v-model="type" placeholder="请选择类型" size="small" clearable>
|
|
<el-option label="初始化入库" value="1"></el-option>
|
|
<el-option label="采购单" value="2"></el-option>
|
|
<el-option label="其他入库" value="3"></el-option>
|
|
</el-select>
|
|
</template>
|
|
<el-input placeholder="调价单号/修改单号"
|
|
clearable
|
|
style="width: 200px"
|
|
type="text"
|
|
size="small"
|
|
@keydown.enter.exact.native.prevent="search"
|
|
v-model="order_number"></el-input>
|
|
<date-picker-range :date-time.sync="add_time"></date-picker-range>
|
|
|
|
<el-button type="primary" @click="search" size="small">搜索</el-button>
|
|
<if condition="$authArr['addPurchaseOrder'] eq true">
|
|
<el-button type="primary" plain @click="addPurchaseOrder" size="small">新增</el-button>
|
|
</if>
|
|
<if condition="$authArr['exportOperation'] eq true">
|
|
<el-button @click="exportOperation" size="small">导出</el-button>
|
|
</if>
|
|
</div>
|
|
</div>
|
|
<div style="width: calc(100vw - 208px);">
|
|
<el-table border :data="ModifyOrderList" style="width: calc(100% - 20px);"
|
|
size="mini"
|
|
max-height="500"
|
|
v-loading="loading"
|
|
element-loading-text="数据获取中"
|
|
element-loading-spinner="el-icon-loading">
|
|
<el-table-column prop="index" label="序号" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="operator" label="操作人" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="add_time" label="调价时间" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="type_name" label="类型" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="order_number" label="调价单" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="modify_order_number" label="被修改订单" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="goods_species" label="合计(种)" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="remarks" label="备注" show-overflow-tooltip></el-table-column>
|
|
<el-table-column fixed="right" label="操作" width="150px" style="border-right: none;">
|
|
<template slot-scope="scope">
|
|
<if condition="$authArr['OrderInfo'] eq true">
|
|
<el-button @click="OrderInfo(scope.row.id)" type="text" size="small">详情</el-button>
|
|
</if>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
<el-pagination
|
|
@size-change="handleSizeChange"
|
|
@current-change="handleCurrentChange"
|
|
:current-page="currentPage"
|
|
:page-sizes="[10, 15, 20, 25, 30, 35, 40, 45, 50]"
|
|
:page-size="100"
|
|
layout="total, sizes, prev, pager, next, jumper"
|
|
:total="currentLen">
|
|
</el-pagination>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
var modify = new Vue({
|
|
el: "#modify",
|
|
data: function () {
|
|
return {
|
|
order_number: "",
|
|
add_time: "",
|
|
type: "",
|
|
ModifyOrderList: [],
|
|
currentPage: 1,
|
|
currentLimit: 10,
|
|
currentLen: 0,
|
|
loading: true,
|
|
}
|
|
},
|
|
methods: {
|
|
//搜索
|
|
search: function () {
|
|
this.currentPage = 1;
|
|
this.getData();
|
|
},
|
|
handleSizeChange: function (val) {
|
|
this.currentLimit = val;//切换每页数量
|
|
this.currentPage = 1;
|
|
this.getData();
|
|
},
|
|
handleCurrentChange: function (val) {
|
|
this.currentPage = val;
|
|
this.getData();//切换页数
|
|
},
|
|
//查询
|
|
getData: function () {
|
|
this.loading = true;
|
|
$.ajax({
|
|
url: "{:U('modifyOrderList')}",
|
|
type: "post",
|
|
data: {
|
|
page: this.currentPage,
|
|
limit: this.currentLimit,
|
|
order_number: this.order_number,
|
|
add_time: this.add_time,
|
|
type: this.type
|
|
},
|
|
success: (res) => {
|
|
this.ModifyOrderList = res.data;
|
|
this.loading = false;
|
|
this.$nextTick(() => {
|
|
this.currentLen = parseInt(res.count);
|
|
})
|
|
}
|
|
})
|
|
},
|
|
addPurchaseOrder: function () {
|
|
var that = this;
|
|
layer.open({
|
|
type: 2,
|
|
content: "{:U('addModifyPrice')}",
|
|
title: "调价单",
|
|
area: ['calc(100% - 160px)', 'calc(100% - 65px)'],
|
|
offset: 'rb',
|
|
shade: 0,
|
|
btnAlign: 'c',
|
|
end: function () {
|
|
that.currentPage = 1;
|
|
that.currentLimit = 10;
|
|
that.getData();
|
|
}
|
|
})
|
|
},
|
|
//详情
|
|
OrderInfo: function (id) {
|
|
var that = this;
|
|
layer.open({
|
|
type: 2,
|
|
content: "{:U('details')}?id=" + id,
|
|
title: "详情",
|
|
area: ['calc(100% - 160px)', 'calc(100% - 65px)'],
|
|
offset: 'rb',
|
|
shade: 0,
|
|
btnAlign: 'c',
|
|
})
|
|
},
|
|
//导出
|
|
exportOperation: function () {
|
|
var that = this;
|
|
var order_number = that.order_number;
|
|
var type = that.type;
|
|
var add_time = that.add_time;
|
|
window.location.href = "{:U('export')}?order_number=" + order_number + '&type=' + type + '&add_time=' + add_time;
|
|
}
|
|
},
|
|
created: function () {
|
|
this.getData();
|
|
}
|
|
})
|
|
</script> |