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>--> <!-- </div>-->
<van-tabs v-model:active="active" sticky @click-tab="onClickTab"> <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);"> <div v-if="data.TabId == 0" style="height: calc(100vh - 1.2rem);">
<appointmentAdd :isReg="2" /> <appointmentAdd :isReg="2" />
</div> </div>

4
src/views/administrative/appointmentList.vue

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

4
src/views/enforce/comprehensiveAnalysis.vue

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

2
src/views/enforce/sign.vue

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

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

@ -22,7 +22,7 @@
<!-- </div>--> <!-- </div>-->
<van-tabs v-model:active="active" sticky @click-tab="onClickTab"> <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);"> <div v-if="data.TabId == 0" style="height: calc(100vh - 1.2rem);">
<complaintNoScan isReg="0" :isNoScan="true" /> <complaintNoScan isReg="0" :isNoScan="true" />
</div> </div>

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

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

8
src/views/enterprise/complaint.vue

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

Loading…
Cancel
Save