Commit 81079bd2 by 王志慧

commit

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