1.4.2前端:

fix(市场预算&开票):市场预算申请和开票申请增加编号的保存,工作流的业务编码按照此编号保存
dev
xs 2 weeks ago
parent c68d6d779a
commit 78f21aa153

@ -146,6 +146,11 @@ export const constantRoutes: RouteRecordRaw[] = [
component: () => import('@/views/oa/erp/orderLedger/index.vue'), component: () => import('@/views/oa/erp/orderLedger/index.vue'),
name: 'OrderLedger', name: 'OrderLedger',
meta: { title: '合同订单台账', activeMenu: '/contract/contractInfo/contractOrder' } meta: { title: '合同订单台账', activeMenu: '/contract/contractInfo/contractOrder' }
},
{
path: 'budgetInfo/edit',
component: () => import('@/views/oa/erp/budgetInfo/edit.vue'),
name: 'BudgetInfoEdit'
} }
] ]
}, },

@ -551,8 +551,6 @@ const handleSave = async (status: string, mode: boolean) => {
} }
budgetForm.budgetVersion = searchForm.budgetVersion; budgetForm.budgetVersion = searchForm.budgetVersion;
budgetForm.remark = searchForm.remark; budgetForm.remark = searchForm.remark;
console.log('----');
console.log(budgetForm);
// //
if (budgetForm.budgetId) { if (budgetForm.budgetId) {

@ -81,6 +81,7 @@
<dict-tag :options="project_category" :value="scope.row.projectCategory" /> <dict-tag :options="project_category" :value="scope.row.projectCategory" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="预算编号" align="center" prop="budgetCode" width="140"/>
<el-table-column label="项目号" align="center" prop="projectCode" v-if="columns[6].visible" /> <el-table-column label="项目号" align="center" prop="projectCode" v-if="columns[6].visible" />
<el-table-column label="项目名称" align="center" prop="projectName" v-if="columns[7].visible" /> <el-table-column label="项目名称" align="center" prop="projectName" v-if="columns[7].visible" />
<el-table-column label="版本" align="center" prop="budgetVersion" v-if="columns[34].visible" width="60"/> <el-table-column label="版本" align="center" prop="budgetVersion" v-if="columns[34].visible" width="60"/>
@ -178,6 +179,8 @@ const { project_category, budget_status, wf_business_status } = toRefs<any>(
proxy?.useDict('project_category', 'budget_status', 'wf_business_status') proxy?.useDict('project_category', 'budget_status', 'wf_business_status')
); );
const route = useRoute();
const budgetInfoList = ref<budgetInfoVO[]>([]); const budgetInfoList = ref<budgetInfoVO[]>([]);
const userList = ref<UserVO[]>([]); const userList = ref<UserVO[]>([]);
const buttonLoading = ref(false); const buttonLoading = ref(false);
@ -375,6 +378,7 @@ const handleSelectionChange = (selection: budgetInfoVO[]) => {
/** 新增市场项目预算按钮操作 */ /** 新增市场项目预算按钮操作 */
const handleAdd = () => { const handleAdd = () => {
proxy.$tab.closePage(route);
router.push({ router.push({
path: '/budget/budgetInfo/edit', path: '/budget/budgetInfo/edit',
query: { query: {
@ -392,6 +396,7 @@ const handleAdd = () => {
/** 新增研发项目按钮操作 */ /** 新增研发项目按钮操作 */
const handleAddRd = () => { const handleAddRd = () => {
proxy.$tab.closePage(route);
router.push({ router.push({
path: '/budget/budgetInfo/edit', path: '/budget/budgetInfo/edit',
query: { query: {
@ -404,6 +409,7 @@ const handleAddRd = () => {
/** 查询、修改按钮操作 */ /** 查询、修改按钮操作 */
const handleUpdate = async (row?: budgetInfoVO, type?: string, changeFlag?: string) => { const handleUpdate = async (row?: budgetInfoVO, type?: string, changeFlag?: string) => {
proxy.$tab.closePage(route);
router.push({ router.push({
path: '/budget/budgetInfo/edit', path: '/budget/budgetInfo/edit',
query: { query: {
@ -421,6 +427,7 @@ const handleUpdate = async (row?: budgetInfoVO, type?: string, changeFlag?: stri
/** 变更按钮操作 */ /** 变更按钮操作 */
const handleChange = async (row?: budgetInfoVO) => { const handleChange = async (row?: budgetInfoVO) => {
proxy.$tab.closePage(route);
router.push({ router.push({
path: '/budget/budgetInfo/change', path: '/budget/budgetInfo/change',
query: { query: {

@ -295,7 +295,7 @@
</div> </div>
</template> </template>
<script setup lang="ts"> <script setup lang="ts" name="InvoiceInfoEdit">
import api from '@/api/system/user'; import api from '@/api/system/user';
import { ref, reactive, computed, onMounted } from 'vue'; import { ref, reactive, computed, onMounted } from 'vue';
import { ElMessage, ElMessageBox, FormInstance } from 'element-plus'; import { ElMessage, ElMessageBox, FormInstance } from 'element-plus';
@ -329,7 +329,7 @@ const contractPaymentMethodVoList = ref<ContractPaymentMethodVO[]>([]);
const route = useRoute(); const route = useRoute();
const router = useRouter(); const router = useRouter();
const routeParams = ref<Record<string, any>>({ ...(route.query as Record<string, any>) }); const routeParams = ref<Record<string, any>>({});
const { proxy } = getCurrentInstance() as ComponentInternalInstance; const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const buttonLoading = ref(false); const buttonLoading = ref(false);
@ -553,7 +553,7 @@ const calculateReturnedRate = () => {
const isInitialized = ref(false); const isInitialized = ref(false);
onMounted(async () => { onMounted(async () => {
nextTick(async () => { nextTick(async () => {
getUserList(); // getUserList(); //
// //
routeParams.value = route.query; routeParams.value = route.query;
console.log(route.query); console.log(route.query);
@ -765,14 +765,19 @@ const handleSave = async (status: string, mode: boolean) => {
form.value.earlyReason = undefined; form.value.earlyReason = undefined;
} }
form.value.invoiceStatus = getInvoiceStatus(status); const invoiceForm = {
form.value.flowStatus = getFlowStatus(status); ...form.value,
//
invoiceStatus: getInvoiceStatus(status),
flowStatus: getFlowStatus(status),
};
// //
if (form.value.invoiceId) { if (form.value.invoiceId) {
form.value.toDeletedInvoiceDetailIdList = toDeletedInvoiceDetailIdList.value; form.value.toDeletedInvoiceDetailIdList = toDeletedInvoiceDetailIdList.value;
await updateFinInvoiceInfo(form.value); await updateFinInvoiceInfo(invoiceForm);
} else { } else {
await addFinInvoiceInfo(form.value); await addFinInvoiceInfo(invoiceForm);
} }
ElMessage.success('保存成功'); ElMessage.success('保存成功');

@ -67,6 +67,7 @@
<el-table v-loading="loading" border :data="finInvoiceInfoList" @selection-change="handleSelectionChange"> <el-table v-loading="loading" border :data="finInvoiceInfoList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" /> <el-table-column type="selection" width="55" align="center" />
<el-table-column label="申请编号" align="center" prop="invoiceCode" width="150" />
<el-table-column label="项目号" align="center" prop="projectCode" v-if="columns[9].visible" /> <el-table-column label="项目号" align="center" prop="projectCode" v-if="columns[9].visible" />
<el-table-column label="项目名称" align="center" prop="projectName" v-if="columns[10].visible" /> <el-table-column label="项目名称" align="center" prop="projectName" v-if="columns[10].visible" />
<el-table-column label="项目类型" align="center" prop="invoiceCategory" v-if="columns[15].visible"> <el-table-column label="项目类型" align="center" prop="invoiceCategory" v-if="columns[15].visible">
@ -128,6 +129,7 @@
size="small" size="small"
type="primary" type="primary"
icon="Edit" icon="Edit"
v-if="scope.row.invoiceStatus === INVOICE_STATUS.DRAFT"
@click="handleUpdate(scope.row, 'update')" @click="handleUpdate(scope.row, 'update')"
v-hasPermi="['oa/erp:finInvoiceInfo:edit']" v-hasPermi="['oa/erp:finInvoiceInfo:edit']"
></el-button> ></el-button>

Loading…
Cancel
Save