D4THYL3\long 2 лет назад
Родитель
Сommit
1fcad1fbd8

+ 4 - 4
operationSupport/src/views/businessManagement/opportunityManagement/index.vue

@@ -146,7 +146,7 @@ export default {
     };
   },
   created () {
-    this.mixins_dataUrl = '/sc-community/business/page';
+    this.mixins_dataUrl = '/sc-community-web/business/page';
     this.mixins_query = {};
     this.mixins_search();
     this.getUserList();
@@ -169,8 +169,8 @@ export default {
       new Promise((resolve) => {
         this.$store.dispatch('addPopup', {
           url: '/businessManagement/opportunityManagement/setpPage/add.vue',
-          width: '665px',
-          height: '700px',
+          width: '980px',
+          height: '600px',
           props: {
             todo,
             data,
@@ -203,7 +203,7 @@ export default {
       });
     },
     exportExcel () {
-      this.__exportExcel('/sc-community/business/excel', this.mixins_query);
+      this.__exportExcel('/sc-community-web/business/excel', this.mixins_query);
     },
     getUserList () {
       this.$http.get('/sc-user-center/user/findUserList').then(({ data, status, msg }) => {

+ 8 - 8
operationSupport/src/views/businessManagement/opportunityManagement/setpPage/add.vue

@@ -294,19 +294,19 @@ export default {
           { required: true, message: '请输入电话', trigger: 'blur' },
         ],
         customerType: [
-          { required: true, message: '请输确认类型', trigger: 'blur' },
+          { required: true, message: '请输确认类型', trigger: 'change' },
         ],
         businessOpportunity: [
-          { required: true, message: '请确认商机来源', trigger: 'blur' },
+          { required: true, message: '请确认商机来源', trigger: 'change' },
         ],
         demandType: [
-          { required: true, message: '请确认需求类型', trigger: 'blur' },
+          { required: true, message: '请确认需求类型', trigger: 'change' },
         ],
         intentionLevel: [
-          { required: true, message: '请确认意向等级', trigger: 'blur' },
+          { required: true, message: '请确认意向等级', trigger: 'change' },
         ],
         username: [
-          { required: true, message: '请确认招商人员', trigger: 'blur' },
+          { required: true, message: '请确认招商人员', trigger: 'change' },
         ]
       },
       timePeriod: [
@@ -408,9 +408,9 @@ export default {
       console.log('this.formData.intentionLevel', this.formData.intentionLevel);
       this.$refs.formData.validate((valid) => {
         if (valid) {
-          let url = '/sc-community/business/add';
+          let url = '/sc-community-web/business/add';
           if (this.params.todo == 'edit') {
-            url = '/sc-community/business/edit';
+            url = '/sc-community-web/business/edit';
           }
           let houseIds = [];
           this.timePeriod.map((item) => {
@@ -530,7 +530,7 @@ export default {
     });
     if (this.params.todo == 'edit') {
       console.log(this.params.data);
-      let url = `/sc-community/business/find/${this.params.data}`;
+      let url = `/sc-community-web/business/find/${this.params.data}`;
       this.$http.get(url).then(({ status, msg, data }) => {
         if (status == 0) {
           this.close();

+ 35 - 2
operationSupport/src/views/businessManagement/opportunityManagement/setpPage/details.vue

@@ -46,6 +46,32 @@
             </el-col>
           </template>
         </el-form>
+        <div class="formContent-item_title">物业信息</div>
+        <el-form
+          label-width="110px"
+          v-for="(im,ir) in thisItem.houseList "
+          :key="ir"
+        >
+          <template v-for="(itemes, indexes) in formLooked">
+            <el-col
+              :key="indexes"
+              :span="!!itemes.span ? itemes.span : 12"
+            >
+              <el-form-item :label="itemes.label">
+                <template>
+                  <span>{{im.communityName}}-</span>
+                  <span>{{im.buildingName}}-</span>
+                  <span>{{im.unitName}}-</span>
+                  <span>{{im.roomNumber}}</span>
+
+                </template>
+              </el-form-item>
+              <!-- <template>
+                <span>{{iteme[houseList].communityName}}</span>
+              </template> -->
+            </el-col>
+          </template>
+        </el-form>
       </div>
     </div>
     <div class="right">
@@ -120,7 +146,14 @@ export default {
           prop: 'intentionGrade',
           slot: 'intentionGrade'
         },
-        { label: '备注:', prop: 'remark' }
+        { label: '备注:', prop: 'remark' },
+      ],
+      formLooked: [
+        {
+          label: '意向房屋:',
+          prop: 'houseList',
+          slot: 'houseList'
+        },
       ],
       thisItem: {},
       thisActive: 0
@@ -129,7 +162,7 @@ export default {
   methods: {
     getDatali (id) {
       this.$http
-        .get('/sc-community/business/find/' + id)
+        .get('/sc-community-web/business/find/' + id)
         .then(({ data, msg, status }) => {
           if (status == 0) {
             this.thisItem = data;