Commit 3f94cb85 by LJM

寄售库存

parent 49078541
......@@ -432,6 +432,29 @@
<el-button type="primary" @click="">确 定</el-button>
</span>
</el-dialog>
<!--寄售召回-->
<el-dialog title="寄售召回" :close-on-click-modal="false" :visible.sync="dialogVisibleConsignmentRecall" width="900px">
<div class="kc-mask">
<el-table :data="kucundata" border max-height="600">
<el-table-column prop="goods_name" label="型号" min-width="25%">
</el-table-column>
<el-table-column prop="brand_name" label="品牌" min-width="25%">
</el-table-column>
<el-table-column prop="stock" label="可用库存数量" min-width="25%">
</el-table-column>
<el-table-column label="申请召回数量" min-width="25%">
<template slot-scope="scope">
<el-input v-model="scope.row.updateStock" placeholder="点击修改" onkeyup="if(event.keyCode !=37 &amp;&amp; event.keyCode != 39){if (!/^[\d]+$/ig.test(this.value)){this.value='';}}">
</el-input>
</template>
</el-table-column>
</el-table>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisibleConsignmentRecall = false">取 消</el-button>
<el-button type="primary">确 定</el-button>
</span>
</el-dialog>
</div>
<Menu/>
</div>
......@@ -459,6 +482,7 @@ export default {
dialogVisibleLog: false,//日志
dialogVisibleLogDetail: false,//日志详情
dialogVisibleBatchModify: false,//批量修改
dialogVisibleConsignmentRecall: false,//寄售召回
logs: [],
downHref: "",
cp_time_val: '',
......@@ -1064,13 +1088,36 @@ export default {
* 寄售补货
*/
consignmentReplenishment() {
if (this.multipleSelection.length === 0) {
this.$message({
message: '请至少选择一条数据',
type: 'warning'
});
return;
}
var html = `
<p style="font-size: 14px;">确定将选择的商品提交寄售补货申请?</p>
<p style="font-size: 14px;color: #FF7E11">确认后请到【寄售申请】菜单编辑申请寄售数量,并提交审核</p>
`
this.$confirm(html, '寄售补货', {
confirmButtonText: '确定',
cancelButtonText: '取消',
dangerouslyUseHTMLString: true
}).then(() => {
// TODO: 在这里添加确认后的处理逻辑
this.$message({
type: 'success',
message: '提交成功'
});
}).catch(() => {
// 取消时不需要提示
});
},
/**
* 寄售召回
*/
consignmentRecall() {
this.dialogVisibleConsignmentRecall=true;
}
},
components: {
......
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