|
@@ -96,7 +96,7 @@
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
v-if="approvalRecordData.buttonInfoList.length == 0"
|
|
|
- @click="handleSubmit"
|
|
|
+ @click="handleSubmit()"
|
|
|
>提交</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -118,9 +118,18 @@
|
|
|
<li
|
|
|
v-for="item in recordList"
|
|
|
:key="item.id"
|
|
|
- :class="!route.query.id ? '' :
|
|
|
- item.status == 2 ? 'flow-orange' : item.status == 3 && !route.query.id ? 'flow-orange' : item.status == 3 && route.query.id ? 'flow-grey' : ''
|
|
|
- ">
|
|
|
+ :class="
|
|
|
+ !route.query.id
|
|
|
+ ? ''
|
|
|
+ : 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>
|
|
@@ -218,9 +227,7 @@ const router = useRouter();
|
|
|
const route = useRoute();
|
|
|
// tab切换逻辑
|
|
|
const activeName = ref("first");
|
|
|
-const handleClick = (tab, event) => {
|
|
|
- // console.log(tab, event);
|
|
|
-};
|
|
|
+const handleClick = (tab, event) => {};
|
|
|
// 意见表单
|
|
|
const flowForm = reactive({
|
|
|
flowKey: "",
|
|
@@ -263,7 +270,7 @@ const handleSubmit = async (_type) => {
|
|
|
if (flag) {
|
|
|
flowFormDom.value.validate((valid) => {
|
|
|
if (valid) {
|
|
|
- const data = { ...makeDom.value.submitData };
|
|
|
+ const data = makeDom.value.getFormData();
|
|
|
if (flowForm.flowKey == "subscribe_flow") {
|
|
|
data.subscribeDetailList = data.subscribeDetailList.map((x) => ({
|
|
|
bussinessId: x.bussinessId,
|
|
@@ -282,25 +289,29 @@ const handleSubmit = async (_type) => {
|
|
|
} else if (flowForm.flowKey == "sales_return_flow") {
|
|
|
} else if (flowForm.flowKey == "refund_flow") {
|
|
|
} else if (flowForm.flowKey == "wdly_apply_purchase") {
|
|
|
- data.subscribeDetailList = data.subscribeDetailList.map((x) => ({
|
|
|
- bussinessId: x.bussinessId,
|
|
|
- count: x.count,
|
|
|
- remark: x.remark,
|
|
|
- }));
|
|
|
+ // data.subscribeDetailList = data.subscribeDetailList.map((x) => ({
|
|
|
+ // bussinessId: x.bussinessId,
|
|
|
+ // count: x.count,
|
|
|
+ // remark: x.remark,
|
|
|
+ // }));
|
|
|
const victoriatouristJson = {
|
|
|
planArrivalTime: data.planArrivalTime,
|
|
|
receiptWarehouseId: data.receiptWarehouseId,
|
|
|
};
|
|
|
data.victoriatouristJson = JSON.stringify(victoriatouristJson);
|
|
|
} else if (flowForm.flowKey == "wdly_purchase") {
|
|
|
- data.purchaseDetailList = data.purchaseDetailList.map((x) => ({
|
|
|
- bussinessId: x.bussinessId,
|
|
|
- subscribeDetailId: x.id,
|
|
|
- count: x.count,
|
|
|
- price: x.price,
|
|
|
- amount: x.amount,
|
|
|
- deptId: x.deptId,
|
|
|
- }));
|
|
|
+ // data.purchaseDetailList = data.purchaseDetailList.map((x) => ({
|
|
|
+ // ...x,
|
|
|
+ // subscribeDetailId: x.id,
|
|
|
+ // }));
|
|
|
+ // data.purchaseDetailList = data.purchaseDetailList.map((x) => ({
|
|
|
+ // bussinessId: x.bussinessId,
|
|
|
+ // subscribeDetailId: x.id,
|
|
|
+ // count: x.count,
|
|
|
+ // price: x.price,
|
|
|
+ // amount: x.amount,
|
|
|
+ // deptId: x.deptId,
|
|
|
+ // }));
|
|
|
const victoriatouristJson = {
|
|
|
isAgreement: data.isAgreement,
|
|
|
paymentMethod: data.paymentMethod,
|
|
@@ -415,6 +426,14 @@ const handleSubmit = async (_type) => {
|
|
|
.then((res) => {
|
|
|
handleResult(res);
|
|
|
});
|
|
|
+ // if (_type && _type == 1) {
|
|
|
+ // proxy
|
|
|
+ // .post("/flowExample/setStartData", {
|
|
|
+ // exampleId: route.query.id,
|
|
|
+ // startDate: data,
|
|
|
+ // })
|
|
|
+ // .then();
|
|
|
+ // }
|
|
|
return;
|
|
|
} else {
|
|
|
proxy
|
|
@@ -441,7 +460,6 @@ const skipPage = () => {
|
|
|
});
|
|
|
} else {
|
|
|
const useTagsStore = useTagsViewStore();
|
|
|
- console.log(useTagsStore);
|
|
|
useTagsStore.delVisitedView(router.currentRoute.value);
|
|
|
ElMessage({
|
|
|
message: "操作成功!",
|
|
@@ -529,9 +547,8 @@ const getRecords = (_id) => {
|
|
|
id: _id,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
- console.log(res, "ass");
|
|
|
recordList.value = res.recordList;
|
|
|
- queryData.data.recordList = res.recordList
|
|
|
+ queryData.data.recordList = res.recordList;
|
|
|
approvalRecordData.value = res;
|
|
|
});
|
|
|
} else {
|
|
@@ -540,7 +557,6 @@ const getRecords = (_id) => {
|
|
|
flowKey: flowForm.flowKey,
|
|
|
})
|
|
|
.then((res) => {
|
|
|
- console.log(res, "ass");
|
|
|
recordList.value = res;
|
|
|
});
|
|
|
}
|