Commit 81079bd2 by 王志慧

commit

1 parent 22eb4f21
<!-- 盘点 -->
<template>
<GLDialog title="调拨" mode="small" :visible.sync="allocationNumVisible" class="allocationNumDailog" okText="确定" @onCancel="handleClose" @onOk="handleAddConfirm">
<el-form ref="allocationNumForm" :model="infoForm" :rules="formRules" label-width="120px">
<GLDialog title="调拨" :visible.sync="allocationNumVisible" class="allocationNumDailog" okText="确定" @onCancel="handleClose" @onOk="handleAddConfirm">
<div class="gl-form-page gl-form-min">
<el-form ref="allocationNumForm" size="small" :model="infoForm" :rules="formRules" label-width="154px">
<el-form-item label="调拨数量:" prop="allocationNum">
<el-input placeholder="请输入调拨数量" v-model="infoForm.allocationNum" style="width: 250px" clearable @input="handleUpgradeNum"></el-input>
<el-input placeholder="请输入调拨数量" v-model="infoForm.allocationNum" clearable @input="handleUpgradeNum"></el-input>
</el-form-item>
</el-form>
</div>
</GLDialog>
</template>
......
......@@ -4,7 +4,8 @@
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header">
<el-button type="primary" size="small" @click="handleAdd">创建调拨</el-button>
<!-- <el-button type="primary" size="small" @click="handleAdd">创建调拨</el-button> -->
<h2>调拨列表</h2>
<el-button type="primary" size="small" @click="exportExcel">导出</el-button>
</div>
......
......@@ -3,9 +3,14 @@
<div class="addWrap">
<div class="d2-container-content">
<div style="padding: 15px 0">
<div>
<el-input v-model="searchForm.searchName" style="width: 200px" placeholder="请输入商品名称/系列" maxlength="20" clearable />
<el-button @click="handleSearch" size="small" type="primary" style="marginleft: 15px">查询</el-button>
<div class="gl-form-page">
<el-form ref="ruleForm" :model="searchForm" size="small" inline="true">
<el-form-item label="">
<el-input v-model="searchForm.searchName" style="width: 200px" placeholder="请输入商品名称/系列" maxlength="20" clearable />
</el-form-item>
<el-button @click="handleSearch" size="small" type="primary" >查询</el-button>
</el-form>
</div>
</div>
<p class="title">盘存</p>
......@@ -33,8 +38,7 @@
</div>
<glsx-form ref="addInventoryForm" :origin-data="editData" :form-list="editForm" form-ref="inveFormRef" @handleAddConfirm="handleAddConfirm" @handleClose="handleAddClose"></glsx-form>
<!-- 盘点 -->
<inventory-num-dialog :inventory-num-visible="inventoryNumVisible" :record-info="recordInfo"
v-if="inventoryNumVisible" @dialogClose="dialogClose" />
<inventory-num-dialog :inventory-num-visible="inventoryNumVisible" :record-info="recordInfo" v-if="inventoryNumVisible" @dialogClose="dialogClose" />
</div>
</template>
......@@ -262,11 +266,10 @@ export default {
}
</script>
<style scoped>
.d2-container-content{
.d2-container-content {
background: #fff;
padding: 20px;
margin-bottom: 20px;
padding: 20px;
margin-bottom: 20px;
}
.count-txt {
font-weight: 700;
......@@ -277,7 +280,7 @@ export default {
font-weight: 600;
font-size: 16px;
color: #333333;
padding:17px 0;
padding: 17px 0;
}
.leftSpan {
display: inline-block;
......
......@@ -4,7 +4,8 @@
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="showFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<div class="table-header">
<el-button type="primary" size="small" @click="handleAdd">创建盘点</el-button>
<!-- <el-button type="primary" size="small" @click="handleAdd">创建盘点</el-button> -->
<h2>盘点列表</h2>
<el-button type="primary" size="small" @click="exportExcel">导出</el-button>
</div>
......@@ -85,20 +86,17 @@ export default {
{
label: '盘点单号',
prop: 'checkCode',
width: 200
},
{
label: '盘点时间',
prop: 'checkTime',
width: 150,
formatter: cellValue => {
return dayjs(cellValue.checkTime).format('YYYY-MM-DD HH:mm:ss')
}
},
{
label: '盘点人',
prop: 'operator',
width: 150
prop: 'operator'
},
{
label: '盘点门店',
......@@ -111,7 +109,6 @@ export default {
{
label: '凭证',
prop: 'voucherPic',
width: 100,
addHtml: 'img'
}
]
......
<!-- 盘点 -->
<template>
<GLDialog title="盘点"
:visible.sync="inventoryNumVisible"
class="inventoryNumDailog"
mode="small"
@onCancel="handleClose"
@onOk="handleAddConfirm">
<el-form ref="inventoryNumForm"
:model="infoForm"
:rules="formRules"
label-width="120px">
<el-form-item label="盘点数量:"
prop="inventoryNum">
<el-input placeholder="请输入盘点数量"
v-model="infoForm.inventoryNum"
style="width:250px"
clearable
@input="handleUpgradeNum">
</el-input>
</el-form-item>
</el-form>
<GLDialog title="盘点" :visible.sync="inventoryNumVisible" class="inventoryNumDailog" @onCancel="handleClose" @onOk="handleAddConfirm">
<div class="gl-form-page gl-form-min">
<el-form ref="inventoryNumForm" :model="infoForm" :rules="formRules" label-width="154px" size="small">
<el-form-item label="盘点数量:" prop="inventoryNum">
<el-input placeholder="请输入盘点数量" v-model="infoForm.inventoryNum" clearable @input="handleUpgradeNum"></el-input>
</el-form-item>
</el-form>
</div>
</GLDialog>
</template>
......@@ -34,13 +22,11 @@ export default {
inventoryNum: ''
},
oldVal: {
inventoryNum: '',
inventoryNum: ''
},
formRules: {
inventoryNum: [
{ required: true, message: '请输入盘点数量', trigger: 'change' }
]
inventoryNum: [{ required: true, message: '请输入盘点数量', trigger: 'change' }]
},
selectLoading: false,
// 基本数据
......@@ -57,27 +43,20 @@ export default {
},
recordInfo: {
type: Object,
default: () => { }
},
default: () => {}
}
},
watch: {
},
watch: {},
created() {
},
created() {},
components: {},
computed: {
computed: {},
},
mounted() {
},
mounted() {},
methods: {
handleUpgradeNum(newVal) {
this.infoForm.inventoryNum = limitPrice(newVal, this.oldVal.inventoryNum, 8, 2)
this.oldVal.inventoryNum = this.infoForm.inventoryNum
......
......@@ -198,8 +198,8 @@ export default {
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (this.searchForm.reduceDate) {
params.reduceStartDateStr = new Date(this.searchForm.reduceDate[0]).toLocaleDateString().replace(/\//g, '-') + ' 00:00:00'
params.reduceEndDateStr = new Date(this.searchForm.reduceDate[1]).toLocaleDateString().replace(/\//g, '-') + ' 23:59:59'
params.reduceStartDateStr = dayjs(this.searchForm.reduceDate[0]).format('YYYY-MM-DD HH:mm:ss')
params.reduceEndDateStr = dayjs(this.searchForm.reduceDate[0]).format('YYYY-MM-DD') + ' 23:59:59'
}
delete params.reduceDate
return params
......@@ -253,7 +253,7 @@ export default {
handleReset() {
this.searchForm = {
reduceDate: '',
reduceDate: '',
eventType: '',
upgradeGoodsName: '',
yqMerchantId: '',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!