Commit 6dff9853 authored by wanglianghe's avatar wanglianghe

仓储配置

parent 3b71b8da
......@@ -21,32 +21,32 @@
<el-col :span="19">
<el-form-item label-width="245px" label="上架超时预警 超过:" prop="sjOverDay">
<el-input v-model="formData.rkOverDay" :style="{width: '30%'}" />&nbsp;&nbsp;天,自动预警
<el-input v-model="formData.sjOverDay" :style="{width: '30%'}" />&nbsp;&nbsp;天,自动预警
</el-form-item>
</el-col>
<el-col :span="19">
<el-form-item label-width="245px" label="在仓超时预警 超过:" prop="zcOverDay">
<el-input v-model="formData.rkOverDay" :style="{width: '30%'}" />&nbsp;&nbsp;天,自动预警
<el-input v-model="formData.zcOverDay" :style="{width: '30%'}" />&nbsp;&nbsp;天,自动预警
</el-form-item>
</el-col>
<el-col :span="19">
<el-form-item label-width="245px" label="打包超时预警 超过:" prop="dbOverDay">
<el-input v-model="formData.rkOverDay" :style="{width: '30%'}" />&nbsp;&nbsp;天,自动预警
<el-input v-model="formData.dbOverDay" :style="{width: '30%'}" />&nbsp;&nbsp;天,自动预警
</el-form-item>
</el-col>
<el-col :span="19">
<el-form-item label-width="245px" label="待出库超时预警 超过:" prop="dckOverDay">
<el-input v-model="formData.rkOverDay" :style="{width: '30%'}" />&nbsp;&nbsp;天,自动预警
<el-input v-model="formData.dckOverDay" :style="{width: '30%'}" />&nbsp;&nbsp;天,自动预警
</el-form-item>
</el-col>
<el-col :span="19">
<el-form-item label-width="245px" label="仓租费类型:" prop="chargeType">
<el-radio-group v-model="formData.chargeType">
<el-radio v-for="item in chargeDictDatas" :key="item.value" :label="item.label">{{ item.label }}</el-radio>
<el-radio v-for="item in chargeDictDatas" :key="item.value" :label="item.value">{{ item.label }}</el-radio>
</el-radio-group>
</el-form-item>
</el-col>
......@@ -82,27 +82,49 @@ export default {
data() {
return {
formData:{
//
shelvesNum:null,
shelvesAreaNum:null,
rkOverDay:null,
sjOverDay:null,
zcOverDay:null,
dbOverDay:null,
dckOverDay:null,
chargeType:null,
fee:null
},
chargeDictDatas: getDictDatas(DICT_TYPE.ECW_CHARGE_TYPE),
};
},
created() {
this.getList();
console.log(this.chargeDictDatas);
},
methods: {
/** 查询列表 */
getList() {
getSettingList({type:'warehouse'}).then(response => {
let list = response.data.list;
console.log(list);
let list = response.data;
for(let index in list) {
let item = list[index];
let keyName = item.keyName;
this.formData[keyName]=item.keyValue;
}
// console.log(this.formData);
})
},
/** 表单重置 */
resetForm() {
this.formData = {};
this.formData = {
shelvesNum:null,
shelvesAreaNum:null,
rkOverDay:null,
sjOverDay:null,
zcOverDay:null,
dbOverDay:null,
dckOverDay:null,
chargeType:null,
fee:null
};
},
......@@ -110,7 +132,7 @@ export default {
submitForm() {
let settingList = [];
let shelvesNum = {keyName: 'shelvesNum', keyValue: this.formData.shelvesNum, keyType:'warehouse'};
let shelvesAreaNum = {keyName: 'shelvesAreaNum', value: this.formData.shelvesAreaNum, keyType:'warehouse'};
let shelvesAreaNum = {keyName: 'shelvesAreaNum', keyValue: this.formData.shelvesAreaNum, keyType:'warehouse'};
let rkOverDay = {keyName: 'rkOverDay', keyValue: this.formData.rkOverDay, keyType:'warehouse'};
let sjOverDay = {keyName: 'sjOverDay', keyValue: this.formData.sjOverDay, keyType:'warehouse'};
let zcOverDay = {keyName: 'zcOverDay', keyValue: this.formData.zcOverDay, keyType:'warehouse'};
......
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 to comment