Commit f275e5bc by LJM

寄售申请

parent 9c1c4ab5
...@@ -2,19 +2,23 @@ ...@@ -2,19 +2,23 @@
<div class="pagex"> <div class="pagex">
<div class="section-page"> <div class="section-page">
<!--搜索区--> <!--搜索区-->
<el-form :inline="true" :model="formParam" ref="formParam" label-width="80px"> <el-form :inline="true" :model="formParam" ref="formParam" label-width="96px">
<el-form-item label="状态" prop="status"> <el-form-item label="寄售召回单号" prop="consignment_sn">
<el-select v-model="formParam.status" placeholder="全部" clearable> <el-input v-model="formParam.consignment_sn" placeholder="请输入寄售召回单号" @keyup.enter.native="submit" clearable></el-input>
</el-form-item>
<el-form-item label="型号" prop="goods_name">
<el-autocomplete v-model="formParam.goods_name" :trigger-on-focus="false" @keyup.enter.native="onSubmit" :fetch-suggestions="querySearchAsync" placeholder="请输入型号" clearable></el-autocomplete>
</el-form-item>
<el-form-item label="状态" prop="consignment_status">
<el-select v-model="formParam.consignment_status" placeholder="全部" clearable>
<el-option label="全部" value=""></el-option> <el-option label="全部" value=""></el-option>
<el-option label="待处理" value="1"></el-option> <el-option label="待提审" value="0"></el-option>
<el-option label="处理中" value="2"></el-option> <el-option label="待审核" value="1"></el-option>
<el-option label="已处理" value="3"></el-option> <el-option label="进行中" value="2"></el-option>
<el-option label="失败" value="4"></el-option> <el-option label="完成" value="3"></el-option>
<el-option label="作废" value="4"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="更新日期" prop="create_time">
<el-date-picker :unlink-panels=true style="width:193px" prefix-icon="prefix-icon-time-style" v-model="formParam.date" value-format="yyyy-MM-dd" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"></el-date-picker>
</el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="onSubmit">搜索</el-button> <el-button type="primary" @click="onSubmit">搜索</el-button>
<el-button @click="resetForm('formParam')">重置</el-button> <el-button @click="resetForm('formParam')">重置</el-button>
...@@ -23,27 +27,35 @@ ...@@ -23,27 +27,35 @@
<!--操作区--> <!--操作区-->
<div class="operation-area row verCenter bothSide"> <div class="operation-area row verCenter bothSide">
<div class="operation-button row verCenter"> <div class="operation-button row verCenter">
<el-button type="primary">导入</el-button> <el-button type="primary">提交审核</el-button>
<a href="/寄售商品导入.csv" download style="text-decoration: none;margin-left: 10px;"> <el-button type="primary">作废</el-button>
<el-button type="primary">下载模板</el-button> <el-button type="primary">关单</el-button>
</a> </div>
<div class="text-tip row verCenter">
<i class="el-icon-warning"></i>
<span>可选择“待审核”状态的数据提交寄售申请,每次最多可提交200条</span>
</div> </div>
</div> </div>
<!--列表区--> <!--列表区-->
<div class="data-box"> <div class="data-box">
<el-table :data="list" border max-height="600" @selection-change="handleSelectionChange"> <el-table :data="list" border max-height="600" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="40" align="center" fixed></el-table-column> <el-table-column type="selection" width="40" align="center" fixed></el-table-column>
<el-table-column prop="msg_sn" label="单号" :show-overflow-tooltip="true" align="center"> <el-table-column prop="consignment_sn" label="寄售申请单号" width="160" :show-overflow-tooltip="true" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-link type="primary" @click="$router.push('/consignmentImportDetail')">{{ scope.row.id }}</el-link> <el-link type="primary" :underline="false" @click="$router.push('/consignmentImportDetail')" style="font-size: 12px;">{{ scope.row.consignment_sn }}</el-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="msg_type" label="文件名字" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="consignment_status_val" label="状态" width="80" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="msg_type" label="状态" width="160" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="deliver_status_val" label="发货状态" width="90" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="msg_type" label="导入方式" width="160" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="stock_in_status_val" label="入库状态" width="90" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="id" label="导入成功" width="160" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="order_uname" label="订单人员" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="id" label="导入失败" width="160" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="update_time" label="更新时间" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="create_time" label="上传时间" width="160" :show-overflow-tooltip="true" align="center"></el-table-column> <el-table-column prop="verify_uname" label="审核人" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="verify_time" label="审核时间" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="verify_remark" label="审核说明" min-width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="create_uname" label="创建人" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="create_time" label="创建时间" width="160" :show-overflow-tooltip="true" align="center"></el-table-column>
<el-table-column prop="consignment_type_val" label="类型" width="100" :show-overflow-tooltip="true" align="center"></el-table-column>
</el-table> </el-table>
<el-pagination layout="total, sizes, prev, pager, next, jumper" :page-sizes="[10, 20, 50, 100, 200]" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page"></el-pagination> <el-pagination layout="total, sizes, prev, pager, next, jumper" :page-sizes="[10, 20, 50, 100, 200]" :total="total" @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="page"></el-pagination>
</div> </div>
...@@ -70,8 +82,9 @@ export default { ...@@ -70,8 +82,9 @@ export default {
limit: 10, limit: 10,
list: [], list: [],
formParam: { formParam: {
status: '', consignment_sn: '',
date: '' goods_name: '',
consignment_status: ''
} }
}; };
}, },
...@@ -80,12 +93,7 @@ export default { ...@@ -80,12 +93,7 @@ export default {
}, },
methods: { methods: {
getData() { getData() {
var params = Object.assign({}, this.formParam, this.$http('GET', "/api/consignment/getConsignmentList", this.formParam).then(res => {
{page: this.page, limit: this.limit},
{start_time: this.formParam.date ? this.formParam.date[0] : ''},
{end_time: this.formParam.date ? this.formParam.date[1] : ''}
);
this.$http('GET', "/api/message/getMsgList", params).then(res => {
if (res.code === 0) { if (res.code === 0) {
this.list = res.data.list || []; this.list = res.data.list || [];
this.total = Number(res.data.total) || 0; this.total = Number(res.data.total) || 0;
...@@ -98,6 +106,29 @@ export default { ...@@ -98,6 +106,29 @@ export default {
}) })
}, },
/** /**
* 型号监听
* @param queryString
* @param cb
*/
querySearchAsync(queryString, cb) {
if (!queryString) {
cb([]);
return;
}
this.$http('GET', "/api/search/getspu", {spu_name: queryString}).then(res => {
if (res.code == 0 && res.data.list?.length) {
const arr = res.data.list.map(item => ({
value: item.spu_name
}));
cb(arr);
} else {
cb([]);
}
}).catch(() => {
cb([]);
});
},
/**
* 搜索 * 搜索
*/ */
onSubmit() { onSubmit() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment