删除
@@ -614,15 +614,28 @@ const formLoading = ref(false)
const dialogTitle = ref('')
const detailDisabled = ref(false)
const changeChange = ( row) =>{
- if(row.testYn == 'N'){
- row.testYn = 'Y'
- row.checkYn = 1
- row.checkYns = false
- }else{
- row.testYn = 'N'
- row.checkYn = 0
- row.checkYns = true
- }
+ // if(row.testYn == 'N'){
+ // row.testYn = 'N'
+ // row.checkYn = 0
+ // row.checkYns = true
+ // }else{
+ // row.testYn = 'Y'
+ // row.checkYn = 1
+ // row.checkYns = false
+ //
+ // }
+ if(row.checkYns == false){
+ row.checkYn = 1
+ }else {
+ row.checkYn = 0
+
+ }
+
+ }
+const getDisabledState2 = (row) => {
+ const isDisabled = detailDisabled.value || row.reportProcess == 2||row.matPlanProcess=='Y'
+
+ return isDisabled
}
const getDisabledState1 = (row) => {
const isDisabled = detailDisabled.value || row.reportProcess == 2
@@ -1613,6 +1626,9 @@ const onAddItem = () => {
item1.checkYns=item.checkYns
item1.testYn=item.testYn
item1.checkYn=item.checkYn
+ item1.owner=item.owner
+ item1.isOutsourcing=item.isOutsourcing
+ item1.isFoam=item.isFoam
}
}
}
@@ -1724,6 +1740,7 @@ const goback = () => {
var listdetail = ref([]);
/** 删除子项操作 */
const onDeleteItem = async (row,index) => {
+ console.log(row)
let id = row.id
if (id) await TaskDispatchApi.deleteTaskDispatchDetail(id)
var list = [];
@@ -1744,15 +1761,24 @@ const onDeleteItem = async (row,index) => {
list.push(checkList.value[i]);
}
}
+ const procedureItem = procedureList.value.find(
+ item => item.id === row.procedureId
+ );
+ console.log(procedureItem)
+ if (procedureItem){
+ const newArray = disabledLabels.value.filter(item => item !== procedureItem.name)
+ disabledLabels.value=newArray
+ }
checkList.value = list;
checkListTemp.value = checkList.value;
message.success(t('common.delSuccess'))
}
const handleOutsourcingChange= async (row: any) => {
- console.log('ss')
if(row.isOutsourcing == false){
row.dispatchType = 2
- row.postId = ownerList2.value[0].id
+ row.owner = ''
+
+ row.postId = ownerList2.value[0].id
}else{
row.dispatchType = 2
row.owner = ''