|
|
@ -1,15 +1,28 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-card>
|
|
|
|
<el-card>
|
|
|
|
<el-form :model="formData" :rules="formRules" label-width="140px" ref="dataForm">
|
|
|
|
<el-form :model="formData" :rules="formRules" label-width="160px" ref="dataForm">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-button-group style="display: flex;margin: 0px 0 10px 90%; ">
|
|
|
|
|
|
|
|
<el-button type="primary" @click.native="save()">保存</el-button>
|
|
|
|
|
|
|
|
</el-button-group>
|
|
|
|
|
|
|
|
|
|
|
|
<el-collapse v-model="activeNames">
|
|
|
|
<el-collapse v-model="activeNames">
|
|
|
|
|
|
|
|
|
|
|
|
<el-collapse-item name="0">
|
|
|
|
<el-collapse-item name="0">
|
|
|
|
<template slot="title">
|
|
|
|
<template slot="title">
|
|
|
|
<p class="form-title">下载设置</p>
|
|
|
|
<p class="form-title">原始单据下载设置</p>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<el-col :span="11" class="el-col">
|
|
|
|
<el-col :span="8" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="开启单据自动下载:" prop="autoDownload" style="margin-bottom: 0">
|
|
|
|
|
|
|
|
<el-radio-group v-model="formData.autoDownload">
|
|
|
|
|
|
|
|
<el-radio :label="true">是</el-radio>
|
|
|
|
|
|
|
|
<el-radio :label="false">否</el-radio>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8" class="el-col">
|
|
|
|
<el-form-item label="起始下载时间:" prop="startDownloadTime" label-width="160px">
|
|
|
|
<el-form-item label="起始下载时间:" prop="startDownloadTime" label-width="160px">
|
|
|
|
<el-date-picker
|
|
|
|
<el-date-picker
|
|
|
|
v-model="formData.startDownloadTime"
|
|
|
|
v-model="formData.startDownloadTime"
|
|
|
@ -18,64 +31,78 @@
|
|
|
|
style="width: 90%"
|
|
|
|
style="width: 90%"
|
|
|
|
:clearable="false"
|
|
|
|
:clearable="false"
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
@change="save()"
|
|
|
|
|
|
|
|
>
|
|
|
|
>
|
|
|
|
</el-date-picker>
|
|
|
|
</el-date-picker>
|
|
|
|
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-col>
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</el-collapse-item>
|
|
|
|
</el-collapse-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-collapse-item name="1">
|
|
|
|
<el-collapse-item name="1">
|
|
|
|
<template slot="title">
|
|
|
|
<template slot="title">
|
|
|
|
<p class="form-title">单据自助上传设置</p>
|
|
|
|
<p class="form-title">原始单据处理设置</p>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<el-row :gutter="20">
|
|
|
|
<!-- <el-col :span="11" class="el-col">-->
|
|
|
|
<el-col :span="8" class="el-col">
|
|
|
|
<!-- <el-form-item label="流通计量层级单位:" prop="distributeLevelUnit" label-width="160px">-->
|
|
|
|
<el-form-item label="自动转成待处理单据:" prop="autoDealOrder" style="margin-bottom: 0">
|
|
|
|
<!-- <el-input style="width: 90%" size="small" placeholder="请输入流通计量层级单位"-->
|
|
|
|
<el-radio-group v-model="formData.autoDealOrder">
|
|
|
|
<!-- disabled-->
|
|
|
|
<el-radio :label="true">是</el-radio>
|
|
|
|
<!-- v-model="newProductData.distributeLevelUnit"-->
|
|
|
|
<el-radio :label="false">否</el-radio>
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
</el-radio-group>
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
</el-form-item>
|
|
|
|
<!-- </el-col>-->
|
|
|
|
</el-col>
|
|
|
|
<!-- <el-col :span="11" class="el-col">-->
|
|
|
|
</el-row>
|
|
|
|
<!-- <el-form-item label="使用计量层级单位:" prop="useLevelUnit" label-width="160px">-->
|
|
|
|
</el-collapse-item>
|
|
|
|
<!-- <el-input style="width: 90%" size="small" placeholder="请输入使用计量层级标识"-->
|
|
|
|
|
|
|
|
<!-- disabled-->
|
|
|
|
|
|
|
|
<!-- v-model.trim="newProductData.useLevelUnit"-->
|
|
|
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="11" class="el-col">-->
|
|
|
|
|
|
|
|
<!-- <el-form-item label="流通时含计量单元数量:" prop="distributeLevelCount" label-width="160px">-->
|
|
|
|
|
|
|
|
<!-- <el-input style="width: 90%" size="small" placeholder="请输入流通时包含计量单元的数量"-->
|
|
|
|
|
|
|
|
<!-- v-model.trim="newProductData.distributeLevelCount"-->
|
|
|
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
<!-- <el-col :span="11" class="el-col">-->
|
|
|
|
|
|
|
|
<!-- <el-form-item label="使用时含计量单元数量:" prop="useLeverCount" label-width="160px">-->
|
|
|
|
|
|
|
|
<!-- <el-input style="width: 90%" size="small" placeholder="请输入使用时包含计量单元的数量"-->
|
|
|
|
|
|
|
|
<!-- v-model.trim="newProductData.useLeverCount"-->
|
|
|
|
|
|
|
|
<!-- ></el-input>-->
|
|
|
|
|
|
|
|
<!-- </el-form-item>-->
|
|
|
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-collapse-item name="2">
|
|
|
|
|
|
|
|
<template slot="title">
|
|
|
|
|
|
|
|
<p class="form-title">单据处理设置</p>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
|
|
|
<el-col :span="8" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="待处理单据自动分配:" prop="autoAllotOrder" style="margin-bottom: 0">
|
|
|
|
|
|
|
|
<el-radio-group v-model="formData.autoAllotOrder">
|
|
|
|
|
|
|
|
<el-radio :label="true">是</el-radio>
|
|
|
|
|
|
|
|
<el-radio :label="false">否</el-radio>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
<el-col :span="8" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="单据自动完成:" prop="autoFinishOrder" style="margin-bottom: 0">
|
|
|
|
|
|
|
|
<el-radio-group v-model="formData.autoFinishOrder">
|
|
|
|
|
|
|
|
<el-radio :label="true">是</el-radio>
|
|
|
|
|
|
|
|
<el-radio :label="false">否</el-radio>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
</el-collapse-item>
|
|
|
|
|
|
|
|
<el-collapse-item name="3">
|
|
|
|
|
|
|
|
<template slot="title">
|
|
|
|
|
|
|
|
<p class="form-title">单据上传设置</p>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<el-row :gutter="20">
|
|
|
|
|
|
|
|
<el-col :span="8" class="el-col">
|
|
|
|
|
|
|
|
<el-form-item label="已完成单据自动上传:" prop="autoUploadOrder" style="margin-bottom: 0">
|
|
|
|
|
|
|
|
<el-radio-group v-model="formData.autoUploadOrder">
|
|
|
|
|
|
|
|
<el-radio :label="true">是</el-radio>
|
|
|
|
|
|
|
|
<el-radio :label="false">否</el-radio>
|
|
|
|
|
|
|
|
</el-radio-group>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
</el-col>
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
</el-collapse-item>
|
|
|
|
</el-collapse-item>
|
|
|
|
</el-collapse>
|
|
|
|
</el-collapse>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-form>
|
|
|
|
</el-form>
|
|
|
|
</el-card>
|
|
|
|
</el-card>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
import { selectSysParamByKey ,systemParamConfigSave} from '@/api/param/systemParamConfig'
|
|
|
|
|
|
|
|
|
|
|
|
import {getSet, updateSet} from "@/api/collect/collectSet";
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: 'timerSetting',
|
|
|
|
name: 'timerSetting',
|
|
|
@ -86,30 +113,25 @@ export default {
|
|
|
|
formData: {
|
|
|
|
formData: {
|
|
|
|
startDownloadTime: null
|
|
|
|
startDownloadTime: null
|
|
|
|
},
|
|
|
|
},
|
|
|
|
systemParam:null,
|
|
|
|
systemParam: null,
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
selectSysParam() {
|
|
|
|
selectSysParam() {
|
|
|
|
let query = {
|
|
|
|
getSet().then((response) => {
|
|
|
|
paramKey: 'startDownloadTime'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
selectSysParamByKey(query).then((response) => {
|
|
|
|
|
|
|
|
if (response.code == 20000) {
|
|
|
|
if (response.code == 20000) {
|
|
|
|
this.formData.startDownloadTime = response.data.paramValue
|
|
|
|
this.formData = response.data
|
|
|
|
this.systemParam = response.data
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
save() {
|
|
|
|
save() {
|
|
|
|
this.systemParam.paramValue = this.formData.startDownloadTime
|
|
|
|
updateSet(this.formData)
|
|
|
|
systemParamConfigSave(this.systemParam, 'save')
|
|
|
|
|
|
|
|
.then((response) => {
|
|
|
|
.then((response) => {
|
|
|
|
if (response.code != 20000) {
|
|
|
|
if (response.code != 20000) {
|
|
|
|
this.$message.error(response.message);
|
|
|
|
this.$message.error(response.message);
|
|
|
|
}else
|
|
|
|
} else
|
|
|
|
this.$message.success("操作成功");
|
|
|
|
this.$message.success("操作成功");
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch(() => {
|
|
|
|
.catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|