diff --git a/src/api/work/confinement.ts b/src/api/work/confinement.ts
index 437d2d0..34cd971 100644
--- a/src/api/work/confinement.ts
+++ b/src/api/work/confinement.ts
@@ -10,7 +10,7 @@ export const getConfinementList = (query)=>{
//无权限判断的分页查询
export const getConfinementListAll =(query)=>{
return request.get({
- url:'/confinement/listALl',
+ url:'/confinement/listAll',
query
})
}
diff --git a/src/components/data/gab-import.vue b/src/components/data/gab-import.vue
index 53d18c2..0880b0c 100644
--- a/src/components/data/gab-import.vue
+++ b/src/components/data/gab-import.vue
@@ -87,7 +87,7 @@
/>
@@ -281,4 +281,4 @@ watch(
);
\ No newline at end of file
+
diff --git a/src/components/negative/dialog.vue b/src/components/negative/dialog.vue
index 4ce6999..b902eb6 100644
--- a/src/components/negative/dialog.vue
+++ b/src/components/negative/dialog.vue
@@ -179,7 +179,7 @@
"
>
-
+
@@ -473,7 +473,6 @@ watch(
() => props.id,
() => {
getDetails();
- getConfinementData()
verifyEditFlag.value = false;
formData.value = {};
}
@@ -568,7 +567,6 @@ async function handleExecute(action, data) {
emit("close");
return;
}
- getConfinementData();
getDetails();
}
@@ -587,22 +585,11 @@ function handleFav() {
}
const spotCheckEditFlag = ref(false);
-let confinementQuery = ref({
- current: 1,
- size: 10000,
- departBranch: false
-})
-/**
- * 获取禁闭信息
- * */
-async function getConfinementData(){
- const res = await getConfinementListAll(confinementQuery.value);
- ConfinementDataList.value= res.records;
-}
+
function spotCheck() {
spotCheckEditFlag.value = true;
}
diff --git a/src/components/negative/verify-description.vue b/src/components/negative/verify-description.vue
index b3a1184..6914f00 100644
--- a/src/components/negative/verify-description.vue
+++ b/src/components/negative/verify-description.vue
@@ -333,25 +333,38 @@ const activeNames = ref([
const negative = inject("negative");
console.log(negative)
-let props = defineProps(['ConfinementData'])
+let ConfinementDataList= ref([])
/**
* 禁闭信息入参
* */
-
+let confinementQuery = ref({
+ current: 1,
+ size: 100,
+ departBranch: false
+})
/**
* 警员禁闭处罚
* */
function rtuenConfinementData(val){
- return props.ConfinementData?.find(s=>s.id === val.confinementId);
+ const data = getConfinementData(val)
+ return data?.find(s=>s.id === val.confinementId);
}
/**
* 领导禁闭处罚
* */
function rtuenLeadConfinementData(val){
- return props.ConfinementData?.find(s=>s.id === val.leadConfinementId);
+ const data = getConfinementData(val)
+ return data?.find(s=>s.id === val.leadConfinementId);
+}
+/**
+ * 获取禁闭信息
+ * */
+async function getConfinementData(val){
+ confinementQuery.value.id = val
+ const res = await getConfinementListAll(confinementQuery.value);
+ return res.records;
}
-
for (
let i = 0;
diff --git a/src/components/negative/verify.vue b/src/components/negative/verify.vue
index 7862c85..e59f81e 100644
--- a/src/components/negative/verify.vue
+++ b/src/components/negative/verify.vue
@@ -701,7 +701,12 @@
-
+
姓名
@@ -949,8 +954,9 @@
@@ -1633,7 +1639,7 @@ const form = ref({
handlePolices: [{}],
});
//禁闭信息数组
-let confinementList = ref([])
+
let confinementOpens = ref([])
/**
* 禁闭信息入参
@@ -1643,43 +1649,45 @@ let confinementQuery = ref({
size: 10000,
departBranch: false
})
-/**
- * 获取禁闭信息
- * */
-const getConfinementData = async () => {
- const res = await getConfinementListAll(confinementQuery.value);
- confinementList.value = res.records
- confinementOpens.value=res.records
-}
+
/**
* 下拉搜索过滤数据(姓名,警号)
* @param query 输入参数
*
* */
-const fileConfinement = (query)=>{
+const fileConfinement = async (query)=>{
+ confinementQuery.value={
+ current: 1,
+ size: 10000,
+ departBranch: false
+ }
if(query){
- confinementOpens.value = confinementList.value.filter(s => s.name.includes(query) || s.empNo.includes(query))
- }else{
- confinementOpens.value=confinementList.value
+ confinementQuery.value.id = query
+ confinementQuery.value.name = query
+ confinementQuery.value.empNo = query
}
-
+ const data =await getConfinementListAll(confinementQuery.value);
+ confinementOpens.value = [...new Set(confinementOpens.value.concat(data.records))];
}
+
+
+
const problemIsTrue = computed(() => {
return form.value.checkStatus !== InspectCase.FALSE;
});
-getConfinementData();
+
getFormData();
watch(negative, () => {
getFormData();
});
-function getFormData() {
+async function getFormData() {
form.value = {
involveDepartId: negative.value.involveDepartId,
caseNumber: negative.value.caseNumber,
@@ -1706,6 +1714,16 @@ function getFormData() {
visitingLeaderName: negative.value.visitingLeaderName,
visitingLeaderEmpNo: negative.value.visitingLeaderEmpNo
};
+ if(negative.value.blames){
+ negative.value.blames.forEach((item)=>{
+ fileConfinement(item.confinementId)
+ })
+ }
+ if(negative.value.blameLeaders){
+ negative.value.blameLeaders.forEach((item)=>{
+ fileConfinement(item.leadConfinementId)
+ })
+ }
if (negative.value.accountabilityTarget != undefined) {
form.value.accountabilityTarget = negative.value.accountabilityTarget;
return;
@@ -1714,6 +1732,7 @@ function getFormData() {
form.value.accountabilityTarget = AccountabilityTarget.PERSONAL;
}
console.log(form.value);
+
}
function handleAddBlame(type) {
@@ -1907,7 +1926,6 @@ function validateHandlePolices(rule, value, cb) {
const formRef = ref(null);
async function validate() {
- debugger;
// 解决核查办理 当涉及对象是涉及个人时,有一条涉及单位的数据,导致问题无法提交的问题。
if (form.value.accountabilityTarget === AccountabilityTarget.PERSONAL) {
form.value.blames = form.value.blames.filter(
diff --git a/src/views/datav/MailVisits.vue b/src/views/datav/MailVisits.vue
index b99c67b..1ead779 100644
--- a/src/views/datav/MailVisits.vue
+++ b/src/views/datav/MailVisits.vue
@@ -231,23 +231,24 @@
type="bottom-button"
v-model="fxsjEntanglementTab"
>
-
+
+
-
+
@@ -258,26 +259,27 @@
type="bottom-button"
>
-
+
-
+
+
diff --git a/src/views/work/Confinement.vue b/src/views/work/Confinement.vue
index daf73e1..2749810 100644
--- a/src/views/work/Confinement.vue
+++ b/src/views/work/Confinement.vue
@@ -23,7 +23,7 @@ let query = ref({
//警员检索条件
let PoliceQuery = ref({
current: 1,
- size: 10000
+ size: 30
})
//编辑状态码(修改:true,新增:false)
let isEdit = ref(false)
@@ -244,7 +244,11 @@ const handleSumbit = async () => {
getList()
}
//获取警员信息组
-const getPoliceListFun = async () => {
+const getPoliceListFun = async (query) => {
+ if (query){
+ PoliceQuery.value.name = query;
+ }
+
const res = await getPoliceList(PoliceQuery.value)
users.value = res.records;
}
@@ -302,7 +306,6 @@ function getDaysBetweenDates(date1, date2) {
onMounted(() => {
getList();
- getPoliceListFun();
getNursingOrgList();
})
@@ -482,8 +485,10 @@ onMounted(() => {