286 行
11 KiB
HTML
可执行文件
286 行
11 KiB
HTML
可执行文件
<!doctype html>
|
|
<html>
|
|
<!--[1.7.90]-->
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport"
|
|
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
<title>拒收详情</title>
|
|
<link rel="stylesheet" type="text/css" href="__PUBLIC__/vue/element-ui.css">
|
|
<link rel="stylesheet" href="/Public/css/component-serial.css?v=1.0.0">
|
|
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Retail/css/myscroll.css" />
|
|
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/jquery/js/jquery-3.2.1.min.js"></script>
|
|
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/vue/js/vue2.5.16.js"></script>
|
|
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/vue/element-ui.js"></script>
|
|
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/layui-v2.4.3/layui/layui.js"></script>
|
|
<style>
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
body {
|
|
padding: 20px;
|
|
}
|
|
|
|
[v-cloak] {
|
|
display: none;
|
|
}
|
|
|
|
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-input {
|
|
width: 200px;
|
|
}
|
|
|
|
.el-table__row>td:last-child>.cell {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.center-content {
|
|
margin: 20px 0;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.center-content .el-input__inner {
|
|
padding: 0 15px;
|
|
text-align: left;
|
|
}
|
|
|
|
.small-dialog-content {
|
|
margin-left: calc(7% + 40px);
|
|
}
|
|
|
|
.goods_title {
|
|
padding: 10px 0;
|
|
}
|
|
|
|
.el-input {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.details-all {
|
|
padding: 10px;
|
|
background: #f5f7fa;
|
|
color: #606266;
|
|
border: 1px solid #ebeef5;
|
|
border-top: none;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.details-all-lists {
|
|
font-size: 14px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
width: 100%;
|
|
}
|
|
|
|
.details-all-list {
|
|
width: 33%;
|
|
}
|
|
|
|
.form-textarea {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-textarea-title {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.form-button {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.el-textarea.is-disabled .el-textarea__inner {
|
|
background-color: #f5f7fa;
|
|
border-color: #e4e7ed;
|
|
cursor: not-allowed;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="details" v-cloak>
|
|
<div style="text-align: right;margin-bottom: 10px;">
|
|
<if
|
|
condition="$global_store_jurisdiction && ($global_store_jurisdiction['data_export'] eq 2) && $identity eq 2">
|
|
<else />
|
|
<if condition="$authArr['exportOperation'] eq true">
|
|
<el-button type="primary" plain @click="exportOperation" size="small">导出</el-button>
|
|
<el-button type="primary" plain @click="print" size="small">打印</el-button>
|
|
</if>
|
|
</if>
|
|
</div>
|
|
<div class="details-all">
|
|
<div class="details-all-lists">
|
|
<div class="details-all-list">
|
|
出库单号:<span>{{order_number}}</span>
|
|
</div>
|
|
<div class="details-all-list">
|
|
出货仓库:<span>{{warehouse}}</span>
|
|
</div>
|
|
<div class="details-all-list">
|
|
类型:<span>{{stock_name}}</span>
|
|
</div>
|
|
<div class="details-all-list">
|
|
出货方:<span>{{supplier_name}}</span>
|
|
</div>
|
|
<div class="details-all-list">
|
|
货至:<span>{{store_name}}</span>
|
|
</div>
|
|
<div class="details-all-list">
|
|
拒收时间:<span>{{add_time}}</span>
|
|
</div>
|
|
<div class="details-all-list">
|
|
拒收合计:<span>{{goods_species}}种</span>
|
|
</div>
|
|
<div class="details-all-list">
|
|
金额:<span>{{money_total}}</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div style="border: 1px solid rgb(230, 230, 230);">
|
|
<el-table border :data="detailsList" style="width: calc(100% - 1px); box-sizing: border-box; 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="goods_name" label="商品名称" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="sku_name" label="规格" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="goods_number" label="货号" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="goods_code" label="条码" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="company" label="单位" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="sku_num" label="规格基数" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="stock_price" label="出库价" show-overflow-tooltip v-if="showPrice != 2 || identity == 1"></el-table-column>
|
|
<el-table-column prop="refuse_num" label="数量" show-overflow-tooltip>
|
|
<template slot-scope="scope">
|
|
<el-button type="text" size="mini" @click="detailsSerial(scope.$index)"
|
|
v-if="scope.row.serial_number_state == 1 && scope.row.refuse_num > 0">
|
|
{{scope.row.refuse_num}}
|
|
</el-button>
|
|
<span v-else>{{scope.row.refuse_num}}</span>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column prop="subtotal" label="合计" show-overflow-tooltip></el-table-column>
|
|
<el-table-column prop="remarks" label="备注" show-overflow-tooltip></el-table-column>
|
|
</el-table>
|
|
</div>
|
|
<div class="form-textarea" style="margin-top: 10px;">
|
|
<div class="form-textarea-title">订单备注</div>
|
|
<el-input type="textarea" :rows="2" :disabled="true" v-model="remarks">
|
|
</el-input>
|
|
</div>
|
|
<component-serial :visible.sync="serialVisible" :parent-data="serialGoodsData"
|
|
get-data-type="storeOutboundRejectionDetails">
|
|
</component-serial>
|
|
</div>
|
|
</body>
|
|
<script src="/Public/js/component-serial.js?v=1.0.0"></script>
|
|
<script src="/Public/js/common.js"></script>
|
|
<script type="text/javascript">
|
|
layui.use('layer', function () {
|
|
var details = new Vue({
|
|
el: "#details",
|
|
data: function () {
|
|
return {
|
|
print_state: false,
|
|
id: "{$id}",
|
|
detailsList: [],
|
|
warehouse: "{$info['warehouse']}",
|
|
stock_name: "{$info['stock_name']}",
|
|
store_name: "{$info['store_name']}",
|
|
add_time: "{$info['refuse_time']}",
|
|
order_number: "{$info['order_number']}",
|
|
goods_species: "{$info['refuse_goods_species']}",
|
|
money_total: "{$info['refuse_total_stock_money']}",
|
|
remarks: "{$info['remarks']}",
|
|
supplier_name: "{$info['supplier_name']}",
|
|
loading: true,
|
|
serialVisible: false, //串号录入窗口开关
|
|
serialGoodsData: {}, //串号录入当前商品数据对象
|
|
}
|
|
},
|
|
methods: {
|
|
//打印
|
|
print: function () {
|
|
var that = this;
|
|
layer.open({
|
|
type: 2,
|
|
content: "{:U('WebPrint/SPurchaseSale')}?id={$id}&cate={$info['type']}&type=10&warehouse={$info['warehouse']}&stock_name={$info['stock_name']}&store_name={$info['store_name']}&add_time={$info['refuse_time']}&order_number={$info['order_number']}&goods_species={$info['refuse_goods_species']}&money_total={$info['refuse_total_stock_money']}&remarks={$info['remarks']}&operator={$info['operator']}&supplier_name={$info['supplier_name']}&transfer_to_store_id={$info['transfer_to_store_id']}&&store_id={$info['store_id']}",
|
|
title: "打印",
|
|
area: ['100%', '100%'],
|
|
offset: 'rb',
|
|
shade: 0,
|
|
btnAlign: 'c',
|
|
end: function () {
|
|
that.getData();
|
|
}
|
|
})
|
|
},
|
|
//导出
|
|
exportOperation: function () {
|
|
var id = this.id;
|
|
window.location.href = "{:U('refuseLisExport')}?id=" + id
|
|
},
|
|
//查询
|
|
getData: function () {
|
|
var that = this;
|
|
var id = that.id;
|
|
that.loading = true;
|
|
$.ajax({
|
|
url: "{:U('refuseList')}",
|
|
type: "post",
|
|
data: {
|
|
id: id
|
|
},
|
|
success: function (res) {
|
|
that.loading = false;
|
|
that.detailsList = res.data.list;
|
|
}
|
|
})
|
|
},
|
|
/**
|
|
* @description: 打开串号详情窗口
|
|
* @param {Number} index: 当前商品索引
|
|
*/
|
|
detailsSerial(index) {
|
|
this.serialVisible = true
|
|
this.serialGoodsData = this.detailsList[index]
|
|
},
|
|
},
|
|
created: function () {
|
|
this.getData();
|
|
}
|
|
})
|
|
})
|
|
</script>
|
|
|
|
</html> |