|
@@ -5,41 +5,108 @@
|
|
|
<div class="commons-title title">
|
|
|
{{ route.query.flowName || "流程标题(发起)" }}
|
|
|
</div>
|
|
|
- <SendSubscribe ref="makeDom" v-if="flowForm.flowKey == 'subscribe_flow'"></SendSubscribe>
|
|
|
- <SendPurchase ref="makeDom" v-else-if="flowForm.flowKey == 'purchase_flow'" :queryData="queryData.data"></SendPurchase>
|
|
|
- <SendFunds ref="makeDom" v-else-if="flowForm.flowKey == 'account_request_funds_flow'" :queryData="queryData.data"></SendFunds>
|
|
|
- <ReturnGood ref="makeDom" v-else-if="flowForm.flowKey == 'sales_return_flow'" :queryData="queryData.data"></ReturnGood>
|
|
|
- <PurchaseRefund ref="makeDom" v-else-if="flowForm.flowKey == 'refund_flow'" :queryData="queryData.data"></PurchaseRefund>
|
|
|
- <PurchasePayment ref="makeDom" v-else-if="flowForm.flowKey == 'pay_flow'" :queryData="queryData.data"></PurchasePayment>
|
|
|
+ <SendSubscribe
|
|
|
+ ref="makeDom"
|
|
|
+ v-if="flowForm.flowKey == 'subscribe_flow'"
|
|
|
+ ></SendSubscribe>
|
|
|
+ <SendPurchase
|
|
|
+ ref="makeDom"
|
|
|
+ v-else-if="flowForm.flowKey == 'purchase_flow'"
|
|
|
+ :queryData="queryData.data"
|
|
|
+ ></SendPurchase>
|
|
|
+ <SendFunds
|
|
|
+ ref="makeDom"
|
|
|
+ v-else-if="flowForm.flowKey == 'account_request_funds_flow'"
|
|
|
+ :queryData="queryData.data"
|
|
|
+ ></SendFunds>
|
|
|
+ <ReturnGood
|
|
|
+ ref="makeDom"
|
|
|
+ v-else-if="flowForm.flowKey == 'sales_return_flow'"
|
|
|
+ :queryData="queryData.data"
|
|
|
+ ></ReturnGood>
|
|
|
+ <PurchaseRefund
|
|
|
+ ref="makeDom"
|
|
|
+ v-else-if="flowForm.flowKey == 'refund_flow'"
|
|
|
+ :queryData="queryData.data"
|
|
|
+ ></PurchaseRefund>
|
|
|
+ <PurchasePayment
|
|
|
+ ref="makeDom"
|
|
|
+ v-else-if="flowForm.flowKey == 'pay_flow'"
|
|
|
+ :queryData="queryData.data"
|
|
|
+ ></PurchasePayment>
|
|
|
<template v-else-if="flowForm.flowKey == 'sale_quotation_flow'">
|
|
|
- <PriceSheetEHSD ref="makeDom" v-if="flowForm.tenantType === 'EHSD'" :queryData="queryData.data"></PriceSheetEHSD>
|
|
|
- <PriceSheet ref="makeDom" v-else :queryData="queryData.data"></PriceSheet>
|
|
|
+ <PriceSheetEHSD
|
|
|
+ ref="makeDom"
|
|
|
+ v-if="flowForm.tenantType === 'EHSD'"
|
|
|
+ :queryData="queryData.data"
|
|
|
+ ></PriceSheetEHSD>
|
|
|
+ <PriceSheet
|
|
|
+ ref="makeDom"
|
|
|
+ v-else
|
|
|
+ :queryData="queryData.data"
|
|
|
+ ></PriceSheet>
|
|
|
</template>
|
|
|
<template v-else-if="flowForm.flowKey == 'contract_flow'">
|
|
|
- <ContractEHSD ref="makeDom" v-if="flowForm.tenantType === 'EHSD'" :queryData="queryData.data"></ContractEHSD>
|
|
|
+ <ContractEHSD
|
|
|
+ ref="makeDom"
|
|
|
+ v-if="flowForm.tenantType === 'EHSD'"
|
|
|
+ :queryData="queryData.data"
|
|
|
+ ></ContractEHSD>
|
|
|
<Contract ref="makeDom" v-else :queryData="queryData.data"></Contract>
|
|
|
</template>
|
|
|
<template v-else-if="flowForm.flowKey == 'sample_flow'">
|
|
|
<SampleEHSD ref="makeDom" :queryData="queryData.data"></SampleEHSD>
|
|
|
</template>
|
|
|
<template v-else-if="flowForm.flowKey == 'ehsd_purchase_flow'">
|
|
|
- <PurchaseEHSD ref="makeDom" :queryData="queryData.data"></PurchaseEHSD>
|
|
|
+ <PurchaseEHSD
|
|
|
+ ref="makeDom"
|
|
|
+ :queryData="queryData.data"
|
|
|
+ ></PurchaseEHSD>
|
|
|
</template>
|
|
|
|
|
|
- <ServiceContract ref="makeDom" v-else-if="flowForm.flowKey == 'service_contract_flow'" :queryData="queryData.data"></ServiceContract>
|
|
|
+ <ServiceContract
|
|
|
+ ref="makeDom"
|
|
|
+ v-else-if="flowForm.flowKey == 'service_contract_flow'"
|
|
|
+ :queryData="queryData.data"
|
|
|
+ ></ServiceContract>
|
|
|
<!-- 维多利亚 -->
|
|
|
- <SendSubscribeWDLY ref="makeDom" v-else-if="flowForm.flowKey == 'wdly_apply_purchase'" :queryData="queryData.data"></SendSubscribeWDLY>
|
|
|
- <SendPurchaseWDLY ref="makeDom" v-else-if="flowForm.flowKey == 'wdly_purchase'" :queryData="queryData.data"></SendPurchaseWDLY>
|
|
|
+ <SendSubscribeWDLY
|
|
|
+ ref="makeDom"
|
|
|
+ v-else-if="flowForm.flowKey == 'wdly_apply_purchase'"
|
|
|
+ :queryData="queryData.data"
|
|
|
+ ></SendSubscribeWDLY>
|
|
|
+ <SendPurchaseWDLY
|
|
|
+ ref="makeDom"
|
|
|
+ v-else-if="flowForm.flowKey == 'wdly_purchase'"
|
|
|
+ :queryData="queryData.data"
|
|
|
+ ></SendPurchaseWDLY>
|
|
|
</div>
|
|
|
<div class="bottom" v-if="route.query.processType != 20">
|
|
|
<div class="commons-title title">处理意见</div>
|
|
|
<el-form :model="flowForm" :rules="flowRules" ref="flowFormDom">
|
|
|
<el-form-item prop="remark" label-width="0px" label="">
|
|
|
- <el-input type="textarea" placeholder="请输入" v-model="flowForm.remark"> </el-input>
|
|
|
+ <el-input
|
|
|
+ type="textarea"
|
|
|
+ placeholder="请输入"
|
|
|
+ v-model="flowForm.remark"
|
|
|
+ >
|
|
|
+ </el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
- <el-button type="primary" v-if="approvalRecordData.buttonInfoList.length == 0" @click="handleSubmit">提交</el-button>
|
|
|
- <el-button type="primary" v-else v-for="i in approvalRecordData.buttonInfoList" :key="i.type" @click="handleSubmit(i.type)">{{ i.name }}</el-button>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ v-if="approvalRecordData.buttonInfoList.length == 0"
|
|
|
+ @click="handleSubmit"
|
|
|
+ >提交</el-button
|
|
|
+ >
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ v-else
|
|
|
+ v-for="i in approvalRecordData.buttonInfoList"
|
|
|
+ :key="i.type"
|
|
|
+ @click="handleSubmit(i.type)"
|
|
|
+ >{{ i.name }}</el-button
|
|
|
+ >
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
</div>
|
|
@@ -52,8 +119,15 @@
|
|
|
v-for="item in recordList"
|
|
|
:key="item.id"
|
|
|
:class="
|
|
|
- item.status == 2 ? 'flow-orange' : item.status == 3 && !route.query.id ? 'flow-orange' : item.status == 3 && route.query.id ? 'flow-grey' : ''
|
|
|
- ">
|
|
|
+ item.status == 2
|
|
|
+ ? 'flow-orange'
|
|
|
+ : item.status == 3 && !route.query.id
|
|
|
+ ? 'flow-orange'
|
|
|
+ : item.status == 3 && route.query.id
|
|
|
+ ? 'flow-grey'
|
|
|
+ : ''
|
|
|
+ "
|
|
|
+ >
|
|
|
<div class="left-icon">
|
|
|
<i class="iconfont icon-iconm_daick"></i>
|
|
|
<i class="iconfont icon-icomx_quertj1 right-btm-status"></i>
|
|
@@ -62,7 +136,9 @@
|
|
|
<div class="name">{{ item.nodeName }}</div>
|
|
|
<div class="remark">
|
|
|
<div class="label">
|
|
|
- <span v-if="item.status != 3">办理人:</span>{{ item.processedUser }}<span class="time">{{ item.processedDate }}</span>
|
|
|
+ <span v-if="item.status != 3">办理人:</span
|
|
|
+ >{{ item.processedUser
|
|
|
+ }}<span class="time">{{ item.processedDate }}</span>
|
|
|
</div>
|
|
|
{{ item.remark }}
|
|
|
</div>
|
|
@@ -81,8 +157,18 @@
|
|
|
<el-dialog title="下一处理人" width="400" v-model="dialogVisible">
|
|
|
<el-form :model="flowForm">
|
|
|
<el-form-item prop="remark" label="处理人">
|
|
|
- <el-select v-model="flowForm.handleUserId" placeholder="请选择" filterable style="width: 100%">
|
|
|
- <el-option v-for="item in nextHandleUser" :label="item.name" :value="item.id"> </el-option>
|
|
|
+ <el-select
|
|
|
+ v-model="flowForm.handleUserId"
|
|
|
+ placeholder="请选择"
|
|
|
+ filterable
|
|
|
+ style="width: 100%"
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in nextHandleUser"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
@@ -234,16 +320,18 @@ const handleSubmit = async (_type) => {
|
|
|
data.ehsdJson = JSON.stringify({
|
|
|
deliveryTime: data.deliveryTime,
|
|
|
});
|
|
|
- data.quotationProductList = data.quotationProductList.map((item) => {
|
|
|
- let ehsdJson = JSON.stringify({
|
|
|
- packMethod: item.packMethod,
|
|
|
- tradeMethods: item.tradeMethods,
|
|
|
- });
|
|
|
- return {
|
|
|
- ...item,
|
|
|
- ehsdJson: ehsdJson,
|
|
|
- };
|
|
|
- });
|
|
|
+ data.quotationProductList = data.quotationProductList.map(
|
|
|
+ (item) => {
|
|
|
+ let ehsdJson = JSON.stringify({
|
|
|
+ packMethod: item.packMethod,
|
|
|
+ tradeMethods: item.tradeMethods,
|
|
|
+ });
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ ehsdJson: ehsdJson,
|
|
|
+ };
|
|
|
+ }
|
|
|
+ );
|
|
|
}
|
|
|
} else if (flowForm.flowKey == "contract_flow") {
|
|
|
if (flowForm.tenantType === "EHSD") {
|
|
@@ -272,16 +360,18 @@ const handleSubmit = async (_type) => {
|
|
|
data.ehsdJson = JSON.stringify({
|
|
|
deliveryTime: data.deliveryTime,
|
|
|
});
|
|
|
- data.contractProductList = data.contractProductList.map((item) => {
|
|
|
- let ehsdJson = JSON.stringify({
|
|
|
- packMethod: item.packMethod,
|
|
|
- tradeMethods: item.tradeMethods,
|
|
|
- });
|
|
|
- return {
|
|
|
- ...item,
|
|
|
- ehsdJson: ehsdJson,
|
|
|
- };
|
|
|
- });
|
|
|
+ data.contractProductList = data.contractProductList.map(
|
|
|
+ (item) => {
|
|
|
+ let ehsdJson = JSON.stringify({
|
|
|
+ packMethod: item.packMethod,
|
|
|
+ tradeMethods: item.tradeMethods,
|
|
|
+ });
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ ehsdJson: ehsdJson,
|
|
|
+ };
|
|
|
+ }
|
|
|
+ );
|
|
|
}
|
|
|
} else if (flowForm.flowKey == "sample_flow") {
|
|
|
if (data.fileList && data.fileList.length > 0) {
|
|
@@ -352,77 +442,83 @@ const handleSubmit = async (_type) => {
|
|
|
};
|
|
|
// 页面跳转
|
|
|
const skipPage = () => {
|
|
|
- const useTagsStore = useTagsViewStore();
|
|
|
- console.log(useTagsStore);
|
|
|
- useTagsStore.delVisitedView(router.currentRoute.value);
|
|
|
- ElMessage({
|
|
|
- message: "操作成功!",
|
|
|
- type: "success",
|
|
|
- });
|
|
|
- if (flowForm.flowKey == "subscribe_flow") {
|
|
|
- router.replace({
|
|
|
- path: "/ERP/purchaseManage/subscribe",
|
|
|
- });
|
|
|
- } else if (flowForm.flowKey == "purchase_flow") {
|
|
|
+ if (route.query.processType === 10) {
|
|
|
router.replace({
|
|
|
- path: "/ERP/purchaseManage/purchase",
|
|
|
+ path: "/oa/1/dealWith",
|
|
|
});
|
|
|
- } else if (flowForm.flowKey == "sales_return_flow") {
|
|
|
- router.replace({
|
|
|
- path: "/ERP/purchaseManage/returnGoods",
|
|
|
- });
|
|
|
- } else if (flowForm.flowKey == "account_request_funds_flow") {
|
|
|
- router.replace({
|
|
|
- path: "/ERP/fundManage/funds",
|
|
|
- });
|
|
|
- } else if (flowForm.flowKey == "refund_flow") {
|
|
|
- router.replace({
|
|
|
- path: "/ERP/purchasePayment/invoice",
|
|
|
- });
|
|
|
- } else if (flowForm.flowKey == "pay_flow") {
|
|
|
- router.replace({
|
|
|
- path: "/ERP/purchasePayment/payment",
|
|
|
+ } else {
|
|
|
+ const useTagsStore = useTagsViewStore();
|
|
|
+ console.log(useTagsStore);
|
|
|
+ useTagsStore.delVisitedView(router.currentRoute.value);
|
|
|
+ ElMessage({
|
|
|
+ message: "操作成功!",
|
|
|
+ type: "success",
|
|
|
});
|
|
|
- } else if (flowForm.flowKey == "sale_quotation_flow") {
|
|
|
- if (flowForm.tenantType === "EHSD") {
|
|
|
+ if (flowForm.flowKey == "subscribe_flow") {
|
|
|
router.replace({
|
|
|
- path: "/EHSD/saleContract/priceSheetEHSD",
|
|
|
+ path: "/ERP/purchaseManage/subscribe",
|
|
|
});
|
|
|
- } else {
|
|
|
+ } else if (flowForm.flowKey == "purchase_flow") {
|
|
|
router.replace({
|
|
|
- path: "/ERP/saleContract/priceSheet",
|
|
|
+ path: "/ERP/purchaseManage/purchase",
|
|
|
});
|
|
|
- }
|
|
|
- } else if (flowForm.flowKey == "contract_flow") {
|
|
|
- if (flowForm.tenantType === "EHSD") {
|
|
|
+ } else if (flowForm.flowKey == "sales_return_flow") {
|
|
|
+ router.replace({
|
|
|
+ path: "/ERP/purchaseManage/returnGoods",
|
|
|
+ });
|
|
|
+ } else if (flowForm.flowKey == "account_request_funds_flow") {
|
|
|
+ router.replace({
|
|
|
+ path: "/ERP/fundManage/funds",
|
|
|
+ });
|
|
|
+ } else if (flowForm.flowKey == "refund_flow") {
|
|
|
router.replace({
|
|
|
- path: "/EHSD/saleContract/contractEHSD",
|
|
|
+ path: "/ERP/purchasePayment/invoice",
|
|
|
});
|
|
|
- } else {
|
|
|
+ } else if (flowForm.flowKey == "pay_flow") {
|
|
|
router.replace({
|
|
|
- path: "/ERP/saleContract/contract",
|
|
|
+ path: "/ERP/purchasePayment/payment",
|
|
|
+ });
|
|
|
+ } else if (flowForm.flowKey == "sale_quotation_flow") {
|
|
|
+ if (flowForm.tenantType === "EHSD") {
|
|
|
+ router.replace({
|
|
|
+ path: "/EHSD/saleContract/priceSheetEHSD",
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ router.replace({
|
|
|
+ path: "/ERP/saleContract/priceSheet",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else if (flowForm.flowKey == "contract_flow") {
|
|
|
+ if (flowForm.tenantType === "EHSD") {
|
|
|
+ router.replace({
|
|
|
+ path: "/EHSD/saleContract/contractEHSD",
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ router.replace({
|
|
|
+ path: "/ERP/saleContract/contract",
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else if (flowForm.flowKey == "sample_flow") {
|
|
|
+ router.replace({
|
|
|
+ path: "/EHSD/saleContract/sampleEHSD",
|
|
|
+ });
|
|
|
+ } else if (flowForm.flowKey == "ehsd_purchase_flow") {
|
|
|
+ router.replace({
|
|
|
+ path: "/EHSD/procurement/purchasedEHSD",
|
|
|
+ });
|
|
|
+ } else if (flowForm.flowKey == "service_contract_flow") {
|
|
|
+ router.replace({
|
|
|
+ path: "/ERP/saleContract/serviceContract",
|
|
|
+ });
|
|
|
+ } else if (flowForm.flowKey == "wdly_purchase") {
|
|
|
+ router.replace({
|
|
|
+ path: "/WDLY/purchaseManage/alreadyPurchase_wdly",
|
|
|
+ });
|
|
|
+ } else if (flowForm.flowKey == "wdly_apply_purchase") {
|
|
|
+ router.replace({
|
|
|
+ path: "/WDLY/purchaseManage/subscribe_wdly",
|
|
|
});
|
|
|
}
|
|
|
- } else if (flowForm.flowKey == "sample_flow") {
|
|
|
- router.replace({
|
|
|
- path: "/EHSD/saleContract/sampleEHSD",
|
|
|
- });
|
|
|
- } else if (flowForm.flowKey == "ehsd_purchase_flow") {
|
|
|
- router.replace({
|
|
|
- path: "/EHSD/procurement/purchasedEHSD",
|
|
|
- });
|
|
|
- } else if (flowForm.flowKey == "service_contract_flow") {
|
|
|
- router.replace({
|
|
|
- path: "/ERP/saleContract/serviceContract",
|
|
|
- });
|
|
|
- } else if (flowForm.flowKey == "wdly_purchase") {
|
|
|
- router.replace({
|
|
|
- path: "/WDLY/purchaseManage/alreadyPurchase_wdly",
|
|
|
- });
|
|
|
- } else if (flowForm.flowKey == "wdly_apply_purchase") {
|
|
|
- router.replace({
|
|
|
- path: "/WDLY/purchaseManage/subscribe_wdly",
|
|
|
- });
|
|
|
}
|
|
|
};
|
|
|
let queryData = reactive({
|
|
@@ -458,9 +554,11 @@ const getRecords = (_id) => {
|
|
|
onMounted(() => {
|
|
|
//processType 10 为修改 20为查看
|
|
|
if (route.query.processType == 10 || route.query.processType == 20) {
|
|
|
- proxy.post("/flowProcess/getStartData", { flowId: route.query.id }).then((res) => {
|
|
|
- queryData.data = { ...res };
|
|
|
- });
|
|
|
+ proxy
|
|
|
+ .post("/flowProcess/getStartData", { flowId: route.query.id })
|
|
|
+ .then((res) => {
|
|
|
+ queryData.data = { ...res };
|
|
|
+ });
|
|
|
} else {
|
|
|
queryData.data = { ...route.query };
|
|
|
}
|