|
@@ -2,9 +2,9 @@
|
|
|
<div class="form">
|
|
|
<van-tabs v-model:active="active">
|
|
|
<van-tab :title="proxy.t('contract.transactionInformation')" />
|
|
|
- <van-tab title="付款信息" />
|
|
|
+ <van-tab title="收款信息" />
|
|
|
<van-tab :title="proxy.t('contract.commodityInformation')" />
|
|
|
- <van-tab :title="proxy.t('contract.otherCharges')" />
|
|
|
+ <van-tab :title="'订单总金额'" />
|
|
|
|
|
|
<div class="common-process-card" v-show="active == 0">
|
|
|
|
|
@@ -26,7 +26,7 @@
|
|
|
<template #input>
|
|
|
<div class="_title">
|
|
|
<div class="line"></div>
|
|
|
- <div> 付款信息</div>
|
|
|
+ <div> 收款信息</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
</van-field>
|
|
@@ -53,16 +53,16 @@
|
|
|
<div class="line"></div>
|
|
|
<div> 其他收费</div>
|
|
|
</div> -->
|
|
|
- <van-field style="border-bottom:1px solid #0084ff;width:45%">
|
|
|
+ <!-- <van-field style="border-bottom:1px solid #0084ff;width:45%">
|
|
|
<template #input>
|
|
|
<div class="_title">
|
|
|
<div class="line"></div>
|
|
|
<div> 其他收费</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
- </van-field>
|
|
|
- <testForm v-model="formData.data" :formOption="formProjectOption" :formConfig="formEmptyConfig" :rules="rules" ref="formDom4">
|
|
|
- </testForm>
|
|
|
+ </van-field> -->
|
|
|
+ <!-- <testForm v-model="formData.data" :formOption="formProjectOption" :formConfig="formEmptyConfig" :rules="rules" ref="formDom4">
|
|
|
+ </testForm> -->
|
|
|
<testForm v-model="formData.data" :formOption="formOption" :formConfig="formAmountProjectConfig" :rules="rules" ref="formDom5">
|
|
|
<template #templateContent>
|
|
|
<div style="width:100%">
|
|
@@ -134,7 +134,7 @@ const formConfigCode = reactive([
|
|
|
},
|
|
|
{
|
|
|
type: "input",
|
|
|
- label: "合同号",
|
|
|
+ label: "订单号",
|
|
|
prop: "code",
|
|
|
itemType: "text",
|
|
|
readonly: true,
|
|
@@ -182,17 +182,38 @@ const formConfigCode = reactive([
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
+ // {
|
|
|
+ // type: "cascader",
|
|
|
+ // label: "工厂",
|
|
|
+ // prop: "companyId",
|
|
|
+ // itemType: "common",
|
|
|
+ // showPicker: false,
|
|
|
+ // fieldNames: {
|
|
|
+ // text: "deptName",
|
|
|
+ // value: "deptId",
|
|
|
+ // },
|
|
|
+ // data: [],
|
|
|
+ // },
|
|
|
{
|
|
|
- type: "cascader",
|
|
|
- label: "工厂",
|
|
|
- prop: "companyId",
|
|
|
- itemType: "common",
|
|
|
+ type: "picker",
|
|
|
+ label: "订单处理方式",
|
|
|
+ prop: "processingMethod",
|
|
|
+ itemType: "onePicker",
|
|
|
showPicker: false,
|
|
|
fieldNames: {
|
|
|
- text: "deptName",
|
|
|
- value: "deptId",
|
|
|
+ text: "dictValue",
|
|
|
+ value: "dictKey",
|
|
|
},
|
|
|
- data: [],
|
|
|
+ data: [
|
|
|
+ {
|
|
|
+ dictKey: 10,
|
|
|
+ dictValue: "业务自采",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ dictKey: 20,
|
|
|
+ dictValue: "生产处理",
|
|
|
+ },
|
|
|
+ ],
|
|
|
},
|
|
|
{
|
|
|
type: "picker",
|
|
@@ -217,6 +238,37 @@ const formConfigCode = reactive([
|
|
|
},
|
|
|
{
|
|
|
type: "picker",
|
|
|
+ label: "订单渠道",
|
|
|
+ prop: "contractChannel",
|
|
|
+ itemType: "onePicker",
|
|
|
+ showPicker: false,
|
|
|
+ fieldNames: {
|
|
|
+ text: "dictValue",
|
|
|
+ value: "dictKey",
|
|
|
+ },
|
|
|
+ data: [],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
+ label: "渠道订单编号",
|
|
|
+ prop: "channelCode",
|
|
|
+ itemType: "text",
|
|
|
+ readonly: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "picker",
|
|
|
+ label: "业务员",
|
|
|
+ prop: "salesmanId",
|
|
|
+ itemType: "onePicker",
|
|
|
+ showPicker: false,
|
|
|
+ fieldNames: {
|
|
|
+ text: "text",
|
|
|
+ value: "value",
|
|
|
+ },
|
|
|
+ data: [],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "picker",
|
|
|
label: "跟单员",
|
|
|
prop: "merchUserId",
|
|
|
itemType: "onePicker",
|
|
@@ -389,26 +441,6 @@ const formConfig = reactive([
|
|
|
},
|
|
|
]);
|
|
|
const formConfigOne = reactive([
|
|
|
- // {
|
|
|
- // type: "picker",
|
|
|
- // label: "币种",
|
|
|
- // prop: "currency",
|
|
|
- // itemType: "onePicker",
|
|
|
- // showPicker: false,
|
|
|
- // fieldNames: {
|
|
|
- // text: "label",
|
|
|
- // value: "value",
|
|
|
- // },
|
|
|
- // data: [],
|
|
|
- // readonly: false,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // type: "input",
|
|
|
- // label: "汇率",
|
|
|
- // prop: "rate",
|
|
|
- // itemType: "number",
|
|
|
- // readonly: false,
|
|
|
- // },
|
|
|
{
|
|
|
type: "picker",
|
|
|
label: "是否含税",
|
|
@@ -433,6 +465,19 @@ const formConfigOne = reactive([
|
|
|
},
|
|
|
{
|
|
|
type: "picker",
|
|
|
+ label: "税点",
|
|
|
+ prop: "taxPoints",
|
|
|
+ itemType: "onePicker",
|
|
|
+ showPicker: false,
|
|
|
+ fieldNames: {
|
|
|
+ text: "dictValue",
|
|
|
+ value: "dictKey",
|
|
|
+ },
|
|
|
+ data: [],
|
|
|
+ readonly: false,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "picker",
|
|
|
label: "是否含运费",
|
|
|
prop: "isFreight",
|
|
|
itemType: "onePicker",
|
|
@@ -455,32 +500,53 @@ const formConfigOne = reactive([
|
|
|
},
|
|
|
{
|
|
|
type: "picker",
|
|
|
- label: "付款方式",
|
|
|
- prop: "paymentMethod",
|
|
|
+ label: "客户结算方式",
|
|
|
+ prop: "settlementMethod",
|
|
|
itemType: "onePicker",
|
|
|
showPicker: false,
|
|
|
fieldNames: {
|
|
|
- text: "label",
|
|
|
- value: "value",
|
|
|
+ text: "dictValue",
|
|
|
+ value: "dictKey",
|
|
|
},
|
|
|
data: [],
|
|
|
readonly: false,
|
|
|
},
|
|
|
{
|
|
|
- type: "input",
|
|
|
- label: "预付款比例(%)",
|
|
|
- prop: "advanceRatio",
|
|
|
- itemType: "number",
|
|
|
+ type: "picker",
|
|
|
+ label: "客户付款方式",
|
|
|
+ prop: "paymentMethod",
|
|
|
+ itemType: "onePicker",
|
|
|
+ showPicker: false,
|
|
|
+ fieldNames: {
|
|
|
+ text: "dictValue",
|
|
|
+ value: "dictKey",
|
|
|
+ },
|
|
|
+ data: [],
|
|
|
readonly: false,
|
|
|
},
|
|
|
{
|
|
|
type: "input",
|
|
|
- label: "付款条件",
|
|
|
- prop: "remark",
|
|
|
- itemType: "textarea",
|
|
|
+ label: "阿里巴巴订单编号",
|
|
|
+ prop: "alibabaCode",
|
|
|
+ itemType: "text",
|
|
|
+ readonly: true,
|
|
|
},
|
|
|
{
|
|
|
type: "picker",
|
|
|
+ label: "1688店铺名称",
|
|
|
+ prop: "alibabaShopName",
|
|
|
+ itemType: "onePicker",
|
|
|
+ showPicker: false,
|
|
|
+ fieldNames: {
|
|
|
+ text: "label",
|
|
|
+ value: "value",
|
|
|
+ },
|
|
|
+ data: [],
|
|
|
+ readonly: false,
|
|
|
+ },
|
|
|
+
|
|
|
+ {
|
|
|
+ type: "picker",
|
|
|
label: "收款账号",
|
|
|
prop: "shroffAccountId",
|
|
|
itemType: "onePicker",
|
|
@@ -524,50 +590,42 @@ const formConfigOne = reactive([
|
|
|
prop: "accountOpening",
|
|
|
itemType: "text",
|
|
|
},
|
|
|
- // {
|
|
|
- // type: "input",
|
|
|
- // label: "Beneficiary Name",
|
|
|
- // prop: "beneficiaryName",
|
|
|
- // itemType: "text",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // type: "input",
|
|
|
- // label: "Beneficiary Account Number",
|
|
|
- // prop: "beneficiaryAccountNumber",
|
|
|
- // itemType: "text",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // type: "input",
|
|
|
- // label: "Beneficiary Bank",
|
|
|
- // prop: "beneficiaryBank",
|
|
|
- // itemType: "text",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // type: "input",
|
|
|
- // label: "Swift Code",
|
|
|
- // prop: "swiftCode",
|
|
|
- // itemType: "text",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // type: "input",
|
|
|
- // label: "Beneficiary Bank Address",
|
|
|
- // prop: "beneficiaryBankAddress",
|
|
|
- // itemType: "text",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // type: "input",
|
|
|
- // label: "Beneficiary Address",
|
|
|
- // prop: "beneficiaryAddress",
|
|
|
- // itemType: "text",
|
|
|
- // },
|
|
|
+
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
+ label: "其他收款方式备注说明",
|
|
|
+ prop: "remark",
|
|
|
+ itemType: "textarea",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
+ label: "定金比例(%)",
|
|
|
+ prop: "advanceRatio",
|
|
|
+ itemType: "number",
|
|
|
+ readonly: false,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
+ label: "出货前付款比例",
|
|
|
+ prop: "beforeShipmentRatio",
|
|
|
+ itemType: "number",
|
|
|
+ readonly: false,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
+ label: "出货后付款比例",
|
|
|
+ prop: "afterShipmentRatio",
|
|
|
+ itemType: "number",
|
|
|
+ readonly: false,
|
|
|
+ },
|
|
|
{
|
|
|
type: "title",
|
|
|
title: "交付信息",
|
|
|
},
|
|
|
{
|
|
|
type: "picker",
|
|
|
- label: "交货期限",
|
|
|
- prop: "deliveryTime",
|
|
|
+ label: "销售日期",
|
|
|
+ prop: "saleDate",
|
|
|
itemType: "datePicker",
|
|
|
showPicker: false,
|
|
|
split: "-",
|
|
@@ -575,23 +633,13 @@ const formConfigOne = reactive([
|
|
|
},
|
|
|
{
|
|
|
type: "picker",
|
|
|
- label: "运输方式",
|
|
|
- prop: "transportMethod",
|
|
|
- itemType: "onePicker",
|
|
|
+ label: "交货期限",
|
|
|
+ prop: "deliveryTime",
|
|
|
+ itemType: "datePicker",
|
|
|
showPicker: false,
|
|
|
- fieldNames: {
|
|
|
- text: "label",
|
|
|
- value: "value",
|
|
|
- },
|
|
|
- data: [],
|
|
|
- readonly: false,
|
|
|
+ split: "-",
|
|
|
+ columnsType: ["year", "month", "day"],
|
|
|
},
|
|
|
- // {
|
|
|
- // type: "input",
|
|
|
- // label: "运输说明",
|
|
|
- // prop: "transportRemark",
|
|
|
- // itemType: "text",
|
|
|
- // },
|
|
|
]);
|
|
|
const formGoodsOption = reactive({
|
|
|
readonly: false,
|
|
@@ -618,70 +666,6 @@ const formGoodsOption = reactive({
|
|
|
value: "id",
|
|
|
},
|
|
|
data: [],
|
|
|
- changeFn: (val, data, index, indexTwo, propName) => {
|
|
|
- let selectList = formData.data[propName].filter(
|
|
|
- (item, itemIndex) =>
|
|
|
- item[data.prop] === val.selectedValues[0] && itemIndex !== index
|
|
|
- );
|
|
|
- if (selectList && selectList.length > 0) {
|
|
|
- return showFailToast(proxy.t("contract.productRepeat"));
|
|
|
- }
|
|
|
- formData.data[propName][index][data.prop] = val.selectedValues[0];
|
|
|
- formData.data.contractShipmentList[index][data.prop] =
|
|
|
- val.selectedValues[0];
|
|
|
- let list = data.data.filter(
|
|
|
- (item) => item[data.fieldNames.value] == val.selectedValues[0]
|
|
|
- );
|
|
|
- if (list && list.length > 0) {
|
|
|
- formData.data[propName][index][data.prop + "Name"] =
|
|
|
- list[0][data.fieldNames.text];
|
|
|
- if (list[0].ehsdJson) {
|
|
|
- let ehsdJson = JSON.parse(list[0].ehsdJson);
|
|
|
- if (ehsdJson) {
|
|
|
- formData.data[propName][index].productName =
|
|
|
- ehsdJson.nameEnglish || "";
|
|
|
- formData.data.contractShipmentList[index].productName =
|
|
|
- ehsdJson.nameEnglish || list[0][data.fieldNames.text];
|
|
|
- formData.data.contractShipmentList[index].productCode =
|
|
|
- list[0].code;
|
|
|
- formData.data[propName][index].productModel =
|
|
|
- ehsdJson.productLong +
|
|
|
- "*" +
|
|
|
- ehsdJson.productWide +
|
|
|
- "*" +
|
|
|
- ehsdJson.productHigh;
|
|
|
- // 包装方式
|
|
|
- let str = "";
|
|
|
- let strOne = "";
|
|
|
- if (ehsdJson.innerPackMethod) {
|
|
|
- let innerPackMethodArr = ehsdJson.innerPackMethod.split(",");
|
|
|
- innerPackMethodArr = innerPackMethodArr.map((x) =>
|
|
|
- proxy.dictValueLabel(x, innerMethod.value)
|
|
|
- );
|
|
|
- str += innerPackMethodArr.join(",");
|
|
|
- }
|
|
|
- if (ehsdJson.outerPackMethod) {
|
|
|
- let outerPackMethodArr = ehsdJson.outerPackMethod.split(",");
|
|
|
- outerPackMethodArr = outerPackMethodArr.map((x) =>
|
|
|
- proxy.dictValueLabel(x, outsideMethod.value)
|
|
|
- );
|
|
|
- strOne += outerPackMethodArr.join(",");
|
|
|
- }
|
|
|
- formData.data[propName][index].packMethod = str + "," + strOne;
|
|
|
- }
|
|
|
- }
|
|
|
- } else {
|
|
|
- formData.data[propName][index][data.prop + "Name"] = "";
|
|
|
- }
|
|
|
- formData.data[propName][index].quantity = null;
|
|
|
- formData.data[propName][index].price = null;
|
|
|
- formData.data[propName][index].amount = null;
|
|
|
- formData.data[propName][index].remark = null;
|
|
|
- formData.data.contractShipmentList[index].shipmentTime = null;
|
|
|
- formData.data.contractShipmentList[index].quantity = null;
|
|
|
- formData.data.contractShipmentList[index].remark = null;
|
|
|
- data.showPicker = false;
|
|
|
- },
|
|
|
},
|
|
|
{
|
|
|
type: "input",
|
|
@@ -697,6 +681,37 @@ const formGoodsOption = reactive({
|
|
|
},
|
|
|
{
|
|
|
type: "input",
|
|
|
+ label: "颜色",
|
|
|
+ prop: "productColor",
|
|
|
+ itemType: "text",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "picker",
|
|
|
+ label: "纹路",
|
|
|
+ prop: "productFrontalTexture",
|
|
|
+ itemType: "onePicker",
|
|
|
+ showPicker: false,
|
|
|
+ readonly: false,
|
|
|
+ fieldNames: {
|
|
|
+ text: "dictValue",
|
|
|
+ value: "dictKey",
|
|
|
+ },
|
|
|
+ data: [],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
+ label: "净重",
|
|
|
+ prop: "productNetWeight",
|
|
|
+ itemType: "text",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
+ label: "单位",
|
|
|
+ prop: "productUnit",
|
|
|
+ itemType: "text",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
label: "数量",
|
|
|
prop: "quantity",
|
|
|
itemType: "number",
|
|
@@ -715,7 +730,14 @@ const formGoodsOption = reactive({
|
|
|
},
|
|
|
{
|
|
|
type: "input",
|
|
|
- label: "金额",
|
|
|
+ label: "业务供货价",
|
|
|
+ prop: "businessCostPrice",
|
|
|
+ itemType: "number",
|
|
|
+ changeFn: () => {},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
+ label: "小计",
|
|
|
prop: "amount",
|
|
|
itemType: "number",
|
|
|
changeFn: () => {
|
|
@@ -724,6 +746,13 @@ const formGoodsOption = reactive({
|
|
|
},
|
|
|
{
|
|
|
type: "input",
|
|
|
+ label: "业务小计",
|
|
|
+ prop: "amountTwo",
|
|
|
+ itemType: "number",
|
|
|
+ changeFn: () => {},
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
label: "备注",
|
|
|
prop: "remark",
|
|
|
itemType: "textarea",
|
|
@@ -787,11 +816,36 @@ const formEmptyConfig = reactive([]);
|
|
|
const formAmountProjectConfig = reactive([
|
|
|
{
|
|
|
type: "title",
|
|
|
- title: "合同模板",
|
|
|
+ title: "订单总金额",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
+ label: "订单总金额",
|
|
|
+ prop: "amount",
|
|
|
+ itemType: "text",
|
|
|
+ readonly: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
+ label: "业务总⾦额",
|
|
|
+ prop: "factoryAmount",
|
|
|
+ itemType: "text",
|
|
|
+ readonly: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "input",
|
|
|
+ label: "合计⽑利",
|
|
|
+ prop: "grossProfit",
|
|
|
+ itemType: "text",
|
|
|
+ readonly: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ type: "title",
|
|
|
+ title: "合同条款",
|
|
|
},
|
|
|
{
|
|
|
type: "picker",
|
|
|
- label: "合同模板",
|
|
|
+ label: "合同条款",
|
|
|
prop: "contractTemplateId",
|
|
|
itemType: "onePicker",
|
|
|
showPicker: false,
|
|
@@ -807,17 +861,6 @@ const formAmountProjectConfig = reactive([
|
|
|
slotName: "templateContent",
|
|
|
label: "模板内容",
|
|
|
},
|
|
|
- {
|
|
|
- type: "title",
|
|
|
- title: "合同总金额",
|
|
|
- },
|
|
|
- {
|
|
|
- type: "input",
|
|
|
- label: "合同总金额",
|
|
|
- prop: "amount",
|
|
|
- itemType: "text",
|
|
|
- readonly: true,
|
|
|
- },
|
|
|
]);
|
|
|
const formProjectOption = reactive({
|
|
|
readonly: false,
|
|
@@ -977,13 +1020,22 @@ const getDict = () => {
|
|
|
tenantId: getUserInfo().tenantId,
|
|
|
};
|
|
|
|
|
|
+ // proxy
|
|
|
+ // .get("/tenantDept/list", {
|
|
|
+ // ...query,
|
|
|
+ // type: 0,
|
|
|
+ // })
|
|
|
+ // .then((res) => {
|
|
|
+ // formConfigCode[5].data = proxy.handleTree(res.data, "deptId");
|
|
|
+ // });
|
|
|
+
|
|
|
+ // 订单渠道
|
|
|
proxy
|
|
|
- .get("/tenantDept/list", {
|
|
|
- ...query,
|
|
|
- type: 0,
|
|
|
- })
|
|
|
+ .post("/dictTenantData/page", { ...query, dictCode: "contract_channel" })
|
|
|
.then((res) => {
|
|
|
- formConfigCode[5].data = proxy.handleTree(res.data, "deptId");
|
|
|
+ if (res.data.rows && res.data.rows.length > 0) {
|
|
|
+ formConfigCode[7].data = res.data.rows;
|
|
|
+ }
|
|
|
});
|
|
|
|
|
|
proxy
|
|
@@ -994,7 +1046,13 @@ const getDict = () => {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.rows && res.rows.length > 0) {
|
|
|
- formConfigCode[7].data = res.rows.map((item) => {
|
|
|
+ formConfigCode[9].data = res.rows.map((item) => {
|
|
|
+ return {
|
|
|
+ text: item.nickName,
|
|
|
+ value: item.userId,
|
|
|
+ };
|
|
|
+ });
|
|
|
+ formConfigCode[10].data = res.rows.map((item) => {
|
|
|
return {
|
|
|
text: item.nickName,
|
|
|
value: item.userId,
|
|
@@ -1038,20 +1096,34 @@ const getDict = () => {
|
|
|
.then((res) => {
|
|
|
formGoodsOption.btnConfig.listConfig[0].data = res.data.rows;
|
|
|
});
|
|
|
+ // 纹路
|
|
|
+
|
|
|
+ proxy
|
|
|
+ .post("/dictTenantData/page", { ...query, dictCode: "front_lines" })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data.rows && res.data.rows.length > 0) {
|
|
|
+ formGoodsOption.btnConfig.listConfig[4].data = res.data.rows;
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ // 税点
|
|
|
+ proxy
|
|
|
+ .post("/dictTenantData/page", { ...query, dictCode: "tax_points" })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data.rows && res.data.rows.length > 0) {
|
|
|
+ formConfigOne[1].data = res.data.rows;
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ // 结算方式
|
|
|
+ proxy
|
|
|
+ .post("/dictTenantData/page", { ...query, dictCode: "settlement_way" })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data.rows && res.data.rows.length > 0) {
|
|
|
+ formConfigOne[3].data = res.data.rows;
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
- // 币种
|
|
|
- // proxy
|
|
|
- // .post("/dictTenantData/page", { ...query, dictCode: "account_currency" })
|
|
|
- // .then((res) => {
|
|
|
- // if (res.data.rows && res.data.rows.length > 0) {
|
|
|
- // formConfigOne[0].data = res.data.rows.map((item) => {
|
|
|
- // return {
|
|
|
- // label: item.dictValue,
|
|
|
- // value: item.dictKey,
|
|
|
- // };
|
|
|
- // });
|
|
|
- // }
|
|
|
- // });
|
|
|
// 付款方式
|
|
|
proxy
|
|
|
.post("/dictTenantData/page", {
|
|
@@ -1060,21 +1132,27 @@ const getDict = () => {
|
|
|
})
|
|
|
.then((res) => {
|
|
|
if (res.data.rows && res.data.rows.length > 0) {
|
|
|
- formConfigOne[2].data = res.data.rows.map((item) => {
|
|
|
- return {
|
|
|
- label: item.dictValue,
|
|
|
- value: item.dictKey,
|
|
|
- };
|
|
|
- });
|
|
|
+ formConfigOne[4].data = res.data.rows;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+ // 店铺名称
|
|
|
+ proxy
|
|
|
+ .post("/dictTenantData/page", {
|
|
|
+ ...query,
|
|
|
+ dictCode: "shop_name",
|
|
|
+ })
|
|
|
+ .then((res) => {
|
|
|
+ if (res.data.rows && res.data.rows.length > 0) {
|
|
|
+ formConfigOne[6].data = res.data.rows;
|
|
|
+ }
|
|
|
+ });
|
|
|
// 账户
|
|
|
proxy
|
|
|
.post("/accountManagement/page", { pageNum: 1, pageSize: 999 })
|
|
|
.then((res) => {
|
|
|
if (res.data.rows && res.data.rows.length > 0) {
|
|
|
- formConfigOne[5].data = res.data.rows.map((item) => {
|
|
|
+ formConfigOne[7].data = res.data.rows.map((item) => {
|
|
|
return {
|
|
|
...item,
|
|
|
label: item.alias,
|
|
@@ -1084,23 +1162,7 @@ const getDict = () => {
|
|
|
}
|
|
|
});
|
|
|
|
|
|
- // 运输方式
|
|
|
- proxy
|
|
|
- .post("/dictTenantData/page", {
|
|
|
- ...query,
|
|
|
- dictCode: "shipping_method",
|
|
|
- })
|
|
|
- .then((res) => {
|
|
|
- if (res.data.rows && res.data.rows.length > 0) {
|
|
|
- formConfigOne[11].data = res.data.rows.map((item) => {
|
|
|
- return {
|
|
|
- label: item.dictValue,
|
|
|
- value: item.dictKey,
|
|
|
- };
|
|
|
- });
|
|
|
- }
|
|
|
- });
|
|
|
- // 合同模板
|
|
|
+ // 合同条款
|
|
|
proxy
|
|
|
.post("/contractTemplate/page", {
|
|
|
pageNum: 1,
|
|
@@ -1108,7 +1170,7 @@ const getDict = () => {
|
|
|
templateType: "1",
|
|
|
})
|
|
|
.then((res) => {
|
|
|
- formAmountProjectConfig[1].data = res.data.rows.map((x) => ({
|
|
|
+ formAmountProjectConfig[5].data = res.data.rows.map((x) => ({
|
|
|
label: x.templateName,
|
|
|
value: x.id,
|
|
|
}));
|
|
@@ -1231,14 +1293,7 @@ const handleSubmit = async () => {
|
|
|
active.value = 2;
|
|
|
return false;
|
|
|
} else {
|
|
|
- return formDom6.value.validateForm().then((status3) => {
|
|
|
- if (status3) {
|
|
|
- active.value = 3;
|
|
|
- return false;
|
|
|
- } else {
|
|
|
- return true;
|
|
|
- }
|
|
|
- });
|
|
|
+ return true;
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -1246,6 +1301,18 @@ const handleSubmit = async () => {
|
|
|
}
|
|
|
});
|
|
|
if (flag) {
|
|
|
+ formData.data.contractProductList = formData.data.contractProductList.map(
|
|
|
+ (item) => {
|
|
|
+ let ehsdJson = JSON.stringify({
|
|
|
+ packMethod: item.packMethod,
|
|
|
+ tradeMethods: item.tradeMethods,
|
|
|
+ });
|
|
|
+ return {
|
|
|
+ ...item,
|
|
|
+ ehsdJson: ehsdJson,
|
|
|
+ };
|
|
|
+ }
|
|
|
+ );
|
|
|
return formData.data;
|
|
|
}
|
|
|
};
|
|
@@ -1254,6 +1321,7 @@ onMounted(() => {
|
|
|
if (route.query && route.query.businessId) {
|
|
|
let businessId = route.query.businessId;
|
|
|
proxy.post("/contract/detail", { id: businessId }).then((res) => {
|
|
|
+ res.data.isTax = res.data.isTax + "";
|
|
|
res.data.countryId = res.data.buyCountryId;
|
|
|
res.data.provinceId = res.data.buyProvinceId;
|
|
|
res.data.cityId = res.data.buyCityId;
|