Merge branch 'dev-nx' of http://192.168.0.56:3000/bonus/devicesmgt into dev-nx

This commit is contained in:
BianLzhaoMin 2024-06-18 10:37:19 +08:00
commit 71c75d2f2f
11 changed files with 36 additions and 13 deletions

View File

@ -483,7 +483,7 @@
tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName,su.nick_name as nickName, tt.*, su.phonenumber AS phoneNumber, sd.dept_name as deptName,su.nick_name as nickName,
bpl.lot_id as proId,bpl.lot_name as proName, bpl.lot_id as proId,bpl.lot_name as proName,
bui.unit_id as unitId,bui.unit_name as unitName, bui.unit_id as unitId,bui.unit_name as unitName,
lai.lease_person as leasePerson, lai.phone as leasePhone, tt.create_by as applyFor,d.`name` as taskName,lai.lease_type as leaseType,lai.estimate_lease_time as estimateLeaseTime, lai.lease_person as leasePerson, lai.phone as leasePhone, su.user_name as applyFor,d.`name` as taskName,lai.lease_type as leaseType,lai.estimate_lease_time as estimateLeaseTime,
case when d.id = '31' then lai.company_audit_remark case when d.id = '31' then lai.company_audit_remark
when d.id = '32' then lai.dept_audit_remark when d.id = '32' then lai.dept_audit_remark
when d.id = '33' then lai.direct_audit_remark when d.id = '33' then lai.direct_audit_remark
@ -496,7 +496,7 @@
tt.create_time as createTimes, tt.update_time as updateTimes tt.create_time as createTimes, tt.update_time as updateTimes
FROM FROM
tm_task tt tm_task tt
LEFT JOIN sys_user su ON tt.create_by = su.user_name LEFT JOIN sys_user su ON tt.create_by = su.user_id
LEFT JOIN sys_dept sd ON su.dept_id = sd.dept_id LEFT JOIN sys_dept sd ON su.dept_id = sd.dept_id
LEFT JOIN tm_task_agreement tta ON tt.task_id = tta.task_id LEFT JOIN tm_task_agreement tta ON tt.task_id = tta.task_id
LEFT JOIN bm_agreement_info bai ON bai.agreement_id = tta.agreement_id LEFT JOIN bm_agreement_info bai ON bai.agreement_id = tta.agreement_id

View File

@ -44,6 +44,7 @@
:show-all-levels="false" :show-all-levels="false"
@change="casCadeChange" @change="casCadeChange"
clearable clearable
filterable
style="width: 240px" style="width: 240px"
/> />
<el-date-picker <el-date-picker

View File

@ -61,8 +61,9 @@
value: 'typeId', value: 'typeId',
checkStrictly: true, checkStrictly: true,
}" }"
filterable
@change="handleNodeClick" @change="handleNodeClick"
aria-placeholder="请选择具类型" aria-placeholder="请选择具类型"
></el-cascader> ></el-cascader>
</el-form-item> </el-form-item>
<el-form-item label="退料申请时间" prop="time"> <el-form-item label="退料申请时间" prop="time">

View File

@ -19,6 +19,7 @@
highlight-current highlight-current
@node-click="handleNodeClick" @node-click="handleNodeClick"
:props="defaultProps" :props="defaultProps"
:filter-node-method="filterNode"
> >
</el-tree> </el-tree>
</div> </div>
@ -47,7 +48,9 @@ export default {
} }
}, },
watch: { watch: {
inputValue(val) {
this.$refs.tree.filter(val);
}
}, },
data() { data() {
return { return {
@ -85,6 +88,10 @@ export default {
this.inputValue = e.label this.inputValue = e.label
this.$emit('changeId', e.id) this.$emit('changeId', e.id)
this.ishowTree = false this.ishowTree = false
},
filterNode(value, data) {
if (!value) return true;
return data.label.indexOf(value) !== -1;
} }
} }

View File

@ -235,6 +235,8 @@ export default {
typeId: undefined, typeId: undefined,
keyword: '', keyword: '',
}, },
typeList: [],
equipmentTypeList: [],
} }
}, },
created() { created() {

View File

@ -202,7 +202,6 @@ export default {
// //
projectList: [], projectList: [],
statusList: [ statusList: [
{ id: '0', name: '请选择' },
{ id: '1', name: '未结算' }, { id: '1', name: '未结算' },
{ id: '2', name: '已结算' }, { id: '2', name: '已结算' },
{ id: '3', name: '待审核' }, { id: '3', name: '待审核' },
@ -220,7 +219,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
keyWord: undefined, keyWord: undefined,
sltStatus: '0', sltStatus: '',
unitId: '', unitId: '',
projectId: '', projectId: '',
}, },

View File

@ -196,7 +196,6 @@ export default {
// //
projectList: [], projectList: [],
statusList: [ statusList: [
{ id: '', name: '请选择' },
{ id: '0', name: '待审核' }, { id: '0', name: '待审核' },
{ id: '1', name: '审核通过' }, { id: '1', name: '审核通过' },
{ id: '2', name: '审核驳回' }, { id: '2', name: '审核驳回' },

View File

@ -19,6 +19,7 @@
highlight-current highlight-current
@node-click="handleNodeClick" @node-click="handleNodeClick"
:props="defaultProps" :props="defaultProps"
:filter-node-method="filterNode"
> >
</el-tree> </el-tree>
</div> </div>
@ -63,11 +64,14 @@ export default {
}, },
mounted() { mounted() {
}, },
// watch: { watch: {
// name: function () { // name: function () {
// this.inputValue = this.name // this.inputValue = this.name
// } // }
// }, inputValue(val) {
this.$refs.tree.filter(val);
}
},
methods: { methods: {
inputFocus() { inputFocus() {
if (this.ishowTree == true) { if (this.ishowTree == true) {
@ -85,6 +89,10 @@ export default {
this.inputValue = e.label this.inputValue = e.label
this.$emit('changeId', e.id) this.$emit('changeId', e.id)
this.ishowTree = false this.ishowTree = false
},
filterNode(value, data) {
if (!value) return true;
return data.label.indexOf(value) !== -1;
} }
} }

View File

@ -61,7 +61,7 @@
<el-row> <el-row>
<el-col :span="24"> <el-col :span="24">
<el-form-item label="上级" prop="currentId"> <el-form-item label="上级" prop="currentId">
<el-cascader v-model="form.currentId" :options="deptOptions" :disabled="isEdit" <el-cascader v-model="form.currentId" :options="deptOptions" :disabled="isEdit" filterable
:props="{ expandTrigger: 'hover', label: 'label', value: 'id', checkStrictly: true }" :props="{ expandTrigger: 'hover', label: 'label', value: 'id', checkStrictly: true }"
@change="handleNodeClick"> </el-cascader> @change="handleNodeClick"> </el-cascader>
</el-form-item> </el-form-item>

View File

@ -44,6 +44,7 @@
clearable clearable
filterable filterable
style="width: 240px" style="width: 240px"
:disabled="!queryParams.itemId"
@change="selectDevice" @change="selectDevice"
> >
<el-option <el-option
@ -60,6 +61,7 @@
placeholder="请选择规格型号" placeholder="请选择规格型号"
clearable clearable
filterable filterable
:disabled="!queryParams.deviceId"
style="width: 240px" style="width: 240px"
> >
<el-option <el-option
@ -638,6 +640,8 @@ export default {
// //
selectItem(id) { selectItem(id) {
console.log(id) console.log(id)
this.queryParams.deviceId = ''
this.queryParams.typeId = ''
getListByMaType({ typeId: id }).then((response) => { getListByMaType({ typeId: id }).then((response) => {
this.typeList = response.data this.typeList = response.data
}) })
@ -645,6 +649,7 @@ export default {
// //
selectDevice(id) { selectDevice(id) {
console.log(id) console.log(id)
this.queryParams.typeId = ''
getListByMaType({ typeId: id }).then((response) => { getListByMaType({ typeId: id }).then((response) => {
this.modelList = response.data this.modelList = response.data
}) })

View File

@ -156,6 +156,7 @@
v-model="form.currentId" v-model="form.currentId"
:options="deptOptions" :options="deptOptions"
:disabled="isEdit" :disabled="isEdit"
filterable
:props="{ :props="{
expandTrigger: 'hover', expandTrigger: 'hover',
label: 'label', label: 'label',