init: import production code mss.nahaichuan.com (exclude Runtime/Uploads/backups/logs)
这个提交包含在:
@@ -0,0 +1,253 @@
|
||||
<!--[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: 0 0 20px;
|
||||
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;
|
||||
}
|
||||
|
||||
.el-range-editor--small .el-range-separator {
|
||||
line-height: 32px;
|
||||
}
|
||||
</style>
|
||||
<div class="purchaseBox" id="purchase" v-cloak>
|
||||
<div style="margin:0 0 20px;">
|
||||
<el-collapse accordion>
|
||||
<el-collapse-item>
|
||||
<template slot="title">
|
||||
调拨管理须知>>></i>
|
||||
</template>
|
||||
<div>1.显示该商户下所有门店向商户调拨商品的记录</div>
|
||||
<div>2.门店申请调拨需商户审核出库,商户减少该商品库存;门店->进销存->货流管理->调拨单->入库,门店增加该商品库存</div>
|
||||
<div>3.点击出库后该条调拨记录才会增加操作人</div>
|
||||
</el-collapse-item>
|
||||
</el-collapse>
|
||||
</div>
|
||||
<div class="center-content">
|
||||
<div>
|
||||
<el-input placeholder="调拨单号"
|
||||
style="width: 200px"
|
||||
type="text"
|
||||
clearable
|
||||
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-select v-model="status" placeholder="状态" size="small">
|
||||
<el-option value="" label="所有状态"></el-option>
|
||||
<el-option value="1" label="申请"></el-option>
|
||||
<el-option value="2" label="已出库"></el-option>
|
||||
<el-option value="3" label="已入库"></el-option>
|
||||
</el-select>
|
||||
|
||||
<el-button type="primary" plain @click="search" size="small">搜索</el-button>
|
||||
<if condition="$authArr['exportOperation']">
|
||||
<el-button @click="exportOperation" size="small">导出</el-button>
|
||||
</if>
|
||||
</div>
|
||||
</div>
|
||||
<div style="border: 1px solid #e6e6e6;max-width: calc(100vw - 208px);">
|
||||
<el-table border :data="OrderList" style="width: calc(100vw - 208px);border: none;"
|
||||
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="store_name" label="申请的门店" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="add_time" label="申请时间" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="stock_time" label="出库时间" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="storage_time" label="操作时间" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="order_number" label="调拨单号" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="store_goods_species" label="申请合计(种)" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="goods_species" label="应收合计(种)" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="money_total" label="应收金额" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="accept_goods_species" label="实收合计(种)" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="accept_money_total" label="实收金额" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="refuse_goods_species" label="拒收合计(种)" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="refuse_total_stock_money" label="拒收金额" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="remarks" label="备注" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="status_name" label="状态" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column fixed="right" label="操作" width="200px" style="border-right: none;">
|
||||
<template slot-scope="scope">
|
||||
<if condition="$authArr['apply']">
|
||||
<el-button @click="apply(scope.row.id,scope.row.store_name)" type="text" size="small">订单详情
|
||||
</el-button>
|
||||
</if>
|
||||
<if condition="$authArr['warehousing']">
|
||||
<el-button v-if="scope.row.status == 1" @click="warehousing(scope.row.id)" type="text"
|
||||
size="small">申请出库
|
||||
</el-button>
|
||||
</if>
|
||||
<if condition="$authArr['refuseInfo']">
|
||||
<el-button v-if="scope.row.refuse_status == 2" @click="refuseInfo(scope.row.stock_order_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 purchase = new Vue({
|
||||
el: "#purchase",
|
||||
data: function () {
|
||||
return {
|
||||
order_number: "",
|
||||
add_time: "",
|
||||
status: "",
|
||||
OrderList: [],
|
||||
currentPage: 1,
|
||||
currentLimit: 10,
|
||||
currentLen: 0,
|
||||
loading: true,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleSizeChange: function (val) {
|
||||
this.currentLimit = val;//切换每页数量
|
||||
this.currentPage = 1;
|
||||
this.getData();
|
||||
},
|
||||
handleCurrentChange: function (val) {
|
||||
this.currentPage = val;
|
||||
this.getData();//切换页数
|
||||
},
|
||||
//搜索
|
||||
search: function () {
|
||||
this.currentPage = 1;
|
||||
this.getData();
|
||||
},
|
||||
//查询
|
||||
getData: function () {
|
||||
var that = this;
|
||||
that.loading = true;
|
||||
var page = that.currentPage;
|
||||
var limit = that.currentLimit;
|
||||
var order_number = that.order_number;
|
||||
var add_time = that.add_time;
|
||||
var status = that.status;
|
||||
$.ajax({
|
||||
url: "{:U('OrderList')}",
|
||||
type: "post",
|
||||
data: {
|
||||
page: page,
|
||||
limit: limit,
|
||||
order_number: order_number,
|
||||
add_time: add_time,
|
||||
status: status
|
||||
},
|
||||
success: function (res) {
|
||||
that.loading = false;
|
||||
that.OrderList = res.data;
|
||||
that.$nextTick(function () {
|
||||
that.currentLen = parseInt(res.count);
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
//订单详情
|
||||
apply: function (id, store_name) {
|
||||
var that = this;
|
||||
layer.open({
|
||||
type: 2,
|
||||
content: "{:U('Retail/AllocationApply/apply_details')}?id=" + id + "&store_name=" + store_name,
|
||||
title: "详情",
|
||||
area: ['calc(100% - 160px)', 'calc(100% - 65px)'],
|
||||
offset: 'rb',
|
||||
shade: 0,
|
||||
btnAlign: 'c',
|
||||
})
|
||||
},
|
||||
//出库
|
||||
warehousing: function (id) {
|
||||
var that = this;
|
||||
layer.open({
|
||||
type: 2,
|
||||
content: "{:U('warehousing')}?id=" + id,
|
||||
title: "详情",
|
||||
area: ['calc(100% - 160px)', 'calc(100% - 65px)'],
|
||||
offset: 'rb',
|
||||
shade: 0,
|
||||
btnAlign: 'c',
|
||||
end: function () {
|
||||
that.getData();
|
||||
}
|
||||
})
|
||||
},
|
||||
//拒收详情
|
||||
refuseInfo: function (id) {
|
||||
var that = this;
|
||||
layer.open({
|
||||
type: 2,
|
||||
content: "{:U('StockOutOrder/refuseInfo')}?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 add_time = that.add_time;
|
||||
var status = that.status;
|
||||
window.location.href = "{:U('export')}?order_number=" + order_number + "&status=" + status + "&add_time=" + add_time
|
||||
}
|
||||
},
|
||||
created: function () {
|
||||
this.getData();
|
||||
}
|
||||
})
|
||||
</script>
|
||||
在新工单中引用
屏蔽一个用户