戴艳蓉 3 سال پیش
والد
کامیت
a8f8aa7cbf
85فایلهای تغییر یافته به همراه103 افزوده شده و 4178 حذف شده
  1. 22 0
      dist/b5e2e7049ab3209c5c5e.worker.js
  2. BIN
      dist/b5e2e7049ab3209c5c5e.worker.js.gz
  3. 24 0
      dist/index.html
  4. 1 0
      dist/static/axios@0.21.0.min.js
  5. BIN
      dist/static/axios@0.21.0.min.js.gz
  6. 0 0
      dist/static/css/app.2acf5c72.css
  7. BIN
      dist/static/css/app.2acf5c72.css.gz
  8. 1 0
      dist/static/css/chunk-09413a44.68d53367.css
  9. 0 0
      dist/static/css/chunk-1a9d78b9.703ceb31.css
  10. 1 0
      dist/static/css/chunk-2a52459a.149d0cab.css
  11. 1 0
      dist/static/css/chunk-3bc89c67.15c23872.css
  12. 0 0
      dist/static/css/chunk-3e859cc7.bf56aeb1.css
  13. 1 0
      dist/static/css/chunk-5f74647e.3eb5adc9.css
  14. 0 0
      dist/static/css/chunk-95806aaa.90844b8e.css
  15. 1 0
      dist/static/css/chunk-bbbb90b4.11a605cd.css
  16. 0 0
      dist/static/css/chunk-c8c30b7e.e935173d.css
  17. 0 0
      dist/static/css/chunk-ea78f072.960c40c4.css
  18. BIN
      dist/static/css/chunk-ea78f072.960c40c4.css.gz
  19. 1 0
      dist/static/css/chunk-elementUI.6e808e7d.css
  20. 0 0
      dist/static/css/chunk-f4b38a68.79c0278f.css
  21. 0 0
      dist/static/css/chunk-libs.a21a27cb.css
  22. BIN
      dist/static/css/chunk-libs.a21a27cb.css.gz
  23. 0 0
      dist/static/dingtalk.open.2.10.3.js
  24. BIN
      dist/static/dingtalk.open.2.10.3.js.gz
  25. BIN
      dist/static/fonts/element-icons.535877f5.woff
  26. BIN
      dist/static/fonts/element-icons.732389de.ttf
  27. BIN
      dist/static/img/401.089007e7.gif
  28. BIN
      dist/static/img/404.a57b6f31.png
  29. BIN
      dist/static/img/404_cloud.0f4bc32b.png
  30. BIN
      dist/static/img/avatar.ecba1844.gif
  31. BIN
      dist/static/img/developing.750f7ed1.jpg
  32. BIN
      dist/static/img/loading.190c78aa.gif
  33. BIN
      dist/static/img/loginbg.51c61d67.png
  34. BIN
      dist/static/img/loginlan.1ecbd4ab.png
  35. BIN
      dist/static/img/logo.66bee2dc.gif
  36. BIN
      dist/static/img/welcome.6cf0f25b.gif
  37. 0 0
      dist/static/js/app.0c41bf28.js
  38. BIN
      dist/static/js/app.0c41bf28.js.gz
  39. 0 0
      dist/static/js/chunk-09413a44.c8732241.js
  40. 0 0
      dist/static/js/chunk-1a9d78b9.cbc711ee.js
  41. 0 0
      dist/static/js/chunk-2a52459a.32962829.js
  42. 0 0
      dist/static/js/chunk-3bc89c67.33ed28ea.js
  43. 0 0
      dist/static/js/chunk-3e859cc7.eacc17a8.js
  44. BIN
      dist/static/js/chunk-3e859cc7.eacc17a8.js.gz
  45. 1 0
      dist/static/js/chunk-5f74647e.d129aebd.js
  46. 1 0
      dist/static/js/chunk-95806aaa.754ea454.js
  47. 1 0
      dist/static/js/chunk-bbbb90b4.f6c0635c.js
  48. 22 0
      dist/static/js/chunk-c8c30b7e.3b7ed509.js
  49. BIN
      dist/static/js/chunk-c8c30b7e.3b7ed509.js.gz
  50. 0 0
      dist/static/js/chunk-ea78f072.22d62ca1.js
  51. BIN
      dist/static/js/chunk-ea78f072.22d62ca1.js.gz
  52. 0 0
      dist/static/js/chunk-elementUI.d1cb771f.js
  53. BIN
      dist/static/js/chunk-elementUI.d1cb771f.js.gz
  54. 0 0
      dist/static/js/chunk-f4b38a68.f5cbac40.js
  55. 0 0
      dist/static/js/chunk-libs.97beb751.js
  56. BIN
      dist/static/js/chunk-libs.97beb751.js.gz
  57. BIN
      dist/static/loading.gif
  58. 0 0
      dist/static/reset.min.css
  59. 10 0
      dist/static/vue-router.min.js
  60. BIN
      dist/static/vue-router.min.js.gz
  61. 5 0
      dist/static/vue.min.js
  62. BIN
      dist/static/vue.min.js.gz
  63. BIN
      dist/static/收货地址模板.xlsx
  64. 1 1
      src/views/biddingWorkbench/workbench/add.vue
  65. 1 1
      src/views/biddingWorkbench/workbench/components/baseForm.vue
  66. 1 1
      src/views/biddingWorkbench/workbench/components/baseFormAddEdit.vue
  67. 1 1
      src/views/biddingWorkbench/workbench/components/costForm.vue
  68. 1 1
      src/views/biddingWorkbench/workbench/components/costFormAddEdit.vue
  69. 1 1
      src/views/biddingWorkbench/workbench/components/packForm.vue
  70. 0 545
      src/views/client/businesss/addEdit.vue
  71. 0 545
      src/views/client/businesss/index.vue
  72. 0 0
      src/views/client/businesss/企业客户管理
  73. 0 463
      src/views/client/company/addEdit.vue
  74. 0 367
      src/views/client/company/bankModal.vue
  75. 0 537
      src/views/client/company/index.vue
  76. 0 0
      src/views/client/company/企业管理
  77. 0 199
      src/views/client/cproperty/addEdit.vue
  78. 0 394
      src/views/client/cproperty/index.vue
  79. 0 0
      src/views/client/cproperty/客户属性
  80. 0 545
      src/views/client/supplier/addEdit.vue
  81. 0 547
      src/views/client/supplier/index.vue
  82. 0 0
      src/views/client/supplier/供应商管理
  83. 1 9
      src/views/goodStore/activeGood/detail.vue
  84. 2 11
      src/views/goodStore/goodsCost/index copy.vue
  85. 1 10
      src/views/goodStore/goodsOnline/detail.vue

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 22 - 0
dist/b5e2e7049ab3209c5c5e.worker.js


BIN
dist/b5e2e7049ab3209c5c5e.worker.js.gz


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 24 - 0
dist/index.html


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 1 - 0
dist/static/axios@0.21.0.min.js


BIN
dist/static/axios@0.21.0.min.js.gz


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/css/app.2acf5c72.css


BIN
dist/static/css/app.2acf5c72.css.gz


+ 1 - 0
dist/static/css/chunk-09413a44.68d53367.css

@@ -0,0 +1 @@
+.change-password{background:#f2f2f2;min-height:100%;width:100%;height:100%;overflow:hidden;position:absolute;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box}.change-password .change{padding:0 18% 0 0}.change-password .change .title{border-width:0;height:140px;display:-webkit-box;display:-ms-flexbox;display:flex;font-weight:400;font-style:normal;font-size:22px;text-align:left;padding:0;padding:60px 0 0 100px;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.change-password[data-v-47333433]{min-height:100%;width:100%;height:100%;overflow:hidden;position:absolute;z-index:2}.change-password .login-form[data-v-47333433]{position:relative;width:415px;max-width:100%;height:100%;padding:50px 35px 150px 35px;margin:0 auto;overflow:hidden}.change-password .login-form .el-form-item__label[data-v-47333433]{height:49px;line-height:49px}

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/css/chunk-1a9d78b9.703ceb31.css


+ 1 - 0
dist/static/css/chunk-2a52459a.149d0cab.css

@@ -0,0 +1 @@
+.change{padding:0 18% 0 0;background:#f2f2f2;min-height:100%;height:100%;overflow:hidden;position:absolute;z-index:2}.change,.change .title{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.change .title{border-width:0;height:140px;display:-webkit-box;display:-ms-flexbox;display:flex;font-weight:400;font-style:normal;font-size:22px;text-align:left;padding:0;padding:60px 0 0 100px}.change-mobile{background:#f2f2f2}@supports (-webkit-mask:none) and (not (cater-color:#fff)){.change-mobile .el-input input{color:#fff}}.change-mobile .el-input input{color:#000}.change-mobile .el-form-item{border:1px solid hsla(0,0%,100%,.1);color:#454545}.change-mobile[data-v-64208de8]{min-height:100%;width:100%;height:100%;background-color:#f2f2f2;overflow:hidden;position:absolute;z-index:2;background:#fff}.change-mobile .login-form[data-v-64208de8]{position:relative;width:415px;max-width:100%;height:100%;padding:50px 35px 150px 35px;margin:0 auto;overflow:hidden}.change-mobile .login-form .el-form-item__label[data-v-64208de8]{height:49px;line-height:49px}.change-mobile .login-form .el-form-item__content[data-v-64208de8]:after,.change-mobile .login-form .el-form-item__content[data-v-64208de8]:before{content:"";display:block;clear:both}.change-mobile .tips[data-v-64208de8]{font-size:14px;color:#fff;margin-bottom:10px}.change-mobile .tips span[data-v-64208de8]:first-of-type{margin-right:16px}.change-mobile .svg-container[data-v-64208de8]{padding:6px 5px 6px 15px;color:#889aa4;vertical-align:middle;width:30px;display:inline-block}.change-mobile .show-pwd[data-v-64208de8]{position:absolute;right:10px;top:7px;font-size:16px;color:#889aa4;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.change-mobile .thirdparty-button[data-v-64208de8]{position:absolute;right:0;bottom:6px}@media only screen and (max-width:470px){.change-mobile .thirdparty-button[data-v-64208de8]{display:none}}

+ 1 - 0
dist/static/css/chunk-3bc89c67.15c23872.css

@@ -0,0 +1 @@
+.my-messagge-page{text-align:center;background:#f2f2f2;min-height:100%;width:100%;height:100%;overflow:hidden;position:absolute;z-index:2;-webkit-box-sizing:border-box;box-sizing:border-box}.my-messagge-page .change{padding:0 8% 0 0}.my-messagge-page .change .title{border-width:0;height:170px;display:-webkit-box;display:-ms-flexbox;display:flex;font-weight:400;font-style:normal;font-size:22px;text-align:left;padding:0;padding:60px 0 0 100px;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.my-messagge-page .change-main{width:370px;margin:0 auto;text-align:left}.my-messagge-page .infor{padding:0 0 40px 0}.my-messagge-page .infor .tr{text-align:right;padding:0 15px 0 0}@supports (-webkit-mask:none) and (not (cater-color:#fff)){.my-messagge .el-input input{color:#fff}}.my-messagge[data-v-27685a3c]{min-height:100%;width:100%;height:100%;background-color:#f2f2f2;overflow:hidden;position:absolute;z-index:2;background:#fff}.my-messagge .login-form[data-v-27685a3c]{position:relative;width:415px;max-width:100%;height:100%;padding:50px 35px 150px 35px;margin:0 auto;overflow:hidden}.my-messagge .login-form .el-form-item__label[data-v-27685a3c]{height:49px;line-height:49px}.my-messagge .tips[data-v-27685a3c]{font-size:14px;color:#fff;margin-bottom:10px}.my-messagge .tips span[data-v-27685a3c]:first-of-type{margin-right:16px}.my-messagge .svg-container[data-v-27685a3c]{padding:6px 5px 6px 15px;color:#889aa4;vertical-align:middle;width:30px;display:inline-block}.my-messagge .show-pwd[data-v-27685a3c]{position:absolute;right:10px;top:7px;font-size:16px;color:#889aa4;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.my-messagge .thirdparty-button[data-v-27685a3c]{position:absolute;right:0;bottom:6px}@media only screen and (max-width:470px){.my-messagge .thirdparty-button[data-v-27685a3c]{display:none}}

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/css/chunk-3e859cc7.bf56aeb1.css


+ 1 - 0
dist/static/css/chunk-5f74647e.3eb5adc9.css

@@ -0,0 +1 @@
+.dashboard-container[data-v-13a8ad67]{padding:0 0 0 0}.emptyGif[data-v-13a8ad67]{display:block;width:100%;margin:0 auto}.dashboard-editor-container[data-v-13a8ad67]{background-color:#e3e3e3;min-height:calc(100vh - 84px);width:100%;padding:0 6% 0 0;text-align:center}.dashboard-editor-container .info-container[data-v-13a8ad67]{display:block;width:60%;text-align:center;margin:0 auto;padding:10vh 0 0 0}.dashboard-editor-container .info-container .welcome-title[data-v-13a8ad67]{vertical-align:top;padding:0;margin:0 0 0 18px;color:#97a8be;display:inline-block;height:130px;line-height:130px;font-size:45px}.dashboard-editor-container img[data-v-13a8ad67]{display:block;-webkit-box-flex:1;-ms-flex:1;flex:1}

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/css/chunk-95806aaa.90844b8e.css


+ 1 - 0
dist/static/css/chunk-bbbb90b4.11a605cd.css

@@ -0,0 +1 @@
+.dingLoading[data-v-17af7bec]{text-align:center;width:100%}.dingLoading img[data-v-17af7bec]{display:inline-block;width:152px;margin:0 auto;padding-top:100px}

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/css/chunk-c8c30b7e.e935173d.css


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/css/chunk-ea78f072.960c40c4.css


BIN
dist/static/css/chunk-ea78f072.960c40c4.css.gz


+ 1 - 0
dist/static/css/chunk-elementUI.6e808e7d.css

@@ -0,0 +1 @@
+@media only screen and (max-width:767px){.hidden-xs-only{display:none!important}}@media only screen and (min-width:768px){.hidden-sm-and-up{display:none!important}}@media only screen and (min-width:768px) and (max-width:991px){.hidden-sm-only{display:none!important}}@media only screen and (max-width:991px){.hidden-sm-and-down{display:none!important}}@media only screen and (min-width:992px){.hidden-md-and-up{display:none!important}}@media only screen and (min-width:992px) and (max-width:1199px){.hidden-md-only{display:none!important}}@media only screen and (max-width:1199px){.hidden-md-and-down{display:none!important}}@media only screen and (min-width:1200px){.hidden-lg-and-up{display:none!important}}@media only screen and (min-width:1200px) and (max-width:1919px){.hidden-lg-only{display:none!important}}@media only screen and (max-width:1919px){.hidden-lg-and-down{display:none!important}}@media only screen and (min-width:1920px){.hidden-xl-only{display:none!important}}

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/css/chunk-f4b38a68.79c0278f.css


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/css/chunk-libs.a21a27cb.css


BIN
dist/static/css/chunk-libs.a21a27cb.css.gz


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/dingtalk.open.2.10.3.js


BIN
dist/static/dingtalk.open.2.10.3.js.gz


BIN
dist/static/fonts/element-icons.535877f5.woff


BIN
dist/static/fonts/element-icons.732389de.ttf


BIN
dist/static/img/401.089007e7.gif


BIN
dist/static/img/404.a57b6f31.png


BIN
dist/static/img/404_cloud.0f4bc32b.png


BIN
dist/static/img/avatar.ecba1844.gif


BIN
dist/static/img/developing.750f7ed1.jpg


BIN
dist/static/img/loading.190c78aa.gif


BIN
dist/static/img/loginbg.51c61d67.png


BIN
dist/static/img/loginlan.1ecbd4ab.png


BIN
dist/static/img/logo.66bee2dc.gif


BIN
dist/static/img/welcome.6cf0f25b.gif


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/js/app.0c41bf28.js


BIN
dist/static/js/app.0c41bf28.js.gz


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/js/chunk-09413a44.c8732241.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/js/chunk-1a9d78b9.cbc711ee.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/js/chunk-2a52459a.32962829.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/js/chunk-3bc89c67.33ed28ea.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/js/chunk-3e859cc7.eacc17a8.js


BIN
dist/static/js/chunk-3e859cc7.eacc17a8.js.gz


+ 1 - 0
dist/static/js/chunk-5f74647e.d129aebd.js

@@ -0,0 +1 @@
+(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-5f74647e"],{"44b5":function(t,a,i){"use strict";i("da53")},9406:function(t,a,i){"use strict";i.r(a);var e=i("5530"),n=i("2f62");e={name:"dashboard",data:function(){return{emptyGif:i("ff1f")}},computed:Object(e.a)({},Object(n.b)(["avatar"])),mounted:function(){}},i("44b5"),n=i("2877"),e=Object(n.a)(e,(function(){var t=this,a=t.$createElement;a=t._self._c||a;return a("div",{staticClass:"dashboard-container"},[a("div",{staticClass:"dashboard-editor-container"},[a("div",{staticClass:"info-container clearfix"},[a("pan-thumb",{attrs:{image:t.avatar,width:"130px",height:"130px"}}),a("span",{staticClass:"welcome-title"},[t._v("欢迎登录采销平台")])],1),a("img",{staticStyle:{width:"60%",margin:"-30px auto 0 auto"},attrs:{src:t.emptyGif}})])])}),[],!1,null,"13a8ad67",null);a.default=e.exports},da53:function(t,a,i){},ff1f:function(t,a,i){t.exports=i.p+"static/img/welcome.6cf0f25b.gif"}}]);

+ 1 - 0
dist/static/js/chunk-95806aaa.754ea454.js

@@ -0,0 +1 @@
+(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-95806aaa"],{"1db4":function(t,s,i){"use strict";i.r(s);var c=[function(){var t=this.$createElement;t=this._self._c||t;return t("div",{staticClass:"pic-404"},[t("img",{staticClass:"pic-404__parent",attrs:{src:i("a36b"),alt:"404"}}),t("img",{staticClass:"pic-404__child left",attrs:{src:i("26fc"),alt:"404"}}),t("img",{staticClass:"pic-404__child mid",attrs:{src:i("26fc"),alt:"404"}}),t("img",{staticClass:"pic-404__child right",attrs:{src:i("26fc"),alt:"404"}})])}],a={name:"Page404",computed:{message:function(){return"访问的页面不存在..."}},methods:{goto:function(){window.vm.$router.push({path:"/welcome/dashboard"})}}},n=(i("e894"),i("2877"));c=Object(n.a)(a,(function(){var t=this,s=t.$createElement;s=t._self._c||s;return s("div",{staticClass:"wscn-http404-container"},[s("div",{staticClass:"wscn-http404"},[t._m(0),s("div",{staticClass:"bullshit"},[s("div",{staticClass:"bullshit__oops"},[t._v("哎呀!")]),s("div",{staticClass:"bullshit__headline"},[t._v(t._s(t.message))]),s("div",{staticClass:"bullshit__info"},[t._v(" 请检查您输入的网址是否正确,或单击下面的按钮返回主页. ")]),s("el-button",{attrs:{type:"primary",round:""},on:{click:function(s){return t.goto()}}},[t._v("回到首页")])],1)])])}),c,!1,null,"82eac96e",null);s.default=c.exports},"26fc":function(t,s,i){t.exports=i.p+"static/img/404_cloud.0f4bc32b.png"},a36b:function(t,s,i){t.exports=i.p+"static/img/404.a57b6f31.png"},c980:function(t,s,i){},e894:function(t,s,i){"use strict";i("c980")}}]);

+ 1 - 0
dist/static/js/chunk-bbbb90b4.f6c0635c.js

@@ -0,0 +1 @@
+(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-bbbb90b4"],{"04c0":function(t,n,c){"use strict";c("56c0")},"56c0":function(t,n,c){},"7e10":function(t,n,c){"use strict";c.r(n);var e=[function(){var t=this.$createElement;t=this._self._c||t;return t("div",{staticClass:"dingLoading"},[t("img",{attrs:{src:c("f8b2"),alt:""}})])}],i={name:"loadingPage",data:function(){return{}},mounted:function(){}},a=(c("04c0"),c("2877"));e=Object(a.a)(i,(function(){var t=this;t.$createElement;return t._self._c,t._m(0)}),e,!1,null,"17af7bec",null);n.default=e.exports},f8b2:function(t,n,c){t.exports=c.p+"static/img/loading.190c78aa.gif"}}]);

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 22 - 0
dist/static/js/chunk-c8c30b7e.3b7ed509.js


BIN
dist/static/js/chunk-c8c30b7e.3b7ed509.js.gz


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/js/chunk-ea78f072.22d62ca1.js


BIN
dist/static/js/chunk-ea78f072.22d62ca1.js.gz


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/js/chunk-elementUI.d1cb771f.js


BIN
dist/static/js/chunk-elementUI.d1cb771f.js.gz


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/js/chunk-f4b38a68.f5cbac40.js


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/js/chunk-libs.97beb751.js


BIN
dist/static/js/chunk-libs.97beb751.js.gz


BIN
dist/static/loading.gif


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 0 - 0
dist/static/reset.min.css


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 10 - 0
dist/static/vue-router.min.js


BIN
dist/static/vue-router.min.js.gz


تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 5 - 0
dist/static/vue.min.js


BIN
dist/static/vue.min.js.gz


BIN
dist/static/收货地址模板.xlsx


+ 1 - 1
src/views/biddingWorkbench/workbench/add.vue

@@ -17,7 +17,7 @@
   </div>
 </template>
    <script>
-import asyncRequest from "@/apis/service/activity/active";
+import asyncRequest from "@/apis/service/goodStore/active";
 import resToken from "@/mixins/resToken";
 import { mapGetters } from "vuex";
 // import baseForm from "./components/baseForm";

+ 1 - 1
src/views/biddingWorkbench/workbench/components/baseForm.vue

@@ -310,7 +310,7 @@
   </el-form>
 </template>
    <script>
-import asyncRequest from "@/apis/service/activity/active";
+import asyncRequest from "@/apis/service/goodStore/active";
 import resToken from "@/mixins/resToken";
 import { mapGetters } from "vuex";
 import baseFormAddEdit from "./baseFormAddEdit";

+ 1 - 1
src/views/biddingWorkbench/workbench/components/baseFormAddEdit.vue

@@ -80,7 +80,7 @@
   </el-dialog>
 </template>
 <script>
-import asyncRequest from "@/apis/service/activity/active";
+import asyncRequest from "@/apis/service/goodStore/active";
 import resToken from "@/mixins/resToken";
 export default {
   name: "active",

+ 1 - 1
src/views/biddingWorkbench/workbench/components/costForm.vue

@@ -206,7 +206,7 @@
   </el-form>
 </template>
    <script>
-import asyncRequest from "@/apis/service/activity/active";
+import asyncRequest from "@/apis/service/goodStore/active";
 import resToken from "@/mixins/resToken";
 import { mapGetters } from "vuex";
 import costFormAddEdit from "./costFormAddEdit";

+ 1 - 1
src/views/biddingWorkbench/workbench/components/costFormAddEdit.vue

@@ -105,7 +105,7 @@
   </el-dialog>
 </template>
 <script>
-import asyncRequest from "@/apis/service/activity/active";
+import asyncRequest from "@/apis/service/goodStore/active";
 import resToken from "@/mixins/resToken";
 export default {
   name: "active",

+ 1 - 1
src/views/biddingWorkbench/workbench/components/packForm.vue

@@ -269,7 +269,7 @@
   </el-form>
 </template>
    <script>
-import asyncRequest from "@/apis/service/activity/active";
+import asyncRequest from "@/apis/service/goodStore/active";
 import resToken from "@/mixins/resToken";
 import { mapGetters } from "vuex";
 import { options6 } from "../columns";

+ 0 - 545
src/views/client/businesss/addEdit.vue

@@ -1,545 +0,0 @@
-<template>
-  <el-dialog
-    :title="title"
-    :center="true"
-    align="left"
-    top="5vh"
-    width="700px"
-    @close="closeModel"
-    :close-on-click-modal="false"
-    :visible.sync="showModelThis"
-    v-loading="loading"
-    element-loading-text="拼命加载中"
-    element-loading-spinner="el-icon-loading"
-    element-loading-background="rgba(0, 0, 0, 0.8)"
-  >
-    <el-card>
-      <el-row :gutter="10">
-        <el-col :span="24">
-          <el-form
-            v-if="isApproval"
-            :model="cexForm"
-            status-icon
-            :rules="cexRules"
-            ref="cexForm"
-            label-width="80px"
-            class="cexForm-ruleForm"
-            ><el-row>
-              <el-col :span="12">
-                <el-row class="cexForm-div">
-                  <el-col :span="8" class="tr cexForm-label">所属企业:</el-col>
-                  <el-col :span="16" class="cexForm-main">{{
-                    dataInfo.company
-                  }}</el-col>
-                </el-row>
-                <el-row class="cexForm-div">
-                  <el-col :span="8" class="tr cexForm-label">账号:</el-col>
-                  <el-col :span="16" class="cexForm-main">{{
-                    dataInfo.username
-                  }}</el-col>
-                </el-row>
-                <el-row class="cexForm-div">
-                  <el-col :span="8" class="tr cexForm-label">真实姓名:</el-col>
-                  <el-col :span="16" class="cexForm-main">{{
-                    dataInfo.name
-                  }}</el-col>
-                </el-row>
-                <el-row class="cexForm-div">
-                  <el-col :span="8" class="tr cexForm-label">手机号:</el-col>
-                  <el-col :span="16" class="cexForm-main">{{
-                    dataInfo.mobile
-                  }}</el-col>
-                </el-row>
-                <el-row class="cexForm-div">
-                  <el-col :span="8" class="tr cexForm-label">邮箱:</el-col>
-                  <el-col :span="16" class="cexForm-main">{{
-                    dataInfo.email
-                  }}</el-col>
-                </el-row>
-                <el-row class="cexForm-div" v-if="dataInfo.company">
-                  <el-col :span="8" class="tr cexForm-label">备注:</el-col>
-                  <el-col :span="16" class="cexForm-main">{{
-                    dataInfo.remark
-                  }}</el-col>
-                </el-row>
-              </el-col>
-              <el-col :span="12">
-                <el-form-item label="审核状态" prop="status">
-                  <el-select
-                    v-model="cexForm.status"
-                    placeholder="请选择审核状态"
-                    @change="selectChange"
-                  >
-                    <el-option
-                      v-for="item in statusList"
-                      :key="item.code"
-                      :label="item.name"
-                      :value="item.code"
-                    >
-                    </el-option>
-                  </el-select>
-                </el-form-item>
-                <el-form-item label="审核说明" prop="remark">
-                  <el-input
-                    v-model="cexForm.remark"
-                    type="textarea"
-                    placeholder="请输入审核说明"
-                    :rows="5"
-                    maxlength="300"
-                    show-word-limit
-                  ></el-input>
-                </el-form-item>
-                <el-col :span="24" style="text-align: right">
-                  <el-button type="primary" @click="submitCexForm"
-                    >保 存
-                  </el-button>
-                  <el-button @click="showModelThis = false">取 消</el-button>
-                </el-col>
-              </el-col>
-            </el-row></el-form
-          >
-
-          <el-form
-            v-else
-            :model="ruleForm"
-            status-icon
-            :rules="rulesThis"
-            ref="ruleForm"
-            label-width="80px"
-            class="demo-ruleForm"
-            ><el-row>
-              <el-col :span="24">
-                <el-form-item label="所属企业" prop="company_id">
-                  <el-select
-                    :disabled="isDetail"
-                    v-model="ruleForm.company_id"
-                    filterable
-                    clearable
-                    :size="searchSize"
-                    placeholder="请选择所属企业"
-                    style="width: 100%"
-                  >
-                    <el-option
-                      v-for="item in companyList"
-                      :key="'company' + item.id"
-                      :label="item.company"
-                      :value="item.id"
-                      :disabled="item.status === '0'"
-                    />
-                  </el-select>
-                  <!-- <el-input
-                    v-model="ruleForm.company_id"
-                    :disabled="isDetail"
-                  /> -->
-                </el-form-item>
-              </el-col>
-              <el-col :span="24">
-                <el-form-item
-                  v-if="id === 'add' || isDetail"
-                  label="账号"
-                  prop="username"
-                >
-                  <el-input v-model="ruleForm.username" :disabled="isDetail" />
-                </el-form-item>
-              </el-col>
-              <el-col :span="24">
-                <el-form-item label="真实姓名" prop="contact">
-                  <el-input v-model="ruleForm.contact" :disabled="isDetail" />
-                </el-form-item>
-              </el-col>
-              <el-col :span="24">
-                <el-form-item label="手机号" prop="mobile">
-                  <el-input v-model="ruleForm.mobile" :disabled="isDetail" />
-                </el-form-item>
-              </el-col>
-              <el-col :span="24">
-                <el-form-item label="邮箱" prop="email">
-                  <el-input v-model="ruleForm.email" :disabled="isDetail" />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-form-item label="信息备注" prop="remark">
-              <el-input
-                v-model="ruleForm.remark"
-                type="textarea"
-                placeholder="请输入备注"
-                :rows="5"
-                maxlength="300"
-                show-word-limit
-                :disabled="isDetail"
-              ></el-input>
-            </el-form-item>
-            <el-col :span="24" style="text-align: right">
-              <el-tag
-                type="warning"
-                class="fl"
-                style="max-width: 500px"
-                v-if="dataInfo.ex_remark && dataInfo.ex_status === '2'"
-                >审核备注:{{ dataInfo.ex_remark }}</el-tag
-              >
-
-              <el-button type="primary" @click="submitForm" v-if="!isDetail"
-                >保 存
-              </el-button>
-              <el-button @click="showModelThis = false">{{
-                isDetail ? "关 闭" : "取 消"
-              }}</el-button>
-            </el-col>
-          </el-form>
-        </el-col>
-      </el-row>
-    </el-card>
-  </el-dialog>
-</template>
-   <script>
-import asyncRequest from "@/apis/service/client/business";
-import {
-  isnumber,
-  isMobile,
-  validEmail,
-  isAlphanumeric,
-  isChinese,
-  isEmoticon,
-  validAlphabets,
-} from "@/utils/validate";
-import statusList from "@/assets/js/cexStatusList";
-export default {
-  name: "specs",
-  props: ["showModel", "id", "isDetail", "isApproval"],
-  data() {
-    const validateusername = (rule, value, callback) => {
-      if (value === "") {
-        callback(new Error("账号不能为空!"));
-      } else {
-        if (value.lenght < 6 || value.lenght > 18) {
-          callback(new Error("账号规则为6~18位数字与字母组合!"));
-        } else {
-          if (isnumber(value)) {
-            callback(new Error("账号规则为6~18位数字与字母组合!"));
-          } else if (validAlphabets(value)) {
-            callback(new Error("账号规则为6~18位数字与字母组合!"));
-          } else if (!isAlphanumeric(value)) {
-            callback(new Error("账号规则为6~18位数字与字母组合!"));
-          } else {
-            callback();
-          }
-        }
-      }
-    };
-    const validatecontact = (rule, value, callback) => {
-      if (value === "") {
-        callback(new Error("真实姓名不能为空!"));
-      } else {
-        if (value.lenght < 2 || value.lenght > 12) {
-          callback(new Error("真实姓名规则为2~12位汉字!"));
-        } else {
-          if (!isChinese(value)) {
-            callback(new Error("真实姓名为6~18位数字与字母组合!"));
-          } else if (isEmoticon(value)) {
-            callback(new Error("真实姓名为6~18位数字与字母组合!"));
-          } else {
-            callback();
-          }
-        }
-      }
-    };
-    const validatemobile = (rule, value, callback) => {
-      if (value === "") {
-        callback(new Error("手机号不能为空!"));
-      } else {
-        if (!isMobile(value)) {
-          callback(new Error("手机号格式不正确!"));
-        } else {
-          callback();
-        }
-      }
-    };
-
-    const validateEmail = (rule, value, callback) => {
-      if (value === "") {
-        callback(new Error("邮箱不能为空!"));
-      } else {
-        if (!validEmail(value)) {
-          callback(new Error("邮箱格式不正确!"));
-        } else {
-          callback();
-        }
-      }
-    };
-    return {
-      statusList: statusList,
-      loading: false,
-      title: "添加企业客户",
-      showModelThis: this.showModel,
-      dataInfo: {},
-      companyList: [],
-      cexForm: {
-        id: this.id,
-        remark: "",
-        status: "1",
-      },
-      ruleForm: {
-        id: this.id, //企业id
-        company_id: "", //id
-        type: "2",
-        username: "", //账号
-        contact: "", //真实姓名
-        mobile: "", //手机号
-        emailz: "", //邮箱
-        remark: "",
-      },
-      cexRules: {
-        status: {
-          required: true,
-          message: "请选择审核状态",
-          trigger: "change",
-        },
-        remark: [
-          {
-            required: false,
-            message: "请输入审核说明!",
-            trigger: "blur",
-          },
-        ],
-      },
-      rulesThis: this.rules,
-      rules: {
-        company_id: [
-          {
-            required: true,
-            message: "请选择企业!",
-            trigger: "change",
-          },
-        ],
-        username: [
-          {
-            required: true,
-            validator: validateusername,
-            trigger: "blur",
-          },
-        ],
-        contact: [
-          {
-            required: true,
-            validator: validatecontact,
-            trigger: "blur",
-          },
-        ],
-        mobile: [
-          {
-            required: true,
-            validator: validatemobile,
-            trigger: "blur",
-          },
-        ],
-        email: [
-          {
-            required: true,
-            validator: validateEmail,
-            trigger: "blur",
-          },
-        ],
-
-        remark: [
-          {
-            required: false,
-            trigger: "blur",
-          },
-        ],
-      },
-    };
-  },
-  methods: {
-    closeModel() {
-      console.log("closeModel!!");
-    },
-    selectChange() {
-      if (this.cexForm.status === "1") {
-        this.cexRules.remark[0].required = false;
-      } else {
-        this.cexRules.remark[0].required = true;
-      }
-    },
-    async initForm() {
-      if (this.isApproval) {
-        this.loading = true;
-        this.title = "企业客户审核";
-        await this.getCompanyList();
-        await this.initData();
-        await this.resetcexForm();
-        this.selectChange();
-        this.loading = false;
-      } else {
-        this.loading = true;
-        await this.getCompanyList();
-        if (this.id === "add") {
-          this.title = "添加企业客户";
-
-          // this.ruleForm.isAdmin = 0;
-          this.rulesThis = this.rules;
-          await this.resetForm();
-        } else {
-          if (this.isDetail) {
-            this.title = "企业客户";
-            this.rulesThis = {};
-          } else {
-            this.title = "修改企业客户";
-            this.rulesThis = this.rules;
-          }
-          await this.resetForm();
-          await this.initData();
-        }
-        this.loading = false;
-      }
-    },
-    async resetcexForm() {
-      if (this.$refs.cexForm) {
-        this.$refs.cexForm.resetFields();
-        this.$refs.cexForm.clearValidate();
-        this.cexForm = {
-          id: this.id,
-          remark: "",
-          status: "1",
-        };
-      }
-    },
-    async initData() {
-      this.loading = true;
-      let res = await asyncRequest.detail({ id: this.id });
-      this.loading = false;
-      if (res.code === 0) {
-        let data = res.data;
-        this.dataInfo = data;
-        this.ruleForm = {
-          id: this.id, //企业id
-          type: "2",
-          company_id: data.company_id, //企业id
-          username: data.username, //账号
-          contact: data.name, //真实姓名
-          mobile: data.mobile, //手机号
-          email: data.email, //邮箱
-          remark: data.remark,
-        };
-      }
-    },
-    async resetForm() {
-      // 重置
-      await this.$nextTick(() => {
-        if (this.$refs.ruleForm) {
-          this.$refs.ruleForm.resetFields();
-          this.$refs.ruleForm.clearValidate();
-          this.ruleForm = {
-            id: this.id, //企业id
-            type: "2",
-            company_id: "", //企业id
-            username: "", //账号
-            contact: "", //联系人
-            mobile: "", //手机号
-            emailz: "", //邮箱
-            remark: "",
-          };
-        }
-      });
-    },
-    async submitCexForm() {
-      await this.$refs.cexForm.validate(async (valid) => {
-        if (valid) {
-          this.loading = true;
-          console.log(this.id);
-          console.log(this.cexForm);
-          let obj = JSON.parse(JSON.stringify(this.cexForm));
-
-          obj.id = this.id;
-          console.log(obj);
-          let res = await asyncRequest.exam(obj);
-          this.loading = false;
-          if (res.code === 0) {
-            let title = "审核审批成功!";
-            this.$notify.success({
-              title,
-              message: "",
-            });
-            this.showModelThis = false;
-            // 刷新
-            this.$emit("refresh");
-          }
-        } else {
-          console.log("error submit!!");
-          return false;
-        }
-      });
-    },
-    async submitForm() {
-      await this.$refs.ruleForm.validate(async (valid) => {
-        if (valid) {
-          this.loading = true;
-          let obj = JSON.parse(JSON.stringify(this.ruleForm));
-          let res = {};
-          if (this.id === "add") {
-            delete obj["id"];
-            res = await asyncRequest.add(obj);
-          } else {
-            res = await asyncRequest.update(obj);
-          }
-          this.loading = false;
-          if (res.code === 0) {
-            let title = this.id === "add" ? "添加成功" : "修改成功";
-            this.$notify.success({
-              title,
-              message: "",
-            });
-            this.showModelThis = false;
-            // 刷新
-            this.$emit("refresh");
-          }
-        } else {
-          console.log("error submit!!");
-          return false;
-        }
-      });
-    },
-    async getCompanyList() {
-      let res = await asyncRequest.companyall({ type: "2" });
-      if (res.code === 0) {
-        this.companyList = res.data;
-      }
-    },
-  },
-  watch: {
-    showModel: function (val) {
-      this.showModelThis = val;
-      if (val) {
-        this.initForm();
-      }
-    },
-    showModelThis(val) {
-      if (!val) {
-        this.$emit("cancel");
-      }
-    },
-  },
-};
-</script>
-
-   <style lang="scss" scoped>
-.business {
-  .cexForm-ruleForm {
-    .cexForm-div {
-      margin-bottom: 0px;
-      .cexForm-label {
-        padding-right: 12px;
-        color: #606266;
-        line-height: 40px;
-        font-size: 14px;
-      }
-      .cexForm-main {
-        line-height: 40px;
-        color: rgb(151, 168, 190);
-        line-height: 40px;
-        font-size: 14px;
-      }
-    }
-  }
-}
-</style>
-   

+ 0 - 545
src/views/client/businesss/index.vue

@@ -1,545 +0,0 @@
-<template>
-  <div class="business pagePadding">
-    <div
-      v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
-    >
-      <el-row :gutter="10">
-        <el-col :span="24" style="padding: 0 0 18px 0">
-          <el-col :span="3">
-            <el-select
-              v-model="parmValue.status"
-              filterable
-              clearable
-              :size="searchSize"
-              placeholder="账号状态"
-              style="width: 100%"
-            >
-              <el-option
-                v-for="item in statusList"
-                :key="'status' + item.code"
-                :label="item.name"
-                :value="item.code"
-              />
-            </el-select>
-          </el-col>
-
-          <el-col :span="8">
-            <ul class="el-list-select-input clearfix">
-              <li>
-                <el-select
-                  v-model="select"
-                  :size="searchSize"
-                  placeholder="查询类型"
-                >
-                  <el-option label="客户姓名" value="1"></el-option>
-                  <el-option label="公司名称" value="2"></el-option>
-                  <el-option label="业务员姓名" value="3"></el-option>
-                </el-select>
-              </li>
-              <li>
-                <el-input
-                  :size="searchSize"
-                  v-model="input"
-                  :maxlength="40"
-                  placeholder="关键字"
-                >
-                  <el-button
-                    slot="append"
-                    @click="searchList"
-                    icon="el-icon-search"
-                  ></el-button>
-                </el-input>
-              </li>
-            </ul>
-          </el-col>
-          <el-col :span="13" style="float: right">
-            <el-button
-              type="warning"
-              v-if="powers.some((item) => item == '024')"
-              :size="searchSize"
-              @click="restSearch"
-            >
-              重置
-            </el-button>
-            <el-button
-              type="primary"
-              v-if="powers.some((item) => item == '002')"
-              :size="searchSize"
-              style="float: right; margin-left: 5px"
-              @click="searchList"
-            >
-              刷新
-            </el-button>
-            <el-button
-              v-if="powers.some((item) => item == '003')"
-              :size="searchSize"
-              type="success"
-              style="float: right"
-              @click="openModal('add', false, false, true)"
-            >
-              添加
-            </el-button>
-          </el-col>
-        </el-col>
-      </el-row>
-
-      <el-table
-        :data="tableData"
-        style="width: 100%"
-        row-key="id"
-        border
-        v-loading="loading"
-        :size="size"
-      >
-        <el-table-column
-          prop="company"
-          label="企业名称"
-          show-overflow-tooltip
-          align="center"
-        >
-        </el-table-column>
-        <el-table-column
-          prop="name"
-          label="真实姓名"
-          show-overflow-tooltip
-          align="center"
-        >
-        </el-table-column>
-        <!-- <el-table-column
-          prop="mobile"
-          label="手机号"
-          show-overflow-tooltip
-          align="center"
-        >
-        </el-table-column>
-        <el-table-column
-          prop="email"
-          label="邮箱"
-          show-overflow-tooltip
-          align="center"
-        >
-        </el-table-column> -->
-        <el-table-column
-          prop="admin_name"
-          label="业务员"
-          show-overflow-tooltip
-          align="center"
-        >
-        </el-table-column>
-        <el-table-column label="审核状态" show-overflow-tooltip align="center">
-          <template slot-scope="scope">
-            <el-tag
-              :size="tablebtnSize"
-              v-if="scope.row.ex_status === '0'"
-              :class="{
-                'hover-tag':
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '010'),
-              }"
-              :type="'warning'"
-              @click="
-                openModal(
-                  scope.row.id,
-                  false,
-                  true,
-                  scope.row.status === '0' &&
-                    powers.some((item) => item == '010')
-                )
-              "
-            >
-              <i
-                class="el-icon-thumb"
-                v-if="
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '010')
-                "
-                style="margin-right: 1px"
-              ></i>
-              {{ scope.row.ex_status_cn }}
-            </el-tag>
-            <el-tag
-              :size="tablebtnSize"
-              v-else-if="scope.row.ex_status === '1'"
-              :type="'success'"
-            >
-              {{ scope.row.ex_status_cn }}
-            </el-tag>
-            <el-tag
-              :size="tablebtnSize"
-              v-else-if="scope.row.ex_status === '2'"
-              :class="{
-                'hover-tag':
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '009'),
-              }"
-              :type="'danger'"
-              @click="
-                again(
-                  scope.row.id,
-                  scope.row.status === '0' &&
-                    powers.some((item) => item == '009')
-                )
-              "
-            >
-              <i
-                class="el-icon-thumb"
-                v-if="
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '009')
-                "
-                style="margin-right: 1px"
-              ></i>
-              {{ scope.row.ex_status_cn }}
-            </el-tag>
-            <el-tag
-              :size="tablebtnSize"
-              v-else-if="scope.row.ex_status === '3'"
-              :class="{
-                'hover-tag':
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '009'),
-              }"
-              :type="'info'"
-              @click="
-                again(
-                  scope.row.id,
-                  scope.row.status === '0' &&
-                    powers.some((item) => item == '009')
-                )
-              "
-            >
-              <i
-                class="el-icon-thumb"
-                v-if="
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '009')
-                "
-                style="margin-right: 1px"
-              ></i>
-              {{ scope.row.ex_status_cn }}
-            </el-tag>
-          </template>
-        </el-table-column>
-        <el-table-column label="状态" show-overflow-tooltip align="center">
-          <template slot-scope="scope">
-            <el-tag
-              v-if="scope.row.status === '1'"
-              type="success"
-              :class="{ 'hover-tag': powers.some((item) => item == '004') }"
-              :size="tablebtnSize"
-              @click="
-                statusConfirm(
-                  scope.row.id,
-                  scope.row.status,
-                  scope.row.ex_status,
-                  powers.some((item) => item == '004')
-                )
-              "
-            >
-              <i
-                class="el-icon-thumb"
-                v-if="powers.some((item) => item == '004')"
-                style="margin-right: 1px"
-              ></i>
-              启用</el-tag
-            >
-            <el-tag
-              v-else
-              :class="{ 'hover-tag': powers.some((item) => item == '004') }"
-              :size="tablebtnSize"
-              type="warning"
-              @click="
-                statusConfirm(
-                  scope.row.id,
-                  scope.row.status,
-                  scope.row.ex_status,
-                  powers.some((item) => item == '004')
-                )
-              "
-            >
-              <i
-                class="el-icon-thumb"
-                v-if="powers.some((item) => item == '004')"
-                style="margin-right: 1px"
-              ></i>
-              禁用</el-tag
-            >
-          </template>
-        </el-table-column>
-        <el-table-column
-          prop="addtime"
-          label="创建时间"
-          show-overflow-tooltip
-          align="center"
-        ></el-table-column>
-        <el-table-column fixed="right" label="操作" align="center">
-          <template slot-scope="scope">
-            <el-link
-              v-if="
-                (scope.row.status === '0' &&
-                  scope.row.ex_status === '3' &&
-                  powers.some((item) => item == '005')) ||
-                (scope.row.status === '0' &&
-                  scope.row.ex_status === '2' &&
-                  powers.some((item) => item == '005'))
-              "
-              type="primary"
-              style="margin: 0 4px"
-              :underline="false"
-              :size="tablebtnSize"
-              @click="openModal(scope.row.id, false, false, true)"
-            >
-              修改
-            </el-link>
-            <!-- <el-link
-          type="primary"
-              style="margin: 0 4px"
-              :underline="false"
-              :size="tablebtnSize"
-            @click="deleteById(scope.row.id)"
-          >
-            删除
-          </el-link>  -->
-            <el-link
-              v-if="powers.some((item) => item == '007')"
-              type="primary"
-              style="margin: 0 4px"
-              :underline="false"
-              :size="tablebtnSize"
-              @click="openModal(scope.row.id, true, false, true)"
-            >
-              详情
-            </el-link>
-          </template>
-        </el-table-column>
-      </el-table>
-      <div
-        class="Pagination"
-        style="text-align: right; margin-top: 10px"
-        v-show="count > 0"
-      >
-        <el-pagination
-          :size="searchSize"
-          @size-change="handleSizeChange"
-          @current-change="handlePageChange"
-          :current-page="parmValue.page"
-          :page-sizes="[10, 15, 20, 30, 40]"
-          :page-size="parmValue.size"
-          layout="total, sizes, prev, pager, next, jumper"
-          :total="count"
-        ></el-pagination>
-      </div>
-      <add-edit
-        :showModel="showModel"
-        :id="modelId"
-        :isApproval="approval"
-        :isDetail="isDetail"
-        @refresh="searchList"
-        @cancel="showModel = false"
-      ></add-edit>
-    </div>
-    <div v-else>
-      <no-auth></no-auth>
-    </div>
-  </div>
-</template>
-   <script>
-import mixinPage from "@/mixins/elPaginationHandle";
-import asyncRequest from "@/apis/service/client/business";
-import addEdit from "./addEdit";
-import statusList from "@/assets/js/statusList";
-import { mapGetters } from "vuex";
-export default {
-  name: "business",
-  data() {
-    return {
-      statusList: statusList,
-      approval: false,
-      loading: true,
-      showModel: false,
-      isDetail: false,
-      modelId: 0,
-      select: "1",
-      input: "",
-      parmValue: {
-        status: "",
-        staff: "", //客户姓名
-        name: "", // 公司名称
-        admin: "", //业务员姓名
-        type: "2",
-        page: 1, // 页码
-        size: 10, // 每页显示条数
-      },
-      count: 0, // 总条数
-      tableData: [],
-    };
-  },
-  mixins: [mixinPage],
-  mounted() {
-    this.searchList();
-  },
-  components: {
-    addEdit,
-  },
-  computed: {
-    ...mapGetters(["tablebtnSize", "searchSize", "size"]),
-    powers() {
-      let tran =
-        this.$store.getters.btnList.find(
-          (item) => item.menu_route == "business"
-        ) || {};
-      if (tran && tran.action && tran.action.length > 0) {
-        return tran.action;
-      } else {
-        return [];
-      }
-    },
-  },
-  methods: {
-    restSearch() {
-      this.input = "";
-      this.select = "1";
-      this.parmValue = {
-        status: "",
-        type: "2",
-        staff: "", //客户姓名
-        name: "", // 公司名称
-        admin: "", //业务员姓名
-        page: 1, // 页码
-        size: 10, // 每页显示条数
-      };
-      this.searchList();
-    },
-    openModal(id, isDetail, approval, type) {
-      if (!type) {
-        return;
-      }
-      this.showModel = true;
-      this.modelId = id;
-      this.isDetail = isDetail;
-      this.approval = approval;
-    },
-    async deleteById(id) {
-      await this.$confirm("确定要删除?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          let res = await asyncRequest.delete({ id });
-          if (res.code === 0) {
-            this.$notify.success({
-              title: "删除成功",
-              message: "",
-            });
-            this.searchList();
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-
-    async again(id, type) {
-      if (!type) {
-        return;
-      }
-      await this.$confirm("确定要提交审核?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          let res = await asyncRequest.again({ id: id });
-          if (res.code === 0) {
-            this.$notify.success({
-              title: "提交成功",
-              message: "",
-            });
-            this.searchList();
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-    async searchList() {
-      this.loading = true;
-      if (this.select === "1") {
-        this.parmValue.staff = this.input; //客户姓名
-        this.parmValue.name = ""; // 公司名称
-        this.parmValue.admin = ""; //业务员姓名
-      } else if (this.select === "2") {
-        this.parmValue.staff = ""; //客户姓名
-        this.parmValue.name = this.input; // 公司名称
-        this.parmValue.admin = ""; //业务员姓名
-      } else if (this.select === "3") {
-        this.parmValue.staff = ""; //客户姓名
-        this.parmValue.name = ""; // 公司名称
-        this.parmValue.admin = this.input; //业务员姓名
-      } else {
-        this.parmValue.staff = ""; //客户姓名
-        this.parmValue.name = ""; // 公司名称
-        this.parmValue.admin = ""; //业务员姓名
-      }
-      let res = await asyncRequest.list(this.parmValue);
-      if (res.code === 0 && res.data) {
-        this.tableData = res.data.list;
-        this.tableData.map((v1) => {
-          if (v1.addtime) {
-            v1.addtime = v1.addtime.replaceAll(".000", "");
-          }
-          return v1;
-        });
-        this.count = Number(res.data.count);
-      } else {
-        this.tableData = [];
-        this.count = 0;
-      }
-      this.loading = false;
-    },
-    async statusConfirm(id, status, ex_status, type) {
-      if (!type) {
-        return;
-      }
-      if (ex_status === "1") {
-        await this.$confirm(`确定要改为${status === "1" ? "禁用" : "启用"}?`, {
-          confirmButtonText: "确定",
-          cancelButtonText: "取消",
-          type: "warning",
-        })
-          .then(async () => {
-            this.loading = true;
-            const model = {
-              id: id,
-              status: status === "1" ? "0" : "1",
-            };
-            const res = await asyncRequest.status(model);
-            if (res.code === 0) {
-              this.loading = false;
-              this.$notify.success({
-                title: "状态修改成功!",
-                message: "",
-              });
-              await this.searchList();
-            } else {
-              this.loading = false;
-            }
-          })
-          .catch(() => {
-            console.log("取消");
-          });
-      } else {
-        if (status === "0") {
-          this.$message.warning("只有审核通过的规格,才能启用!");
-        }
-      }
-    },
-  },
-};
-</script>
-   <style lang="scss" scoped>
-.business {
-}
-</style>
-   

+ 0 - 0
src/views/client/businesss/企业客户管理


+ 0 - 463
src/views/client/company/addEdit.vue

@@ -1,463 +0,0 @@
-<template>
-  <el-dialog
-    :title="title"
-    :center="true"
-    align="left"
-    top="5vh"
-    width="700px"
-    @close="closeModel"
-    :close-on-click-modal="false"
-    :visible.sync="showModelThis"
-    v-loading="loading"
-    element-loading-text="拼命加载中"
-    element-loading-spinner="el-icon-loading"
-    element-loading-background="rgba(0, 0, 0, 0.8)"
-  >
-    <el-card>
-      <el-row :gutter="10">
-        <el-col :span="24">
-          <el-form
-            v-if="isApproval"
-            :model="cexForm"
-            status-icon
-            :rules="cexRules"
-            ref="cexForm"
-            label-width="80px"
-            class="cexForm-ruleForm"
-            ><el-row>
-              <el-col :span="12">
-                <el-row class="cexForm-div">
-                  <el-col :span="8" class="tr cexForm-label">企业名称:</el-col>
-                  <el-col :span="16" class="cexForm-main">{{
-                    ruleForm.company_name
-                  }}</el-col>
-                </el-row>
-                <el-row class="cexForm-div">
-                  <el-col :span="8" class="tr cexForm-label clearfix">
-                    <span class="fr">统一社会</span><span class="fr">信用代码:</span>
-                  </el-col>
-                  <el-col :span="16" class="cexForm-main">{{
-                    ruleForm.invoice
-                  }}</el-col>
-                </el-row>
-                <el-row class="cexForm-div">
-                  <el-col :span="8" class="tr cexForm-label">企业类型:</el-col>
-                  <el-col :span="16" class="cexForm-main">
-                    <el-tag type="info" v-for="model in typeStr" :key="model">{{
-                      model
-                    }}</el-tag>
-                  </el-col>
-                </el-row>
-              </el-col>
-              <el-col :span="12">
-                <el-form-item label="审核状态" prop="status">
-                  <el-select
-                    v-model="cexForm.status"
-                    placeholder="请选择审核状态"
-                    @change="selectChange"
-                  >
-                    <el-option
-                      v-for="item in statusList"
-                      :key="item.code"
-                      :label="item.name"
-                      :value="item.code"
-                    >
-                    </el-option>
-                  </el-select>
-                </el-form-item>
-                <el-form-item label="审核说明" prop="remark">
-                  <el-input
-                    v-model="cexForm.remark"
-                    type="textarea"
-                    placeholder="请输入审核说明"
-                    :rows="5"
-                    maxlength="300"
-                    show-word-limit
-                  ></el-input>
-                </el-form-item>
-                <el-col :span="24" style="text-align: right">
-                  <el-button type="primary" @click="submitCexForm"
-                    >保 存
-                  </el-button>
-                  <el-button @click="showModelThis = false">取 消</el-button>
-                </el-col>
-              </el-col>
-            </el-row></el-form
-          >
-
-          <el-form
-            v-else
-            :model="ruleForm"
-            status-icon
-            :rules="rulesThis"
-            ref="ruleForm"
-            label-width="140px"
-            class="demo-ruleForm"
-            ><el-row>
-              <el-col :span="24">
-                <el-form-item
-                  label="企业名称"
-                  prop="company_name"
-                  :disabled="isDetail"
-                >
-                  <el-input
-                    placeholder="请输入企业名称"
-                    v-model="ruleForm.company_name"
-                    :disabled="isDetail"
-                  ></el-input>
-                </el-form-item>
-              </el-col>
-              <el-col :span="24">
-                <el-form-item label="统一社会信用代码" prop="invoice">
-                  <el-input
-                    v-model="ruleForm.invoice"
-                    placeholder="请输入统一社会信用代码"
-                    :disabled="isDetail"
-                  ></el-input>
-                </el-form-item>
-              </el-col>
-              <el-col :span="24">
-                <el-form-item label="企业类型" prop="type">
-                  <el-checkbox-group v-model="ruleForm.type">
-                    <el-checkbox
-                      v-for="(item, i) in typeList"
-                      :key="item.code + i"
-                      :label="item.code"
-                      >{{ item.name }}</el-checkbox
-                    >
-                  </el-checkbox-group>
-                </el-form-item>
-              </el-col>
-            </el-row>
-
-            <el-col :span="24" style="text-align: right">
-              <el-tag
-                type="warning"
-                class="fl"
-                style="max-width: 500px"
-                v-if="dataInfo.ex_remark && dataInfo.ex_status === '2'"
-                >审核备注:{{ dataInfo.ex_remark }}</el-tag
-              >
-
-              <el-button type="primary" @click="submitForm" v-if="!isDetail"
-                >保 存
-              </el-button>
-              <el-button @click="showModelThis = false">{{
-                isDetail ? "关 闭" : "取 消"
-              }}</el-button>
-            </el-col>
-          </el-form>
-        </el-col>
-      </el-row>
-    </el-card>
-  </el-dialog>
-</template>
-   <script>
-import asyncRequest from "@/apis/service/client/company";
-import {
-  isnumber,
-  isMobile,
-  validEmail,
-  isAlphanumeric,
-  isChinese,
-  isEmoticon,
-  validAlphabets,
-  isCreditCode,
-} from "@/utils/validate";
-import statusList from "@/assets/js/cexStatusList";
-export default {
-  name: "company",
-  props: ["showModel", "id", "isDetail", "isApproval"],
-  data() {
-    const validatename = (rule, value, callback) => {
-      if (value === "") {
-        callback(new Error("企业名称不能为空!"));
-      } else {
-        if (value.length > 100) {
-          callback(new Error("企业名称不能超过100字符!"));
-        } else {
-          if (isEmoticon(value)) {
-            callback(new Error("企业名称不能使用表情包!"));
-          } else {
-            callback();
-          }
-        }
-      }
-    };
-    const validateinvoice = (rule, value, callback) => {
-      if (value === "") {
-        callback(new Error("统一社会信用代码不能为空!"));
-      } else if (!isCreditCode(value)) {
-        callback(new Error("统一社会信用代码不正确!"));
-      } else {
-        callback();
-      }
-    };
-    return {
-      statusList: statusList,
-      loading: false,
-      title: "添加企业",
-      showModelThis: this.showModel,
-      dataInfo: {},
-      typeStr: [],
-      typeList: [
-        {
-          code: "1",
-          name: "供应商",
-        },
-        {
-          code: "2",
-          name: "企业客户",
-        },
-      ],
-      cexForm: {
-        id: this.id,
-        remark: "",
-        status: "1",
-      },
-      ruleForm: {
-        id: this.id,
-        invoice: "",
-        type: [],
-        company_name: "",
-      },
-      cexRules: {
-        status: {
-          required: true,
-          message: "请选择审核状态",
-          trigger: "change",
-        },
-        remark: [
-          {
-            required: false,
-            message: "请输入审核说明!",
-            trigger: "blur",
-          },
-        ],
-      },
-      rulesThis: this.rules,
-      rules: {
-        company_name: [
-          {
-            required: true,
-            validator: validatename,
-            trigger: "blur",
-          },
-        ],
-        type: [
-          {
-            type: "array",
-            required: true,
-            message: "请至少选择一个企业类型",
-            trigger: "change",
-          },
-        ],
-
-        invoice: [
-          {
-            required: true,
-            validator: validateinvoice,
-            trigger: "blur",
-          },
-        ],
-      },
-    };
-  },
-  methods: {
-    closeModel() {
-      console.log("closeModel!!");
-    },
-    selectChange() {
-      if (this.cexForm.status === "1") {
-        this.cexRules.remark[0].required = false;
-      } else {
-        this.cexRules.remark[0].required = true;
-      }
-    },
-    async initForm() {
-      if (this.isApproval) {
-        this.loading = true;
-        this.title = "企业审核";
-        await this.initData();
-        await this.resetcexForm();
-        this.selectChange();
-        this.loading = false;
-      } else {
-        if (this.id === "add") {
-          this.title = "添加企业";
-          // this.ruleForm.isAdmin = 0;
-          this.loading = false;
-          this.rulesThis = this.rules;
-          await this.resetForm();
-        } else {
-          if (this.isDetail) {
-            this.title = "企业";
-            this.rulesThis = {};
-          } else {
-            this.title = "修改企业";
-            this.rulesThis = this.rules;
-          }
-          await this.resetForm();
-          await this.initData();
-        }
-      }
-    },
-    async resetcexForm() {
-      if (this.$refs.cexForm) {
-        this.$refs.cexForm.resetFields();
-        this.$refs.cexForm.clearValidate();
-        this.cexForm = {
-          id: this.id,
-          remark: "",
-          status: "1",
-        };
-      }
-    },
-    async initData() {
-      this.loading = true;
-      let res = await asyncRequest.detail({ id: this.id });
-      this.loading = false;
-      if (res.code === 0) {
-        let data = res.data;
-        this.dataInfo = data;
-        this.ruleForm = {
-          id: this.id,
-          invoice: data.invoice,
-          type: [],
-          company_name: data.company,
-        };
-        this.typeStr=[]
-        if (data.is_supplier === "1") {
-          this.ruleForm.type.push("1");
-          this.typeStr.push("供应商");
-        }
-        if (data.is_customer === "1") {
-          this.ruleForm.type.push("2");
-          this.typeStr.push("企业客户");
-        }
-      }
-    },
-    async resetForm() {
-      // 重置
-      await this.$nextTick(() => {
-        if (this.$refs.ruleForm) {
-          this.$refs.ruleForm.resetFields();
-          this.$refs.ruleForm.clearValidate();
-          this.ruleForm = {
-            id: this.id,
-            invoice: "91110113MA004JNJ28",
-            type: ["1"],
-            company_name: "北京万宇恒通国际科贸有限公司",
-            // isAdmin: 0
-          };
-        }
-      });
-    },
-    async submitCexForm() {
-      await this.$refs.cexForm.validate(async (valid) => {
-        if (valid) {
-          this.loading = true;
-          console.log(this.id);
-          console.log(this.cexForm);
-          let obj = JSON.parse(JSON.stringify(this.cexForm));
-
-          obj.id = this.id;
-          console.log(obj);
-          let res = await asyncRequest.exam(obj);
-          this.loading = false;
-          if (res.code === 0) {
-            let title = "审核审批成功!";
-            this.$notify.success({
-              title,
-              message: "",
-            });
-            this.showModelThis = false;
-            // 刷新
-            this.$emit("refresh");
-          }
-        } else {
-          console.log("error submit!!");
-          return false;
-        }
-      });
-    },
-    async submitForm() {
-      await this.$refs.ruleForm.validate(async (valid) => {
-        if (valid) {
-          this.loading = true;
-          let obj = JSON.parse(JSON.stringify(this.ruleForm));
-          // obj.type = obj.type.join();
-          let res = {};
-          if (this.id === "add") {
-            delete obj["id"];
-            res = await asyncRequest.add(obj);
-          } else {
-            res = await asyncRequest.update(obj);
-          }
-          this.loading = false;
-          if (res.code === 0) {
-            let title = this.id === "add" ? "添加成功" : "修改成功";
-            this.$notify.success({
-              title,
-              message: "",
-            });
-            this.showModelThis = false;
-            // 刷新
-            this.$emit("refresh");
-          }
-        } else {
-          console.log("error submit!!");
-          return false;
-        }
-      });
-    },
-  },
-  watch: {
-    showModel: function (val) {
-      this.showModelThis = val;
-      if (val) {
-        this.initForm();
-      }
-    },
-    showModelThis(val) {
-      if (!val) {
-        this.$emit("cancel");
-      }
-    },
-  },
-};
-</script>
-
-   <style lang="scss" scoped>
-.company {
-  .cexForm-ruleForm {
-    .cexForm-div {
-      margin-bottom: 22px;
-      .cexForm-label {
-        padding-right: 12px;
-        color: #606266;
-        line-height: 40px;
-        font-size: 14px;
-        span{
-          width: 100%;
-          display: inline-block;
-           line-height: 20px;
-           height: 20px;
-           vertical-align: top;
-          &:first-child{
-            padding-right: 13px;
-           
-          }
-        }
-      }
-      .cexForm-main {
-        line-height: 40px;
-        color: rgb(151, 168, 190);
-        line-height: 40px;
-        font-size: 14px;
-      }
-    }
-  }
-}
-</style>
-   

+ 0 - 367
src/views/client/company/bankModal.vue

@@ -1,367 +0,0 @@
-<template>
-  <el-dialog
-    :title="'财务信息'"
-    :center="true"
-    align="left"
-    width="1040px"
-    @close="closeModel"
-    :close-on-click-modal="false"
-    :visible.sync="showModelThis"
-    v-loading="loading"
-    element-loading-text="拼命加载中"
-    element-loading-spinner="el-icon-loading"
-    element-loading-background="rgba(0, 0, 0, 0.8)"
-  >
-    <el-card style="margin-top: -16px">
-      <el-row :gutter="10" v-if="editModal === false">
-        <el-col :span="24" style="padding: 0 5px 8px 0">
-          <span style="height: 36px; line-height: 36px; padding: 0 0 0 8px">{{
-            title
-          }}</span>
-          <el-button
-            :size="searchSize"
-            type="success"
-            style="float: right"
-            @click="openModal('add')"
-          >
-            添加
-          </el-button>
-        </el-col>
-        <el-col :span="24">
-          <el-table
-            :data="tableData"
-            stripe
-            v-loading="loading"
-            border
-            :size="size"
-            style="width: 100%"
-          >
-            <el-table-column
-              prop="bank_name"
-              label="开户银行"
-              show-overflow-tooltip
-              align="center"
-            >
-            </el-table-column>
-            <el-table-column
-              prop="company"
-              label="账号"
-              show-overflow-tooltip
-              align="center"
-            >
-            </el-table-column>
-
-            <el-table-column label="状态" show-overflow-tooltip align="center">
-              <template slot-scope="scope">
-                <el-tag
-                  :size="tablebtnSize"
-                  v-if="scope.row.status === '1'"
-                  type="success"
-                  @click="statusConfirm(scope.row.id, scope.row.status)"
-                  ><i class="el-icon-thumb" style="margin-right: 1px"></i
-                  >启用</el-tag
-                >
-                <el-tag
-                  v-else
-                  :size="tablebtnSize"
-                  type="warning"
-                  @click="statusConfirm(scope.row.id, scope.row.status)"
-                  ><i class="el-icon-thumb" style="margin-right: 1px"></i
-                  >禁用</el-tag
-                >
-              </template>
-            </el-table-column>
-            <el-table-column
-              prop="bank_addr"
-              label="开户行地址"
-              show-overflow-tooltip
-              align="center"
-            ></el-table-column>
-          </el-table>
-        </el-col>
-      </el-row>
-      <el-row :gutter="10" v-else>
-        <el-form
-          :model="ruleForm"
-          status-icon
-          :rules="rulesThis"
-          ref="ruleForm"
-          label-width="120px"
-          class="demo-ruleForm"
-          ><el-row>
-            <el-col :span="24">
-              <el-form-item label="银行所在区" prop="bankaddr">
-                <el-cascader
-                  placeholder="请选择银行所在区"
-                  v-model="ruleForm.bankaddr"
-                  style="width: 100%"
-                  :props="regionProps"
-                ></el-cascader>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="银行名称" prop="bankname">
-                <el-input
-                  placeholder="请输入银行名称"
-                  v-model="ruleForm.bankname"
-                ></el-input>
-              </el-form-item>
-            </el-col>
-            <el-col :span="24">
-              <el-form-item label="银行卡号" prop="bankcode">
-                <el-input
-                  placeholder="银行卡号"
-                  v-model="ruleForm.bankcode"
-                ></el-input>
-              </el-form-item>
-            </el-col>
-          </el-row>
-
-          <el-col :span="24" style="text-align: right">
-            <el-button type="primary" @click="submitForm">保 存 </el-button>
-            <el-button @click="showModelThis = false">取 消</el-button>
-          </el-col>
-        </el-form>
-      </el-row>
-    </el-card>
-  </el-dialog>
-</template>
-   <script>
-let id = 0;
-import asyncRequest from "@/apis/service/client/company";
-import { mapGetters } from "vuex";
-export default {
-  name: "goods",
-  props: ["showModel", "id", "title"],
-  computed: {
-    ...mapGetters(["tablebtnSize", "searchSize", "size"]),
-  },
-  data() {
-    const validatename = (rule, value, callback) => {
-      if (value === "") {
-        callback(new Error("规格名称不能为空!"));
-      } else {
-        if (value.lenght < 2 || value.lenght > 12) {
-          callback(new Error("规格名称规则为2~12位汉字!"));
-        } else {
-          if (!isChinese(value)) {
-            callback(new Error("规格名称规则为2~12位汉字!"));
-          } else if (isEmoticon(value)) {
-            callback(new Error("规格名称规则为2~12位汉字!"));
-          } else {
-            callback();
-          }
-        }
-      }
-    };
-    const validatecode = (rule, value, callback) => {
-      if (value === "") {
-        callback(new Error("银行卡号不能为空!"));
-      } else {
-        if (value.lenght < 8 || value.lenght > 32) {
-          callback(
-            new Error("银行卡号规则为8~32位数字、字母、数字与字母组合!")
-          );
-        } else if (!isAlphanumeric(value)) {
-          callback(
-            new Error("银行卡号规则为8~32位数字、字母、数字与字母组合!")
-          );
-        } else {
-          callback();
-        }
-      }
-    };
-    return {
-      regionProps: {
-        lazy: true,
-        lazyLoad: this.getall,
-      },
-      loading: false,
-      showModelThis: this.showModel,
-      tableData: [],
-      editModal: true,
-      editId: 0,
-      ruleForm: {
-        id: this.id,
-        bankname: "北京有限公司",
-        bankaddr: [],
-        bankcode: "11050162550000000142"
-        //"6228481091494940719",
-        //"20000048109600041400861",
-      },
-      rulesThis: this.rules,
-      rules: {
-        bankname: [
-          {
-            required: true,
-            validator: validatename,
-            trigger: "blur",
-          },
-        ],
-        bankcode: [
-          {
-            required: true,
-            validator: validatecode,
-            trigger: "blur",
-          },
-        ],
-        bankaddr: [
-          {
-            required: true,
-            type: "array",
-            message: "排序不能为空!",
-            trigger: "change",
-          },
-        ],
-      },
-    };
-  },
-  methods: {
-    closeModel() {
-      this.showModelThis = false;
-    },
-    async initForm() {
-      console.log(this.id);
-      this.loading = true;
-      let res = await asyncRequest.bank({ id: this.id });
-      if (res.code === 0 && res.data) {
-        this.tableData = res.data;
-        // this.tableData.map((v1) => {
-        //   v1.addtime = v1.addtime.replaceAll(".000", "");
-        //   return v1;
-        // });
-      } else {
-        this.tableData = [];
-      }
-      this.loading = false;
-    },
-    openModal(id) {
-      this.editModal = true;
-      this.editId = id;
-    },
-    getall(node, resolve) {
-      const { level, value } = node;
-      this.getList(level, value)
-        .then((res) => {
-          let list = res;
-          list.map((v1) => {
-            v1.value =
-              v1[
-                `${level == 0 ? "province" : level == 1 ? "city" : "area"}_code`
-              ];
-            v1.label =
-              v1[
-                `${level == 0 ? "province" : level == 1 ? "city" : "area"}_name`
-              ];
-            v1.leaf = level >= 2;
-            return v1;
-          });
-          resolve(list);
-        })
-        .catch((error) => {
-          resolve([]);
-        });
-    },
-    getList(level, id) {
-      return new Promise((resolve, reject) => {
-        let api = "";
-        let res = {};
-        if (level === 0) {
-          api = "pList";
-        } else if (level === 1) {
-          api = "cList";
-        } else if (level === 2) {
-          api = "aList";
-        }
-        let model = {
-          code: id,
-        };
-        if (level === 0) {
-          delete model["code"];
-        }
-        asyncRequest[api](model)
-          .then((res) => {
-            if (res.code === 0 && res.data) {
-              resolve(res.data);
-            } else {
-              resolve([]);
-            }
-          })
-          .catch((error) => {
-            reject(error);
-          });
-      });
-    },
-    async submitForm() {
-      await this.$refs.ruleForm.validate(async (valid) => {
-        if (valid) {
-          this.loading = true;
-          let rescode = await asyncRequest.getbank({
-            bankcode: this.ruleForm.bankcode,
-          });
-          if (rescode.code === 0) {
-            let obj = JSON.parse(JSON.stringify(this.ruleForm));
-            obj.bankaddr = obj.bankaddr.join();
-            obj.id = this.id;
-            let res = await asyncRequest.attrAdd(obj);
-            this.loading = false;
-            if (res.code === 0) {
-              let title = this.id === "add" ? "添加成功" : "修改成功";
-              this.$notify.success({
-                title,
-                message: "",
-              });
-              // this.showModelThis = false;
-              // // 刷新
-              // this.$emit("refresh");
-            }
-          } else {
-            console.log(rescode);
-          }
-        } else {
-          // console.log("error submit!!");
-          return false;
-        }
-      });
-    },
-  },
-  watch: {
-    showModel: function (val) {
-      this.showModelThis = val;
-      if (val) {
-        this.initForm();
-      }
-    },
-    showModelThis(val) {
-      if (!val) {
-        this.$emit("cancel");
-      }
-    },
-  },
-};
-</script>
-
-   <style lang="scss" scoped>
-.goods {
-  .activeImg {
-    display: inline-block;
-    width: 100%;
-  }
-  .img-box {
-    img {
-      width: 40px;
-      height: 40px;
-      display: inline-block;
-      margin: 0 3px;
-      border: 1px solid transparent;
-      &.active {
-        border: 1px solid red;
-      }
-      &:hover {
-        cursor: pointer;
-      }
-    }
-  }
-}
-</style>
-   

+ 0 - 537
src/views/client/company/index.vue

@@ -1,537 +0,0 @@
-<template>
-  <div class="company pagePadding">
-    <div
-      v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
-    >
-      <el-row :gutter="10">
-        <el-col :span="24" style="padding: 0 0 18px 0">
-          <el-col :span="4">
-            <el-select
-              v-model="parmValue.status"
-              filterable
-              clearable
-              :size="searchSize"
-              placeholder="账号状态"
-              style="width: 100%"
-            >
-              <el-option
-                v-for="item in statusList"
-                :key="'status' + item.code"
-                :label="item.name"
-                :value="item.code"
-              />
-            </el-select>
-          </el-col>
-          <el-col :span="4">
-            <el-select
-              v-model="parmValue.type"
-              filterable
-              clearable
-              :size="searchSize"
-              placeholder="请选择类型"
-              style="width: 100%"
-            >
-              <el-option
-                v-for="item in typeList"
-                :key="'status' + item.code"
-                :label="item.name"
-                :value="item.code"
-              />
-            </el-select>
-          </el-col>
-          <el-col :span="4">
-            <el-input
-              :size="searchSize"
-              v-model="parmValue.name"
-              :maxlength="40"
-              placeholder="企业名称"
-            ></el-input>
-          </el-col>
-          <el-col :span="3" style="width: 152px">
-            <el-button
-              type="primary"
-              :size="searchSize"
-              @click="searchList"
-              icon="el-icon-search"
-            ></el-button>
-            <el-button type="warning" v-if="powers.some((item) => item == '024')"  :size="searchSize" @click="restSearch">
-              重置
-            </el-button>
-          </el-col>
-          <el-col :span="3" style="width: 195px; float: right">
-            <el-button
-            v-if="powers.some((item) => item == '002')" 
-              type="primary"
-              :size="searchSize"
-              style="float: right; margin-left: 5px"
-              @click="searchList"
-            >
-              刷新
-            </el-button>
-            <el-button
-            v-if="powers.some((item) => item == '003')" 
-              :size="searchSize"
-              type="success"
-              style="float: right"
-              @click="openModal('add', false, false, true)"
-            >
-              添加
-            </el-button>
-          </el-col>
-        </el-col>
-      </el-row>
-      <el-table
-        :data="tableData"
-        stripe
-        v-loading="loading"
-        border
-        :size="size"
-        style="width: 100%"
-      >
-        <el-table-column
-          prop="company"
-          label="企业名称"
-          show-overflow-tooltip
-          align="center"
-        ></el-table-column>
-        <el-table-column label="企业类型" show-overflow-tooltip align="center">
-          <template slot-scope="scope">
-            <el-tag
-              :size="tablebtnSize"
-              v-if="scope.row.is_supplier === '1'"
-              type="success"
-              style="margin: 0 3px"
-              >供应商</el-tag
-            >
-            <el-tag
-              :size="tablebtnSize"
-              v-if="scope.row.is_customer === '1'"
-              type="warning"
-              style="margin: 0 3px"
-              >企业客户</el-tag
-            >
-          </template>
-        </el-table-column>
-
-        <el-table-column label="审核状态" show-overflow-tooltip align="center">
-          <template slot-scope="scope">
-            <el-tag
-             :size="tablebtnSize"
-              v-if="scope.row.ex_status === '0'"
-              :class="{
-                'hover-tag':
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '010'),
-              }"
-              :type="'warning'"
-              @click="
-                openModal(
-                  scope.row.id,
-                  false,
-                  true,
-                  scope.row.status === '0' &&
-                    powers.some((item) => item == '010')
-                )
-              "
-            >
-              <i
-                class="el-icon-thumb"
-                v-if="
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '010')
-                "
-                style="margin-right: 1px"
-              ></i>
-              {{ scope.row.ex_status_cn }}
-            </el-tag>
-            <el-tag  :size="tablebtnSize" v-else-if="scope.row.ex_status === '1'" :type="'success'">
-              {{ scope.row.ex_status_cn }}
-            </el-tag>
-            <el-tag
-             :size="tablebtnSize"
-              v-else-if="scope.row.ex_status === '2'"
-              :class="{
-                'hover-tag':
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '009'),
-              }"
-              :type="'danger'"
-              @click="
-                again(
-                  scope.row.id,
-                  scope.row.status === '0' &&
-                    powers.some((item) => item == '009')
-                )
-              "
-            >
-              <i
-                class="el-icon-thumb"
-                v-if="
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '009')
-                "
-                style="margin-right: 1px"
-              ></i>
-              {{ scope.row.ex_status_cn }}
-            </el-tag>
-            <el-tag
-             :size="tablebtnSize"
-              v-else-if="scope.row.ex_status === '3'"
-              :class="{
-                'hover-tag':
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '009'),
-              }"
-              :type="'info'"
-              @click="
-                again(
-                  scope.row.id,
-                  scope.row.status === '0' &&
-                    powers.some((item) => item == '009')
-                )
-              "
-            >
-              <i
-                class="el-icon-thumb"
-                v-if="
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '009')
-                "
-                style="margin-right: 1px"
-              ></i>
-              {{ scope.row.ex_status_cn }}
-            </el-tag>
-          </template>
-        </el-table-column>
-        <el-table-column label="状态" show-overflow-tooltip align="center">
-          <template slot-scope="scope">
-            <el-tag
-              v-if="scope.row.status === '1'"
-              type="success"
-              :class="{ 'hover-tag': powers.some((item) => item == '004') }"
-              :size="tablebtnSize"
-              @click="
-                statusConfirm(
-                  scope.row.id,
-                  scope.row.status,
-                  scope.row.ex_status,
-                  powers.some((item) => item == '004')
-                )
-              "
-            >
-              <i
-                class="el-icon-thumb"
-                v-if="powers.some((item) => item == '004')"
-                style="margin-right: 1px"
-              ></i>
-              启用</el-tag
-            >
-            <el-tag
-              v-else
-              :class="{ 'hover-tag': powers.some((item) => item == '004') }"
-              :size="tablebtnSize"
-              type="warning"
-              @click="
-                statusConfirm(
-                  scope.row.id,
-                  scope.row.status,
-                  scope.row.ex_status,
-                  powers.some((item) => item == '004')
-                )
-              "
-            >
-              <i
-                class="el-icon-thumb"
-                v-if="powers.some((item) => item == '004')"
-                style="margin-right: 1px"
-              ></i>
-              禁用</el-tag
-            >
-          </template>
-        </el-table-column>
-        <el-table-column
-          prop="addtime"
-          label="创建时间"
-          show-overflow-tooltip
-          align="center"
-        ></el-table-column>
-        <el-table-column fixed="right" label="操作" align="center">
-          <template slot-scope="scope">
-            <el-link
-              v-if="
-                (scope.row.status === '0' &&
-                  scope.row.ex_status === '3' &&
-                  powers.some((item) => item == '005')) ||
-                (scope.row.status === '0' &&
-                  scope.row.ex_status === '2' &&
-                  powers.some((item) => item == '005'))
-              "
-              type="primary"
-              style="margin: 0 4px"
-              :underline="false"
-              :size="tablebtnSize"
-              @click="openModal(scope.row.id, false, false, true)"
-            >
-              修改
-            </el-link>
-            <!-- <el-link
-          type="primary"
-              style="margin: 0 4px"
-              :underline="false"
-              :size="tablebtnSize"
-            @click="deleteById(scope.row.id)"
-          >
-            删除
-          </el-link>  -->
-            <el-link
-              v-if="powers.some((item) => item == '007')"
-              type="primary"
-              style="margin: 0 4px"
-              :underline="false"
-              :size="tablebtnSize"
-              @click="openModal(scope.row.id, true, false, true)"
-            >
-              详情
-            </el-link>
-            <!-- <el-link
-              type="primary"
-              style="margin: 0 4px"
-              :underline="false"
-              :size="tablebtnSize"
-              @click="openBankModal(scope.row.id, scope.row.company)"
-            >
-              财务
-            </el-link> -->
-          </template>
-        </el-table-column>
-      </el-table>
-      <div
-        class="Pagination"
-        style="text-align: right; margin-top: 10px"
-        v-show="count > 0"
-      >
-        <el-pagination
-          :size="searchSize"
-          @size-change="handleSizeChange"
-          @current-change="handlePageChange"
-          :current-page="parmValue.page"
-          :page-sizes="[10, 15, 20, 30, 40]"
-          :page-size="parmValue.size"
-          layout="total, sizes, prev, pager, next, jumper"
-          :total="count"
-        ></el-pagination>
-      </div>
-      <add-edit
-        :showModel="showModel"
-        :id="modelId"
-        :isApproval="approval"
-        :isDetail="isDetail"
-        @refresh="searchList"
-        @cancel="showModel = false"
-      ></add-edit>
-      <bank-modal
-        :showModel="showBankModel"
-        :id="modelBankId"
-        :title="modelBankTitle"
-        @cancel="showBankModel = false"
-      ></bank-modal>
-    </div>
-    <div v-else>
-      <no-auth></no-auth>
-    </div>
-  </div>
-</template>
-   <script>
-import mixinPage from "@/mixins/elPaginationHandle";
-import asyncRequest from "@/apis/service/client/company";
-import addEdit from "./addEdit";
-import bankModal from "./bankModal";
-import statusList from "@/assets/js/statusList";
-import { mapGetters } from "vuex";
-export default {
-  name: "company",
-  data() {
-    return {
-      typeList: [
-        {
-          code: "1",
-          name: "供应商",
-        },
-        {
-          code: "2",
-          name: "企业客户",
-        },
-      ],
-      statusList: statusList,
-      approval: false,
-      loading: true,
-      showModel: false,
-      isDetail: false,
-      modelId: 0,
-      showBankModel: false,
-      modelBankId: 0,
-      modelBankTitle: "",
-      parmValue: {
-        status: "",
-        name: "", // 名称
-        type: "",
-        page: 1, // 页码
-        size: 10, // 每页显示条数
-      },
-      count: 0, // 总条数
-      tableData: [],
-    };
-  },
-  mixins: [mixinPage],
-  mounted() {
-    this.searchList();
-  },
-  components: {
-    addEdit,
-    bankModal,
-  },
-  computed: {
-    ...mapGetters(["tablebtnSize", "searchSize", "size"]),
-    powers() {
-      let tran =
-        this.$store.getters.btnList.find(
-          (item) => item.menu_route == "company"
-        ) || {};
-      if (tran && tran.action && tran.action.length > 0) {
-        return tran.action;
-      } else {
-        return [];
-      }
-    },
-  },
-  methods: {
-    restSearch() {
-      this.parmValue = {
-        status: "",
-        name: "", // 名称
-        type: "",
-        page: 1, // 页码
-        size: 10, // 每页显示条数
-      };
-      this.searchList();
-    },
-    openModal(id, isDetail, approval, type) {
-      if (!type) {
-        return;
-      }
-      this.showModel = true;
-      this.modelId = id;
-      this.isDetail = isDetail;
-      this.approval = approval;
-    },
-    openBankModal(id, title) {
-      this.showBankModel = true;
-      this.modelBankId = id;
-      console.log(this.modelBankId);
-      this.modelBankTitle = title;
-    },
-    async deleteById(id) {
-      await this.$confirm("确定要删除?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          let res = await asyncRequest.delete({ id });
-          if (res.code === 0) {
-            this.$notify.success({
-              title: "删除成功",
-              message: "",
-            });
-            this.searchList();
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-
-    async again(id,type) {
-      if(!type){
-        return
-      }
-      await this.$confirm("确定要提交审核?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          let res = await asyncRequest.again({ id: id });
-          if (res.code === 0) {
-            this.$notify.success({
-              title: "提交成功",
-              message: "",
-            });
-            this.searchList();
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-    async searchList() {
-      this.loading = true;
-      let res = await asyncRequest.list(this.parmValue);
-      if (res.code === 0 && res.data) {
-        this.tableData = res.data.list;
-        this.tableData.map((v1) => {
-          v1.addtime = v1.addtime.replaceAll(".000", "");
-          return v1;
-        });
-        this.count = Number(res.data.count);
-      } else {
-        this.tableData = [];
-        this.count = 0;
-      }
-      this.loading = false;
-    },
-    async statusConfirm(id, status, ex_status,type) {
-      if(!type){
-        return
-      }
-      if (ex_status === "1") {
-        await this.$confirm(`确定要改为${status === "1" ? "禁用" : "启用"}?`, {
-          confirmButtonText: "确定",
-          cancelButtonText: "取消",
-          type: "warning",
-        })
-          .then(async () => {
-            this.loading = true;
-            const model = {
-              id: id,
-              status: status === "1" ? "0" : "1",
-            };
-            const res = await asyncRequest.status(model);
-            if (res.code === 0) {
-              this.loading = false;
-              this.$notify.success({
-                title: "状态修改成功!",
-                message: "",
-              });
-              await this.searchList();
-            } else {
-              this.loading = false;
-            }
-          })
-          .catch(() => {
-            console.log("取消");
-          });
-      } else {
-        if (status === "0") {
-          this.$message.warning("只有审核通过的规格,才能启用!");
-        }
-      }
-    },
-  },
-};
-</script>
-   <style lang="scss" scoped>
-.specs {
-}
-</style>
-   

+ 0 - 0
src/views/client/company/企业管理


+ 0 - 199
src/views/client/cproperty/addEdit.vue

@@ -1,199 +0,0 @@
-<template>
-  <el-dialog
-    :title="title"
-    :center="true"
-    align="left"
-    top="25vh"
-    width="500px"
-    @close="closeModel"
-    :close-on-click-modal="false"
-    :visible.sync="showModelThis"
-    v-loading="loading"
-    element-loading-text="拼命加载中"
-    element-loading-spinner="el-icon-loading"
-    element-loading-background="rgba(0, 0, 0, 0.8)"
-  >
-    <el-card style="margin: -20px 0 0 0">
-      <el-row :gutter="10">
-        <el-col :span="24">
-          <el-form
-            ref="ruleForm"
-            :model="ruleForm"
-            status-icon
-            :rules="rulesThis"
-            label-width="80px"
-            class="demo-ruleForm"
-          >
-            <el-form-item label="属性名称" prop="name">
-              <el-input
-                v-model="ruleForm.name"
-                :disabled="id == '007'"
-                minlength="10"
-              />
-            </el-form-item>
-          </el-form>
-        </el-col>
-        <el-col :span="24" style="text-align: right">
-          <el-button v-if="id !== '007'" type="primary" @click="submitForm"
-            >保 存
-          </el-button>
-          <el-button @click="showModelThis = false">{{
-            id === "007" ? "关 闭" : "取 消"
-          }}</el-button>
-        </el-col>
-      </el-row>
-    </el-card>
-  </el-dialog>
-</template>
-   <script>
-import asyncRequest from "@/apis/service/client/cproperty";
-import { isEmoticon } from "@/utils/validate";
-export default {
-  name: "cproperty",
-  props: ["showModel", "id", "sitem"],
-  data() {
-    const validatename = (rule, value, callback) => {
-      if (value === "") {
-        callback(new Error("客户属性不能为空!"));
-      } else {
-        if (isEmoticon(value)) {
-          callback(new Error("客户属性不能使用表情包!"));
-        } else {
-          callback();
-        }
-      }
-    };
-
-    return {
-      loading: false,
-      title: "添加客户属性",
-      showModelThis: this.showModel,
-
-      ruleForm: {
-        id: "",
-        name: "",
-      },
-      rulesThis: this.rules,
-      rules: {
-        name: [
-          {
-            required: true,
-            validator: validatename,
-            trigger: "blur",
-          },
-        ],
-      },
-    };
-  },
-  methods: {
-    closeModel() {
-      console.log("closeModel!!");
-    },
-    async initForm() {
-      this.loading = false;
-      if (this.id === "003") {
-        this.title = "添加企业属性";
-        this.rulesThis = this.rules;
-      } else if (this.id === "005") {
-        this.title = "修改企业属性";
-        this.rulesThis = this.rules;
-      } else {
-        this.title = "查看企业属性";
-        this.rulesThis = {};
-      }
-      await this.resetForm();
-    },
-
-    async resetForm() {
-      // 重置
-      await this.$nextTick(() => {
-        if (this.$refs.ruleForm) {
-          this.$refs.ruleForm.resetFields();
-          this.$refs.ruleForm.clearValidate();
-          const { id, name } = this.sitem;
-          this.ruleForm = {
-            id: id || "",
-            name: name || "",
-          };
-        }
-      });
-    },
-
-    async submitForm() {
-      await this.$refs.ruleForm.validate(async (valid) => {
-        if (valid) {
-          this.loading = true;
-          let obj = JSON.parse(JSON.stringify(this.ruleForm));
-          let res = {};
-          if (this.id === "003") {
-            delete obj["id"];
-            res = await asyncRequest.add(obj);
-          } else {
-            res = await asyncRequest.update(obj);
-          }
-          this.loading = false;
-          if (res.code === 0) {
-            let title = this.id === "add" ? "添加成功" : "修改成功";
-            this.$notify.success({
-              title,
-              message: "",
-            });
-            this.showModelThis = false;
-            // 刷新
-            this.$emit("refresh");
-          }
-        } else {
-          console.log("error submit!!");
-          return false;
-        }
-      });
-    },
-  },
-  watch: {
-    showModel: function (val) {
-      this.showModelThis = val;
-      if (val) {
-        this.initForm();
-      }
-    },
-    showModelThis(val) {
-      if (!val) {
-        this.$emit("cancel");
-      }
-    },
-  },
-};
-</script>
-
-   <style lang="scss" scoped>
-.cproperty {
-  .cexForm-ruleForm {
-    .cexForm-div {
-      margin-bottom: 22px;
-      .cexForm-label {
-        padding-right: 12px;
-        color: #606266;
-        line-height: 40px;
-        font-size: 14px;
-        span {
-          width: 100%;
-          display: inline-block;
-          line-height: 20px;
-          height: 20px;
-          vertical-align: top;
-          &:first-child {
-            padding-right: 13px;
-          }
-        }
-      }
-      .cexForm-main {
-        line-height: 40px;
-        color: rgb(151, 168, 190);
-        line-height: 40px;
-        font-size: 14px;
-      }
-    }
-  }
-}
-</style>
-   

+ 0 - 394
src/views/client/cproperty/index.vue

@@ -1,394 +0,0 @@
-<template>
-  <div class="cproperty pagePadding">
-    <div
-      v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
-    >
-      <el-row style="padding-bottom: 10px">
-        <el-col :span="6" style="width: 303px">
-          <period-date-picker
-            :type="1"
-            :width="'135px'"
-            :size="searchSize"
-            :start="parmValue.start"
-            :end="parmValue.end"
-            @timeReturned="handleTime"
-          />
-        </el-col>
-        <el-col :span="4" style="width: 160px">
-          <el-select
-            v-model="parmValue.status"
-            filterable
-            clearable
-            :size="searchSize"
-            placeholder="客户属性状态"
-            style="width: 100%"
-          >
-            <el-option
-              v-for="item in statusList"
-              :key="'status' + item.code"
-              :label="item.name"
-              :value="item.code"
-            />
-          </el-select>
-        </el-col>
-
-        <el-col :span="3" class="fr" style="width: 66px; padding: 0 0 0 10px">
-          <el-button type="primary" :size="searchSize" @click="searchList">
-            刷新
-          </el-button>
-        </el-col>
-        <el-col :span="3" class="fr" style="width: 66px; padding: 0 0 0 10px">
-          <el-button type="warning" :size="searchSize" @click="restSearch">
-            重置
-          </el-button>
-        </el-col>
-      </el-row>
-      <el-row style="padding-bottom: 10px">
-        <el-col :span="4" style="width: 293px">
-          <el-input
-            :size="searchSize"
-            v-model="parmValue.name"
-            :maxlength="40"
-            placeholder="客户属性名称"
-          ></el-input>
-        </el-col>
-        <el-col :span="4" style="width: 170px; padding: 0 0 0 10px">
-          <el-input
-            :size="searchSize"
-            v-model="parmValue.creater"
-            :maxlength="40"
-            placeholder="创建人"
-          ></el-input>
-        </el-col>
-        <el-col
-          :span="3"
-          class="fr"
-          style="width: 66px; padding: 0 0 0 10px"
-          v-if="powers.some((item) => item == '003')"
-        >
-          <el-button
-            :size="searchSize"
-            type="success"
-            style="float: right"
-            @click="openModal({}, '003')"
-          >
-            添加
-          </el-button>
-        </el-col>
-      </el-row>
-      <el-table
-        :data="tableData"
-        stripe
-        v-loading="loading"
-        border
-        :size="size"
-        style="width: 100%"
-      >
-        <el-table-column prop="id" label="ID" show-overflow-tooltip />
-        <el-table-column
-          prop="name"
-          label="客户属性名称"
-          show-overflow-tooltip
-        />
-
-        <el-table-column label="状态">
-          <template slot-scope="scope">
-            <el-tag
-              :size="tablebtnSize"
-              :type="scope.row.status == '1' ? 'warning' : ''"
-              v-text="
-                (
-                  statusList.find((item) => item.code === scope.row.status) ||
-                  {}
-                ).name || '--'
-              "
-            ></el-tag>
-          </template>
-        </el-table-column>
-        <el-table-column prop="creater" label="创建人" show-overflow-tooltip />
-        <el-table-column
-          prop="addtime"
-          label="创建时间"
-          min-width="145px"
-        ></el-table-column>
-        <el-table-column fixed="right" label="操作">
-          <template slot-scope="scope">
-            <el-tooltip
-              v-if="powers.some((item) => item == '007')"
-              effect="dark"
-              content="详情"
-              placement="top"
-            >
-              <i
-                class="el-icon-view tb-icon"
-                @click="openModal(scope.row, '007')"
-              ></i>
-            </el-tooltip>
-            <el-tooltip
-              v-if="powers.some((item) => item == '005')"
-              effect="dark"
-              content="修改"
-              placement="top"
-            >
-              <i
-                class="el-icon-edit tb-icon"
-                @click="openModal(scope.row, '005')"
-              ></i>
-            </el-tooltip>
-            <el-tooltip
-              v-if="
-                powers.some((item) => item == '004') && scope.row.status === '0'
-              "
-              effect="dark"
-              content="禁用"
-              placement="top"
-            >
-              <i
-                class="el-icon-video-pause tb-icon"
-                @click="statusConfirm(scope.row.id, scope.row.status)"
-              ></i>
-            </el-tooltip>
-            <el-tooltip
-              v-if="
-                powers.some((item) => item == '004') && scope.row.status === '1'
-              "
-              effect="dark"
-              content="启用"
-              placement="top"
-            >
-              <i
-                class="el-icon-video-play tb-icon"
-                @click="statusConfirm(scope.row.id, scope.row.status)"
-              ></i>
-            </el-tooltip>
-            <el-tooltip
-              v-if="powers.some((item) => item == '006')"
-              effect="dark"
-              content="删除"
-              placement="top"
-            >
-              <i
-                class="el-icon-delete tb-icon"
-                @click="deleteItem(scope.row.id)"
-              ></i>
-            </el-tooltip>
-          </template>
-        </el-table-column>
-      </el-table>
-      <add-edit
-        :showModel="showModel"
-        :id="modelId"
-        :sitem="sitem"
-        @refresh="searchList"
-        @cancel="showModel = false"
-      ></add-edit>
-    </div>
-    <div v-else>
-      <no-auth></no-auth>
-    </div>
-  </div>
-</template>
-   <script>
-import mixinPage from "@/mixins/elPaginationHandle";
-import asyncRequest from "@/apis/service/client/cproperty";
-import addEdit from "./addEdit";
-import { mapGetters } from "vuex";
-export default {
-  name: "cproperty",
-  data() {
-    return {
-      statusList: [
-        { name: "启用", code: "0" },
-        { name: "禁用", code: "1" },
-      ],
-      loading: true,
-      showModel: false,
-      sitem: {},
-      modelId: "000",
-      parmValue: {
-        status: "",
-        name: "", // 名称
-        creater: "",
-        start: "",
-        end: "",
-        // page: 1, // 页码
-        // size: 10, // 每页显示条数
-      },
-      count: 0, // 总条数
-      tableData: [],
-    };
-  },
-  mixins: [mixinPage],
-  mounted() {
-    this.searchList();
-  },
-  components: {
-    addEdit,
-  },
-  computed: {
-    ...mapGetters(["tablebtnSize", "searchSize", "size"]),
-    powers() {
-      let tran =
-        this.$store.getters.btnList.find(
-          (item) => item.menu_route == "cproperty"
-        ) || {};
-      if (tran && tran.action && tran.action.length > 0) {
-        return tran.action;
-      } else {
-        return [];
-      }
-    },
-  },
-  methods: {
-    restSearch() {
-      this.parmValue = {
-        status: "",
-        name: "", // 名称
-        type: "",
-        page: 1, // 页码
-        size: 10, // 每页显示条数
-      };
-      this.searchList();
-    },
-    // 时间
-    async handleTime(e) {
-      this.parmValue.start = e.startTime || "";
-      this.parmValue.end = e.endTime || "";
-      if (
-        (this.parmValue.start !== "" && this.parmValue.end !== "") ||
-        (this.parmValue.start === "" && this.parmValue.end === "")
-      ) {
-        // this.pageInfo.curr = 1;
-        // this.parmValue.page = 1;
-        await this.searchList();
-      }
-    },
-    openModal(row, type) {
-      this.sitem = row;
-      this.modelId = type;
-      this.showModel = true;
-    },
-    async deleteById(id) {
-      await this.$confirm("确定要删除?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          let res = await asyncRequest.delete({ id });
-          if (res.code === 0) {
-            this.$notify.success({
-              title: "删除成功",
-              message: "",
-            });
-            this.searchList();
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-
-    async again(id, type) {
-      if (!type) {
-        return;
-      }
-      await this.$confirm("确定要提交审核?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          let res = await asyncRequest.again({ id: id });
-          if (res.code === 0) {
-            this.$notify.success({
-              title: "提交成功",
-              message: "",
-            });
-            this.searchList();
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-    async searchList() {
-      this.loading = true;
-      const { code, data, msg } = await asyncRequest.list(this.parmValue);
-      if (code === 0) {
-        this.tableData = data;
-        this.tableData.map((v1) => {
-          v1.addtime = v1.addtime.replaceAll(".000", "");
-          return v1;
-        });
-        // this.count = Number(res.data.count);
-      } else if (code >= 100 && code <= 104) {
-        await this.logout();
-      } else {
-        this.tableData = [];
-      }
-      this.loading = false;
-    },
-    async statusConfirm(id, status) {
-      await this.$confirm(`确定要改为${status === "0" ? "禁用" : "启用"}?`, {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          this.loading = true;
-          const model = {
-            id: id,
-            status: status === "1" ? "0" : "1",
-          };
-          const res = await asyncRequest.status(model);
-          if (res.code === 0) {
-            this.loading = false;
-            this.$notify.success({
-              title: "状态修改成功!",
-              message: "",
-            });
-            await this.searchList();
-          } else {
-            this.loading = false;
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-    async deleteItem(id) {
-      await this.$confirm("确定要删除?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          const model = {
-            id: id,
-          };
-          const res = await asyncRequest.delete(model);
-          if (res && res.code === 0) {
-            this.$notify.success({
-              title: "删除成功",
-              message: "",
-            });
-            this.searchList();
-          } else if (res && res.code >= 100 && res.code <= 104) {
-            await this.logout();
-          } else {
-            this.$message.warning(res.message);
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-  },
-};
-</script>
-   <style lang="scss" scoped>
-.specs {
-}
-</style>
-   

+ 0 - 0
src/views/client/cproperty/客户属性


+ 0 - 545
src/views/client/supplier/addEdit.vue

@@ -1,545 +0,0 @@
-<template>
-  <el-dialog
-    :title="title"
-    :center="true"
-    align="left"
-    top="5vh"
-    width="700px"
-    @close="closeModel"
-    :close-on-click-modal="false"
-    :visible.sync="showModelThis"
-    v-loading="loading"
-    element-loading-text="拼命加载中"
-    element-loading-spinner="el-icon-loading"
-    element-loading-background="rgba(0, 0, 0, 0.8)"
-  >
-    <el-card>
-      <el-row :gutter="10">
-        <el-col :span="24">
-          <el-form
-            v-if="isApproval"
-            :model="cexForm"
-            status-icon
-            :rules="cexRules"
-            ref="cexForm"
-            label-width="80px"
-            class="cexForm-ruleForm"
-            ><el-row>
-              <el-col :span="12">
-                <el-row class="cexForm-div">
-                  <el-col :span="8" class="tr cexForm-label">所属企业:</el-col>
-                  <el-col :span="16" class="cexForm-main">{{
-                    dataInfo.company
-                  }}</el-col>
-                </el-row>
-                <el-row class="cexForm-div">
-                  <el-col :span="8" class="tr cexForm-label">账号:</el-col>
-                  <el-col :span="16" class="cexForm-main">{{
-                    dataInfo.username
-                  }}</el-col>
-                </el-row>
-                <el-row class="cexForm-div">
-                  <el-col :span="8" class="tr cexForm-label">真实姓名:</el-col>
-                  <el-col :span="16" class="cexForm-main">{{
-                    dataInfo.name
-                  }}</el-col>
-                </el-row>
-                <el-row class="cexForm-div">
-                  <el-col :span="8" class="tr cexForm-label">手机号:</el-col>
-                  <el-col :span="16" class="cexForm-main">{{
-                    dataInfo.mobile
-                  }}</el-col>
-                </el-row>
-                <el-row class="cexForm-div">
-                  <el-col :span="8" class="tr cexForm-label">邮箱:</el-col>
-                  <el-col :span="16" class="cexForm-main">{{
-                    dataInfo.email
-                  }}</el-col>
-                </el-row>
-                <el-row class="cexForm-div" v-if="dataInfo.company">
-                  <el-col :span="8" class="tr cexForm-label">备注:</el-col>
-                  <el-col :span="16" class="cexForm-main">{{
-                    dataInfo.remark
-                  }}</el-col>
-                </el-row>
-              </el-col>
-              <el-col :span="12">
-                <el-form-item label="审核状态" prop="status">
-                  <el-select
-                    v-model="cexForm.status"
-                    placeholder="请选择审核状态"
-                    @change="selectChange"
-                  >
-                    <el-option
-                      v-for="item in statusList"
-                      :key="item.code"
-                      :label="item.name"
-                      :value="item.code"
-                    >
-                    </el-option>
-                  </el-select>
-                </el-form-item>
-                <el-form-item label="审核说明" prop="remark">
-                  <el-input
-                    v-model="cexForm.remark"
-                    type="textarea"
-                    placeholder="请输入审核说明"
-                    :rows="5"
-                    maxlength="300"
-                    show-word-limit
-                  ></el-input>
-                </el-form-item>
-                <el-col :span="24" style="text-align: right">
-                  <el-button type="primary" @click="submitCexForm"
-                    >保 存
-                  </el-button>
-                  <el-button @click="showModelThis = false">取 消</el-button>
-                </el-col>
-              </el-col>
-            </el-row></el-form
-          >
-
-          <el-form
-            v-else
-            :model="ruleForm"
-            status-icon
-            :rules="rulesThis"
-            ref="ruleForm"
-            label-width="80px"
-            class="demo-ruleForm"
-            ><el-row>
-              <el-col :span="24">
-                <el-form-item label="所属企业" prop="company_id">
-                  <el-select
-                    v-model="ruleForm.company_id"
-                    filterable
-                    clearable
-                    :disabled="isDetail"
-                    :size="searchSize"
-                    placeholder="请选择所属企业"
-                    style="width: 100%"
-                  >
-                    <el-option
-                      v-for="item in companyList"
-                      :key="'company' + item.id"
-                      :label="item.company"
-                      :value="item.id"
-                      :disabled="item.status === '0'"
-                    />
-                  </el-select>
-                  <!-- <el-input
-                    v-model="ruleForm.company_id"
-                    :disabled="isDetail"
-                  /> -->
-                </el-form-item>
-              </el-col>
-              <el-col :span="24">
-                <el-form-item
-                  v-if="id === 'add' || isDetail"
-                  label="账号"
-                  prop="username"
-                >
-                  <el-input v-model="ruleForm.username" :disabled="isDetail" />
-                </el-form-item>
-              </el-col>
-              <el-col :span="24">
-                <el-form-item label="真实姓名" prop="contact">
-                  <el-input v-model="ruleForm.contact" :disabled="isDetail" />
-                </el-form-item>
-              </el-col>
-              <el-col :span="24">
-                <el-form-item label="手机号" prop="mobile">
-                  <el-input v-model="ruleForm.mobile" :disabled="isDetail" />
-                </el-form-item>
-              </el-col>
-              <el-col :span="24">
-                <el-form-item label="邮箱" prop="email">
-                  <el-input v-model="ruleForm.email" :disabled="isDetail" />
-                </el-form-item>
-              </el-col>
-            </el-row>
-            <el-form-item label="信息备注" prop="remark">
-              <el-input
-                v-model="ruleForm.remark"
-                type="textarea"
-                placeholder="请输入备注"
-                :rows="5"
-                maxlength="300"
-                show-word-limit
-                :disabled="isDetail"
-              ></el-input>
-            </el-form-item>
-            <el-col :span="24" style="text-align: right">
-              <el-tag
-                type="warning"
-                class="fl"
-                style="max-width: 500px"
-                v-if="dataInfo.ex_remark && dataInfo.ex_status === '2'"
-                >审核备注:{{ dataInfo.ex_remark }}</el-tag
-              >
-
-              <el-button type="primary" @click="submitForm" v-if="!isDetail"
-                >保 存
-              </el-button>
-              <el-button @click="showModelThis = false">{{
-                isDetail ? "关 闭" : "取 消"
-              }}</el-button>
-            </el-col>
-          </el-form>
-        </el-col>
-      </el-row>
-    </el-card>
-  </el-dialog>
-</template>
-   <script>
-import asyncRequest from "@/apis/service/client/business";
-import {
-  isnumber,
-  isMobile,
-  validEmail,
-  isAlphanumeric,
-  isChinese,
-  isEmoticon,
-  validAlphabets,
-} from "@/utils/validate";
-import statusList from "@/assets/js/cexStatusList";
-export default {
-  name: "specs",
-  props: ["showModel", "id", "isDetail", "isApproval"],
-  data() {
-    const validateusername = (rule, value, callback) => {
-      if (value === "") {
-        callback(new Error("账号不能为空!"));
-      } else {
-        if (value.lenght < 6 || value.lenght > 18) {
-          callback(new Error("账号规则为6~18位数字与字母组合!"));
-        } else {
-          if (isnumber(value)) {
-            callback(new Error("账号规则为6~18位数字与字母组合!"));
-          } else if (validAlphabets(value)) {
-            callback(new Error("账号规则为6~18位数字与字母组合!"));
-          } else if (!isAlphanumeric(value)) {
-            callback(new Error("账号规则为6~18位数字与字母组合!"));
-          } else {
-            callback();
-          }
-        }
-      }
-    };
-    const validatecontact = (rule, value, callback) => {
-      if (value === "") {
-        callback(new Error("真实姓名不能为空!"));
-      } else {
-        if (value.lenght < 2 || value.lenght > 12) {
-          callback(new Error("真实姓名规则为2~12位汉字!"));
-        } else {
-          if (!isChinese(value)) {
-            callback(new Error("真实姓名为6~18位数字与字母组合!"));
-          } else if (isEmoticon(value)) {
-            callback(new Error("真实姓名为6~18位数字与字母组合!"));
-          } else {
-            callback();
-          }
-        }
-      }
-    };
-    const validatemobile = (rule, value, callback) => {
-      if (value === "") {
-        callback(new Error("手机号不能为空!"));
-      } else {
-        if (!isMobile(value)) {
-          callback(new Error("手机号格式不正确!"));
-        } else {
-          callback();
-        }
-      }
-    };
-
-    const validateEmail = (rule, value, callback) => {
-      if (value === "") {
-        callback(new Error("邮箱不能为空!"));
-      } else {
-        if (!validEmail(value)) {
-          callback(new Error("邮箱格式不正确!"));
-        } else {
-          callback();
-        }
-      }
-    };
-    return {
-      statusList: statusList,
-      loading: false,
-      title: "添加企业客户",
-      showModelThis: this.showModel,
-      dataInfo: {},
-      companyList: [],
-      cexForm: {
-        id: this.id,
-        remark: "",
-        status: "1",
-      },
-      ruleForm: {
-        id: this.id, //企业id
-        company_id: "", //id
-        username: "", //账号
-        type: "1",
-        contact: "", //真实姓名
-        mobile: "", //手机号
-        emailz: "", //邮箱
-        remark: "",
-      },
-      cexRules: {
-        status: {
-          required: true,
-          message: "请选择审核状态",
-          trigger: "change",
-        },
-        remark: [
-          {
-            required: false,
-            message: "请输入审核说明!",
-            trigger: "blur",
-          },
-        ],
-      },
-      rulesThis: this.rules,
-      rules: {
-        company_id: [
-          {
-            required: true,
-            message: "请选择企业!",
-            trigger: "change",
-          },
-        ],
-        username: [
-          {
-            required: true,
-            validator: validateusername,
-            trigger: "blur",
-          },
-        ],
-        contact: [
-          {
-            required: true,
-            validator: validatecontact,
-            trigger: "blur",
-          },
-        ],
-        mobile: [
-          {
-            required: true,
-            validator: validatemobile,
-            trigger: "blur",
-          },
-        ],
-        email: [
-          {
-            required: true,
-            validator: validateEmail,
-            trigger: "blur",
-          },
-        ],
-
-        remark: [
-          {
-            required: false,
-            trigger: "blur",
-          },
-        ],
-      },
-    };
-  },
-  methods: {
-    closeModel() {
-      console.log("closeModel!!");
-    },
-    selectChange() {
-      if (this.cexForm.status === "1") {
-        this.cexRules.remark[0].required = false;
-      } else {
-        this.cexRules.remark[0].required = true;
-      }
-    },
-    async initForm() {
-      if (this.isApproval) {
-        this.loading = true;
-        this.title = "企业客户审核";
-        await this.getCompanyList();
-        await this.initData();
-        await this.resetcexForm();
-        this.selectChange();
-        this.loading = false;
-      } else {
-        this.loading = true;
-        await this.getCompanyList();
-        if (this.id === "add") {
-          this.title = "添加企业客户";
-
-          // this.ruleForm.isAdmin = 0;
-          this.rulesThis = this.rules;
-          await this.resetForm();
-        } else {
-          if (this.isDetail) {
-            this.title = "企业客户";
-            this.rulesThis = {};
-          } else {
-            this.title = "修改企业客户";
-            this.rulesThis = this.rules;
-          }
-          await this.resetForm();
-          await this.initData();
-        }
-        this.loading = false;
-      }
-    },
-    async resetcexForm() {
-      if (this.$refs.cexForm) {
-        this.$refs.cexForm.resetFields();
-        this.$refs.cexForm.clearValidate();
-        this.cexForm = {
-          id: this.id,
-          remark: "",
-          status: "1",
-        };
-      }
-    },
-    async initData() {
-      this.loading = true;
-      let res = await asyncRequest.detail({ id: this.id });
-      this.loading = false;
-      if (res.code === 0) {
-        let data = res.data;
-        this.dataInfo = data;
-        this.ruleForm = {
-          id: this.id, //企业id
-          type: "1",
-          company_id: data.company_id, //企业id
-          username: data.username, //账号
-          contact: data.name, //真实姓名
-          mobile: data.mobile, //手机号
-          email: data.email, //邮箱
-          remark: data.remark,
-        };
-      }
-    },
-    async resetForm() {
-      // 重置
-      await this.$nextTick(() => {
-        if (this.$refs.ruleForm) {
-          this.$refs.ruleForm.resetFields();
-          this.$refs.ruleForm.clearValidate();
-          this.ruleForm = {
-            id: this.id, //企业id
-            company_id: "", //企业id
-            type: "1",
-            username: "", //账号
-            contact: "", //联系人
-            mobile: "", //手机号
-            emailz: "", //邮箱
-            remark: "",
-          };
-        }
-      });
-    },
-    async submitCexForm() {
-      await this.$refs.cexForm.validate(async (valid) => {
-        if (valid) {
-          this.loading = true;
-          console.log(this.id);
-          console.log(this.cexForm);
-          let obj = JSON.parse(JSON.stringify(this.cexForm));
-
-          obj.id = this.id;
-          console.log(obj);
-          let res = await asyncRequest.exam(obj);
-          this.loading = false;
-          if (res.code === 0) {
-            let title = "审核审批成功!";
-            this.$notify.success({
-              title,
-              message: "",
-            });
-            this.showModelThis = false;
-            // 刷新
-            this.$emit("refresh");
-          }
-        } else {
-          console.log("error submit!!");
-          return false;
-        }
-      });
-    },
-    async submitForm() {
-      await this.$refs.ruleForm.validate(async (valid) => {
-        if (valid) {
-          this.loading = true;
-          let obj = JSON.parse(JSON.stringify(this.ruleForm));
-          let res = {};
-          if (this.id === "add") {
-            delete obj["id"];
-            res = await asyncRequest.add(obj);
-          } else {
-            res = await asyncRequest.update(obj);
-          }
-          this.loading = false;
-          if (res.code === 0) {
-            let title = this.id === "add" ? "添加成功" : "修改成功";
-            this.$notify.success({
-              title,
-              message: "",
-            });
-            this.showModelThis = false;
-            // 刷新
-            this.$emit("refresh");
-          }
-        } else {
-          console.log("error submit!!");
-          return false;
-        }
-      });
-    },
-    async getCompanyList() {
-      let res = await asyncRequest.companyall({ type: "2" });
-      if (res.code === 0) {
-        this.companyList = res.data;
-      }
-    },
-  },
-  watch: {
-    showModel: function (val) {
-      this.showModelThis = val;
-      if (val) {
-        this.initForm();
-      }
-    },
-    showModelThis(val) {
-      if (!val) {
-        this.$emit("cancel");
-      }
-    },
-  },
-};
-</script>
-
-   <style lang="scss" scoped>
-.business {
-  .cexForm-ruleForm {
-    .cexForm-div {
-      margin-bottom: 0px;
-      .cexForm-label {
-        padding-right: 12px;
-        color: #606266;
-        line-height: 40px;
-        font-size: 14px;
-      }
-      .cexForm-main {
-        line-height: 40px;
-        color: rgb(151, 168, 190);
-        line-height: 40px;
-        font-size: 14px;
-      }
-    }
-  }
-}
-</style>
-   

+ 0 - 547
src/views/client/supplier/index.vue

@@ -1,547 +0,0 @@
-<template>
-  <div class="business pagePadding">
-    <div
-      v-if="powers && powers.length > 0 && powers.some((item) => item == '001')"
-    >
-      <el-row :gutter="10">
-        <el-col :span="24" style="padding: 0 0 18px 0">
-          <el-col :span="3">
-            <el-select
-              v-model="parmValue.status"
-              filterable
-              clearable
-              :size="searchSize"
-              placeholder="账号状态"
-              style="width: 100%"
-            >
-              <el-option
-                v-for="item in statusList"
-                :key="'status' + item.code"
-                :label="item.name"
-                :value="item.code"
-              />
-            </el-select>
-          </el-col>
-          <el-col :span="8">
-            <ul class="el-list-select-input clearfix">
-              <li>
-                <el-select
-                  v-model="select"
-                  :size="searchSize"
-                  placeholder="查询类型"
-                >
-                  <el-option label="客户姓名" value="1"></el-option>
-                  <el-option label="公司名称" value="2"></el-option>
-                  <el-option label="业务员姓名" value="3"></el-option>
-                </el-select>
-              </li>
-              <li>
-                <el-input
-                  :size="searchSize"
-                  v-model="input"
-                  :maxlength="40"
-                  placeholder="关键字"
-                >
-                  <el-button
-                    slot="append"
-                    @click="searchList"
-                    icon="el-icon-search"
-                  ></el-button>
-                </el-input>
-              </li>
-            </ul>
-          </el-col>
-          <el-col :span="13" style="float: right">
-            <el-button
-              type="warning"
-              v-if="powers.some((item) => item == '024')"
-              :size="searchSize"
-              @click="restSearch"
-            >
-              重置
-            </el-button>
-            <el-button
-              type="primary"
-              :size="searchSize"
-              v-if="powers.some((item) => item == '002')"
-              style="float: right; margin-left: 5px"
-              @click="searchList"
-            >
-              刷新
-            </el-button>
-            <el-button
-              v-if="powers.some((item) => item == '003')"
-              :size="searchSize"
-              type="success"
-              style="float: right"
-              @click="openModal('add', false, false)"
-            >
-              添加
-            </el-button>
-          </el-col>
-        </el-col>
-      </el-row>
-
-      <el-table
-        :data="tableData"
-        style="width: 100%"
-        row-key="id"
-        border
-        v-loading="loading"
-        :size="size"
-        default-expand-all
-        :tree-props="{ children: 'staff', hasChildren: 'hasChildren' }"
-      >
-        <el-table-column
-          prop="company"
-          label="企业名称"
-          show-overflow-tooltip
-          align="center"
-        >
-        </el-table-column>
-        <el-table-column
-          prop="name"
-          label="真实姓名"
-          show-overflow-tooltip
-          align="center"
-        >
-        </el-table-column>
-        <!-- <el-table-column
-          prop="mobile"
-          label="手机号"
-          show-overflow-tooltip
-          align="center"
-        >
-        </el-table-column>
-        <el-table-column
-          prop="email"
-          label="邮箱"
-          show-overflow-tooltip
-          align="center"
-        >
-        </el-table-column> -->
-        <el-table-column
-          prop="admin_name"
-          label="业务员"
-          show-overflow-tooltip
-          align="center"
-        >
-        </el-table-column>
-        <el-table-column label="审核状态" show-overflow-tooltip align="center">
-          <template slot-scope="scope">
-            <el-tag
-              :size="tablebtnSize"
-              v-if="scope.row.ex_status === '0'"
-              :class="{
-                'hover-tag':
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '010'),
-              }"
-              :type="'warning'"
-              @click="
-                openModal(
-                  scope.row.id,
-                  false,
-                  true,
-                  scope.row.status === '0' &&
-                    powers.some((item) => item == '010')
-                )
-              "
-            >
-              <i
-                class="el-icon-thumb"
-                v-if="
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '010')
-                "
-                style="margin-right: 1px"
-              ></i>
-              {{ scope.row.ex_status_cn }}
-            </el-tag>
-            <el-tag
-              :size="tablebtnSize"
-              v-else-if="scope.row.ex_status === '1'"
-              :type="'success'"
-            >
-              {{ scope.row.ex_status_cn }}
-            </el-tag>
-            <el-tag
-              :size="tablebtnSize"
-              v-else-if="scope.row.ex_status === '2'"
-              :class="{
-                'hover-tag':
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '009'),
-              }"
-              :type="'danger'"
-              @click="
-                again(
-                  scope.row.id,
-                  scope.row.status === '0' &&
-                    powers.some((item) => item == '009')
-                )
-              "
-            >
-              <i
-                class="el-icon-thumb"
-                v-if="
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '009')
-                "
-                style="margin-right: 1px"
-              ></i>
-              {{ scope.row.ex_status_cn }}
-            </el-tag>
-            <el-tag
-              :size="tablebtnSize"
-              v-else-if="scope.row.ex_status === '3'"
-              :class="{
-                'hover-tag':
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '009'),
-              }"
-              :type="'info'"
-              @click="
-                again(
-                  scope.row.id,
-                  scope.row.status === '0' &&
-                    powers.some((item) => item == '009')
-                )
-              "
-            >
-              <i
-                class="el-icon-thumb"
-                v-if="
-                  scope.row.status === '0' &&
-                  powers.some((item) => item == '009')
-                "
-                style="margin-right: 1px"
-              ></i>
-              {{ scope.row.ex_status_cn }}
-            </el-tag>
-          </template>
-        </el-table-column>
-        <el-table-column label="状态" show-overflow-tooltip align="center">
-          <template slot-scope="scope">
-            <el-tag
-              v-if="scope.row.status === '1'"
-              type="success"
-              :class="{ 'hover-tag': powers.some((item) => item == '004') }"
-              :size="tablebtnSize"
-              @click="
-                statusConfirm(
-                  scope.row.id,
-                  scope.row.status,
-                  scope.row.ex_status,
-                  powers.some((item) => item == '004')
-                )
-              "
-            >
-              <i
-                class="el-icon-thumb"
-                v-if="powers.some((item) => item == '004')"
-                style="margin-right: 1px"
-              ></i>
-              启用</el-tag
-            >
-            <el-tag
-              v-else
-              :class="{ 'hover-tag': powers.some((item) => item == '004') }"
-              :size="tablebtnSize"
-              type="warning"
-              @click="
-                statusConfirm(
-                  scope.row.id,
-                  scope.row.status,
-                  scope.row.ex_status,
-                  powers.some((item) => item == '004')
-                )
-              "
-            >
-              <i
-                class="el-icon-thumb"
-                v-if="powers.some((item) => item == '004')"
-                style="margin-right: 1px"
-              ></i>
-              禁用</el-tag
-            >
-          </template>
-        </el-table-column>
-        <el-table-column
-          prop="addtime"
-          label="创建时间"
-          show-overflow-tooltip
-          align="center"
-        ></el-table-column>
-        <el-table-column fixed="right" label="操作" align="center">
-          <template slot-scope="scope">
-            <el-link
-              v-if="
-                (scope.row.status === '0' &&
-                  scope.row.ex_status === '3' &&
-                  powers.some((item) => item == '005')) ||
-                (scope.row.status === '0' &&
-                  scope.row.ex_status === '2' &&
-                  powers.some((item) => item == '005'))
-              "
-              type="primary"
-              style="margin: 0 4px"
-              :underline="false"
-              :size="tablebtnSize"
-              @click="openModal(scope.row.id, false, false, true)"
-            >
-              修改
-            </el-link>
-            <!-- <el-link
-          type="primary"
-              style="margin: 0 4px"
-              :underline="false"
-              :size="tablebtnSize"
-            @click="deleteById(scope.row.id)"
-          >
-            删除
-          </el-link>  -->
-            <el-link
-              v-if="powers.some((item) => item == '007')"
-              type="primary"
-              style="margin: 0 4px"
-              :underline="false"
-              :size="tablebtnSize"
-              @click="openModal(scope.row.id, true, false, true)"
-            >
-              详情
-            </el-link>
-          </template>
-        </el-table-column>
-      </el-table>
-      <div
-        class="Pagination"
-        style="text-align: right; margin-top: 10px"
-        v-show="count > 0"
-      >
-        <el-pagination
-          :size="searchSize"
-          @size-change="handleSizeChange"
-          @current-change="handlePageChange"
-          :current-page="parmValue.page"
-          :page-sizes="[10, 15, 20, 30, 40]"
-          :page-size="parmValue.size"
-          layout="total, sizes, prev, pager, next, jumper"
-          :total="count"
-        ></el-pagination>
-      </div>
-      <add-edit
-        :showModel="showModel"
-        :id="modelId"
-        :isApproval="approval"
-        :isDetail="isDetail"
-        @refresh="searchList"
-        @cancel="showModel = false"
-      ></add-edit>
-    </div>
-    <div v-else>
-      <no-auth></no-auth>
-    </div>
-  </div>
-</template>
-   <script>
-import mixinPage from "@/mixins/elPaginationHandle";
-import asyncRequest from "@/apis/service/client/business";
-import addEdit from "./addEdit";
-import statusList from "@/assets/js/statusList";
-import { mapGetters } from "vuex";
-export default {
-  name: "business",
-  data() {
-    return {
-      statusList: statusList,
-      approval: false,
-      loading: true,
-      showModel: false,
-      isDetail: false,
-      modelId: 0,
-      select: "1",
-      input: "",
-      parmValue: {
-        status: "",
-        staff: "", //客户姓名
-        name: "", // 公司名称
-        admin: "", //业务员姓名
-        type: "1",
-        page: 1, // 页码
-        size: 10, // 每页显示条数
-      },
-      count: 0, // 总条数
-      tableData: [],
-    };
-  },
-  mixins: [mixinPage],
-  mounted() {
-    this.searchList();
-  },
-  components: {
-    addEdit,
-  },
-  computed: {
-    ...mapGetters(["tablebtnSize", "searchSize", "size"]),
-    powers() {
-      let tran =
-        this.$store.getters.btnList.find(
-          (item) => item.menu_route == "supplier"
-        ) || {};
-      if (tran && tran.action && tran.action.length > 0) {
-        return tran.action;
-      } else {
-        return [];
-      }
-    },
-  },
-  methods: {
-    restSearch() {
-      this.input = "";
-      this.select = "1";
-      this.parmValue = {
-        status: "",
-        type: "1",
-        staff: "", //客户姓名
-        name: "", // 公司名称
-        admin: "", //业务员姓名
-        page: 1, // 页码
-        size: 10, // 每页显示条数
-      };
-      this.searchList();
-    },
-    openModal(id, isDetail, approval, type) {
-      if (!type) {
-        return;
-      }
-      this.showModel = true;
-      this.modelId = id;
-      this.isDetail = isDetail;
-      this.approval = approval;
-    },
-    async deleteById(id) {
-      await this.$confirm("确定要删除?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          let res = await asyncRequest.delete({ id });
-          if (res.code === 0) {
-            this.$notify.success({
-              title: "删除成功",
-              message: "",
-            });
-            this.searchList();
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-
-    async again(id, type) {
-      if (!type) {
-        return;
-      }
-      await this.$confirm("确定要提交审核?", {
-        confirmButtonText: "确定",
-        cancelButtonText: "取消",
-        type: "warning",
-      })
-        .then(async () => {
-          let res = await asyncRequest.again({ id: id });
-          if (res.code === 0) {
-            this.$notify.success({
-              title: "提交成功",
-              message: "",
-            });
-            this.searchList();
-          }
-        })
-        .catch(() => {
-          console.log("取消");
-        });
-    },
-    async searchList() {
-      this.loading = true;
-      if (this.select === "1") {
-        this.parmValue.staff = this.input; //客户姓名
-        this.parmValue.name = ""; // 公司名称
-        this.parmValue.admin = ""; //业务员姓名
-      } else if (this.select === "2") {
-        this.parmValue.staff = ""; //客户姓名
-        this.parmValue.name = this.input; // 公司名称
-        this.parmValue.admin = ""; //业务员姓名
-      } else if (this.select === "3") {
-        this.parmValue.staff = ""; //客户姓名
-        this.parmValue.name = ""; // 公司名称
-        this.parmValue.admin = this.input; //业务员姓名
-      } else {
-        this.parmValue.staff = ""; //客户姓名
-        this.parmValue.name = ""; // 公司名称
-        this.parmValue.admin = ""; //业务员姓名
-      }
-      let res = await asyncRequest.list(this.parmValue);
-      if (res.code === 0 && res.data) {
-        this.tableData = res.data.list;
-        this.tableData.map((v1) => {
-          if (v1.addtime) {
-            v1.addtime = v1.addtime.replaceAll(".000", "");
-          }
-          return v1;
-        });
-        console.log(this.tableData);
-        this.count = Number(res.data.count);
-      } else {
-        this.tableData = [];
-        this.count = 0;
-      }
-      this.loading = false;
-    },
-    async statusConfirm(id, status, ex_status, type) {
-      if (!type) {
-        return;
-      }
-      if (ex_status === "1") {
-        await this.$confirm(`确定要改为${status === "1" ? "禁用" : "启用"}?`, {
-          confirmButtonText: "确定",
-          cancelButtonText: "取消",
-          type: "warning",
-        })
-          .then(async () => {
-            this.loading = true;
-            const model = {
-              id: id,
-              status: status === "1" ? "0" : "1",
-            };
-            const res = await asyncRequest.status(model);
-            if (res.code === 0) {
-              this.loading = false;
-              this.$notify.success({
-                title: "状态修改成功!",
-                message: "",
-              });
-              await this.searchList();
-            } else {
-              this.loading = false;
-            }
-          })
-          .catch(() => {
-            console.log("取消");
-          });
-      } else {
-        if (status === "0") {
-          this.$message.warning("只有审核通过的规格,才能启用!");
-        }
-      }
-    },
-  },
-};
-</script>
-   <style lang="scss" scoped>
-.business {
-}
-</style>
-   

+ 0 - 0
src/views/client/supplier/供应商管理


+ 1 - 9
src/views/goodStore/activeGood/detail.vue

@@ -307,13 +307,7 @@
           :total="count"
         ></el-pagination>
       </div>
-      <ladder-price
-        :showModel="showLadderPrice"
-        :left="left"
-        :right="right"
-        :lang="lang"
-        @cancel="showLadderPrice = false"
-      ></ladder-price>
+  
     
     </div>
     <div v-else>
@@ -324,7 +318,6 @@
    <script>
 import mixinPage from "@/mixins/elPaginationHandle";
 import asyncRequest from "@/apis/service/goodStore/goodsCost";
-import ladderPrice from "./ladderPrice";
 // import PeriodDatePicker from "@/components/PeriodDatePicker";
 import statusList from "@/assets/js/statusList";
 import { timestampToTime } from "@/utils/validate";
@@ -333,7 +326,6 @@ export default {
   name: "goodsCost",
   components: {
     // PeriodDatePicker,
-    ladderPrice,
   },
   data() {
     return {

+ 2 - 11
src/views/goodStore/goodsCost/index copy.vue

@@ -308,13 +308,7 @@
         ></el-pagination>
       </div>
     
-      <ladder-price
-        :showModel="showLadderPrice"
-        :left="left"
-        :right="right"
-        :lang="lang"
-        @cancel="showLadderPrice = false"
-      ></ladder-price>
+   
   
     </div>
     <div v-else>
@@ -325,7 +319,6 @@
    <script>
 import mixinPage from "@/mixins/elPaginationHandle";
 import asyncRequest from "@/apis/service/goodStore/goodsCost";
-import ladderPrice from "./ladderPrice";
 import statusList from "@/assets/js/statusList";
 import { timestampToTime } from "@/utils/validate";
 import { mapGetters } from "vuex";
@@ -333,9 +326,7 @@ import resToken from "@/mixins/resToken";
 export default {
   name: "goodsCost",
   mixins: [resToken, mixinPage],
-  components: {
-    ladderPrice,
-  },
+  
   computed: {
     ...mapGetters(["tablebtnSize", "searchSize", "size"]),
     powers() {

+ 1 - 10
src/views/goodStore/goodsOnline/detail.vue

@@ -307,14 +307,7 @@
           :total="count"
         ></el-pagination>
       </div>
-      <ladder-price
-        :showModel="showLadderPrice"
-        :left="left"
-        :right="right"
-        :lang="lang"
-        @cancel="showLadderPrice = false"
-      ></ladder-price>
-    
+   
     </div>
     <div v-else>
       <no-auth></no-auth>
@@ -324,7 +317,6 @@
    <script>
 import mixinPage from "@/mixins/elPaginationHandle";
 import asyncRequest from "@/apis/service/goodStore/goodsCost";
-import ladderPrice from "./ladderPrice";
 // import PeriodDatePicker from "@/components/PeriodDatePicker";
 import statusList from "@/assets/js/statusList";
 import { timestampToTime } from "@/utils/validate";
@@ -333,7 +325,6 @@ export default {
   name: "goodsCost",
   components: {
     // PeriodDatePicker,
-    ladderPrice,
   },
   data() {
     return {

برخی فایل ها در این مقایسه diff نمایش داده نمی شوند زیرا تعداد فایل ها بسیار زیاد است