|
@@ -5,10 +5,7 @@
|
|
|
<el-row :gutter="15">
|
|
<el-row :gutter="15">
|
|
|
<el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
|
|
<el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
|
|
|
<el-form-item prop="type" label="证件类型">
|
|
<el-form-item prop="type" label="证件类型">
|
|
|
- <DictSelection
|
|
|
|
|
- v-model="form.type"
|
|
|
|
|
- dictName="证件类型"
|
|
|
|
|
- ></DictSelection>
|
|
|
|
|
|
|
+ <DictSelection v-model="form.type" dictName="证件类型"></DictSelection>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
|
|
<el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
|
|
@@ -19,89 +16,83 @@
|
|
|
<el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
|
|
<el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
|
|
|
<el-form-item label="等级:" prop="level">
|
|
<el-form-item label="等级:" prop="level">
|
|
|
<el-select style="width: 100%" v-model="form.level" filterable>
|
|
<el-select style="width: 100%" v-model="form.level" filterable>
|
|
|
- <el-option
|
|
|
|
|
- :label="item.label"
|
|
|
|
|
- :value="item.value"
|
|
|
|
|
- v-for="(item, index) in levelOptions"
|
|
|
|
|
- :key="index"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-option :label="item.label" :value="item.value" v-for="(item, index) in levelOptions" :key="index">
|
|
|
</el-option>
|
|
</el-option>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
|
|
<el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
|
|
|
<el-form-item prop="status" label="状态">
|
|
<el-form-item prop="status" label="状态">
|
|
|
- <DictSelection
|
|
|
|
|
- v-model="form.status"
|
|
|
|
|
- dictName="规则状态"
|
|
|
|
|
- ></DictSelection>
|
|
|
|
|
|
|
+ <DictSelection v-model="form.status" dictName="规则状态"></DictSelection>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
|
|
<el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
|
|
|
<el-form-item prop="holder" label="持证人">
|
|
<el-form-item prop="holder" label="持证人">
|
|
|
- <el-input
|
|
|
|
|
- v-model="form.holder"
|
|
|
|
|
- clearable
|
|
|
|
|
- readonly
|
|
|
|
|
- placeholder="请选择"
|
|
|
|
|
- @click.native="openStaffSelection"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
|
|
+ <el-input v-model="form.holder" clearable readonly placeholder="请选择"
|
|
|
|
|
+ @click.native="openStaffSelection"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
|
|
<el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
|
|
|
<el-form-item label="颁发时间">
|
|
<el-form-item label="颁发时间">
|
|
|
- <el-date-picker
|
|
|
|
|
- style="width: 100%"
|
|
|
|
|
- v-model="form.enactorTime"
|
|
|
|
|
- type="date"
|
|
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
- placeholder="选择日期"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-date-picker style="width: 100%" v-model="form.enactorTime" type="date"
|
|
|
|
|
+ value-format="yyyy-MM-dd HH:mm:ss" placeholder="选择日期">
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
|
|
<el-col v-bind="styleResponsive ? { sm: 12 } : { span: 12 }">
|
|
|
<el-form-item prop="date" label="有效期至">
|
|
<el-form-item prop="date" label="有效期至">
|
|
|
- <el-date-picker
|
|
|
|
|
- style="width: 100%"
|
|
|
|
|
- v-model="form.date"
|
|
|
|
|
- type="daterange"
|
|
|
|
|
- range-separator="至"
|
|
|
|
|
- start-placeholder="开始日期"
|
|
|
|
|
- end-placeholder="结束日期"
|
|
|
|
|
- value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
- :default-time="['00:00:00', '23:59:59']"
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ <el-date-picker style="width: 100%" v-model="form.date" type="daterange" range-separator="至"
|
|
|
|
|
+ start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
|
|
+ :default-time="['00:00:00', '23:59:59']">
|
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col v-bind="styleResponsive ? { sm: 24 } : { span: 24 }">
|
|
<el-col v-bind="styleResponsive ? { sm: 24 } : { span: 24 }">
|
|
|
<el-form-item prop="fileObj" label="证照图片">
|
|
<el-form-item prop="fileObj" label="证照图片">
|
|
|
- <fileUpload
|
|
|
|
|
- v-model="form.fileObj"
|
|
|
|
|
- module="main"
|
|
|
|
|
- :showLib="true"
|
|
|
|
|
- :limit="5"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ <fileUpload v-model="form.fileObj" module="main" :showLib="true" :limit="5" />
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col v-bind="styleResponsive ? { sm: 24 } : { span: 24 }">
|
|
<el-col v-bind="styleResponsive ? { sm: 24 } : { span: 24 }">
|
|
|
<el-form-item prop="remark" label="备注">
|
|
<el-form-item prop="remark" label="备注">
|
|
|
- <el-input
|
|
|
|
|
- placeholder="请输入"
|
|
|
|
|
- v-model="form.remark"
|
|
|
|
|
- type="textarea"
|
|
|
|
|
- :rows="3"
|
|
|
|
|
- :resize="`none`"
|
|
|
|
|
- ></el-input>
|
|
|
|
|
|
|
+ <el-input placeholder="请输入" v-model="form.remark" type="textarea" :rows="3" :resize="`none`"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
- <staffSelection
|
|
|
|
|
- ref="staffSelection"
|
|
|
|
|
- @confirm="confirmStaffSelection"
|
|
|
|
|
- ></staffSelection>
|
|
|
|
|
|
|
+ <staffSelection ref="staffSelection" @confirm="confirmStaffSelection"></staffSelection>
|
|
|
|
|
+ <!-- <headerTitle title="关联产品" v-show="!isUpdate"></headerTitle> -->
|
|
|
|
|
+ <!-- <ele-pro-table ref="table" :needPage="false" :columns="columns" :datasource="form.datasource" class="time-form"
|
|
|
|
|
+ :toolkit="[]"> -->
|
|
|
|
|
+ <!-- 表头工具栏 -->
|
|
|
|
|
+ <!-- <template v-slot:toolbar>
|
|
|
|
|
+ <el-button
|
|
|
|
|
+ size="small"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ icon="el-icon-plus"
|
|
|
|
|
+ class="ele-btn-icon"
|
|
|
|
|
+ @click="handParent('', -1)"
|
|
|
|
|
+ v-if="!isContractId"
|
|
|
|
|
+ >
|
|
|
|
|
+ 新增
|
|
|
|
|
+ </el-button>
|
|
|
|
|
+ </template> -->
|
|
|
|
|
+ <!-- 操作列 -->
|
|
|
|
|
+ <!-- <template v-slot:action="scope">
|
|
|
|
|
+ <el-popconfirm v-if="!isContractId" class="ele-action" title="确定要删除吗?" @confirm="remove(scope.$index)">
|
|
|
|
|
+ <template v-slot:reference>
|
|
|
|
|
+ <el-link type="danger" :underline="false" icon="el-icon-delete">
|
|
|
|
|
+ 删除
|
|
|
|
|
+ </el-link>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-popconfirm>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </ele-pro-table>
|
|
|
|
|
+ <product-list
|
|
|
|
|
+ ref="productListRef"
|
|
|
|
|
+ classType="1"
|
|
|
|
|
+ :is-get-inventory-total="true"
|
|
|
|
|
+ @changeParent="changeParent"
|
|
|
|
|
+ ></product-list> -->
|
|
|
<div slot="footer" class="dialog-footer">
|
|
<div slot="footer" class="dialog-footer">
|
|
|
<el-button size="small" @click="submit" type="primary">提 交</el-button>
|
|
<el-button size="small" @click="submit" type="primary">提 交</el-button>
|
|
|
<el-button size="small" @click="close">关 闭</el-button>
|
|
<el-button size="small" @click="close">关 闭</el-button>
|
|
@@ -115,11 +106,13 @@
|
|
|
import fileUpload from '@/components/upload/fileUpload';
|
|
import fileUpload from '@/components/upload/fileUpload';
|
|
|
import imgUpload from '@/components/upload/imgUpload';
|
|
import imgUpload from '@/components/upload/imgUpload';
|
|
|
import { getCode } from '@/api/ruleManagement/matter';
|
|
import { getCode } from '@/api/ruleManagement/matter';
|
|
|
|
|
+ import productList from './product-list.vue';
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
fileUpload,
|
|
fileUpload,
|
|
|
imgUpload,
|
|
imgUpload,
|
|
|
- staffSelection
|
|
|
|
|
|
|
+ staffSelection,
|
|
|
|
|
+ productList
|
|
|
},
|
|
},
|
|
|
//注册组件
|
|
//注册组件
|
|
|
data() {
|
|
data() {
|
|
@@ -168,7 +161,49 @@
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
form: { ...defaultForm },
|
|
form: { ...defaultForm },
|
|
|
- title: '新增'
|
|
|
|
|
|
|
+ title: '新增',
|
|
|
|
|
+ columns: [{
|
|
|
|
|
+ width: 45,
|
|
|
|
|
+ type: 'index',
|
|
|
|
|
+ columnKey: 'index',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ fixed: 'left'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'productName',
|
|
|
|
|
+ label: '名称',
|
|
|
|
|
+ slot: 'productName',
|
|
|
|
|
+ headerSlot: 'headerProductName',
|
|
|
|
|
+ align: 'center',
|
|
|
|
|
+ fixed: 'left'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'productCode',
|
|
|
|
|
+ label: '编码',
|
|
|
|
|
+ slot: 'productCode',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'productCategoryName',
|
|
|
|
|
+ label: '类型',
|
|
|
|
|
+ slot: 'productCategoryName',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ prop: 'specification',
|
|
|
|
|
+ label: '规格',
|
|
|
|
|
+ slot: 'specification',
|
|
|
|
|
+ align: 'center'
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ columnKey: 'action',
|
|
|
|
|
+ label: '操作',
|
|
|
|
|
+ width: 80,
|
|
|
|
|
+ align: 'left',
|
|
|
|
|
+ resizable: false,
|
|
|
|
|
+ slot: 'action',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ }]
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
@@ -250,7 +285,11 @@
|
|
|
this.loading = false;
|
|
this.loading = false;
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ handParent() {
|
|
|
|
|
+ this.$refs.productListRef.open(-1);
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
</script>
|
|
</script>
|