zhangxin hace 1 mes
padre
commit
166adfe45f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      components/add-inquiry-dialog/index.vue

+ 2 - 2
components/add-inquiry-dialog/index.vue

@@ -1,6 +1,6 @@
1
 <template>
1
 <template>
2
 	<view>
2
 	<view>
3
-		<u-modal :show="showModal" ref="uModal" :title="editOrAdd === 'edit' ? '编辑' : '新增'" :asyncClose="false" showCancelButton @cancel="closeDialog" cancelColor="#909399" :confirmText="'确定'" confirmColor="#2979ff" @confirm="confirm" @close="closeDialog" :closeOnClickOverlay="false">
3
+		<u-modal :show="showModal" ref="uModal" :title="(editOrAdd === 'add' || editOrAdd === 'receptFormAdd') ? '新增' : '编辑'" :asyncClose="false" showCancelButton @cancel="closeDialog" cancelColor="#909399" :confirmText="'确定'" confirmColor="#2979ff" @confirm="confirm" @close="closeDialog" :closeOnClickOverlay="false">
4
             <view class="modal_wrap">
4
             <view class="modal_wrap">
5
                 <text @click="handleBrandClick" class="item" :class="info.dictLabel ? 'brand' : 'brand placeholder'">{{ info.dictLabel || '品牌' }}</text>
5
                 <text @click="handleBrandClick" class="item" :class="info.dictLabel ? 'brand' : 'brand placeholder'">{{ info.dictLabel || '品牌' }}</text>
6
                 <text class="divider">|</text>
6
                 <text class="divider">|</text>
@@ -47,7 +47,7 @@ export default {
47
 		},
47
 		},
48
         editOrAdd: {
48
         editOrAdd: {
49
             type: String,
49
             type: String,
50
-            default: ''// edit 编辑(有价格), editForm 编辑询价单(无价格), add 新增询价单, receptFormAdd 新增接收询价单
50
+            default: ''// edit 编辑(有价格), editForm 编辑询价单(无价格), add 新增询价单, receptFormAdd 新增接收询价单   线索页面:第一次点击是新增(不需要回显),status传1,第二次点击是无价格编辑status传1;接单中心:第一次点击是新增(需要回显)status传1,第二次点击是无价格编辑status传1;只有edit是有价格编辑status传2
51
         },
51
         },
52
         editInfo: {
52
         editInfo: {
53
             type: Object,
53
             type: Object,