Browse Source

企业端投诉问题

v4
蟑螂恶霸 1 year ago
parent
commit
6f12e3dc90
  1. 2
      src/views/administrative/appointmentBase.vue
  2. 4
      src/views/administrative/appointmentList.vue
  3. 4
      src/views/enforce/comprehensiveAnalysis.vue
  4. 2
      src/views/enforce/sign.vue
  5. 2
      src/views/enterprise/compaint/compaintBase.vue
  6. 24
      src/views/enterprise/compaint/uniteDept.vue
  7. 8
      src/views/enterprise/complaint.vue

2
src/views/administrative/appointmentBase.vue

@ -22,7 +22,7 @@
<!-- </div>-->
<van-tabs v-model:active="active" sticky @click-tab="onClickTab">
<van-tab v-for="(item, index) in data.list" :title="item.title">
<van-tab v-for="(item, index) in data.list" :title="item.title" :key="index">
<div v-if="data.TabId == 0" style="height: calc(100vh - 1.2rem);">
<appointmentAdd :isReg="2" />
</div>

4
src/views/administrative/appointmentList.vue

@ -453,11 +453,11 @@
}else{
console.log("=====> route?.query?.id : ", data.currentId)
cancelEnterpriseLawEnforcement(data.currentId,success =>{
router.go(-1);
// router.go(-1);
data.currentId = "";
data.showIsCancel = false;
showSuccessToast("已取消并通知企业")
return;
queryList();
});
}
};

4
src/views/enforce/comprehensiveAnalysis.vue

@ -146,8 +146,8 @@ const { useCommon } = $globalStore;
const data = reactive({
submitData: {
searchType: "user",
// userId:useCommon.userId,
userId: "17608514096",
userId:useCommon.userId,
// userId: "17608514096",
// userId: "17608508256",
dateType: "year",
beginTime: "",

2
src/views/enforce/sign.vue

@ -100,7 +100,7 @@
rows="2"
autosize
type="textarea"
maxlength="100"
maxlength="1000"
placeholder="请输入 检查事项"
show-word-limit
/>

2
src/views/enterprise/compaint/compaintBase.vue

@ -22,7 +22,7 @@
<!-- </div>-->
<van-tabs v-model:active="active" sticky @click-tab="onClickTab">
<van-tab v-for="(item, index) in data.list" :title="item.title">
<van-tab v-for="(item, index) in data.list" :title="item.title" :key="index">
<div v-if="data.TabId == 0" style="height: calc(100vh - 1.2rem);">
<complaintNoScan isReg="0" :isNoScan="true" />
</div>

24
src/views/enterprise/compaint/uniteDept.vue

@ -12,13 +12,14 @@
<div class="subsearch">
<input class="searchbox" v-model="searchParam.deptName" placeholder="请输入部门名称"/>
<van-icon class="ibtn-reset" name="clear" @click="cancel()" title="重置"/>
<button class='btn-search' @click="queryUserList()">搜索</button>
<!-- <button class='btn-search' @click="queryUserList()">搜索</button> -->
<button class='btn-search' @click="queryList()">搜索</button>
<button class='btn-search' @click="selectData()">确定</button>
</div>
<div class="search-result">
<van-checkbox-group v-model="checked">
<van-cell-group inset>
<van-cell v-for="(item, index) in deptList" :key="item">
<van-cell v-for="(item, index) in data.deptInList" :key="index">
<div style="display: flex; justify-content: space-between;">
<div @click="toggle(item.deptId)">
<van-checkbox :name="item.deptId+';-;'+item.deptName" :ref="el => checkboxRefs[item.deptId] = el" @click.stop>
@ -45,7 +46,7 @@
<script setup>
import {queryDepts, nextDeptByparentId, queryUsersNoPermission} from '@/api/user'
import {Icon, showSuccessToast,showToast } from 'vant';
import {ref,defineEmits,getCurrentInstance,defineProps } from 'vue';
import {ref,defineEmits,getCurrentInstance,defineProps, reactive } from 'vue';
const {useCommon} = $globalStore
const emits = defineEmits(['reciveData','close']);
const router = useRouter();
@ -59,6 +60,9 @@
default: false
},
});
const data = reactive({
deptInList: []
})
const searchParam = reactive( {
//
dataScopeId: useCommon.userId,
@ -98,10 +102,14 @@
emits('close');
}
const queryList = () =>{
if (null == searchParam.deptName || "" == searchParam.deptName) {
showSuccessToast('部门过多, 请输入关键字!');
return;
}
queryDepts(searchParam, success => {
if (null != success.data && success.data.length > 0) {
userList = [];
dataList = success.data
data.deptInList = [];
data.deptInList = success.data
} else {
showToast ("暂无数据!")
}
@ -114,8 +122,8 @@
return;
}
queryUsersNoPermission({"userName": searchKey}, success => {
dataList = [];
userList = success.data;
userList = [];
userList = success.data;
}, error => {
});
}
@ -126,10 +134,8 @@
const selectData = () => {
const res = ref([]);
let checkeds = JSON.parse(JSON.stringify(checked.value));
console.log(checkeds);
for (var i=0; i<checkeds.length; i++) {
var item = checkeds[i].split(";-;");
console.log(item)
res.value.push({"deptId":item[0], "deptName":item[1]});
}
emits("reciveData", res.value);

8
src/views/enterprise/complaint.vue

@ -510,16 +510,22 @@
}
const reciveDept = (item) =>{
console.log(item);
var text = '';
var code_id = '';
const arr = [];
for (let index = 0; index < item.length; index++) {
const element = item[index];
console.log(element)
var obj = {text: element.deptName, id: element.deptId}
arr.push(obj);
text += element.deptName + ',';
code_id += element.deptId + ',';
}
console.log(arr)
data.depts = arr;
submitData.lawEnforcementIncidentText = text.substring(0, text.length-1);
submitData.complaintItemCodes = code_id.substring(0, code_id.length-1);
console.log(data.depts.value)
}
const cancelDept = (index) => {

Loading…
Cancel
Save