Commit 17870ae2 authored by zs嵩's avatar zs嵩

7

parent 9e1fbd75
...@@ -537,7 +537,7 @@ export default { ...@@ -537,7 +537,7 @@ export default {
} }
}, },
methods: { methods: {
rowStyle(row) { rowStyle({ row }) {
if (row.specialPriceType) { if (row.specialPriceType) {
return { background: "#DBECFF" } return { background: "#DBECFF" }
} else { } else {
......
...@@ -3,61 +3,69 @@ ...@@ -3,61 +3,69 @@
<h1>{{ $t("批量费用申请") }}</h1> <h1>{{ $t("批量费用申请") }}</h1>
<el-divider></el-divider> <el-divider></el-divider>
<div class="flex-c-c"> <div class="flex-c-c">
<div class="fills"></div> <div class="fills">费用申请</div>
<el-button :disabled="!!processInstanceId" @click="addCost">{{ $t("添加申请") }} </el-button> <el-button type="primary" :disabled="!!processInstanceId" @click="addCost">{{ $t("添加申请") }} </el-button>
</div> </div>
<el-table :data="batchApplyDetailsInfoVO.feeDetailsVOList" class="mt-20"> <el-table border :data="batchApplyDetailsInfoVO.feeDetailsVOList" class="mt-10">
<el-table-column :label="$t('序号')" type="index"></el-table-column> <el-table-column :label="$t('序号')" type="index"></el-table-column>
<el-table-column :label="$t('费用类型')"> <el-table-column :label="$t('费用类型')">
<template v-slot:default="scope"> <template slot-scope="{ row, $index }">
<dict-selector :disabled="!scope.row.editMode && !!scope.row.status" :type="DICT_TYPE.FEE_TYPE" v-model="scope.row.feeType" @change="updatePayer(scope.row)" /> <dict-selector :type="DICT_TYPE.FEE_TYPE" v-model="row.feeType" @change="updatePayer($index)" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('金额')"> <el-table-column :label="$t('金额')">
<template v-slot:default="scope"> <template slot-scope="{ row, $index }">
<el-input :disabled="!scope.row.editMode && !!scope.row.status" v-model="scope.row.applicationFee" type="number" @input="formatAmount(scope.row)"></el-input> <el-input v-model="row.applicationFee" type="number" @input="formatAmount(row, $index)"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('货币类型')"> <el-table-column :label="$t('货币类型')">
<template v-slot:default="scope"> <template slot-scope="{ row, $index }">
<el-select :disabled="!scope.row.editMode && !!scope.row.status" v-model="scope.row.applicationFeeCurrency"> <el-select v-model="row.applicationFeeCurrency" @change="batchUpdateField($index, 'applicationFeeCurrency')">
<el-option v-for="item in currencyList" :key="item.id" :label="isChinese ? item.titleZh : item.titleEn" :value="item.id" /> <el-option v-for="item in currencyList" :key="item.id" :label="isChinese ? item.titleZh : item.titleEn" :value="item.id" />
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('付款类型')"> <el-table-column :label="$t('付款类型')">
<template v-slot="{ row }"> <template slot-scope="{ row, $index }">
<dict-selector :disabled="!row.editMode && !!row.status" :type="DICT_TYPE.PAYMENT_TYPE" v-model="row.payType" /> <dict-selector :type="DICT_TYPE.PAYMENT_TYPE" v-model="row.payType" @change="batchUpdateField($index, 'payType')" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('付款人')"> <el-table-column :label="$t('付款人')">
<template v-slot="{ row }"> <template slot-scope="{ row, $index }">
<dict-selector :disabled="!row.editMode && !!row.status" :type="DICT_TYPE.DRAWEE" :filter="payerDictFilter" v-model="row.payer" /> <dict-selector :type="DICT_TYPE.DRAWEE" :filter="payerDictFilter" v-model="row.payer" @change="batchUpdateField($index, 'payer')" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('备注')"> <el-table-column :label="$t('备注')">
<template v-slot:default="scope"> <template slot-scope="{ row, $index }">
<el-input :disabled="!scope.row.editMode && !!scope.row.status" v-model="scope.row.remarks" type="textarea"></el-input> <el-input v-model="row.remarks" type="textarea" @input="batchUpdateField($index, 'remarks')"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('确认收款')"> <el-table-column :label="$t('确认收款')">
<template v-slot:default="scope"> <template slot-scope="{ row, $index }">
<dict-tag :type="DICT_TYPE.ECW_RECEIVABLE_STATE" :value="scope.row.receiveFlag" /> <dict-tag :type="DICT_TYPE.ECW_RECEIVABLE_STATE" :value="row.receiveFlag" @change="batchUpdateField($index, 'receiveFlag')" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('申请人')"> <el-table-column :label="$t('申请人')">
<template v-slot:default="scope"> <template slot-scope="{ row, $index }">
{{ scope.row.status === 0 ? $t("未提交") : scope.row.applicationAuthor }} {{ row.status === 0 ? $t("未提交") : row.applicationAuthor }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')"> <el-table-column :label="$t('操作')" width="100">
<template slot-scope="{ index }"> <template slot-scope="{ index }">
<el-button type="text" @click="del(index)">删除</el-button> <el-button type="text" @click="del(index)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-table ref="orderTable" border default-expand-all :data="batchApplyDetailsInfoVO.orderFeeDetailsVOList" @selection-change="handleSelectionChange" class="mt-10"> <div class="">
<div style="padding: 20px 0 10px 0">{{ $t("申请原因") }}</div>
<el-input v-model="batchApplyDetailsInfoVO.reason" type="textarea" style="width: 30%"></el-input>
</div>
<div class="flex-c-c mt20">
<div class="fills">订单列表</div>
</div>
<el-table class="mt10" ref="orderTable" border default-expand-all :data="batchApplyDetailsInfoVO.orderFeeDetailsVOList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="50"></el-table-column> <el-table-column type="selection" width="50"></el-table-column>
<el-table-column :label="$t('序号')" width="50" type="index" align="center" /> <el-table-column :label="$t('序号')" width="50" type="index" align="center" />
<el-table-column prop="orderNo" :label="$t('订单号')" align="center" width="150"> <el-table-column prop="orderNo" :label="$t('订单号')" align="center" width="150">
...@@ -75,8 +83,18 @@ ...@@ -75,8 +83,18 @@
<router-link :to="'/customer/query/' + row.consigneeCustomerId">{{ row.consigneeCustomerNumber }}</router-link> <router-link :to="'/customer/query/' + row.consigneeCustomerId">{{ row.consigneeCustomerNumber }}</router-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('始发仓/渠道-目的仓')" align="center" width="200"> <el-table-column :label="$t('始发仓')" align="center" prop="startWarehouseName">
<template v-slot="scope"> {{ scope.row.destAdjustToStartWarehouseName }}-{{ scope.row.destAdjustToDestWarehouseName }} </template> <template slot-scope="{ row }">
{{ row.startWarehouseName }}
<span style="color: red" v-if="row.isExternalWarehouse">({{ $t("外部仓") }})</span>
</template>
</el-table-column>
<el-table-column :label="$t('运输方式') + '-' + $t('渠道') + '/' + $t('目的仓')" align="center" width="220">
<template slot-scope="{ row }">
<dict-tag :type="DICT_TYPE.ECW_TRANSPORT_TYPE" :value="row.transportId" />
<template v-if="row.channelName"> - {{ row.channelName }} </template>
/ {{ row.dstWarehouseName }}
</template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('额外费用')" width="200"> <el-table-column :label="$t('额外费用')" width="200">
<template slot-scope="{ row }"> <template slot-scope="{ row }">
...@@ -85,69 +103,73 @@ ...@@ -85,69 +103,73 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('加价单价')" width="200"> <el-table-column :label="$t('控货')" align="center" prop="transportId">
<template slot-scope="scope"> </template> <template slot-scope="{ row }">
<dict-tag :type="DICT_TYPE.INFRA_BOOLEAN_STRING" :value="row.isCargoControl" />
</template>
</el-table-column> </el-table-column>
<el-table-column prop="salesmanName" :label="$t('客户经理')" align="center"></el-table-column>
<el-table-column prop="firstInTime" :label="$t('首次入仓时间')" align="center" width="150"></el-table-column> <el-table-column :label="$t('增值服务')" align="center" prop="status">
<el-table-column prop="lastInTime" :label="$t('最后入仓时间')" align="center" width="150"></el-table-column> <template slot-scope="{ row }">
<el-table-column prop="createTime" :label="$t('创建时间')" align="center" width="150"></el-table-column> {{ getTypeText(row.type) }}
<el-table-column :label="$t('特价')" align="center"> </template>
<template v-slot="scope">{{ scope.row.specialPriceType ? "" : "" }}</template>
</el-table-column> </el-table-column>
<el-table-column prop="lastInTime" :label="$t('最后入仓时间')" align="center" width="150"></el-table-column>
<el-table-column prop="zgDate" :label="$t('装柜时间')" align="center" width="150"></el-table-column>
<el-table-column prop="dgDate" :label="$t('到港时间')" align="center" width="150"></el-table-column>
<el-table-column prop="qgDate" :label="$t('清关时间')" align="center" width="150"></el-table-column>
<el-table-column prop="unloadTime" :label="$t('到仓时间')" align="center" width="150"></el-table-column>
<el-table-column type="expand" :label="$t('更多')"> <el-table-column type="expand" :label="$t('更多')">
<template slot-scope="{ row }"> <template slot-scope="{ row, $index: INDEX }">
<div style="padding: 20px; background: #f4f4f4; margin: 0 20px 0 100px; border: 1px solid #e4e4e4"> <div style="margin: 0 20px 0 100px">
<el-table :data="row.orderFeeApplicationBaseVOList || []" border size="mini"> <el-table :data="row.orderFeeApplicationBaseVOList" border size="mini" :row-class-name="rowClassname">
<el-table-column :label="$t('序号')" type="index"></el-table-column> <el-table-column :label="$t('序号')" type="index"></el-table-column>
<el-table-column :label="$t('费用类型')"> <el-table-column :label="$t('费用类型')">
<template v-slot:default="scope"> <template slot-scope="{ row }">
<dict-selector :disabled="!scope.row.editMode && !!scope.row.status" :type="DICT_TYPE.FEE_TYPE" v-model="scope.row.feeType" @change="updatePayer(scope.row)" /> <dict-selector :type="DICT_TYPE.FEE_TYPE" v-model="row.feeType" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('金额')"> <el-table-column :label="$t('金额')">
<template v-slot:default="scope"> <template slot-scope="{ row }">
<el-input :disabled="!scope.row.editMode && !!scope.row.status" v-model="scope.row.applicationFee" type="number" @input="formatAmount(scope.row)"></el-input> <el-input v-model="row.applicationFee" type="number" @input="formatAmount(row)"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('货币类型')"> <el-table-column :label="$t('货币类型')">
<template v-slot:default="scope"> <template slot-scope="{ row }">
<el-select :disabled="!scope.row.editMode && !!scope.row.status" v-model="scope.row.applicationFeeCurrency"> <el-select v-model="row.applicationFeeCurrency">
<el-option v-for="item in currencyList" :key="item.id" :label="isChinese ? item.titleZh : item.titleEn" :value="item.id" /> <el-option v-for="item in currencyList" :key="item.id" :label="isChinese ? item.titleZh : item.titleEn" :value="item.id" />
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('付款类型')"> <el-table-column :label="$t('付款类型')">
<template v-slot="{ row }"> <template slot-scope="{ row }">
<dict-selector :disabled="!row.editMode && !!row.status" :type="DICT_TYPE.PAYMENT_TYPE" v-model="row.payType" /> <dict-selector :type="DICT_TYPE.PAYMENT_TYPE" v-model="row.payType" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('付款人')"> <el-table-column :label="$t('付款人')">
<template v-slot="{ row }"> <template slot-scope="{ row }">
<dict-selector :disabled="!row.editMode && !!row.status" :type="DICT_TYPE.DRAWEE" :filter="payerDictFilter" v-model="row.payer" /> <dict-selector :type="DICT_TYPE.DRAWEE" :filter="payerDictFilter" v-model="row.payer" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('备注')"> <el-table-column :label="$t('备注')">
<template v-slot:default="scope"> <template slot-scope="{ row }">
<el-input :disabled="!scope.row.editMode && !!scope.row.status" v-model="scope.row.remarks" type="textarea"></el-input> <el-input v-model="row.remarks" type="textarea"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('确认收款')"> <el-table-column :label="$t('确认收款')">
<template v-slot:default="scope"> <template slot-scope="{ row }">
<dict-tag :type="DICT_TYPE.ECW_RECEIVABLE_STATE" :value="scope.row.receiveFlag" /> <dict-tag :type="DICT_TYPE.ECW_RECEIVABLE_STATE" :value="row.receiveFlag" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('申请人')"> <el-table-column :label="$t('申请人')">
<template v-slot:default="scope"> <template slot-scope="{ row }">
{{ scope.row.status === 0 ? $t("未提交") : scope.row.applicationAuthor }} {{ row.status === 0 ? $t("未提交") : row.applicationAuthor }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')"> <el-table-column :label="$t('操作')" width="100">
<template v-slot:default="scope"> <template slot-scope="{ row, $index }">
<el-tag v-if="scope.row.status !== 0 && !scope.row.editMode">{{ STATUS[scope.row.status] }} </el-tag> <el-button type="text" @click="del2(INDEX, $index)">删除</el-button>
<el-button type="text" v-if="scope.row.id && modifable(scope.row)" @click="modify(scope.row)">{{ $t("修改") }} </el-button>
<el-button type="text" v-if="scope.row.status === 0" @click="del(scope.$index)">删除 </el-button>
<el-button type="text" v-if="scope.row.id && scope.row.applicationFee === 0 && scope.row.status === 2 && !scope.row.editMode" @click="deleteByFeeIsZero(scope.row.id)">删除 </el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -160,7 +182,7 @@ ...@@ -160,7 +182,7 @@
<work-flow xmlkey="batch_order_free_apply" v-model="selectedUsers" /> <work-flow xmlkey="batch_order_free_apply" v-model="selectedUsers" />
</div> </div>
<div style="text-align: center; margin-top: 20px"> <div style="text-align: center; margin-top: 20px">
<el-button type="primary" v-if="!processInstanceId" style="margin-right: 30px" :disabled="!editMode" @click="submit">{{ $t("提交") }} </el-button> <el-button type="primary" v-if="!processInstanceId" style="margin-right: 30px" @click="submit">{{ $t("提交") }} </el-button>
<el-button type="primary" v-if="processInstanceId" style="margin-right: 30px" @click="goProcessDetail">{{ $t("审核中") }} </el-button> <el-button type="primary" v-if="processInstanceId" style="margin-right: 30px" @click="goProcessDetail">{{ $t("审核中") }} </el-button>
<el-button type="primary" v-if="processInstanceId" style="margin-right: 30px" @click="cancel">{{ $t("取消审核") }} </el-button> <el-button type="primary" v-if="processInstanceId" style="margin-right: 30px" @click="cancel">{{ $t("取消审核") }} </el-button>
<el-button @click="$emit('update:dialogVisible', false)">{{ $t("返回") }} </el-button> <el-button @click="$emit('update:dialogVisible', false)">{{ $t("返回") }} </el-button>
...@@ -202,12 +224,27 @@ export default { ...@@ -202,12 +224,27 @@ export default {
STATUS: {}, STATUS: {},
selectedUsers: [], selectedUsers: [],
batchApplyDetailsInfoVO: { batchApplyDetailsInfoVO: {
reason: "",
feeDetailsVOList: [], feeDetailsVOList: [],
orderFeeDetailsVOList: [] orderFeeDetailsVOList: []
} }
} }
}, },
computed: { computed: {
// 增值服务文本
getTypeText() {
return (type) => {
if (!type) return ""
const arr = []
if (type.indexOf("1") > -1) {
arr.push(this.$t("集运"))
}
if (type.indexOf("2") > -1) {
arr.push(this.$t("海外仓"))
}
return arr.join(",")
}
},
orderIds() { orderIds() {
return this.$route.query.orderIds || "" return this.$route.query.orderIds || ""
}, },
...@@ -234,29 +271,6 @@ export default { ...@@ -234,29 +271,6 @@ export default {
}, },
isChinese() { isChinese() {
return this.$i18n.locale === "zh_CN" return this.$i18n.locale === "zh_CN"
},
// feeList() {
// // return this.list.filter((item) => item.status === 0);
// return this.list
// },
// // 正在编辑的费用申请
// currentItem() {
// return this.list.find((item) => item.editMode)
// },
// 是否修改模式
editMode() {
return !!this.currentItem
},
modifable() {
return (item) => {
// 审核中不允许修改
if (this.processInstanceId) return false
// 有未提交的不允许修改
// if (this.feeList.length) return false;
// 修改中的不允许修改
if (item.editMode) return false
return true
}
} }
}, },
created() { created() {
...@@ -265,7 +279,12 @@ export default { ...@@ -265,7 +279,12 @@ export default {
}) })
feeApplicationBatchGetOrderListByIds({ orderIds: this.orderIds }).then((res) => { feeApplicationBatchGetOrderListByIds({ orderIds: this.orderIds }).then((res) => {
this.batchApplyDetailsInfoVO.orderFeeDetailsVOList = res.data this.batchApplyDetailsInfoVO.orderFeeDetailsVOList = res.data.map((item) => {
return {
...item,
orderFeeApplicationBaseVOList: []
}
})
}) })
// 查询是否有审核中的费用申请 // 查询是否有审核中的费用申请
...@@ -292,7 +311,7 @@ export default { ...@@ -292,7 +311,7 @@ export default {
this.multipleSelection = selection this.multipleSelection = selection
this.ids = selection.map((item) => item.orderId) this.ids = selection.map((item) => item.orderId)
}, },
formatAmount(row) { formatAmount(row, index) {
// 使用正则表达式限制输入为数字和小数点,并限制小数点后最多两位数字 // 使用正则表达式限制输入为数字和小数点,并限制小数点后最多两位数字
// row.applicationFee = row.applicationFee.replace(/[^\d.]/g, '').replace(/(\..*)\./g, '$1'); // row.applicationFee = row.applicationFee.replace(/[^\d.]/g, '').replace(/(\..*)\./g, '$1');
if (row.applicationFee.indexOf(".") > -1) { if (row.applicationFee.indexOf(".") > -1) {
...@@ -301,13 +320,25 @@ export default { ...@@ -301,13 +320,25 @@ export default {
row.applicationFee = row.applicationFee.substring(0, row.applicationFee.length - (decimalPart.length - 2)) row.applicationFee = row.applicationFee.substring(0, row.applicationFee.length - (decimalPart.length - 2))
} }
} }
this.batchUpdateField(index, "applicationFee")
}, },
del(index) { del(index) {
this.$confirm(this.$t("确定要删除此条费用申请么?")).then(() => { this.$confirm(this.$t("确定要删除此条费用申请么?")).then(() => {
this.batchApplyDetailsInfoVO.feeDetailsVOList.splice(index, 1) this.batchApplyDetailsInfoVO.feeDetailsVOList.splice(index, 1)
this.batchApplyDetailsInfoVO.orderFeeDetailsVOList.forEach((item, i) => {
item.orderFeeApplicationBaseVOList.splice(index, 1)
})
})
},
del2(INDEX, index) {
this.$confirm(this.$t("确定要删除此条费用申请么?")).then(() => {
this.batchApplyDetailsInfoVO.orderFeeDetailsVOList[INDEX].orderFeeApplicationBaseVOList[index].isDel = true
}) })
}, },
rowClassname({ row }) {
return row.isDel ? "isDel" : ""
},
// 过滤订单状态筛选字典内容 // 过滤订单状态筛选字典内容
payerDictFilter(item) { payerDictFilter(item) {
if (item.value && item.value == 3) { if (item.value && item.value == 3) {
...@@ -315,16 +346,14 @@ export default { ...@@ -315,16 +346,14 @@ export default {
} }
return true return true
}, },
// 修改 updatePayer(index) {
modify(item) { this.batchUpdateField(index, "feeType")
this.$set(item, "editMode", true)
}, },
updatePayer(item) { batchUpdateField(index, field) {
console.log("变动的费用记录:", item)
this.$nextTick(() => { this.$nextTick(() => {
// 根据新费用类型和索引更新payer付款人信息 this.batchApplyDetailsInfoVO.orderFeeDetailsVOList.forEach((item, i) => {
this.orderDetails.drawee ? (this.orderDetails.drawee != 3 ? this.$set(item, "payer", this.orderDetails.drawee) : this.getDraweePayer(item)) : undefined // 费用申请付款人 item.orderFeeApplicationBaseVOList[index][field] = this.batchApplyDetailsInfoVO.feeDetailsVOList[index][field]
console.log("变动的费用记录:", item) })
}) })
}, },
getDraweePayer(item) { getDraweePayer(item) {
...@@ -361,10 +390,7 @@ export default { ...@@ -361,10 +390,7 @@ export default {
} }
this.batchApplyDetailsInfoVO.feeDetailsVOList.push(obj) this.batchApplyDetailsInfoVO.feeDetailsVOList.push(obj)
this.batchApplyDetailsInfoVO.orderFeeDetailsVOList.forEach((item) => { this.batchApplyDetailsInfoVO.orderFeeDetailsVOList.forEach((item) => {
if (!item.orderFeeApplicationBaseVOList) { item.orderFeeApplicationBaseVOList.push({ ...obj, isDel: false })
this.$set(item, "orderFeeApplicationBaseVOList", [])
}
item.orderFeeApplicationBaseVOList.push(obj)
}) })
}, },
deleteByFeeIsZero(id) { deleteByFeeIsZero(id) {
...@@ -378,38 +404,45 @@ export default { ...@@ -378,38 +404,45 @@ export default {
}) })
}) })
}, },
submit() { async submit() {
// 判断费用申请是否有未填项 // 判断费用申请是否有未填项
// console.log("提交的费用信息列表", this.feeList) // console.log("提交的费用信息列表", this.feeList)
const errList = this.feeList.filter((item) => { await new Promise((resolve) => {
return !item["feeType"] || item.applicationFee == null || item.applicationFee == undefined || !item["applicationFeeCurrency"] || !item["payType"] if (
this.batchApplyDetailsInfoVO.orderFeeDetailsVOList.some((item, index) => {
return !item.orderFeeApplicationBaseVOList.filter((m) => !m.isDel).length
})
) {
this.$confirm(this.$t("确定要删除所有无费用的订单吗?")).then(() => {
resolve()
})
} else {
resolve()
}
})
await new Promise((resolve) => {
if (
!this.batchApplyDetailsInfoVO.orderFeeDetailsVOList.some((item, index) => {
return item.orderFeeApplicationBaseVOList.some((m) => {
if (!m.isDel && (!item["feeType"] || item.applicationFee == null || item.applicationFee == undefined || !item["applicationFeeCurrency"] || !item["payType"])) {
this.$message.error("请填写完整费用申请信息")
return true
}
})
})
) {
resolve()
}
}) })
if (errList.length) {
return this.$message.error("请填写完整费用申请信息")
}
// if (this.editMode) {
// // 要提交status=1,否则保持原状态
// const data = {
// ...this.currentItem,
// status: 1,
// copyUserId: this.selectedUsers,
// };
// return applicationUpdate(data).then((r) => {
// this.$message.success(this.$t("修改成功"));
// this.$emit("update:dialogVisible", false);
// });
// }
feeApplicationBatch({ feeApplicationBatch({
orderFeeApplicationCreateReqVOList: this.feeList, batchApplyDetailsInfoVO: this.batchApplyDetailsInfoVO,
copyUserId: this.selectedUsers, copyUserId: this.selectedUsers
orderId: this.orderId
}).then((r) => { }).then((r) => {
if (r.code === 0) { if (r.code === 0) {
this.$emit("update:dialogVisible", false)
this.$message.success(this.$t("添加成功")) this.$message.success(this.$t("添加成功"))
this.selectedUsers = [] this.selectedUsers = []
this.$emit("refresh")
} }
}) })
}, },
...@@ -476,3 +509,8 @@ export default { ...@@ -476,3 +509,8 @@ export default {
margin-bottom: 20px; margin-bottom: 20px;
} }
</style> </style>
<style lang="scss">
.isDel {
display: none;
}
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment