Ver Fonte

no message

linwenxin há 1 ano atrás
pai
commit
b7cd7dee2f
1 ficheiros alterados com 52 adições e 6 exclusões
  1. 52 6
      src/views/commercialEngineering/components/base.vue

+ 52 - 6
src/views/commercialEngineering/components/base.vue

@@ -103,8 +103,9 @@
           class="item"
         >
           <div class="label">甲方名称*:</div>
-          <div class="value">
-            <el-select v-model="formData.partyAId" placeholder="请选择" clearable filterable @change="handlePartyA">
+          <div class="value" @click="dialogVisible=true" style="cursor:pointer">
+            {{formData.partyA}}
+            <!-- <el-select v-model="formData.partyAId" placeholder="请选择" clearable filterable @change="handlePartyA">
               <el-option
                 v-for="item in commonData.PartyAList"
                 :key="item.value"
@@ -112,7 +113,8 @@
                 :value="item.value"
               />
             </el-select>
-            <CopyButton v-if="module !== 'add'" :copyText="getCopyText(commonData.PartyAList, formData.partyAId)" />
+            <CopyButton v-if="module !== 'add'" :copyText="getCopyText(commonData.PartyAList, formData.partyAId)" /> -->
+            <!-- dialogVisible -->
           </div>
         </el-col>
         <el-col
@@ -573,6 +575,24 @@
           </div>
         </el-col>
       </el-row>
+
+      <el-dialog
+        title="选择甲方"
+        :visible.sync="dialogVisible"
+        width="1000px"
+        :before-close="handleClose"
+        v-if="dialogVisible"
+        :append-to-body="true">
+        <div style="height:600px">
+          <template-page
+            ref="pageRef__"
+            :get-list="getList"
+            :operation="operation()"
+          >            
+          </template-page>
+        </div>
+      </el-dialog>
+
     </div>
   </div>
 </template>
@@ -586,11 +606,13 @@ import FileUpload from '@/components/Common/file-upload.vue'
 import { mapGetters } from 'vuex'
 import { getPositionProject, getHistory } from '@/api/frock'
 import { getDealerListV3 } from '@/api/basic_data/dealer'
-
+import TemplatePage from '@/components/template/template-page-1.vue'
+import { getFirstPartyCustomerManagementList } from '@/api/basic_data/partya'
 export default {
   components: {
     FileUpload,
-    GeographicalPosi
+    GeographicalPosi,
+    TemplatePage
   },
   props: {
     // 标题
@@ -653,7 +675,8 @@ export default {
         '1608756898412228610': '三沙市',
         '1608757977963163649': '嘉峪关市'
       },
-      loading: false
+      loading: false,
+      dialogVisible: false
     }
   },
   computed: {
@@ -747,6 +770,29 @@ export default {
     }
   },
   methods: {
+    getList: getFirstPartyCustomerManagementList,
+    handleClose(){
+      this.dialogVisible = false
+    },
+    operation() {
+      return (h, { row, index, column }) => {
+        return (
+          <div class="operation-btns">
+            <el-button
+              size="mini"
+              type="text"
+              onClick={() => {
+                this.formData.partyA = row.name
+                this.formData.partyAId = row.id
+                this.dialogVisible = false
+              }}
+            >
+              确定选中
+            </el-button>
+          </div>
+        )
+      }
+    },
     initTradeData(e) {
       if (e === 'HOME') {
         this.getTradeConfigList()