cz 1 éve
szülő
commit
89859250ae

+ 29 - 0
src/components/process/EHSD/Purchase.vue

@@ -598,6 +598,34 @@ const formOption = reactive({
 const formConfig = computed(() => {
   return [
     {
+      type: "title",
+      title: "合同编号",
+      haveLine: false,
+      isShow: judgeStatus(),
+    },
+    {
+      type: "input",
+      itemType: "text",
+      label: "关联外销合同编号",
+      prop: "contractCode",
+      itemWidth: 50,
+      isShow: judgeStatus(),
+    },
+    {
+      type: "input",
+      itemType: "text",
+      label: "采购合同编号",
+      prop: "code",
+      itemWidth: 50,
+      isShow: judgeStatus(),
+    },
+    {
+      type: "title",
+      title: "买卖方信息",
+      haveLine: true,
+      isShow: judgeStatus(),
+    },
+    {
       type: "slot",
       slotName: "btn",
       label: "",
@@ -1265,6 +1293,7 @@ const getAssociationData = (type, id) => {
     if (type == 1) {
       auxiliaryData.value[0].label = "关联销售合同";
       proxy.post("/contract/detail", { id }).then((res) => {
+        formData.data.contractCode = res.code;
         contractData.value = [
           {
             contractCode: res.code,

+ 29 - 0
src/components/process/EHSD/PurchaseChange.vue

@@ -575,6 +575,34 @@ const formOption = reactive({
 const formConfig = computed(() => {
   return [
     {
+      type: "title",
+      title: "合同编号",
+      haveLine: false,
+      isShow: judgeStatus(),
+    },
+    {
+      type: "input",
+      itemType: "text",
+      label: "关联外销合同编号",
+      prop: "contractCode",
+      itemWidth: 50,
+      isShow: judgeStatus(),
+    },
+    {
+      type: "input",
+      itemType: "text",
+      label: "采购合同编号",
+      prop: "code",
+      itemWidth: 50,
+      isShow: judgeStatus(),
+    },
+    {
+      type: "title",
+      title: "买卖方信息",
+      haveLine: true,
+      isShow: judgeStatus(),
+    },
+    {
       type: "slot",
       slotName: "buyer",
       label: "买方信息",
@@ -1236,6 +1264,7 @@ const getAssociationData = (type, id) => {
     if (type == 1) {
       auxiliaryData.value[0].label = "关联销售合同";
       proxy.post("/contract/detail", { id }).then((res) => {
+        formData.data.contractCode = res.code;
         contractData.value = [
           {
             contractCode: res.code,