|
@@ -6,6 +6,9 @@
|
|
<el-radio-button label="third">自动预留单生成</el-radio-button>
|
|
<el-radio-button label="third">自动预留单生成</el-radio-button>
|
|
<el-radio-button label="fourth">库存显示规则设置</el-radio-button>
|
|
<el-radio-button label="fourth">库存显示规则设置</el-radio-button>
|
|
<el-radio-button label="fifth">二次打印密码设置</el-radio-button>
|
|
<el-radio-button label="fifth">二次打印密码设置</el-radio-button>
|
|
|
|
+ <el-radio-button label="sixth">机型类别</el-radio-button>
|
|
|
|
+ <el-radio-button label="seventh">登录类型</el-radio-button>
|
|
|
|
+ <el-radio-button label="eigth">权限分类</el-radio-button>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
|
|
|
<div v-show="formType === 'first'">
|
|
<div v-show="formType === 'first'">
|
|
@@ -20,7 +23,9 @@
|
|
<div v-show="formType === 'second'">
|
|
<div v-show="formType === 'second'">
|
|
<div style="margin: 40px 0 30px;">
|
|
<div style="margin: 40px 0 30px;">
|
|
<div>工程登录二次引用密码设置</div>
|
|
<div>工程登录二次引用密码设置</div>
|
|
- <div><el-input v-model="secondForm.input1.dictValue" placeholder="请输入密码" size="small" style="width: 150px; margin-top: 20px;"></el-input></div>
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <el-input v-model="secondForm.input1.dictValue" placeholder="请输入密码" size="small" style="width: 150px; margin-top: 20px;"></el-input>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<el-button type="primary" size="small" @click="submitForm('second')">确 定</el-button>
|
|
<el-button type="primary" size="small" @click="submitForm('second')">确 定</el-button>
|
|
</div>
|
|
</div>
|
|
@@ -71,20 +76,49 @@
|
|
<div v-show="formType === 'fifth'">
|
|
<div v-show="formType === 'fifth'">
|
|
<div style="margin: 40px 0 30px;">
|
|
<div style="margin: 40px 0 30px;">
|
|
<div>二次打印密码设置</div>
|
|
<div>二次打印密码设置</div>
|
|
- <div><el-input v-model="fifthForm.input1.dictValue" placeholder="请输入密码" size="small" style="width: 150px; margin-top: 20px;"></el-input></div>
|
|
|
|
|
|
+ <div>
|
|
|
|
+ <el-input v-model="fifthForm.input1.dictValue" placeholder="请输入密码" size="small" style="width: 150px; margin-top: 20px;"></el-input>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<el-button type="primary" size="small" @click="submitForm('fifth')">确 定</el-button>
|
|
<el-button type="primary" size="small" @click="submitForm('fifth')">确 定</el-button>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <div v-show="formType === 'sixth'">
|
|
|
|
+ <div style="margin: 40px 0 30px;">
|
|
|
|
+ <!-- 列表 -->
|
|
|
|
+ <div class="mymain-container">
|
|
|
|
+ <div class="table">
|
|
|
|
+ <el-table v-loading="listLoading" :data="dataList" element-loading-text="Loading" border fit highlight-current-row stripe>
|
|
|
|
+
|
|
|
|
+ <el-table-column align="left" label="名称" prop="takerName" min-width="160" show-overflow-tooltip></el-table-column>
|
|
|
|
+ <el-table-column align="left" label="备注" prop="identity" min-width="170" show-overflow-tooltip></el-table-column>
|
|
|
|
+
|
|
|
|
+ <el-table-column align="center" label="操作" prop="caozuo" min-width="160" show-overflow-tooltip fixed="right">
|
|
|
|
+ <!-- <template slot-scope="scope">
|
|
|
|
+ <el-button type="text" class="textColor">编辑</el-button>
|
|
|
|
+ </template> -->
|
|
|
|
+ </el-table-column>
|
|
|
|
+ </el-table>
|
|
|
|
+ </div>
|
|
|
|
+ <!-- 分页 -->
|
|
|
|
+ <div class="fr">
|
|
|
|
+ <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[10, 20, 30, 50]" :page-size="10" layout="total, sizes, prev, pager, next, jumper" :total="listTotal">
|
|
|
|
+ </el-pagination>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <el-button type="primary" size="small">确 定</el-button>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { getDictList, editDictList } from '@/api/common'
|
|
|
|
|
|
+import { getDictList, editDictList } from "@/api/common";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
- formType: 'first',
|
|
|
|
|
|
+ formType: "first",
|
|
firstForm: {
|
|
firstForm: {
|
|
input1: {},
|
|
input1: {},
|
|
},
|
|
},
|
|
@@ -104,11 +138,11 @@ export default {
|
|
},
|
|
},
|
|
fifthForm: {
|
|
fifthForm: {
|
|
input1: {},
|
|
input1: {},
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ },
|
|
|
|
+ };
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
- this.getDetail('first');
|
|
|
|
|
|
+ this.getDetail("first");
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
// 查询按钮权限
|
|
// 查询按钮权限
|
|
@@ -126,68 +160,70 @@ export default {
|
|
|
|
|
|
getDetail(type) {
|
|
getDetail(type) {
|
|
const MAP = {
|
|
const MAP = {
|
|
- first: 'ORDER_TIME_LIMIT',
|
|
|
|
- second: 'ENGIN_TWO_PWD',
|
|
|
|
- third: 'RESERVED_DAY',
|
|
|
|
- fourth: 'STOCK_ORDER',
|
|
|
|
- fifth: 'PRINT_PASSWORD',
|
|
|
|
|
|
+ first: "ORDER_TIME_LIMIT",
|
|
|
|
+ second: "ENGIN_TWO_PWD",
|
|
|
|
+ third: "RESERVED_DAY",
|
|
|
|
+ fourth: "STOCK_ORDER",
|
|
|
|
+ fifth: "PRINT_PASSWORD",
|
|
|
|
+ sixth: "MACHINE_TYPE",
|
|
|
|
+ seventh: "POWER_CATEGORY",
|
|
|
|
+ eigth: "SIGN_TYPE",
|
|
};
|
|
};
|
|
- getDictList({sysDictEnum: MAP[type]}).then(res => {
|
|
|
|
- let data = res.data.map(item => {
|
|
|
|
|
|
+ getDictList({ sysDictEnum: MAP[type] }).then((res) => {
|
|
|
|
+ let data = res.data.map((item) => {
|
|
return {
|
|
return {
|
|
sysDictId: item.sysDictId,
|
|
sysDictId: item.sysDictId,
|
|
dictValue: item.dictValue,
|
|
dictValue: item.dictValue,
|
|
- }
|
|
|
|
- })
|
|
|
|
- if(type != 'fourth') {
|
|
|
|
- this[type+'Form'].input1 = data[0];
|
|
|
|
- }else {
|
|
|
|
- this[type+'Form'].input1 = data[0];
|
|
|
|
- this[type+'Form'].input2 = data[1];
|
|
|
|
- this[type+'Form'].input3 = data[2];
|
|
|
|
- this[type+'Form'].input4 = data[3];
|
|
|
|
- this[type+'Form'].input5 = data[4];
|
|
|
|
- this[type+'Form'].input6 = data[5];
|
|
|
|
|
|
+ };
|
|
|
|
+ });
|
|
|
|
+ if (type != "fourth") {
|
|
|
|
+ this[type + "Form"].input1 = data[0];
|
|
|
|
+ } else {
|
|
|
|
+ this[type + "Form"].input1 = data[0];
|
|
|
|
+ this[type + "Form"].input2 = data[1];
|
|
|
|
+ this[type + "Form"].input3 = data[2];
|
|
|
|
+ this[type + "Form"].input4 = data[3];
|
|
|
|
+ this[type + "Form"].input5 = data[4];
|
|
|
|
+ this[type + "Form"].input6 = data[5];
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ });
|
|
},
|
|
},
|
|
|
|
|
|
submitForm(type) {
|
|
submitForm(type) {
|
|
let list = [];
|
|
let list = [];
|
|
- for(var key in this[type+'Form']) {
|
|
|
|
- console.log(this[type+'Form'], this[type+'Form'][key].dictValue);
|
|
|
|
- if(!this[type+'Form'][key].dictValue) {
|
|
|
|
- return this.$errorMsg('请完善信息');
|
|
|
|
|
|
+ for (var key in this[type + "Form"]) {
|
|
|
|
+ console.log(this[type + "Form"], this[type + "Form"][key].dictValue);
|
|
|
|
+ if (!this[type + "Form"][key].dictValue) {
|
|
|
|
+ return this.$errorMsg("请完善信息");
|
|
}
|
|
}
|
|
- list.push(this[type+'Form'][key]);
|
|
|
|
|
|
+ list.push(this[type + "Form"][key]);
|
|
}
|
|
}
|
|
- editDictList(list).then(res => {
|
|
|
|
- this.$successMsg('保存成功');
|
|
|
|
|
|
+ editDictList(list).then((res) => {
|
|
|
|
+ this.$successMsg("保存成功");
|
|
this.getDetail(type);
|
|
this.getDetail(type);
|
|
- })
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-}
|
|
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
- .app-container {
|
|
|
|
- color: #333333;
|
|
|
|
- font-size: 14px;
|
|
|
|
- }
|
|
|
|
|
|
+.app-container {
|
|
|
|
+ color: #333333;
|
|
|
|
+ font-size: 14px;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|
|
<style>
|
|
<style>
|
|
- .demo-table-expand {
|
|
|
|
- font-size: 0;
|
|
|
|
- }
|
|
|
|
- .demo-table-expand label {
|
|
|
|
- width: 80px;
|
|
|
|
- color: #99a9bf;
|
|
|
|
- }
|
|
|
|
- .demo-table-expand .el-form-item {
|
|
|
|
- margin-right: 0;
|
|
|
|
- margin-bottom: 0;
|
|
|
|
- width: 100%;
|
|
|
|
- }
|
|
|
|
|
|
+.demo-table-expand {
|
|
|
|
+ font-size: 0;
|
|
|
|
+}
|
|
|
|
+.demo-table-expand label {
|
|
|
|
+ width: 80px;
|
|
|
|
+ color: #99a9bf;
|
|
|
|
+}
|
|
|
|
+.demo-table-expand .el-form-item {
|
|
|
|
+ margin-right: 0;
|
|
|
|
+ margin-bottom: 0;
|
|
|
|
+ width: 100%;
|
|
|
|
+}
|
|
</style>
|
|
</style>
|