|
@@ -13,10 +13,12 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<!-- 销售合同 -->
|
|
<!-- 销售合同 -->
|
|
- <Contract ref="makeDom" :queryData="queryData.data" v-else-if="flowForm.flowKey == 'contract_flow'"></Contract>
|
|
|
|
|
|
+ <Contract ref="makeDom" :queryData="queryData.data" v-else-if="flowForm.flowKey == 'contract_flow' || flowForm.flowKey == 'sample_flow'">
|
|
|
|
+ </Contract>
|
|
|
|
|
|
<!-- 销售合同变更 -->
|
|
<!-- 销售合同变更 -->
|
|
- <ContractChange ref="makeDom" :queryData="queryData.data" v-else-if="flowForm.flowKey == 'contract_update_flow'"></ContractChange>
|
|
|
|
|
|
+ <ContractChange ref="makeDom" :queryData="queryData.data"
|
|
|
|
+ v-else-if="flowForm.flowKey == 'contract_update_flow' || flowForm.flowKey == 'sample_update_flow' "></ContractChange>
|
|
|
|
|
|
<!-- 申购 -->
|
|
<!-- 申购 -->
|
|
<Subscribe ref="makeDom" :queryData="queryData.data" v-else-if="flowForm.flowKey == 'subscribe_flow'"></Subscribe>
|
|
<Subscribe ref="makeDom" :queryData="queryData.data" v-else-if="flowForm.flowKey == 'subscribe_flow'"></Subscribe>
|
|
@@ -251,122 +253,6 @@ const handleSubmit = async (_type) => {
|
|
btnLoading.value = true;
|
|
btnLoading.value = true;
|
|
if (valid) {
|
|
if (valid) {
|
|
const data = { ...makeDom.value.getFormData() };
|
|
const data = { ...makeDom.value.getFormData() };
|
|
- if (flowForm.flowKey == "subscribe_flow") {
|
|
|
|
- } else if (flowForm.flowKey == "account_request_funds_flow") {
|
|
|
|
- } else if (flowForm.flowKey == "sale_quotation_flow") {
|
|
|
|
- } else if (flowForm.flowKey == "contract_flow") {
|
|
|
|
- } else if (flowForm.flowKey == "contract_update_flow") {
|
|
|
|
- data.dataJson = JSON.stringify(proxy.deepClone(data));
|
|
|
|
- if (data.fileList && data.fileList.length > 0) {
|
|
|
|
- data.fileList = data.fileList.map((item) => {
|
|
|
|
- return {
|
|
|
|
- id: item.raw.id,
|
|
|
|
- fileName: item.raw.fileName,
|
|
|
|
- fileUrl: item.raw.fileUrl,
|
|
|
|
- };
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- data.fileList = [];
|
|
|
|
- }
|
|
|
|
- if (data.packageFileList && data.packageFileList.length > 0) {
|
|
|
|
- data.packageFileList = data.packageFileList.map((item) => {
|
|
|
|
- return {
|
|
|
|
- id: item.raw.id,
|
|
|
|
- fileName: item.raw.fileName,
|
|
|
|
- fileUrl: item.raw.fileUrl,
|
|
|
|
- };
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- data.packageFileList = [];
|
|
|
|
- }
|
|
|
|
- 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,
|
|
|
|
- };
|
|
|
|
- });
|
|
|
|
- } else if (flowForm.flowKey == "sample_flow") {
|
|
|
|
- data.dataJson = JSON.stringify(proxy.deepClone(data));
|
|
|
|
- if (data.fileList && data.fileList.length > 0) {
|
|
|
|
- data.fileList = data.fileList.map((item) => {
|
|
|
|
- return {
|
|
|
|
- id: item.raw.id,
|
|
|
|
- fileName: item.raw.fileName,
|
|
|
|
- fileUrl: item.raw.fileUrl,
|
|
|
|
- };
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- data.fileList = [];
|
|
|
|
- }
|
|
|
|
- if (data.packageFileList && data.packageFileList.length > 0) {
|
|
|
|
- data.packageFileList = data.packageFileList.map((item) => {
|
|
|
|
- return {
|
|
|
|
- id: item.raw.id,
|
|
|
|
- fileName: item.raw.fileName,
|
|
|
|
- fileUrl: item.raw.fileUrl,
|
|
|
|
- };
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- data.packageFileList = [];
|
|
|
|
- }
|
|
|
|
- data.ehsdJson = JSON.stringify({
|
|
|
|
- deliveryTime: data.deliveryTime,
|
|
|
|
- });
|
|
|
|
- data.sampleProductList = data.sampleProductList.map((item) => {
|
|
|
|
- let ehsdJson = JSON.stringify({
|
|
|
|
- packMethod: item.packMethod,
|
|
|
|
- tradeMethods: item.tradeMethods,
|
|
|
|
- });
|
|
|
|
- return {
|
|
|
|
- ...item,
|
|
|
|
- ehsdJson: ehsdJson,
|
|
|
|
- };
|
|
|
|
- });
|
|
|
|
- } else if (flowForm.flowKey == "sample_update_flow") {
|
|
|
|
- data.dataJson = JSON.stringify(proxy.deepClone(data));
|
|
|
|
- if (data.fileList && data.fileList.length > 0) {
|
|
|
|
- data.fileList = data.fileList.map((item) => {
|
|
|
|
- return {
|
|
|
|
- id: item.raw.id,
|
|
|
|
- fileName: item.raw.fileName,
|
|
|
|
- fileUrl: item.raw.fileUrl,
|
|
|
|
- };
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- data.fileList = [];
|
|
|
|
- }
|
|
|
|
- if (data.packageFileList && data.packageFileList.length > 0) {
|
|
|
|
- data.packageFileList = data.packageFileList.map((item) => {
|
|
|
|
- return {
|
|
|
|
- id: item.raw.id,
|
|
|
|
- fileName: item.raw.fileName,
|
|
|
|
- fileUrl: item.raw.fileUrl,
|
|
|
|
- };
|
|
|
|
- });
|
|
|
|
- } else {
|
|
|
|
- data.packageFileList = [];
|
|
|
|
- }
|
|
|
|
- data.ehsdJson = JSON.stringify({
|
|
|
|
- deliveryTime: data.deliveryTime,
|
|
|
|
- });
|
|
|
|
- data.sampleProductList = data.sampleProductList.map((item) => {
|
|
|
|
- let ehsdJson = JSON.stringify({
|
|
|
|
- packMethod: item.packMethod,
|
|
|
|
- tradeMethods: item.tradeMethods,
|
|
|
|
- });
|
|
|
|
- return {
|
|
|
|
- ...item,
|
|
|
|
- ehsdJson: ehsdJson,
|
|
|
|
- };
|
|
|
|
- });
|
|
|
|
- }
|
|
|
|
flowForm.fileList = flowForm.fileList.map((item) => {
|
|
flowForm.fileList = flowForm.fileList.map((item) => {
|
|
return {
|
|
return {
|
|
...item,
|
|
...item,
|
|
@@ -429,6 +315,8 @@ const skipPage = () => {
|
|
subscribe_flow: "Subscribe",
|
|
subscribe_flow: "Subscribe",
|
|
contract_flow: "Contract",
|
|
contract_flow: "Contract",
|
|
contract_update_flow: "Contract",
|
|
contract_update_flow: "Contract",
|
|
|
|
+ sample_flow: "ContractSample",
|
|
|
|
+ sample_update_flow: "ContractSample",
|
|
sale_quotation_flow: "Quotation",
|
|
sale_quotation_flow: "Quotation",
|
|
purchase_update_flow: "Purchased",
|
|
purchase_update_flow: "Purchased",
|
|
purchase_flow: "Purchase",
|
|
purchase_flow: "Purchase",
|