Explorar el Código

接口迁移完成

auqfypeu hace 5 años
padre
commit
9e8e26e444

+ 5 - 5
Member/MemberUI/src/pages/member/ES_Memberbase.js

@@ -37,7 +37,7 @@ class BirdGridElasticPage extends React.Component {
     // });
     //初始化下单平台
     request({
-      url:APIV4+"/memberList/getSourcePlatForms",
+      url:APIV4+"/terminaldoc/getSourcePlatForms",
       method:"get"
     }).then((result) => {
       let terminals = {};
@@ -145,7 +145,7 @@ class BirdGridElasticPage extends React.Component {
         { title: "昵称", data: "MemberNickName", type: "text", editor: {}, query: true, isRequired: true },
         { title: "电话号码", data: "MemUsualPhone", type: "text", editor: {}, query: true, isRequired: true },
         { title: "下单平台", data:"Terminals.MemSourcePlatforms", type:"dropdown", query:true, 
-          source:{url:APIV4+"/memberList/getSourcePlatForms",multi:true},editor:{}, 
+          source:{url:APIV4+"/terminaldoc/getSourcePlatForms",multi:true},editor:{}, 
           render: (value,data) => {
             if(value) {
               return this.state.terminals[value.TerminalCode];
@@ -153,9 +153,9 @@ class BirdGridElasticPage extends React.Component {
           },hide:true
         },
         { title: "下单终端", data: "Terminals.TerminalCode", type: "dropdown", query:true, 
-          source:{url:APIV4+"/memberList/getterms",multi:true},editor: {}, hide: true},
+          source:{url:APIV4+"/terminaldoc/getterms",multi:true},editor: {}, hide: true},
         { title: "首次下单终端", data: "OriginType", type: "dropdown", query:true, 
-          source:{url:APIV4+"/memberList/getterms",multi:true},editor: {}},
+          source:{url:APIV4+"/terminaldoc/getterms",multi:true},editor: {}},
         // { title: "地区", data:"MemUsualAreaCode", type:"region", query:true, hide:true },
         { title: "省", data:"MemUsualProvinceCode", type:"dropdown", query:true, hide:true, source:{data:this.state.provinces}, editor:{}},
         { title: "市", data:"MemUsualCityCode", type:"dropdown", query:true, hide:true,source:{data:this.state.cities}, editor:{}},
@@ -163,7 +163,7 @@ class BirdGridElasticPage extends React.Component {
         { title: "住址", data: "MemUsualAddress", type: "text", editor: {} },
         { title: "出生日期", data:"MemberBirthday", type:"date", query:true, hide:true },
         { title: "选项性别(是男性,否女性)", data:"Gender", type:"dropdown",
-          source:{url:APIV4+"/memberList/getgender"}, query:true, hide:true},
+          source:{url:APIV4+"/terminaldoc/getgender"}, query:true, hide:true},
         {
           title: "操作选项", type: "command", actions: [
             {

+ 18 - 18
Member/MemberUI/src/pages/memdoc/mem_prescription.js

@@ -561,7 +561,7 @@ const TagCreateForm = Form.create({ name: 'form_in_modal' })(
           columns: [
             { title: "id", data: "_id", type: "text", editor: {}, hide: true },
             { title: "终端", data: "OriginType", type: "dropdown",
-            source:{url:"/web/Mem_Terminaldoc/getterms"} , editor: {}, query: true },
+            source:{url:APIV4+"/terminaldoc/getterms/"} , editor: {}, query: true },
             { title: "电话", data: "AConsigneePhone2", type: "text",editor: {}, query: true },
             { title: "姓名", data: "Consignee", type: "text",
             onclick:function(value,col,data){
@@ -580,7 +580,7 @@ const TagCreateForm = Form.create({ name: 'form_in_modal' })(
             },
              editor: {}, query: false },
             { title: "性别", data: "Sex", type: "dropdown",
-            source:{url:"/web/Mem_Terminaldoc/getgender"},
+            source:{url:APIV4+"/terminaldoc/getgender"},
             onclick:function(value,col,data){
               request({
                 url: "/web/Mem_memberinformation/EditMemberBase",
@@ -747,10 +747,10 @@ class BirdGridmem_prescriptionPage extends React.Component {
   }
 
   getMemberInfo(MemberPhone,self){
-  var membersql={query:MemberPhone};
+  var membersql={"MemberPhone":MemberPhone};
       //var membersql={"query":"select * from mem_memberbase_p where MemUsualPhone = '13761709889'"};
       request({
-        url: APIV3+"/web/Mem_memberinformation/index",
+        url: APIV4+"/memberexts/index",
         method: "post",
         data:membersql,
       }).then(function (result) {
@@ -783,7 +783,7 @@ class BirdGridmem_prescriptionPage extends React.Component {
     getMemberTags(MemberPhone,self){
       var membersql = {query: MemberPhone};
       request({
-        url: APIV3+"/web/mem_tag/TagByMemberPhone",
+        url: APIV4+"/memberexts/TagByMemberPhone",
         method: "post",
         data:membersql,
       }).then(function (result) {
@@ -1110,7 +1110,7 @@ class BirdGridmem_prescriptionPage extends React.Component {
         name: '性别',
         key: 'Gender',
         fieldType: 'dropdown',
-        source:{url:"/web/Mem_Terminaldoc/getgender"},
+        source:{url:APIV4+"/terminaldoc/getgender"},
         colSpan:2,
       },
       {
@@ -1163,7 +1163,7 @@ class BirdGridmem_prescriptionPage extends React.Component {
         name: '性别',
         key: 'PatientGender',
         fieldType: 'dropdown',
-        source:{url:"/web/Mem_Terminaldoc/getgender"},
+        source:{url:APIV4+"/terminaldoc/getgender"},
         colSpan:2,
       },
       {
@@ -1221,7 +1221,7 @@ class BirdGridmem_prescriptionPage extends React.Component {
     let gridOptions1 = {
       title: "处方列表",
       url: {
-        read: "/web/mem_prescription/index"
+        read: APIV4+"/prescription/index"
       },
       //checkable: true,
       filterRules:[{field:"MemPhone",operate:"equal",value:MemberPhone}],
@@ -1242,7 +1242,7 @@ class BirdGridmem_prescriptionPage extends React.Component {
     let gridOptions2 = {
       title: "用药列表",
       url: {
-        read: "/web/mem_prescriptionproduct/index"
+        read: APIV4+"/prescriptionproduct/index"
       },
       //checkable: true,
       filterRules:[{field:"MemPhone",operate:"equal",value:MemberPhone}],
@@ -1268,7 +1268,7 @@ class BirdGridmem_prescriptionPage extends React.Component {
     let gridOptions3 = {
       title: "订单列表",
       url: {
-        read: "/web/Mem_PurchaseHistory/OrderList"
+        read: APIV4+"/purchaseHistory/orderList"
       },
       primaryKey:"id",
       filterRules:[{field:"MemPhone",operate:"equal",value:MemberPhone}],
@@ -1278,9 +1278,9 @@ class BirdGridmem_prescriptionPage extends React.Component {
         { title: "订单时间", data: "OrderTime", type: "text", editor: {},  isRequired: true },
         { title: "订单金额", data: "Sum", type: "text", editor: {}, isRequired: true },
         { title: "下单平台", data: "SourcePlatforms", type: "dropdown", editor: {},
-        source:{url:"/web/Mem_Terminaldoc/getSourcePlatForms"}, isRequired: true },
+        source:{url:APIV4+"/terminaldoc/getSourcePlatForms"}, isRequired: true },
         { title: "下单终端", data: "OriginType", type: "dropdown",
-        source:{url:"/web/Mem_Terminaldoc/getterms"}, editor: {}, isRequired: true }, 
+        source:{url:APIV4+"/terminaldoc/getterms"}, editor: {}, isRequired: true }, 
         {
           title: "操作", type: "command", actions: [{
             name: '详情',
@@ -1295,7 +1295,7 @@ class BirdGridmem_prescriptionPage extends React.Component {
       title: "商品列表",
       url: {
         //read: "/web/Mem_PurchaseHistory/DrugsList"
-        read: "/web/mem_orderproducts/OrderproductsList"
+        read: APIV4+"/purchaseHistory/orderproductsList"
       },
       primaryKey:"id",
       filterRules:[{field:"MemberPhone",operate:"equal",value:MemberPhone}],
@@ -1323,7 +1323,7 @@ class BirdGridmem_prescriptionPage extends React.Component {
       title: "好友列表",
       url: {
         //read: "/web/Mem_PurchaseHistory/DrugsList"
-        read: "/web/ES_MemFriends/MemberFriends"
+        read: APIV4+"/memFriends/memberFriends"
       },
       primaryKey:"id",
       filterRules:[{field:"MemberPhone",operate:"endswith",value:MemberPhone}],
@@ -1334,7 +1334,7 @@ class BirdGridmem_prescriptionPage extends React.Component {
         { title: "手机号", data: "MemberFriendsPhone", type: "text", editor: {}, isRequired: true },
         { title: "关系", data: "MemberRelatBrief", type: "text", editor: {}, isRequired: true },
         { title: "来源", data: "MemberSource", type: "dropdown", 
-        source:{url:"/web/Mem_Terminaldoc/getterms"},editor: {}, isRequired: true },
+        source:{url:APIV4+"/terminaldoc/getterms"},editor: {}, isRequired: true },
         {
           title: "操作选项", type: "command", actions: []
         }
@@ -1346,7 +1346,7 @@ class BirdGridmem_prescriptionPage extends React.Component {
     let gridOptions6 = {
       title: "平台列表",
       url: {
-        read: "/web/Mem_memberterminal/doclist"
+        read: APIV4+"/memberterminal/doclist"
       },
       //checkable: true,
       primaryKey:"id",
@@ -1354,7 +1354,7 @@ class BirdGridmem_prescriptionPage extends React.Component {
       columns: [
         { title: "id", data: "_id", type: "text", editor: {}, isRequired: true },
         { title: "平台", data: "TerminalCode", type: "dropdown", 
-        source:{url:"/web/Mem_Terminaldoc/getterms"},editor: {}, isRequired: true }, 
+        source:{url:APIV4+"/terminaldoc/getterms"},editor: {}, isRequired: true }, 
         {
           title: "操作选项", type: "command", actions: []
         }
@@ -1385,7 +1385,7 @@ class BirdGridmem_prescriptionPage extends React.Component {
         name: '性别',
         key: 'MemberGender',
         fieldType: 'dropdown',
-        source:{url:"/web/Mem_Terminaldoc/getgender"},
+        source:{url:APIV4+"/terminaldoc/getgender"},
         colSpan:2,
       },
       {