Commit 7eca516f by LJM

提交寄售审核

parent f11ba9d1
......@@ -31,12 +31,13 @@
<el-table-column prop="reject_msg" label="审核不通过原因" min-width="150" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="goods_name" label="型号" min-width="200" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="brand_name" label="品牌" min-width="200" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="stock" label="库存数量" width="100"></el-table-column>
<el-table-column prop="moq" label="最小起订量" width="120"></el-table-column>
<el-table-column prop="mpq" label="标准包装量" width="120"></el-table-column>
<el-table-column prop="batch_sn" label="批次" width="100"></el-table-column>
<el-table-column prop="cn_delivery_time" label="大陆交期" width="120"></el-table-column>
<el-table-column prop="hk_delivery_time" label="香港交期" width="120"></el-table-column>
<el-table-column prop="stock" label="申请寄售库存" width="100"></el-table-column>
<el-table-column prop="moq" label="最小起订量" width="90"></el-table-column>
<el-table-column prop="mpq" label="标准包装量" width="90"></el-table-column>
<el-table-column prop="batch_sn" label="批次" width="80"></el-table-column>
<el-table-column prop="cn_delivery_time" label="大陆交期" width="90"></el-table-column>
<el-table-column prop="hk_delivery_time" label="香港交期" width="90"></el-table-column>
<el-table-column prop="sku_id" label="SKUID" width="200"></el-table-column>
</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>
</div>
......@@ -84,7 +85,7 @@ export default {
multipleSelection: [],
uploadUrl: NODE_ENVS + '/api/uploadSku/import',
remark: '',
sku_ids: '',
sku_apply_num_json: [],
fileData: {
token: Tool.getCookie('token'),
type: 2//1覆盖 2新增
......@@ -117,7 +118,7 @@ export default {
* 获取列表数据
*/
getList() {
this.$http('GET', "/api/uploadSku/itemList", {page: this.page, limit: this.limit, up_sn: this.up_sn}).then(res => {
this.$http('GET', "/api/uploadSku/itemList", {page: this.page, limit: this.limit, up_sn: this.up_sn, source: 12}).then(res => {
if (res.code === 0) {
this.list = res.data.list || [];
this.total = res.data.total || 0;
......@@ -150,7 +151,12 @@ export default {
this.$message.warning('只能选择待审核状态的数据');
return;
}
this.sku_ids = this.multipleSelection.map(item => item.sku_id).join(',');
this.sku_apply_num_json = this.multipleSelection.map(item => {
return {
sku_id: item.sku_id,
apply_num: item.stock
}
});
this.dialogVisible_1 = true;
break;
}
......@@ -159,7 +165,7 @@ export default {
* 提交寄售审核
*/
submitConsignmentAudit() {
this.$http('POST', "/api/sku/submitConsignmentAudit", {sku_ids: this.sku_ids, remark: this.remark}).then(res => {
this.$http('POST', "/api/sku/submitConsignmentAudit", {sku_apply_num_json: JSON.stringify(this.sku_apply_num_json), remark: this.remark}).then(res => {
if (res.code === 0) {
this.$message({
message: '操作成功',
......
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