提交修改代码
This commit is contained in:
parent
ec5c98d53d
commit
f24fc22ec7
|
|
@ -48,22 +48,27 @@
|
|||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="工机具类型" prop="type">
|
||||
<!-- <selectTree-->
|
||||
<!-- ref="mychild"-->
|
||||
<!-- style="width: 240px"-->
|
||||
<!-- :treeList="deptList"-->
|
||||
<!-- :treeProps="{-->
|
||||
<!-- children: 'children',-->
|
||||
<!-- label: 'label',-->
|
||||
<!-- }"-->
|
||||
<!-- nodeKey="id"-->
|
||||
<!-- :defaultSelect="true"-->
|
||||
<!-- :defaultData="defaultData"-->
|
||||
<!-- :clearable="false"-->
|
||||
<!-- :placeholder="'请选择'"-->
|
||||
<!-- @handleNodeClick="selectDrop"-->
|
||||
<!-- ></selectTree>-->
|
||||
<Tree ref="mychildSon" :width="240" :dataList="deptList" @changeId="selectDrop"></Tree>
|
||||
<!-- <selectTree-->
|
||||
<!-- ref="mychild"-->
|
||||
<!-- style="width: 240px"-->
|
||||
<!-- :treeList="deptList"-->
|
||||
<!-- :treeProps="{-->
|
||||
<!-- children: 'children',-->
|
||||
<!-- label: 'label',-->
|
||||
<!-- }"-->
|
||||
<!-- nodeKey="id"-->
|
||||
<!-- :defaultSelect="true"-->
|
||||
<!-- :defaultData="defaultData"-->
|
||||
<!-- :clearable="false"-->
|
||||
<!-- :placeholder="'请选择'"-->
|
||||
<!-- @handleNodeClick="selectDrop"-->
|
||||
<!-- ></selectTree>-->
|
||||
<Tree
|
||||
ref="mychildSon"
|
||||
:width="240"
|
||||
:dataList="deptList"
|
||||
@changeId="selectDrop"
|
||||
></Tree>
|
||||
</el-form-item>
|
||||
<el-form-item label="报废单号" prop="backCode">
|
||||
<el-input
|
||||
|
|
@ -497,7 +502,7 @@ import selectTree from '../repair/selectTree.vue'
|
|||
import Tree from '@/views/repairTest/repair/tree.vue'
|
||||
export default {
|
||||
name: "Dict",
|
||||
components: { selectTree,Tree },
|
||||
components: { selectTree, Tree },
|
||||
dicts: ['sys_normal_disable'],
|
||||
data() {
|
||||
return {
|
||||
|
|
@ -573,10 +578,6 @@ export default {
|
|||
})
|
||||
this.getTree()
|
||||
},
|
||||
updated() {
|
||||
this.$refs.mychild.clearSelect();
|
||||
this.defaultData = null
|
||||
},
|
||||
methods: {
|
||||
/** 查询字典类型列表 */
|
||||
getList() {
|
||||
|
|
@ -666,7 +667,7 @@ export default {
|
|||
this.resetForm("queryForm");
|
||||
// this.$refs.mychild.clearSelect();
|
||||
this.queryParams.type = ''
|
||||
this.$refs.mychildSon.inputValue='';
|
||||
this.$refs.mychildSon.inputValue = '';
|
||||
this.handleQuery();
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
|
|
|
|||
|
|
@ -6,14 +6,14 @@
|
|||
:title="dialogTitle"
|
||||
:visible.sync="dialogShowFlag"
|
||||
append-to-body
|
||||
width="500px"
|
||||
width="600px"
|
||||
>
|
||||
<div class="form_box_one">
|
||||
<el-form
|
||||
ref="dynamicValidateForm"
|
||||
:model="dynamicValidateForm"
|
||||
class="demo-dynamic"
|
||||
label-width="100px"
|
||||
label-width="90px"
|
||||
>
|
||||
<div
|
||||
v-for="(domain, index) in dynamicValidateForm.premiumList"
|
||||
|
|
@ -37,14 +37,14 @@
|
|||
v-model="domain.partName"
|
||||
placeholder="请输入"
|
||||
size="small"
|
||||
style="width: 250px"
|
||||
style="width: 350px"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:prop="'premiumList.' + index + '.partType'"
|
||||
label="是否收费:"
|
||||
>
|
||||
<el-radio-group style="width: 250px" v-model="domain.partType">
|
||||
<el-radio-group style="width: 350px" v-model="domain.partType">
|
||||
<el-radio :label="1">是</el-radio>
|
||||
<el-radio :label="0">否</el-radio>
|
||||
</el-radio-group>
|
||||
|
|
@ -58,7 +58,7 @@
|
|||
v-model="domain.supplierId"
|
||||
placeholder="请选择"
|
||||
size="small"
|
||||
style="width: 250px"
|
||||
style="width: 350px"
|
||||
>
|
||||
<el-option
|
||||
v-for="dict in supplierSelectList"
|
||||
|
|
@ -82,7 +82,7 @@
|
|||
v-model="domain.partPrice"
|
||||
placeholder="请输入"
|
||||
size="small"
|
||||
style="width: 230px"
|
||||
style="width: 330px"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
|
|
@ -98,7 +98,7 @@
|
|||
v-model="domain.partNum"
|
||||
placeholder="请输入"
|
||||
size="small"
|
||||
style="width: 250px"
|
||||
style="width: 350px"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
|
|
@ -111,7 +111,7 @@
|
|||
placeholder="请输入"
|
||||
show-word-limit
|
||||
size="small"
|
||||
style="width: 250px"
|
||||
style="width: 350px"
|
||||
type="textarea"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
|
|
@ -132,7 +132,7 @@
|
|||
ref="dynamicValidateFormTwo"
|
||||
:model="dynamicValidateFormTwo"
|
||||
class="demo-dynamic"
|
||||
label-width="100px"
|
||||
label-width="90px"
|
||||
>
|
||||
<div
|
||||
v-for="(domain, index) in dynamicValidateFormTwo.premiumListTwo"
|
||||
|
|
@ -156,14 +156,14 @@
|
|||
v-model="domain.partName"
|
||||
placeholder="请输入"
|
||||
size="small"
|
||||
style="width: 250px"
|
||||
style="width: 350px"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
:prop="'premiumList.' + index + '.partType'"
|
||||
label="是否收费:"
|
||||
>
|
||||
<el-radio-group style="width: 250px" v-model="domain.partType">
|
||||
<el-radio-group style="width: 350px" v-model="domain.partType">
|
||||
<el-radio :label="1">是</el-radio>
|
||||
<el-radio :label="0">否</el-radio>
|
||||
</el-radio-group>
|
||||
|
|
@ -177,7 +177,7 @@
|
|||
v-model="domain.supplierId"
|
||||
placeholder="请选择"
|
||||
size="small"
|
||||
style="width: 250px"
|
||||
style="width: 350px"
|
||||
>
|
||||
<el-option
|
||||
v-for="dict in supplierSelectList"
|
||||
|
|
@ -201,7 +201,7 @@
|
|||
v-model="domain.partPrice"
|
||||
placeholder="请输入"
|
||||
size="small"
|
||||
style="width: 230px"
|
||||
style="width: 330px"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
|
|
@ -217,7 +217,7 @@
|
|||
v-model="domain.partNum"
|
||||
placeholder="请输入"
|
||||
size="small"
|
||||
style="width: 250px"
|
||||
style="width: 350px"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
|
|
@ -233,7 +233,7 @@
|
|||
v-model="domain.repairNum"
|
||||
placeholder="请输入"
|
||||
size="small"
|
||||
style="width: 250px"
|
||||
style="width: 350px"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
|
|
@ -246,7 +246,7 @@
|
|||
placeholder="请输入"
|
||||
show-word-limit
|
||||
size="small"
|
||||
style="width: 250px"
|
||||
style="width: 350px"
|
||||
type="textarea"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
|
|
|
|||
|
|
@ -49,22 +49,27 @@
|
|||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="工机具类型" prop="type">
|
||||
<!-- <selectTree-->
|
||||
<!-- ref="mychild"-->
|
||||
<!-- style="width: 240px"-->
|
||||
<!-- :treeList="deptList"-->
|
||||
<!-- :treeProps="{-->
|
||||
<!-- children: 'children',-->
|
||||
<!-- label: 'label',-->
|
||||
<!-- }"-->
|
||||
<!-- nodeKey="id"-->
|
||||
<!-- :defaultSelect="true"-->
|
||||
<!-- :defaultData="defaultData"-->
|
||||
<!-- :clearable="true"-->
|
||||
<!-- :placeholder="'请选择'"-->
|
||||
<!-- @handleNodeClick="selectDrop"-->
|
||||
<!-- ></selectTree>-->
|
||||
<Tree ref="mychildSon" :width="240" :dataList="deptList" @changeId="selectDrop"></Tree>
|
||||
<!-- <selectTree-->
|
||||
<!-- ref="mychild"-->
|
||||
<!-- style="width: 240px"-->
|
||||
<!-- :treeList="deptList"-->
|
||||
<!-- :treeProps="{-->
|
||||
<!-- children: 'children',-->
|
||||
<!-- label: 'label',-->
|
||||
<!-- }"-->
|
||||
<!-- nodeKey="id"-->
|
||||
<!-- :defaultSelect="true"-->
|
||||
<!-- :defaultData="defaultData"-->
|
||||
<!-- :clearable="true"-->
|
||||
<!-- :placeholder="'请选择'"-->
|
||||
<!-- @handleNodeClick="selectDrop"-->
|
||||
<!-- ></selectTree>-->
|
||||
<Tree
|
||||
ref="mychildSon"
|
||||
:width="240"
|
||||
:dataList="deptList"
|
||||
@changeId="selectDrop"
|
||||
></Tree>
|
||||
</el-form-item>
|
||||
<el-form-item label="维修单号" prop="backCode">
|
||||
<el-input
|
||||
|
|
@ -568,10 +573,6 @@ export default {
|
|||
})
|
||||
this.getTree()
|
||||
},
|
||||
updated() {
|
||||
this.$refs.mychild.clearSelect();
|
||||
this.defaultData = null
|
||||
},
|
||||
|
||||
methods: {
|
||||
/** 查询字典类型列表 */
|
||||
|
|
@ -660,7 +661,7 @@ export default {
|
|||
resetQuery() {
|
||||
this.dateRange = [];
|
||||
this.resetForm("queryForm");
|
||||
this.$refs.mychildSon.inputValue='';
|
||||
this.$refs.mychildSon.inputValue = '';
|
||||
this.queryParams.type = ''
|
||||
this.handleQuery();
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue