|
|
@@ -33,7 +33,8 @@
|
|
|
:choose-flag="false"
|
|
|
:height="this.tableHeight" primaryKey="dataId"
|
|
|
@pageChange="pageSizeChange">
|
|
|
- <DkTableColumn field="dictCode" type="link" @on-link="handleLink(Object.assign($event,{button:'edit'}))"></DkTableColumn>
|
|
|
+ <DkTableColumn field="dictCode" type="link"
|
|
|
+ @on-link="handleLink(Object.assign($event,{button:'edit'}))"></DkTableColumn>
|
|
|
<DkTableColumn field="dataValue"></DkTableColumn>
|
|
|
<DkTableColumn field="displayNo"></DkTableColumn>
|
|
|
<DkTableColumn field="flgValid" type="switch" @on-switch-change="onSwitchChange"
|
|
|
@@ -136,20 +137,20 @@ export default {
|
|
|
* @author : 周兴
|
|
|
* @date : 2023/2/8 12:55
|
|
|
*/
|
|
|
- createdInit(){
|
|
|
+ createdInit() {
|
|
|
this.primaryKey = 'dataId' // 设置主键
|
|
|
this.routeObjName = 'dictionaryData' // 设置路由名称
|
|
|
- if(this.formType === this.$config.dictionaryType.kilnType){ // 窑炉类型
|
|
|
+ if (this.formType === this.$config.dictionaryType.kilnType) { // 窑炉类型
|
|
|
this.dictCodeType = this.$config.dicCode.kilnDicCode
|
|
|
- }else if(this.formType === this.$config.dictionaryType.moldingType){ // 成型线类型
|
|
|
+ } else if (this.formType === this.$config.dictionaryType.moldingType) { // 成型线类型
|
|
|
this.dictCodeType = this.$config.dicCode.moldingDicCode
|
|
|
- }else if(this.formType === this.$config.dictionaryType.carrierMaterial){ // 模具原料
|
|
|
+ } else if (this.formType === this.$config.dictionaryType.carrierMaterial) { // 模具原料
|
|
|
this.dictCodeType = this.$config.dicCode.carrierMaterialDicCode
|
|
|
- }else if(this.formType === this.$config.dictionaryType.unformedReason){ // 未成型原因
|
|
|
+ } else if (this.formType === this.$config.dictionaryType.unformedReason) { // 未成型原因
|
|
|
this.dictCodeType = this.$config.dicCode.unformedReasonDicCode
|
|
|
- }else if(this.formType === this.$config.dictionaryType.processType){ // 工艺类别
|
|
|
+ } else if (this.formType === this.$config.dictionaryType.processType) { // 工艺类别
|
|
|
this.dictCodeType = this.$config.dicCode.processTypeDicCode
|
|
|
- }else if(this.formType === this.$config.dictionaryType.nodeType){ // 工序类别
|
|
|
+ } else if (this.formType === this.$config.dictionaryType.nodeType) { // 工序类别
|
|
|
this.dictCodeType = this.$config.dicCode.nodeTypeDicCode
|
|
|
}
|
|
|
// 导出额外的条件
|
|
|
@@ -172,7 +173,7 @@ export default {
|
|
|
remarks: ''
|
|
|
}
|
|
|
// 加载最大序号
|
|
|
- this.getMaxDisplayNo(this.$config.displayNoTable.dictionaryData);
|
|
|
+ this.getMaxDisplayNo(this.$config.displayNoTable.dictionaryData, this.dictCodeType);
|
|
|
},
|
|
|
/**
|
|
|
* @desc : 给参数赋值
|
|
|
@@ -213,14 +214,14 @@ export default {
|
|
|
initData(type) {
|
|
|
if (type === this.$config.formMode.add) {
|
|
|
// 加载最大序号
|
|
|
- this.getMaxDisplayNo(this.$config.displayNoTable.dictionaryData);
|
|
|
+ this.getMaxDisplayNo(this.$config.displayNoTable.dictionaryData, {dictCode: this.dictCodeType});
|
|
|
}
|
|
|
},
|
|
|
/**
|
|
|
- * @desc : 编辑按钮事件
|
|
|
- * @author : 常皓宁
|
|
|
- * @date : 2023/2/7 13:51
|
|
|
- */
|
|
|
+ * @desc : 编辑按钮事件
|
|
|
+ * @author : 常皓宁
|
|
|
+ * @date : 2023/2/7 13:51
|
|
|
+ */
|
|
|
edit(rows) {
|
|
|
this.modalParams = {
|
|
|
button: this.$config.formMode.edit,
|