TaskUploadData.vue 82 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334
  1. <template>
  2. <div class='liClass'>
  3. <a-page-header
  4. style="background-color: #FFFFFF;margin-bottom:10px"
  5. title="上传资料"
  6. sub-title=""
  7. @back="goBack"
  8. ></a-page-header>
  9. <a-form-model
  10. ref="form"
  11. :model="infoModel"
  12. :rules="rules"
  13. >
  14. <a-card style="margin-bottom:10px;color: #000000d9;font-size: 15px;line-height: 2.5;">
  15. <div>
  16. <span>1.请选择所上传资料的卡类型</span>
  17. </div>
  18. <a-radio-group style="position: relative;left: 30px"
  19. @change="controlChange" v-model:value="infoModel.blockType" >
  20. <a-radio :value="'model'">正式卡</a-radio>
  21. <a-radio :value="'test'">测试卡</a-radio>
  22. </a-radio-group>
  23. <div v-if="infoModel.blockType != 'test'">
  24. <span style="display: block">2.是否突破价格管控</span>
  25. <a-radio-group style="position: relative;left: 30px;"
  26. @change="controlChange" v-model:value="infoModel.control">
  27. <a-radio :value="'controlY'">是</a-radio>
  28. <a-radio :value="'controlN'">否</a-radio>
  29. </a-radio-group>
  30. </div>
  31. </a-card>
  32. <a-card style="margin-bottom:10px;color: #000000d9;font-size: 15px;line-height: 2.5;">
  33. <a-row>
  34. <a-col :span="6">
  35. <a-form-model-item label="客户编号"prop="customerNo" v-bind="labelCol4" >
  36. <a-input v-model="infoModel.customerNo" placeholder="客户编号" :disabled='true'></a-input>
  37. </a-form-model-item>
  38. </a-col>
  39. <a-col :span="6">
  40. <a-form-model-item label="用户发展员工" prop="staffNo" v-bind="labelCol4">
  41. <a-input :disabled='true' v-model="infoModel.staffNo" placeholder="用户发展员工" ></a-input>
  42. </a-form-model-item>
  43. </a-col>
  44. <a-col :span="6">
  45. <a-form-model-item label="发展员工姓名" prop="staffNo" v-bind="labelCol4">
  46. <a-input v-model="infoModel.staffName" placeholder="发展员工姓名" :disabled='true'></a-input>
  47. </a-form-model-item>
  48. </a-col>
  49. <a-col :span="6">
  50. <a-form-model-item label="用户编号" v-bind="labelCol4" >
  51. <a-input v-model="infoModel.userNo" placeholder="用户编号" :disabled='true'></a-input>
  52. </a-form-model-item>
  53. </a-col>
  54. <a-col :span="6">
  55. <a-form-model-item label="入网时间" prop="networkAccessTime" v-bind="labelCol4" >
  56. <a-input v-model="infoModel.networkAccessTime" placeholder="入网时间" :disabled='true'></a-input>
  57. </a-form-model-item>
  58. </a-col>
  59. <a-col :span="6">
  60. <a-form-item label="用户状态"v-bind="labelCol4" prop="userState" >
  61. <j-dict-select-tag placeholder="请选择用户状态" v-model="infoModel.userState" dictCode="user_status_2"/>
  62. </a-form-item>
  63. </a-col>
  64. <a-col :span="6">
  65. <a-form-model-item label="客户名称(全)" prop="customerName" v-bind="labelCol4">
  66. <a-input v-model="infoModel.customerName" placeholder="客户名称/使用人名称"></a-input>
  67. </a-form-model-item>
  68. </a-col>
  69. <a-col :span="6">
  70. <a-form-model-item label="服务号码(全)" prop="smsNumber" v-bind="labelCol4">
  71. <a-input v-model="infoModel.smsNumber" placeholder="请输入服务号码(全)" ></a-input>
  72. </a-form-model-item>
  73. </a-col>
  74. <a-col :span="6">
  75. <a-form-model-item label="客户经理" prop="manage" v-bind="labelCol4">
  76. <a-input v-model="infoModel.manage" placeholder="客户经理" ></a-input>
  77. </a-form-model-item>
  78. </a-col>
  79. <a-col :span="6">
  80. <a-form-model-item label="客户经理手机号" prop="managePhone" v-bind="labelCol4">
  81. <a-input v-model="infoModel.managePhone" placeholder="客户经理手机号"></a-input>
  82. </a-form-model-item>
  83. </a-col>
  84. <a-col :span="6">
  85. <a-form-model-item label="使用场景" prop="scene" v-bind="labelCol4">
  86. <a-input v-model="infoModel.scene" placeholder="例-车联网-乘用车-智能后视镜"></a-input>
  87. </a-form-model-item>
  88. </a-col>
  89. <a-col :span="6">
  90. <a-form-model-item label="资料是否完整" prop="isAll" v-bind="labelCol4">
  91. <a-radio-group v-model="infoModel.isAll" button-style="solid" >
  92. <a-radio-button value="0">否</a-radio-button>
  93. <a-radio-button value="1">是</a-radio-button>
  94. </a-radio-group>
  95. </a-form-model-item>
  96. </a-col>
  97. <a-col :span="6">
  98. <a-form-model-item label="是否完成整改" prop="isComplete" v-bind="labelCol4">
  99. <a-radio-group v-model="infoModel.isComplete" button-style="solid" >
  100. <a-radio-button value="0">否</a-radio-button>
  101. <a-radio-button value="1">是</a-radio-button>
  102. </a-radio-group>
  103. </a-form-model-item>
  104. </a-col>
  105. <a-col :span="7" v-if='infoModel.contractDateIs==="" || infoModel.contractDateIs===null || infoModel.contractDateIs==="1" '>
  106. <a-form-model-item label="合同到期时间是否长期" prop="contractDateIs" v-bind="labelCol7">
  107. <a-radio-group v-model="infoModel.contractDateIs" button-style="solid" :disabled="infoModel.infoResult==='1'?true:false">
  108. <a-radio-button value="0">否</a-radio-button>
  109. <a-radio-button value="1">是</a-radio-button>
  110. </a-radio-group>
  111. </a-form-model-item>
  112. </a-col>
  113. <a-col :span="7" v-if='infoModel.contractDateIs==="0" ' >
  114. <a-form-model-item label="合同到期时间" prop="contractDate" v-bind="labelCol4">
  115. <a-date-picker style="min-width:50px; width: 64% " v-model="infoModel.contractDate"
  116. format="YYYY-MM-DD"
  117. showTime valueFormat="YYYY-MM-DD"/>
  118. <a-button @click="backDate('contractDate')" >长期</a-button>
  119. </a-form-model-item>
  120. </a-col>
  121. <a-col :span="7" v-if='infoModel.businessLicenseDateIs==="" || infoModel.businessLicenseDateIs===null || infoModel.businessLicenseDateIs==="1" '>
  122. <a-form-model-item label="营业执照有效期是否长期" prop="businessLicenseDateIs" v-bind="labelCol7">
  123. <a-radio-group :disabled="infoModel.infoResult==='1'?true:false" v-model="infoModel.businessLicenseDateIs" button-style="solid" >
  124. <a-radio-button value="0">否</a-radio-button>
  125. <a-radio-button value="1">是</a-radio-button>
  126. </a-radio-group>
  127. </a-form-model-item>
  128. </a-col>
  129. <a-col :span="7" v-if='infoModel.businessLicenseDateIs==="0"'>
  130. <a-form-model-item label="营业执照到期时间" prop="businessLicenseDate" v-bind="labelCol4">
  131. <a-date-picker style="min-width:50px; width: 64% " v-model="infoModel.businessLicenseDate"
  132. format="YYYY-MM-DD"
  133. showTime valueFormat="YYYY-MM-DD"/>
  134. <a-button @click="backDate('businessLicenseDate')" >长期</a-button>
  135. </a-form-model-item>
  136. </a-col>
  137. </a-row>
  138. </a-card>
  139. </a-form-model>
  140. <!-- 步骤条-->
  141. <a-card style="margin-bottom:10px;width: 15%;float: left">
  142. <!-- v-model:current="current"-->
  143. <a-steps direction="vertical" :current="steps.current" size="small" @change="stepsClick">
  144. <a-step v-for="item in steps.stepsNow" :key="item.title" :title="item.title" :status="item.status"/>
  145. </a-steps>
  146. <a-button @click="addIsStaging" style="width: 100%" type="warn">暂存</a-button>
  147. <a-button @click="submitAuditLot" style="width: 100%;position: relative;top: 10px" type="primary">提交申请</a-button>
  148. </a-card>
  149. <!-- 测试卡申请单-->
  150. <a-card v-if="steps.currentId === 'testCard'" style="margin-bottom:10px; float: left;width: 83%; ">
  151. <div slot="title">
  152. <span style="float: left;position: relative;top: 4px">测试卡申请单</span>
  153. <!-- 操作按钮-->
  154. </div>
  155. <div style="float: left; width: 40%">
  156. <div class="markdown" style="position: relative;top:30px">
  157. <ul>
  158. <li>1)测试卡申请单是否加盖公章</li>
  159. <li>2)测试卡申请单中经办人、责任人身份证是否一致</li>
  160. </ul>
  161. </div>
  162. </div>
  163. <div style="width: 60%;float:left;">
  164. <div>
  165. <a-form-model-item style="left: 10%;margin-top: 20px" label="上传资料备注:" v-bind="labelCol1Note">
  166. <a-textarea style="height: 77px"
  167. v-model="infoModel.testCardRemark"
  168. @change="textareaChange('testCard','testCardRemark')"
  169. placeholder="如没有上传资料备注,需要说明原因"
  170. />
  171. <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
  172. </a-form-model-item>
  173. </div>
  174. <div style="height: 70%">
  175. <div class="thumb-example">
  176. <a-upload
  177. name="file"
  178. :multiple="true"
  179. :action="importMinioUploadAction"
  180. :customRequest="e => selfUploadContract(e, 'testCard')"
  181. :headers="tokenHeader"
  182. :showUploadList="false"
  183. :beforeUpload="importBeforeUpload"
  184. @change="importHandleChange"
  185. style='margin-left: 90px;line-height: 30px'
  186. >
  187. <a-button> <a-icon type="upload" /> 上传文件 </a-button>
  188. </a-upload>
  189. <!-- swiper1 -->
  190. <swiper
  191. class="swiper gallery-top"
  192. :options="swiperOptionTop"
  193. ref="swiperTop"
  194. >
  195. <swiper-slide class="slide-1" v-for="(item, index) in infoModel.testCard" :key="item.id">
  196. <iframe
  197. v-if="item.urlBase"
  198. frameborder="1"
  199. :src="item.urlBase"
  200. ref="ifr"
  201. width="500px"
  202. height="445px"
  203. scrolling="auto">
  204. </iframe>
  205. <img style="width: 70%;height: 70%;border: 1px solid;"
  206. v-if="!item.urlBase" :src="noDataPng" border="1">
  207. <a-button v-if="item.urlBase "
  208. style="display: block;margin-top: 10px;border-color: red;color: red"
  209. danger @click="removeFile(item,'testCard')">移除
  210. </a-button>
  211. </swiper-slide>
  212. <div
  213. class="swiper-button-next swiper-button-white"
  214. slot="button-next"
  215. ></div>
  216. <div
  217. class="swiper-button-prev swiper-button-white"
  218. slot="button-prev"
  219. ></div>
  220. </swiper>
  221. <!-- swiper2 Thumbs -->
  222. <swiper
  223. class="swiper gallery-thumbs"
  224. :options="swiperOptionThumbs"
  225. ref="swiperThumbs"
  226. >
  227. <swiper-slide
  228. class="slide"
  229. style="width:100px;height:100px;"
  230. v-for="(item, index) in infoModel.testCard"
  231. :key="item.id"
  232. >
  233. <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
  234. <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
  235. </div>
  236. <img style="width: 100%;height: 96px"
  237. v-if="!item.urlBase" :src="noDataPng" border="1">
  238. </swiper-slide>
  239. <!-- 点我上传文件按钮-->
  240. <div class="clearfix">
  241. <a-upload
  242. listType="picture-card"
  243. name="file"
  244. :multiple="false"
  245. :action="importMinioUploadAction"
  246. :customRequest="e=>selfUploadContract(e,'testCard')"
  247. :headers="tokenHeader"
  248. :showUploadList="false"
  249. :beforeUpload="importBeforeUpload"
  250. @change="importHandleChange"
  251. >
  252. <div >
  253. <a-icon type="plus"/>
  254. <div class="ant-upload-text">点我上传合同</div>
  255. </div>
  256. </a-upload>
  257. </div>
  258. <div class="swiper-button-next swiper-button-white" slot="button-next">
  259. <div>
  260. <!-- <img src="../../../../assets/images/nextImg.png" alt=""/>-->
  261. </div>
  262. </div>
  263. <div class="swiper-button-prev swiper-button-white" slot="button-prev">
  264. <div>
  265. <!-- <img src="../../../../assets/images/prevImg.png" alt=""/>-->
  266. </div>
  267. </div>
  268. </swiper>
  269. </div>
  270. </div>
  271. </div>
  272. </a-card>
  273. <!-- 合同要求-->
  274. <a-card v-if="steps.currentId === 'contract'" style="margin-bottom:10px; float: left;width: 83%;left: 2%; ">
  275. <div slot="title">
  276. <span style="float: left;position: relative;top: 4px">合同要求</span>
  277. <!-- 操作按钮-->
  278. </div>
  279. <div style="float: left;width: 40%">
  280. <div class="markdown" style="position: relative;top:30px">
  281. <ul style='font-size:0px;'>
  282. <li>1)是否在有效期</li>
  283. <li>2)是否明确场景,如车联网,水表等,且与风险评估表一致</li>
  284. <li>3)是否明确开通功能,如语音,短信,流量等</li>
  285. <li>4)是否明确功能限制,如定向、机卡绑定、卡片限定、限额管控、黑名单限制等</li>
  286. <li>5)是否明确白名单数量,具体号码,地址等</li>
  287. <li>6)是否明确禁止二次销售</li>
  288. <li>7)是否明确防范垃圾短信和骚扰电话条款</li>
  289. <li>8)是否无低级错误,如缺少签字,日期等</li>
  290. <li>9)合同签署是否是法人,是否有授权书</li>
  291. </ul>
  292. </div>
  293. </div>
  294. <div style="width: 60%;float:left;">
  295. <div>
  296. <a-form-model-item style="left: 10%;margin-top: 20px" label="上传资料备注:" v-bind="labelCol1Note">
  297. <a-textarea style="height: 77px"
  298. v-model="infoModel.contractRemark"
  299. @change="textareaChange('contract','contractRemark')"
  300. placeholder="如没有上传资料备注,需要说明原因"
  301. />
  302. <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
  303. </a-form-model-item>
  304. </div>
  305. <div style="height: 70%">
  306. <div class="thumb-example">
  307. <a-upload
  308. name="file"
  309. :multiple="true"
  310. :action="importMinioUploadAction"
  311. :customRequest="e => selfUploadContract(e, 'contract')"
  312. :headers="tokenHeader"
  313. :showUploadList="false"
  314. :beforeUpload="importBeforeUpload"
  315. @change="importHandleChange"
  316. style='margin-left: 90px;line-height: 50px'
  317. >
  318. <a-button> <a-icon type="upload" /> 上传文件 </a-button>
  319. </a-upload>
  320. <!-- swiper1 -->
  321. <swiper
  322. class="swiper gallery-top"
  323. :options="swiperOptionTop"
  324. ref="swiperTop"
  325. >
  326. <swiper-slide class="slide-1" v-for="(item, index) in infoModel.contract" :key="item.id">
  327. <iframe
  328. v-if="item.urlBase"
  329. frameborder="1"
  330. :src="item.urlBase"
  331. ref="ifr"
  332. width="500px"
  333. height="445px"
  334. scrolling="auto">
  335. </iframe>
  336. <img style="width: 70%;height: 70%;border: 1px solid;"
  337. v-if="!item.urlBase" :src="noDataPng" border="1">
  338. <a-button v-if="item.urlBase "
  339. style="display: block;margin-top: 10px;border-color: red;color: red"
  340. danger @click="removeFile(item,'contract')">移除
  341. </a-button>
  342. </swiper-slide>
  343. <div
  344. class="swiper-button-next swiper-button-white"
  345. slot="button-next"
  346. ></div>
  347. <div
  348. class="swiper-button-prev swiper-button-white"
  349. slot="button-prev"
  350. ></div>
  351. </swiper>
  352. <!-- swiper2 Thumbs -->
  353. <swiper
  354. class="swiper gallery-thumbs"
  355. :options="swiperOptionThumbs"
  356. ref="swiperThumbs"
  357. >
  358. <swiper-slide
  359. class="slide"
  360. style="width:100px;height:100px;"
  361. v-for="(item, index) in infoModel.contract"
  362. :key="item.id"
  363. >
  364. <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
  365. <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
  366. </div>
  367. <img style="width: 100%;height: 96px"
  368. v-if="!item.urlBase" :src="noDataPng" border="1">
  369. </swiper-slide>
  370. <!-- 点我上传文件按钮-->
  371. <div class="clearfix">
  372. <a-upload
  373. listType="picture-card"
  374. name="file"
  375. :multiple="false"
  376. :action="importMinioUploadAction"
  377. :customRequest="e =>selfUploadContract(e, 'contract')"
  378. :headers="tokenHeader"
  379. :showUploadList="false"
  380. :beforeUpload="importBeforeUpload"
  381. @change="importHandleChange"
  382. >
  383. <div >
  384. <a-icon type="plus"/>
  385. <div class="ant-upload-text">点我上传合同</div>
  386. </div>
  387. </a-upload>
  388. </div>
  389. <div class="swiper-button-next swiper-button-white" slot="button-next">
  390. <div>
  391. <!-- <img src="../../../../assets/images/nextImg.png" alt=""/>-->
  392. </div>
  393. </div>
  394. <div class="swiper-button-prev swiper-button-white" slot="button-prev">
  395. <div>
  396. <!-- <img src="../../../../assets/images/prevImg.png" alt=""/>-->
  397. </div>
  398. </div>
  399. </swiper>
  400. </div>
  401. </div>
  402. </div>
  403. </a-card>
  404. <!-- 责任人和经办人授权书-->
  405. <a-card v-if="steps.currentId === 'handlingContract'" style="margin-bottom:10px; float: left;width: 83%;left: 2%; ">
  406. <div slot="title">
  407. <span style="float: left;position: relative;top: 4px">责任人和经办人授权书</span>
  408. <!-- 操作按钮-->
  409. </div>
  410. <div style="float: left; width: 40%">
  411. <div class="markdown" style="position: relative;top:30px">
  412. <ul>
  413. <li>1)经办人和责任人授权书齐全并且加盖公章</li>
  414. <li>2)经办人和责任人与授权书一致</li>
  415. </ul>
  416. </div>
  417. </div>
  418. <div style="width: 60%;float:left;">
  419. <div>
  420. <a-form-model-item style="left: 10%;margin-top: 20px" label="上传资料备注:" v-bind="labelCol1Note">
  421. <a-textarea style="height: 77px"
  422. v-model="infoModel.handlingContractRemark"
  423. @change="textareaChange('handlingContract','handlingContractRemark')"
  424. placeholder="如没有上传资料备注,需要说明原因"
  425. />
  426. <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
  427. </a-form-model-item>
  428. </div>
  429. <div style="height: 70%">
  430. <div class="thumb-example">
  431. <a-upload
  432. name="file"
  433. :multiple="true"
  434. :action="importMinioUploadAction"
  435. :customRequest="e => selfUploadContract(e, 'handlingContract')"
  436. :headers="tokenHeader"
  437. :showUploadList="false"
  438. :beforeUpload="importBeforeUpload"
  439. @change="importHandleChange"
  440. style='margin-left: 90px;line-height: 50px'
  441. >
  442. <a-button> <a-icon type="upload" /> 上传文件 </a-button>
  443. </a-upload>
  444. <!-- swiper1 -->
  445. <swiper
  446. class="swiper gallery-top"
  447. :options="swiperOptionTop"
  448. ref="swiperTop"
  449. >
  450. <swiper-slide class="slide-1" v-for="(item, index) in infoModel.handlingContract" :key="item.id">
  451. <iframe
  452. v-if="item.urlBase"
  453. frameborder="1"
  454. :src="item.urlBase"
  455. ref="ifr"
  456. width="500px"
  457. height="445px"
  458. scrolling="auto">
  459. </iframe>
  460. <img style="width: 70%;height: 70%;border: 1px solid;"
  461. v-if="!item.urlBase" :src="noDataPng" border="1">
  462. <a-button v-if="item.urlBase"
  463. style="display: block;margin-top: 10px;border-color: red;color: red"
  464. danger @click="removeFile(item,'handlingContract')">移除
  465. </a-button>
  466. </swiper-slide>
  467. <div
  468. class="swiper-button-next swiper-button-white"
  469. slot="button-next"
  470. ></div>
  471. <div
  472. class="swiper-button-prev swiper-button-white"
  473. slot="button-prev"
  474. ></div>
  475. </swiper>
  476. <!-- swiper2 Thumbs -->
  477. <swiper
  478. class="swiper gallery-thumbs"
  479. :options="swiperOptionThumbs"
  480. ref="swiperThumbs"
  481. >
  482. <swiper-slide
  483. class="slide"
  484. style="width:100px;height:100px;"
  485. v-for="(item, index) in infoModel.handlingContract"
  486. :key="item.id"
  487. >
  488. <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
  489. <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
  490. </div>
  491. <img style="width: 100%;height: 96px"
  492. v-if="!item.urlBase" :src="noDataPng" border="1">
  493. </swiper-slide>
  494. <!-- 点我上传文件按钮-->
  495. <div class="clearfix">
  496. <a-upload
  497. listType="picture-card"
  498. name="file"
  499. :multiple="false"
  500. :action="importMinioUploadAction"
  501. :customRequest="e=>selfUploadContract(e,'handlingContract')"
  502. :headers="tokenHeader"
  503. :showUploadList="false"
  504. :beforeUpload="importBeforeUpload"
  505. @change="importHandleChange"
  506. >
  507. <div >
  508. <a-icon type="plus"/>
  509. <div class="ant-upload-text">点我上传合同</div>
  510. </div>
  511. </a-upload>
  512. </div>
  513. <div class="swiper-button-next swiper-button-white" slot="button-next">
  514. <div>
  515. <!-- <img src="../../../../assets/images/nextImg.png" alt=""/>-->
  516. </div>
  517. </div>
  518. <div class="swiper-button-prev swiper-button-white" slot="button-prev">
  519. <div>
  520. <!-- <img src="../../../../assets/images/prevImg.png" alt=""/>-->
  521. </div>
  522. </div>
  523. </swiper>
  524. </div>
  525. </div>
  526. </div>
  527. </a-card>
  528. <!-- 责任人和经办人身份证-->
  529. <a-card v-if="steps.currentId === 'handlingCard'" style="margin-bottom:10px; float: left;width: 83%;left: 2%; ">
  530. <div slot="title">
  531. <span style="float: left;position: relative;top: 4px">责任人和经办人身份证</span>
  532. <!-- 操作按钮-->
  533. </div>
  534. <div style="float: left; width: 40%">
  535. <div class="markdown" style="position: relative;top:30px">
  536. <ul>
  537. <li>1)经办人和责任人身份证复印件加盖公章</li>
  538. <!-- <li style="color: red" v-if="lotNote.idCardNote != null && lotNote.idCardNote.length > 0">-->
  539. <!-- 稽核结果备注:{{ lotNote.idCardNote }}-->
  540. <!-- </li>-->
  541. </ul>
  542. </div>
  543. </div>
  544. <div style="width: 60%;float:left;">
  545. <div>
  546. <a-form-model-item style="left: 10%;margin-top: 20px" label="上传资料备注:" v-bind="labelCol1Note">
  547. <a-textarea style="height: 77px"
  548. v-model="infoModel.handlingCardRemark"
  549. @change="textareaChange('handlingCard','handlingCardRemark')"
  550. placeholder="如没有上传资料备注,需要说明原因"
  551. />
  552. <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
  553. </a-form-model-item>
  554. </div>
  555. <div style="height: 70%">
  556. <div class="thumb-example">
  557. <a-upload
  558. name="file"
  559. :multiple="true"
  560. :action="importMinioUploadAction"
  561. :customRequest="e => selfUploadContract(e, 'handlingCard')"
  562. :headers="tokenHeader"
  563. :showUploadList="false"
  564. :beforeUpload="importBeforeUpload"
  565. @change="importHandleChange"
  566. style='margin-left: 90px;line-height: 50px'
  567. >
  568. <a-button> <a-icon type="upload" /> 上传文件 </a-button>
  569. </a-upload>
  570. <!-- swiper1 -->
  571. <swiper
  572. class="swiper gallery-top"
  573. :options="swiperOptionTop"
  574. ref="swiperTop"
  575. >
  576. <swiper-slide class="slide-1" v-for="(item, index) in infoModel.handlingCard" :key="item.id">
  577. <iframe
  578. v-if="item.urlBase"
  579. frameborder="1"
  580. :src="item.urlBase"
  581. ref="ifr"
  582. width="500px"
  583. height="445px"
  584. scrolling="auto">
  585. </iframe>
  586. <img style="width: 70%;height: 70%;border: 1px solid;"
  587. v-if="!item.urlBase" :src="noDataPng" border="1">
  588. <a-button v-if="item.urlBase "
  589. style="display: block;margin-top: 10px;border-color: red;color: red"
  590. danger @click="removeFile(item,'handlingCard')">移除
  591. </a-button>
  592. </swiper-slide>
  593. <div
  594. class="swiper-button-next swiper-button-white"
  595. slot="button-next"
  596. ></div>
  597. <div
  598. class="swiper-button-prev swiper-button-white"
  599. slot="button-prev"
  600. ></div>
  601. </swiper>
  602. <!-- swiper2 Thumbs -->
  603. <swiper
  604. class="swiper gallery-thumbs"
  605. :options="swiperOptionThumbs"
  606. ref="swiperThumbs"
  607. >
  608. <swiper-slide
  609. class="slide"
  610. style="width:100px;height:100px;"
  611. v-for="(item, index) in infoModel.handlingCard"
  612. :key="item.id"
  613. >
  614. <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
  615. <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
  616. </div>
  617. <img style="width: 100%;height: 96px"
  618. v-if="!item.urlBase" :src="noDataPng" border="1">
  619. </swiper-slide>
  620. <!-- 点我上传文件按钮-->
  621. <div class="clearfix">
  622. <a-upload
  623. listType="picture-card"
  624. name="file"
  625. :multiple="false"
  626. :action="importMinioUploadAction"
  627. :customRequest="e=>selfUploadContract(e,'handlingCard')"
  628. :headers="tokenHeader"
  629. :showUploadList="false"
  630. :beforeUpload="importBeforeUpload"
  631. @change="importHandleChange"
  632. >
  633. <div >
  634. <a-icon type="plus"/>
  635. <div class="ant-upload-text">点我上传合同</div>
  636. </div>
  637. </a-upload>
  638. </div>
  639. <div class="swiper-button-next swiper-button-white" slot="button-next">
  640. <div>
  641. <!-- <img src="../../../../assets/images/nextImg.png" alt=""/>-->
  642. </div>
  643. </div>
  644. <div class="swiper-button-prev swiper-button-white" slot="button-prev">
  645. <div>
  646. <!-- <img src="../../../../assets/images/prevImg.png" alt=""/>-->
  647. </div>
  648. </div>
  649. </swiper>
  650. </div>
  651. </div>
  652. </div>
  653. </a-card>
  654. <!-- 客户证件扫描-->
  655. <a-card v-if="steps.currentId === 'customerCardScanning'" style="margin-bottom:10px; float: left;width: 83%;left: 2%; ">
  656. <div slot="title">
  657. <span style="float: left;position: relative;top: 4px">客户证件扫描</span>
  658. <!-- 操作按钮-->
  659. </div>
  660. <div style="float: left; width: 40%">
  661. <div class="markdown" style="position: relative;top:30px">
  662. <ul>
  663. <li>1)客户证件复印件加盖公章</li>
  664. <!-- <li style="color: red" v-if="lotNote.customerIdNote != null && lotNote.customerIdNote.length > 0">-->
  665. <!-- 稽核结果备注:{{ lotNote.customerIdNote }}-->
  666. <!-- </li>-->
  667. </ul>
  668. </div>
  669. </div>
  670. <div style="width: 60%;float:left;">
  671. <div>
  672. <a-form-model-item style="left: 10%;margin-top: 20px" label="上传资料备注:" v-bind="labelCol1Note">
  673. <a-textarea style="height: 77px"
  674. v-model="infoModel.customerCardScanningRemark"
  675. @change="textareaChange('customerCardScanning','customerCardScanningRemark')"
  676. placeholder="如没有上传资料备注,需要说明原因"
  677. />
  678. <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
  679. </a-form-model-item>
  680. </div>
  681. <div style="height: 70%">
  682. <div class="thumb-example">
  683. <a-upload
  684. name="file"
  685. :multiple="true"
  686. :action="importMinioUploadAction"
  687. :customRequest="e => selfUploadContract(e, 'customerCardScanning')"
  688. :headers="tokenHeader"
  689. :showUploadList="false"
  690. :beforeUpload="importBeforeUpload"
  691. @change="importHandleChange"
  692. style='margin-left: 90px;line-height: 50px'
  693. >
  694. <a-button> <a-icon type="upload" /> 上传文件 </a-button>
  695. </a-upload>
  696. <!-- swiper1 -->
  697. <swiper
  698. class="swiper gallery-top"
  699. :options="swiperOptionTop"
  700. ref="swiperTop"
  701. >
  702. <swiper-slide class="slide-1" v-for="(item, index) in infoModel.customerCardScanning" :key="item.id">
  703. <iframe
  704. v-if="item.urlBase"
  705. frameborder="1"
  706. :src="item.urlBase"
  707. ref="ifr"
  708. width="500px"
  709. height="445px"
  710. scrolling="auto">
  711. </iframe>
  712. <img style="width: 70%;height: 70%;border: 1px solid;"
  713. v-if="!item.urlBase" :src="noDataPng" border="1">
  714. <a-button v-if="item.urlBase "
  715. style="display: block;margin-top: 10px;border-color: red;color: red"
  716. danger @click="removeFile(item,'customerCardScanning')">移除
  717. </a-button>
  718. </swiper-slide>
  719. <div
  720. class="swiper-button-next swiper-button-white"
  721. slot="button-next"
  722. ></div>
  723. <div
  724. class="swiper-button-prev swiper-button-white"
  725. slot="button-prev"
  726. ></div>
  727. </swiper>
  728. <!-- swiper2 Thumbs -->
  729. <swiper
  730. class="swiper gallery-thumbs"
  731. :options="swiperOptionThumbs"
  732. ref="swiperThumbs"
  733. >
  734. <swiper-slide
  735. class="slide"
  736. style="width:100px;height:100px;"
  737. v-for="(item, index) in infoModel.customerCardScanning"
  738. :key="item.id"
  739. >
  740. <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
  741. <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
  742. </div>
  743. <img style="width: 100%;height: 96px"
  744. v-if="!item.urlBase" :src="noDataPng" border="1">
  745. </swiper-slide>
  746. <!-- 点我上传文件按钮-->
  747. <div v-if="lotState.customerIdState != 1" class="clearfix">
  748. <a-upload
  749. listType="picture-card"
  750. name="file"
  751. :multiple="false"
  752. :action="importMinioUploadAction"
  753. :customRequest="e=>selfUploadContract(e,'customerCardScanning')"
  754. :headers="tokenHeader"
  755. :showUploadList="false"
  756. :beforeUpload="importBeforeUpload"
  757. @change="importHandleChange"
  758. >
  759. <div >
  760. <a-icon type="plus"/>
  761. <div class="ant-upload-text">点我上传合同</div>
  762. </div>
  763. </a-upload>
  764. </div>
  765. <div class="swiper-button-next swiper-button-white" slot="button-next">
  766. <div>
  767. <!-- <img src="../../../../assets/images/nextImg.png" alt=""/>-->
  768. </div>
  769. </div>
  770. <div class="swiper-button-prev swiper-button-white" slot="button-prev">
  771. <div>
  772. <!-- <img src="../../../../assets/images/prevImg.png" alt=""/>-->
  773. </div>
  774. </div>
  775. </swiper>
  776. </div>
  777. </div>
  778. </div>
  779. </a-card>
  780. <!-- 风险评估表-->
  781. <a-card v-if="steps.currentId === 'riskTable'" style="margin-bottom:10px; float: left;width: 83%;left: 2%; ">
  782. <div slot="title">
  783. <span style="float: left;position: relative;top: 4px">风险评估表</span>
  784. <!-- 操作按钮-->
  785. </div>
  786. <div style="float: left; width: 40%">
  787. <div class="markdown" style="position: relative;top:30px">
  788. <ul>
  789. <li>1)是否进行入网风险评估</li>
  790. <li>2)安全管理能力是否填写最小必要数据</li>
  791. <li>3)是否明确使用场景(与产品形态表一致),如车联网、水表等</li>
  792. <li>4)是否明确开通功能,如语音,短信,流量等</li>
  793. <li>5)是否明确功能限制情况,如定向,机卡绑定,卡片绑定,限额管控,黑名单限制等</li>
  794. <li>6)是否无低级错误,如缺少签字、日期等</li>
  795. <li>7)风险评估表中卡类型需写清三要素:网络制式、商业级或消费级、贴片机或插卡机</li>
  796. <li>8)现场考察部分截图是否清晰</li>
  797. <li>9)合同、入网评估表、系统受理是否一致</li>
  798. <!-- <li style="color: red" v-if="lotNote.riskNote != null && lotNote.riskNote.length > 0">-->
  799. <!-- 稽核结果备注:{{ lotNote.riskNote }}-->
  800. <!-- </li>-->
  801. </ul>
  802. </div>
  803. </div>
  804. <div style="width: 60%;float:left;">
  805. <div>
  806. <a-form-model-item style="left: 10%;margin-top: 20px" label="上传资料备注:" v-bind="labelCol1Note">
  807. <a-textarea style="height: 77px"
  808. v-model="infoModel.riskTableRemark"
  809. @change="textareaChange('riskTable','riskTableRemark')"
  810. placeholder="如没有上传资料备注,需要说明原因"
  811. />
  812. <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
  813. </a-form-model-item>
  814. </div>
  815. <div style="height: 70%">
  816. <div class="thumb-example">
  817. <a-upload
  818. name="file"
  819. :multiple="true"
  820. :action="importMinioUploadAction"
  821. :customRequest="e => selfUploadContract(e, 'riskTable')"
  822. :headers="tokenHeader"
  823. :showUploadList="false"
  824. :beforeUpload="importBeforeUpload"
  825. @change="importHandleChange"
  826. style='margin-left: 90px;line-height: 50px'
  827. >
  828. <a-button> <a-icon type="upload" /> 上传文件 </a-button>
  829. </a-upload>
  830. <!-- swiper1 -->
  831. <swiper
  832. class="swiper gallery-top"
  833. :options="swiperOptionTop"
  834. ref="swiperTop"
  835. >
  836. <swiper-slide class="slide-1" v-for="(item, index) in infoModel.riskTable" :key="item.id">
  837. <iframe
  838. v-if="item.urlBase"
  839. frameborder="1"
  840. :src="item.urlBase"
  841. ref="ifr"
  842. width="500px"
  843. height="445px"
  844. scrolling="auto">
  845. </iframe>
  846. <img style="width: 70%;height: 70%;border: 1px solid;"
  847. v-if="!item.urlBase" :src="noDataPng" border="1">
  848. <a-button v-if="item.urlBase "
  849. style="display: block;margin-top: 10px;border-color: red;color: red"
  850. danger @click="removeFile(item,'riskTable')">移除
  851. </a-button>
  852. </swiper-slide>
  853. <div
  854. class="swiper-button-next swiper-button-white"
  855. slot="button-next"
  856. ></div>
  857. <div
  858. class="swiper-button-prev swiper-button-white"
  859. slot="button-prev"
  860. ></div>
  861. </swiper>
  862. <!-- swiper2 Thumbs -->
  863. <swiper
  864. class="swiper gallery-thumbs"
  865. :options="swiperOptionThumbs"
  866. ref="swiperThumbs"
  867. >
  868. <swiper-slide
  869. class="slide"
  870. style="width:100px;height:100px;"
  871. v-for="(item, index) in infoModel.riskTable"
  872. :key="item.id"
  873. >
  874. <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
  875. <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
  876. </div>
  877. <img style="width: 100%;height: 96px"
  878. v-if="!item.urlBase" :src="noDataPng" border="1">
  879. </swiper-slide>
  880. <!-- 点我上传文件按钮-->
  881. <div class="clearfix">
  882. <a-upload
  883. listType="picture-card"
  884. name="file"
  885. :multiple="false"
  886. :action="importMinioUploadAction"
  887. :customRequest="e=>selfUploadContract(e,'riskTable')"
  888. :headers="tokenHeader"
  889. :showUploadList="false"
  890. :beforeUpload="importBeforeUpload"
  891. @change="importHandleChange"
  892. >
  893. <div >
  894. <a-icon type="plus"/>
  895. <div class="ant-upload-text">点我上传合同</div>
  896. </div>
  897. </a-upload>
  898. </div>
  899. <div class="swiper-button-next swiper-button-white" slot="button-next">
  900. <div>
  901. <!-- <img src="../../../../assets/images/nextImg.png" alt=""/>-->
  902. </div>
  903. </div>
  904. <div class="swiper-button-prev swiper-button-white" slot="button-prev">
  905. <div>
  906. <!-- <img src="../../../../assets/images/prevImg.png" alt=""/>-->
  907. </div>
  908. </div>
  909. </swiper>
  910. </div>
  911. </div>
  912. </div>
  913. </a-card>
  914. <!-- 省/集团价格审批表-->
  915. <a-card v-if="steps.currentId === 'priceTable'" style="margin-bottom:10px; float: left;width: 83%;left: 2%; ">
  916. <div slot="title">
  917. <span style="float: left;position: relative;top: 4px">省/集团价格审批表</span>
  918. <!-- 操作按钮-->
  919. </div>
  920. <div style="float: left; width: 40%">
  921. <div class="markdown" style="position: relative;top:30px">
  922. <ul>
  923. <li>1)最终审批价格不低于1元/户/月(对2020年1月1日前签署合同的存量客户,若存量价格审批表中只约定了保底流量无功能费的,按存量审批表执行)</li>
  924. <li>2)不参与打折,最低优惠至1元/户/月(2020年1月1日前签署合同的存量客户,池功能费可以按照池成员流量价格授权同步享受折扣)</li>
  925. <li>3)同客户同项目测试卡数量不得超100张,最高不得超500张。</li>
  926. <li>4)物联网开卡时提供公免卡审批表,开卡张数和公免额度与审批表一致。物联网公免卡的审批人员和流程同大网公免卡一致。</li>
  927. <li>5)累计限免有效期原则上不得大于15个月</li>
  928. <!-- <li style="color: red" v-if="lotNote.priceApprovalNote != null && lotNote.priceApprovalNote.length > 0">-->
  929. <!-- 稽核结果备注:{{ lotNote.priceApprovalNote }}-->
  930. <!-- </li>-->
  931. </ul>
  932. </div>
  933. </div>
  934. <div style="width: 60%;float:left;">
  935. <div>
  936. <a-form-model-item style="left: 10%;margin-top: 20px" label="上传资料备注:" v-bind="labelCol1Note">
  937. <a-textarea style="height: 77px"
  938. v-model="infoModel.priceTableRemark"
  939. @change="textareaChange('priceTable','priceTableRemark')"
  940. placeholder="如没有上传资料备注,需要说明原因"
  941. />
  942. <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
  943. </a-form-model-item>
  944. </div>
  945. <div style="height: 70%">
  946. <div class="thumb-example">
  947. <a-upload
  948. name="file"
  949. :multiple="true"
  950. :action="importMinioUploadAction"
  951. :customRequest="e => selfUploadContract(e, 'priceTable')"
  952. :headers="tokenHeader"
  953. :showUploadList="false"
  954. :beforeUpload="importBeforeUpload"
  955. @change="importHandleChange"
  956. style='margin-left: 90px;line-height: 50px'
  957. >
  958. <a-button> <a-icon type="upload" /> 上传文件 </a-button>
  959. </a-upload>
  960. <!-- swiper1 -->
  961. <swiper
  962. class="swiper gallery-top"
  963. :options="swiperOptionTop"
  964. ref="swiperTop"
  965. >
  966. <swiper-slide class="slide-1" v-for="(item, index) in infoModel.priceTable" :key="item.id">
  967. <iframe
  968. v-if="item.urlBase"
  969. frameborder="1"
  970. :src="item.urlBase"
  971. ref="ifr"
  972. width="500px"
  973. height="445px"
  974. scrolling="auto">
  975. </iframe>
  976. <img style="width: 70%;height: 70%;border: 1px solid;"
  977. v-if="!item.urlBase" :src="noDataPng" border="1">
  978. <a-button v-if="item.urlBase "
  979. style="display: block;margin-top: 10px;border-color: red;color: red"
  980. danger @click="removeFile(item,'priceTable')">移除
  981. </a-button>
  982. </swiper-slide>
  983. <div
  984. class="swiper-button-next swiper-button-white"
  985. slot="button-next"
  986. ></div>
  987. <div
  988. class="swiper-button-prev swiper-button-white"
  989. slot="button-prev"
  990. ></div>
  991. </swiper>
  992. <!-- swiper2 Thumbs -->
  993. <swiper
  994. class="swiper gallery-thumbs"
  995. :options="swiperOptionThumbs"
  996. ref="swiperThumbs"
  997. >
  998. <swiper-slide
  999. class="slide"
  1000. style="width:100px;height:100px;"
  1001. v-for="(item, index) in infoModel.priceTable"
  1002. :key="item.id"
  1003. >
  1004. <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
  1005. <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
  1006. </div>
  1007. <img style="width: 100%;height: 96px"
  1008. v-if="!item.urlBase" :src="noDataPng" border="1">
  1009. </swiper-slide>
  1010. <!-- 点我上传文件按钮-->
  1011. <div class="clearfix">
  1012. <a-upload
  1013. listType="picture-card"
  1014. name="file"
  1015. :multiple="false"
  1016. :action="importMinioUploadAction"
  1017. :customRequest="e=>selfUploadContract(e,'priceTable')"
  1018. :headers="tokenHeader"
  1019. :showUploadList="false"
  1020. :beforeUpload="importBeforeUpload"
  1021. @change="importHandleChange"
  1022. >
  1023. <div >
  1024. <a-icon type="plus"/>
  1025. <div class="ant-upload-text">点我上传合同</div>
  1026. </div>
  1027. </a-upload>
  1028. </div>
  1029. <div class="swiper-button-next swiper-button-white" slot="button-next">
  1030. <div>
  1031. <!-- <img src="../../../../assets/images/nextImg.png" alt=""/>-->
  1032. </div>
  1033. </div>
  1034. <div class="swiper-button-prev swiper-button-white" slot="button-prev">
  1035. <div>
  1036. <!-- <img src="../../../../assets/images/prevImg.png" alt=""/>-->
  1037. </div>
  1038. </div>
  1039. </swiper>
  1040. </div>
  1041. </div>
  1042. </div>
  1043. </a-card>
  1044. <!--承诺涵-其他材料-非必填-->
  1045. <!-- <a-card v-if="lotData.isShow.commitmentShow">-->
  1046. <a-card v-if="steps.currentId === 'commitment'" style="margin-bottom:10px; float: left;width: 83%;left: 2%; ">
  1047. <div slot="title">
  1048. <span style="float: left;position: relative;top: 4px">其他材料</span>
  1049. <!-- 操作按钮-->
  1050. </div>
  1051. <div style="float: left; width: 40%">
  1052. <div class="markdown" style="position: relative;top:30px">
  1053. <ul>
  1054. <li>1)如有其他材料请进行上传</li>
  1055. <!-- <li style="color: red" v-if="lotNote.commitmentNote != null && lotNote.commitmentNote.length > 0">-->
  1056. <!-- 稽核结果备注:{{ lotNote.commitmentNote }}-->
  1057. <!-- </li>-->
  1058. </ul>
  1059. </div>
  1060. </div>
  1061. <div style="width: 60%;float:left;">
  1062. <div>
  1063. <a-form-model-item style="left: 10%;margin-top: 20px" label="上传资料备注:" v-bind="labelCol1Note">
  1064. <a-textarea style="height: 77px"
  1065. v-model="infoModel.commitmentRemark"
  1066. @change="textareaChange('commitment','commitmentRemark')"
  1067. placeholder="如没有上传资料备注,需要说明原因"
  1068. />
  1069. <!-- :auto-size="{ minRows: 3, maxRows: 5 }"-->
  1070. </a-form-model-item>
  1071. </div>
  1072. <div style="height: 70%">
  1073. <div class="thumb-example">
  1074. <a-upload
  1075. name="file"
  1076. :multiple="true"
  1077. :action="importMinioUploadAction"
  1078. :customRequest="e => selfUploadContract(e, 'commitment')"
  1079. :headers="tokenHeader"
  1080. :showUploadList="false"
  1081. :beforeUpload="importBeforeUpload"
  1082. @change="importHandleChange"
  1083. style='margin-left: 90px;line-height: 50px'
  1084. >
  1085. <a-button> <a-icon type="upload" /> 上传文件 </a-button>
  1086. </a-upload>
  1087. <!-- swiper1 -->
  1088. <swiper
  1089. class="swiper gallery-top"
  1090. :options="swiperOptionTop"
  1091. ref="swiperTop"
  1092. >
  1093. <swiper-slide class="slide-1" v-for="(item, index) in infoModel.commitment" :key="item.id">
  1094. <iframe
  1095. v-if="item.urlBase"
  1096. frameborder="1"
  1097. :src="item.urlBase"
  1098. ref="ifr"
  1099. width="500px"
  1100. height="445px"
  1101. scrolling="auto">
  1102. </iframe>
  1103. <img style="width: 70%;height: 70%;border: 1px solid;"
  1104. v-if="!item.urlBase" :src="noDataPng" border="1">
  1105. <a-button v-if="item.urlBase "
  1106. style="display: block;margin-top: 10px;border-color: red;color: red"
  1107. danger @click="removeFile(item,'commitment')">移除
  1108. </a-button>
  1109. </swiper-slide>
  1110. <div
  1111. class="swiper-button-next swiper-button-white"
  1112. slot="button-next"
  1113. ></div>
  1114. <div
  1115. class="swiper-button-prev swiper-button-white"
  1116. slot="button-prev"
  1117. ></div>
  1118. </swiper>
  1119. <!-- swiper2 Thumbs -->
  1120. <swiper
  1121. class="swiper gallery-thumbs"
  1122. :options="swiperOptionThumbs"
  1123. ref="swiperThumbs"
  1124. >
  1125. <swiper-slide
  1126. class="slide"
  1127. style="width:100px;height:100px;"
  1128. v-for="(item, index) in infoModel.commitment"
  1129. :key="item.id"
  1130. >
  1131. <div v-if="item.urlBase" style="width: 100%;height: 96px;background: rgb(68,142,247);color: white">
  1132. <span style="white-space:normal; word-break:break-all;overflow:hidden;">{{ item.fileName }}</span>
  1133. </div>
  1134. <img style="width: 100%;height: 96px"
  1135. v-if="!item.urlBase" :src="noDataPng" border="1">
  1136. </swiper-slide>
  1137. <!-- 点我上传文件按钮-->
  1138. <div class="clearfix">
  1139. <a-upload
  1140. listType="picture-card"
  1141. name="file"
  1142. :multiple="false"
  1143. :action="importMinioUploadAction"
  1144. :customRequest="e=>selfUploadContract(e,'commitment')"
  1145. :headers="tokenHeader"
  1146. :showUploadList="false"
  1147. :beforeUpload="importBeforeUpload"
  1148. @change="importHandleChange"
  1149. >
  1150. <div >
  1151. <a-icon type="plus"/>
  1152. <div class="ant-upload-text">点我上传其它材料</div>
  1153. </div>
  1154. </a-upload>
  1155. </div>
  1156. <div class="swiper-button-next swiper-button-white" slot="button-next">
  1157. <div>
  1158. <!-- <img src="../../../../assets/images/nextImg.png" alt=""/>-->
  1159. </div>
  1160. </div>
  1161. <div class="swiper-button-prev swiper-button-white" slot="button-prev">
  1162. <div>
  1163. <!-- <img src="../../../../assets/images/prevImg.png" alt=""/>-->
  1164. </div>
  1165. </div>
  1166. </swiper>
  1167. </div>
  1168. </div>
  1169. </div>
  1170. </a-card>
  1171. </div>
  1172. </template>
  1173. <script>
  1174. import {JeecgListMixin} from '@/mixins/JeecgListMixin'
  1175. import { getAction, httpAction, postAction } from '@api/manage'
  1176. import {snippetsOutlined, StarFilled, StarTwoTone} from '@ant-design/icons-vue';
  1177. /*无数据图片*/
  1178. import noDataPng from '@/assets/nodata.png'
  1179. let Base64 = require('js-base64').Base64
  1180. export default {
  1181. name: "TaskUploadData",
  1182. mixins: [JeecgListMixin],
  1183. inject: ['closeCurrent'],
  1184. components: {noDataPng},
  1185. data() {
  1186. return {
  1187. rules:{
  1188. scene: [
  1189. {required: true, message: '必须输入'},
  1190. ],
  1191. smsNumber: [
  1192. {required: true, message: '必须输入'},
  1193. ],
  1194. customerName: [
  1195. {required: true, message: '必须输入'},
  1196. ],
  1197. isComplete:[
  1198. {required: true, message: '必须输入'},
  1199. ],
  1200. manage:[
  1201. {required: true, message: '必须输入'},
  1202. ],
  1203. isAll:[
  1204. {required: true, message: '必须输入'},
  1205. ],
  1206. contractDate:[
  1207. {required: true, message: '必须输入'},
  1208. ],
  1209. businessLicenseDate:[
  1210. {required: true, message: '必须输入'},
  1211. ],
  1212. installationAddress:[
  1213. {required: true, message: '必须输入'},
  1214. ],
  1215. floorName:[
  1216. {required: true, message: '必须输入'},
  1217. ],
  1218. firstActivationDate:[
  1219. {required: true, message: '必须输入'},
  1220. ],
  1221. customerNo:[
  1222. {required: true, message: '必须输入'},
  1223. ],
  1224. userNo:[
  1225. {required: true, message: '必须输入'},
  1226. ],
  1227. networkAccessTime:[
  1228. {required: true, message: '必须输入'},
  1229. ],
  1230. userState:[
  1231. {required: true, message: '必须输入'},
  1232. ],
  1233. contractDateIs:[
  1234. {required: true, message: '必须输入'},
  1235. ],
  1236. staffNo:[
  1237. {required: true, message: '必须输入'},
  1238. ],
  1239. codeNumber:[
  1240. {required: true, message: '必须输入'},
  1241. ],
  1242. accountCode:[
  1243. {required: true, message: '必须输入'},
  1244. ],
  1245. floorCode:[
  1246. {required: true, message: '必须输入'},
  1247. ],
  1248. userCode:[
  1249. {required: true, message: '必须输入'},
  1250. ],
  1251. managePhone: [
  1252. {required: true, message: '请输入客户经理手机号!', trigger: 'blur'}, {validator: this.isPhone}
  1253. ],
  1254. },
  1255. labelCol6: {
  1256. labelCol: {
  1257. xs: {span: 24},
  1258. sm: {span:10},
  1259. },
  1260. wrapperCol: {
  1261. xs: {span: 24},
  1262. sm: {span: 12},
  1263. }
  1264. },
  1265. labelCol4: {
  1266. labelCol: {
  1267. xs: {span: 24},
  1268. sm: {span: 10},
  1269. },
  1270. wrapperCol: {
  1271. xs: {span: 24},
  1272. sm: {span: 12},
  1273. }
  1274. },
  1275. labelCol5: {
  1276. labelCol: {
  1277. xs: {span: 24},
  1278. sm: {span: 9},
  1279. },
  1280. wrapperCol: {
  1281. xs: {span: 24},
  1282. sm: {span: 4},
  1283. }
  1284. },
  1285. labelCol7: {
  1286. labelCol: {
  1287. xs: {span: 24},
  1288. sm: {span: 12},
  1289. },
  1290. wrapperCol: {
  1291. xs: {span: 24},
  1292. sm: {span: 12},
  1293. }
  1294. },
  1295. labelCol1Note: {
  1296. labelCol: {
  1297. xs: {span: 24},
  1298. sm: {span: 4},
  1299. },
  1300. wrapperCol: {
  1301. xs: {span: 24},
  1302. sm: {span: 14},
  1303. }
  1304. },
  1305. //是否整改
  1306. rectificationIs: false,
  1307. noDataPng: noDataPng,
  1308. //加载状态
  1309. taskId:"",
  1310. loading: false,
  1311. infoModel: {
  1312. staffName:"",
  1313. businessLicenseDateIs:"",
  1314. contractDateIs:'',
  1315. blockType: "",
  1316. control: "",
  1317. //合同文件
  1318. isAll:"",
  1319. contractDate:"",
  1320. businessLicenseDate:"",
  1321. dataId:"",
  1322. logId:"",
  1323. infoId:"",
  1324. isComplete:"",
  1325. scene:"",
  1326. manage:"",
  1327. managePhone:"",
  1328. smsNumber:"",
  1329. customerNo:"",
  1330. userNo:"",
  1331. networkAccessTime:"",
  1332. customerName:"",
  1333. userState:"",
  1334. staffNo:"",
  1335. testCard:[{}],
  1336. testCardRemark:'',
  1337. contract: [{}],
  1338. contractRemark:'',
  1339. handlingContract: [{}],
  1340. handlingContractRemark:'',
  1341. handlingCard: [{}],
  1342. handlingCardRemark:'',
  1343. customerCardScanning: [{}],
  1344. customerCardScanningRemark:'',
  1345. riskTable: [{}],
  1346. riskTableRemark:'',
  1347. priceTable: [{}],
  1348. priceTableRemark:'',
  1349. commitment: [{}],
  1350. commitmentRemark:'',
  1351. },
  1352. //弹窗
  1353. previewImage: "",
  1354. previewVisible: false,
  1355. url: {
  1356. "getTask":"/smsTurck/customerData/query/getTask",
  1357. "getInfoDataById": "/smsCheck/customerInfo/queryById",
  1358. "getInfoDataByInfoId": "/smsLot/customerData/queryDataLogByInfoId",
  1359. updateFile: "/smsCheck/customerData/updateFile",
  1360. minioUpload: "/smsCheck/customerData/uploadMinio",
  1361. //list: "/smsCheck/customerData/list",
  1362. addOrEdit: "/smsLot/customerData/edit/info",
  1363. lotInfo: "/smsLot/customerData/query/infoId",
  1364. checkDataId: "/smsLot/customerData/query/check/dataId",
  1365. },
  1366. //步骤条数据
  1367. //current: 0,
  1368. steps: {
  1369. // 当前所在第几部
  1370. current: 0,
  1371. currentId: "",
  1372. stepsNow: {},
  1373. stepsControlY: [
  1374. {
  1375. title: '合同',
  1376. content: 'First-content',
  1377. status: "wait",
  1378. id:'contract'
  1379. },
  1380. {
  1381. title: '责任人和经办人授权书',
  1382. content: 'First-content',
  1383. status: "wait",
  1384. id:"handlingContract"
  1385. },
  1386. {
  1387. title: '责任人和经办人身份证',
  1388. content: 'First-content',
  1389. status: "wait",
  1390. id:"handlingCard"
  1391. },
  1392. {
  1393. title: '客户证件扫描',
  1394. content: 'First-content',
  1395. status: "wait",
  1396. id:"customerCardScanning"
  1397. },
  1398. {
  1399. title: '风险评估表',
  1400. content: 'First-content',
  1401. status: "wait",
  1402. id:'riskTable'
  1403. },
  1404. {
  1405. title: '省/集团价格审批表',
  1406. content: 'First-content',
  1407. status: "wait",
  1408. id:'priceTable'
  1409. },
  1410. {
  1411. title: '承诺涵(其他材料-非必填)',
  1412. content: 'First-content',
  1413. id: "commitment",
  1414. status: "wait"
  1415. }
  1416. ],
  1417. stepsControlN: [
  1418. {
  1419. title: '合同',
  1420. content: 'First-content',
  1421. status: "wait",
  1422. id:'contract'
  1423. },
  1424. {
  1425. title: '责任人和经办人授权书',
  1426. content: 'First-content',
  1427. status: "wait",
  1428. id:"handlingContract"
  1429. },
  1430. {
  1431. title: '责任人和经办人身份证',
  1432. content: 'First-content',
  1433. status: "wait",
  1434. id:"handlingCard"
  1435. },
  1436. {
  1437. title: '客户证件扫描',
  1438. content: 'First-content',
  1439. status: "wait",
  1440. id:"customerCardScanning"
  1441. },
  1442. {
  1443. title: '风险评估表',
  1444. content: 'First-content',
  1445. status: "wait",
  1446. id:'riskTable'
  1447. },
  1448. {
  1449. title: '承诺涵(其他材料-非必填)',
  1450. content: 'First-content',
  1451. id: "commitment",
  1452. status: "wait"
  1453. }
  1454. ],
  1455. stepsTest: [
  1456. {
  1457. title: '测试卡申请单',
  1458. content: 'First-content',
  1459. status: "wait",
  1460. id:'testCard'
  1461. },
  1462. {
  1463. title: '责任人和经办人授权书',
  1464. content: 'First-content',
  1465. status: "wait",
  1466. id:"handlingContract"
  1467. },
  1468. {
  1469. title: '责任人和经办人身份证',
  1470. content: 'First-content',
  1471. status: "wait",
  1472. id:"handlingCard"
  1473. },
  1474. {
  1475. title: '客户证件扫描',
  1476. content: 'First-content',
  1477. status: "wait",
  1478. id:"customerCardScanning"
  1479. },
  1480. {
  1481. title: '承诺涵(其他材料-非必填)',
  1482. content: 'First-content',
  1483. id: "commitment",
  1484. status: "wait"
  1485. }
  1486. ],
  1487. },
  1488. //steps: "",
  1489. //测试卡步骤条
  1490. next: "",
  1491. prev: "",
  1492. //客户信息ID
  1493. infoId: "",
  1494. lotData: {
  1495. //卡片是否展示
  1496. isShow: {
  1497. commitmentShow: false,
  1498. },
  1499. //正式卡/测试卡
  1500. blockType: "model",
  1501. //价格管控
  1502. control: "controlN",
  1503. //合同文件
  1504. contractFiles: [],
  1505. //责任人和经办人授权书
  1506. empowerFiles: [],
  1507. //责任人和经办人身份证
  1508. idCardFiles: [],
  1509. //客户证件扫描
  1510. scanningFiles: [],
  1511. //风险评估表
  1512. riskFiles: [],
  1513. //价格审批表
  1514. priceFiles: [],
  1515. //测试卡申请单
  1516. testCardApplication: [],
  1517. //其他材料
  1518. commitmentFiles: [],
  1519. },
  1520. //整改稽核备注
  1521. lotNote: {
  1522. //合同
  1523. contractNote: null,
  1524. //测试卡申请单
  1525. testCardApplicationNote: null,
  1526. //责任人经办人授权书
  1527. empowerNote: null,
  1528. //责任人经办人身份证
  1529. idCardNote: null,
  1530. //客户证件
  1531. customerIdNote: null,
  1532. //风险评估表稽核结果
  1533. riskNote: null,
  1534. //省/集团价格审批表
  1535. priceApprovalNote: null,
  1536. //其他材料
  1537. commitmentNote: null,
  1538. },
  1539. //整改稽核结果
  1540. lotState: {
  1541. //合同
  1542. contractState: null,
  1543. //测试卡申请单
  1544. testCardApplicationState: null,
  1545. //责任人经办人授权书
  1546. empowerState: null,
  1547. //责任人经办人身份证
  1548. idCardState: null,
  1549. //客户证件
  1550. customerIdState: null,
  1551. //风险评估表稽核结果
  1552. riskState: null,
  1553. //省/集团价格审批表
  1554. priceApprovalState: null,
  1555. //其他材料
  1556. commitmentState: null,
  1557. },
  1558. //缩略与大图数据源
  1559. swiperId: 0 + 1,
  1560. swiperImg: [{}],
  1561. //轮播配置
  1562. swiperOptionTop: {
  1563. zoom: true,
  1564. loop: false,
  1565. loopedSlides: 5, // looped slides should be the same
  1566. spaceBetween: 10,
  1567. observer: true, //修改swiper自己或子元素时,自动初始化swiper
  1568. observeParents: true, //修改swiper的父元素时,自动初始化swiper
  1569. // autoplay: { //自动轮播
  1570. // delay: 2000,
  1571. // disableOnInteraction: false
  1572. // },
  1573. navigation: {
  1574. nextEl: '.swiper-button-next',
  1575. prevEl: '.swiper-button-prev'
  1576. }
  1577. },
  1578. swiperOptionThumbs: {
  1579. loop: false,
  1580. loopedSlides: 5, // looped slides should be the same
  1581. spaceBetween: 10,
  1582. centeredSlides: true,
  1583. slidesPerView: 'auto',
  1584. touchRatio: 0.2,
  1585. slideToClickedSlide: true,
  1586. navigation: {
  1587. nextEl: '.swiper-button-next',
  1588. prevEl: '.swiper-button-prev'
  1589. }
  1590. }
  1591. };
  1592. },
  1593. created() {
  1594. let control = this.lotData.control;
  1595. this.infoModel.infoId = this.$route.query.id;
  1596. //是否突破价格管控
  1597. if (control == "controlN") {
  1598. this.steps.stepsNow = this.steps.stepsControlN;
  1599. } else {
  1600. this.steps.stepsNow= this.steps.stepsControlY;
  1601. }
  1602. this.steps.currentId = this.steps.stepsNow[0].id;
  1603. this.infoId = this.$route.query.id;
  1604. //是否需要整改
  1605. this.lotInfoById(this.infoId)
  1606. this.getInfoDataById(this.infoId)
  1607. },
  1608. computed: {
  1609. importMinioUploadAction() {
  1610. return window._CONFIG['domianURL'] + this.url.minioUpload;
  1611. },
  1612. },
  1613. props: {
  1614. poster: {
  1615. type: String,
  1616. required: false,
  1617. default: ""
  1618. },
  1619. controls: {
  1620. type: Boolean,
  1621. required: false,
  1622. default: true
  1623. },
  1624. control: {
  1625. type: Boolean,
  1626. required: false,
  1627. default: false
  1628. },
  1629. },
  1630. watch: {
  1631. // 监听操作
  1632. videoData(val, oldVal) {
  1633. const {currentTime, duration} = val;
  1634. if (currentTime && duration && currentTime < duration) {
  1635. this.hintOperate();
  1636. }
  1637. }
  1638. },
  1639. mounted() {
  1640. // 实现swiper双向控制
  1641. this.$nextTick(() => {
  1642. const swiperTop = this.$refs.swiperTop.swiper
  1643. const swiperThumbs = this.$refs.swiperThumbs.swiper
  1644. swiperTop.controller.control = swiperThumbs
  1645. swiperThumbs.controller.control = swiperTop
  1646. })
  1647. this.infoId = this.$route.query.id;
  1648. this.getTask( this.infoId);
  1649. let control = this.lotData.control;
  1650. //是否突破价格管控
  1651. if (control == "controlN") {
  1652. this.steps.stepsNow = this.steps.stepsControlN;
  1653. } else {
  1654. this.steps.stepsNow= this.steps.stepsControlY;
  1655. }
  1656. },
  1657. methods: {
  1658. backDate(name){
  1659. if (name==='contractDate'){
  1660. this.infoModel.contractDateIs="1"
  1661. this.infoModel.contractDate=""
  1662. }
  1663. if (name==='businessLicenseDate'){
  1664. this.infoModel.businessLicenseDateIs="1"
  1665. this.infoModel.businessLicenseDate=""
  1666. }
  1667. },
  1668. isPhone(rule, value, callback) {
  1669. if (!value || new RegExp(/^1([38][0-9]|4[579]|5[0-3,5-9]|6[6]|7[0135678]|9[89])\d{8}$/).test(value)) {
  1670. callback();
  1671. } else {
  1672. callback("您的手机号码格式不正确!");
  1673. }
  1674. },
  1675. /*提交*/
  1676. submitAuditLot() {
  1677. this.uploading = true;
  1678. var info = "yes";
  1679. this.$refs.form.validate(valid => {
  1680. // 验证通过
  1681. if (!valid) {
  1682. info = "infoNo";
  1683. this.uploading = false;
  1684. }}
  1685. )
  1686. var text= "";
  1687. for (var i in this.steps.stepsNow) {
  1688. if (this.steps.stepsNow[i].status !== "finish") {
  1689. // text+= '111<br/> ';
  1690. var str=this.steps.stepsNow[i].title;
  1691. text+= str+"资料或备注都未上传!!!"+'<br/><br/>';
  1692. //this.$message.warn( this.steps.stepsNow[i].title +"资料或备注都未上传!!!");
  1693. info="no";
  1694. }
  1695. }
  1696. var stringToHTML = function (str) {
  1697. var dom = document.createElement('div');
  1698. dom.innerHTML = str;
  1699. return dom;
  1700. };
  1701. console.log(stringToHTML('<h1>Hello world!</h1><p>How are you today?</p>'));
  1702. if (info==="no"){
  1703. this.$warning({
  1704. title: '提示',
  1705. dangerouslyUseHTMLString: true,
  1706. content:(h) => {
  1707. return h('div', {
  1708. domProps: {
  1709. innerHTML: text
  1710. },
  1711. }, []);
  1712. }
  1713. })
  1714. return
  1715. }
  1716. if (info==="infoNo"){
  1717. this.$warning({
  1718. title: '提示',
  1719. dangerouslyUseHTMLString: true,
  1720. content:(h) => {
  1721. return h('div', {
  1722. domProps: {
  1723. innerHTML: '基本信息未填写完整!!!'
  1724. },
  1725. }, []);
  1726. }
  1727. })
  1728. return
  1729. }
  1730. var that = this;
  1731. var data=that.infoModel ;
  1732. //data =this.dataListToStr(data);
  1733. postAction("/smsLot/customerData/add", data).then((res) => {
  1734. if (res.success) {
  1735. this.uploading = false;
  1736. this.$message.success("提交成功", 3);
  1737. this.addIng == true
  1738. this.$router.push({path: '/lot/check/task/check', query: {id: that.taskId}});
  1739. this.closeCurrent();
  1740. } else {
  1741. this.uploading = false;
  1742. if ( res.message !==null){
  1743. this.$message.error( res.message);
  1744. }else {
  1745. this.$message.error("提交失败");
  1746. }
  1747. }
  1748. }).finally(() => {
  1749. this.uploading = false;
  1750. })
  1751. },
  1752. getTask(infoId){
  1753. var that = this;
  1754. var data = {
  1755. "infoId": infoId,
  1756. }
  1757. postAction(this.url.getTask, data).then((res) => {
  1758. if (res.success) {
  1759. that.taskId=res.result.taskId;
  1760. }
  1761. })
  1762. },
  1763. addIsStaging() {
  1764. this.uploading = true;
  1765. var that = this;
  1766. var data=that.infoModel ;
  1767. //data =this.dataListToStr(data);
  1768. postAction("/smsLot/customerData/addIsStaging", data).then((res) => {
  1769. if (res.success) {
  1770. this.uploading = false;
  1771. this.$message.success("提交成功", 3);
  1772. this.addIng == true
  1773. this.$router.push({path: '/lot/check/task/check', query: {id: that.taskId}});
  1774. this.closeCurrent();
  1775. } else {
  1776. this.uploading = false;
  1777. if ( res.message !==null){
  1778. this.$message.error( res.message);
  1779. }else {
  1780. this.$message.error("提交失败");
  1781. }
  1782. }
  1783. }).finally(() => {
  1784. this.uploading = false;
  1785. })
  1786. },
  1787. /**备注坚听*/
  1788. textareaChange(name, nameRemark) {
  1789. if (this.infoModel[nameRemark].length > 0) {
  1790. this.steps.stepsNow[this.steps.current].status = "finish"
  1791. } else if (this.infoModel[name].length > 0 && this.infoModel[name][0].urlBase) {
  1792. this.steps.stepsNow[this.steps.current].status = "finish"
  1793. } else {
  1794. this.steps.stepsNow[this.steps.current].status = "wait"
  1795. }
  1796. },
  1797. stepsClick(current) {
  1798. this.steps.current = current;
  1799. this.steps.currentId = this.steps.stepsNow[current].id
  1800. for (var i in this.steps.stepsNow) {
  1801. if (this.steps.stepsNow[i].status != "finish") {
  1802. this.steps.stepsNow[i].status = "wait"
  1803. }
  1804. if (this.steps.stepsNow[i].status === "finish") {
  1805. this.steps.stepsNow[i].status === "finish"
  1806. }
  1807. }
  1808. if (this.steps.stepsNow[current].status!== "finish") {
  1809. this.steps.stepsNow[current].status = "process"
  1810. }
  1811. },
  1812. getInfoDataById(id) {
  1813. var that = this;
  1814. if (id) {
  1815. var data = {
  1816. "id": id,
  1817. }
  1818. getAction(this.url.getInfoDataById, data).then((res) => {
  1819. if (res.success) {
  1820. let result = res.result;
  1821. //用户状态
  1822. that.infoModel.userState =result.userState;
  1823. //用户发展员工
  1824. that.infoModel.staffNo =result.staffNo;
  1825. that.infoModel.customerNo =result.customerNo;
  1826. that.infoModel.userNo =result.userNo;
  1827. that.infoModel.networkAccessTime =result.networkAccessTime;
  1828. that.infoModel.firstActivationDate =result.firstActivationDate;
  1829. that.infoModel.userCode =result.userCode;
  1830. that.infoModel.accountCode =result.accountCode;
  1831. that.infoModel.staffName =result.staffName;
  1832. }
  1833. })
  1834. }
  1835. },
  1836. /**获取物联网文件数据*/
  1837. lotInfoById(id) {
  1838. let that = this;
  1839. let url = this.url.getInfoDataByInfoId;
  1840. let params = {
  1841. infoId: id
  1842. }
  1843. getAction(url, params).then(res => {
  1844. if (res.success) {
  1845. let data = res.result;
  1846. if (data == null || !data) {
  1847. return;
  1848. }
  1849. let result = res.result;
  1850. that.infoModel=result;
  1851. that.lotDataValue(data);
  1852. that.infoModel.testCard= JSON.parse(result.testCard);
  1853. that.infoModel.contract= JSON.parse(result.contract);
  1854. that.steps.current = 0;
  1855. that.steps.currentId = that.steps.stepsNow[0].id
  1856. that.infoModel.handlingContract= JSON.parse(result.handlingContract);
  1857. that.infoModel.handlingCard= JSON.parse(result.handlingCard);
  1858. that.infoModel.customerCardScanning= JSON.parse(result.customerCardScanning);
  1859. that.infoModel.riskTable= JSON.parse(result.riskTable);
  1860. that.infoModel.priceTable= JSON.parse(result.priceTable);
  1861. that.infoModel.commitment= JSON.parse(result.commitment);
  1862. for (var i in that.steps.stepsNow) {
  1863. for (var j in result[that.steps.stepsNow[i].id]){
  1864. if (result[that.steps.stepsNow[i].id][0].urlBase!==undefined){
  1865. that.steps.stepsNow[i].status = "finish"
  1866. }
  1867. if (result[that.steps.stepsNow[i].id+'Remark'][0]!==undefined){
  1868. that.steps.stepsNow[i].status = "finish"
  1869. }
  1870. }
  1871. }
  1872. }
  1873. }).finally(() => {
  1874. })
  1875. },
  1876. lotDataValue(data) {
  1877. let that = this;
  1878. if (data.control===''||data.control===null){
  1879. that.infoModel.control='controlN'
  1880. }
  1881. if (data.blockType===''||data.blockType===null){
  1882. that.infoModel.blockType='model'
  1883. }
  1884. //为整改
  1885. that.rectificationIs = true;
  1886. //是否突破价格管控 0:未突破;1:突破
  1887. that.lotData.control = data.control ;
  1888. //卡类型 0测试卡;1正式卡,
  1889. that.lotData.blockType = data.blockType;
  1890. //判断步骤类型
  1891. let control = that.infoModel.control;
  1892. let blockType = that.infoModel.blockType;
  1893. if (control === 'controlN' && blockType === 'model') {
  1894. this.steps.stepsNow = this.steps.stepsControlN;
  1895. } else if (control === 'controlY' && blockType === 'model') {
  1896. this.steps.stepsNow = this.steps.stepsControlY;
  1897. } else if (blockType === 'test') {
  1898. this.steps.stepsNow= this.steps.stepsTest;
  1899. } else {
  1900. this.steps.stepsNow = this.steps.stepsControlN;
  1901. }
  1902. if (that.lotData.blockType == "model") {
  1903. that.swiperImg = that.lotData.contractFiles
  1904. } else if (that.lotData.blockType == 'test') {
  1905. that.swiperImg = that.lotData.testCardApplication
  1906. }
  1907. //稽核结果
  1908. //that.lotCheckById(that.infoId);
  1909. },
  1910. /**包装轮播数据*/
  1911. packageArr(data) {
  1912. let id = 0;
  1913. let newArr = []
  1914. if (data == null) {
  1915. newArr.push({})
  1916. return newArr;
  1917. }
  1918. let splice = data.split(",");
  1919. for (var i in splice) {
  1920. id = id + 1;
  1921. let filePath = splice[i];
  1922. if (filePath == "") {
  1923. break;
  1924. }
  1925. let fileName = filePath.split("/");
  1926. fileName = fileName[fileName.length - 1];
  1927. let swipData = {
  1928. id: id,
  1929. urlBase: window._CONFIG['onlinePreviewDomainURL'] + '?url='
  1930. + encodeURIComponent(
  1931. Base64.encode(
  1932. (filePath)
  1933. )),
  1934. url: filePath,
  1935. fileName: fileName
  1936. }
  1937. newArr.push(swipData);
  1938. }
  1939. return newArr;
  1940. },
  1941. /**卡类型及价格管控监听事件*/
  1942. controlChange(a, event) {
  1943. let blockType = this.infoModel.blockType;
  1944. let control = this.infoModel.control;
  1945. //是否突破价格管控
  1946. if (control == "controlN" && blockType == "model") {
  1947. this.steps.stepsNow = this.steps.stepsControlN;
  1948. } else if (control == "controlY" && blockType == "model") {
  1949. this.steps.stepsNow = this.steps.stepsControlY;
  1950. } else if (blockType == "test") {
  1951. this.steps.stepsNow = this.steps.stepsTest;
  1952. }
  1953. this.current = 0;
  1954. this.steps.current = 0;
  1955. this.steps.currentId = this.steps.stepsNow[0].id
  1956. for (var i in this.steps.stepsNow) {
  1957. for (var j in this.infoModel[this.steps.stepsNow[i].id]){
  1958. if (this.infoModel[this.steps.stepsNow[i].id][0].urlBase!==undefined){
  1959. this.steps.stepsNow[i].status = "finish"
  1960. }
  1961. if (this.infoModel[this.steps.stepsNow[i].id+'Remark'][0]!==undefined){
  1962. this.steps.stepsNow[i].status = "finish"
  1963. }
  1964. }
  1965. }
  1966. // this.currentFileType(this.current);
  1967. },
  1968. /**移除文件*/
  1969. /**移除文件*/
  1970. removeFile(fileData, fileAttribute) {
  1971. let that = this.infoModel;
  1972. //处理轮播数据
  1973. let swiperImg = that[fileAttribute];
  1974. if (swiperImg) {
  1975. let number = swiperImg.indexOf(fileData);
  1976. swiperImg.splice(number, 1)
  1977. if (swiperImg.length == 0) {
  1978. swiperImg.push({})
  1979. let textId = fileAttribute + "Remark";
  1980. if (this.infoModel[textId].trim() > 0) {
  1981. this.steps.stepsNow[this.steps.current].status = "finish"
  1982. } else {
  1983. this.steps.stepsNow[this.steps.current].status = "wait"
  1984. }
  1985. } else {
  1986. this.steps.stepsNow[this.steps.current].status = "finish"
  1987. }
  1988. that[fileAttribute] = swiperImg
  1989. }
  1990. },
  1991. /**分割数组*/
  1992. spliceArr(data, fileData) {
  1993. let indexOf = data.indexOf(fileData);
  1994. return data.splice(indexOf, 1)
  1995. },
  1996. /**自定义的上传文件方法*/
  1997. /**自定义的上传文件方法*/
  1998. selfUploadContract(data, fileAttribute) {
  1999. var that = this;
  2000. if (data.file) {
  2001. let formData = new FormData();
  2002. formData.append('file', data.file)
  2003. postAction(this.url.minioUpload, formData).then((res) => {
  2004. if (res.success) {
  2005. that.swiperId = that.swiperId + 1;
  2006. console.log(that.swiperId)
  2007. //文件链接
  2008. let filePath = res.message;
  2009. let swipData = {
  2010. id: that.swiperId,
  2011. urlBase: window._CONFIG['onlinePreviewDomainURL'] + '?url='
  2012. + encodeURIComponent(
  2013. Base64.encode(
  2014. (filePath)
  2015. )),
  2016. url: filePath,
  2017. fileName: data.file.name
  2018. }
  2019. if (that.infoModel[fileAttribute][0].urlBase) {
  2020. that.infoModel[fileAttribute].push(swipData)
  2021. } else {
  2022. that.infoModel[fileAttribute] = []
  2023. //数据发生变化
  2024. that.infoModel[fileAttribute][0] = swipData;
  2025. }
  2026. // 改变步骤条状态
  2027. if (that.infoModel[fileAttribute].length > 0) {
  2028. that.steps.stepsNow[that.steps.current].status = "finish"
  2029. } else {
  2030. that.steps.stepsNow[that.steps.current].status = "wait"
  2031. }
  2032. }
  2033. })
  2034. }
  2035. },
  2036. /**文件上传成功后回调*/
  2037. importHandleChange(info) {
  2038. },
  2039. /**文件格式限制*/
  2040. importBeforeUpload(file) {
  2041. var fileType = file.type;
  2042. if (fileType === 'image') {
  2043. if (fileType.indexOf('image') < 0) {
  2044. this.$message.warning('请上传图片');
  2045. return false;
  2046. }
  2047. } else if (fileType === 'file') {
  2048. if (fileType.indexOf('image') >= 0) {
  2049. this.$message.warning('请上传文件');
  2050. return false;
  2051. }
  2052. }
  2053. return true
  2054. },
  2055. /**返回上一菜单*/
  2056. goBack() {
  2057. this.$router.go(-1);
  2058. this.closeCurrent();
  2059. },
  2060. /**下一步点击事件*/
  2061. nextSteps() {
  2062. if (this.swiperImg.length == 0) {
  2063. this.$message.warn("请先上传文件!")
  2064. return;
  2065. }
  2066. if (this.swiperImg.length == 1) {
  2067. if (!this.swiperImg[0].urlBase) {
  2068. this.$message.warn("请先上传文件!")
  2069. return;
  2070. }
  2071. }
  2072. if (this.current < this.steps.length) {
  2073. this.current = this.current + 1;
  2074. //其他材料
  2075. if (this.steps[this.current].id == "commitment") {
  2076. this.lotData.isShow.commitmentShow = true;
  2077. } else {
  2078. this.lotData.isShow.commitmentShow = false;
  2079. }
  2080. this.currentFileType(this.current);
  2081. }
  2082. },
  2083. /**上一步骤*/
  2084. prevSteps() {
  2085. if (this.current != 0) {
  2086. this.current = this.current - 1;
  2087. //其他材料
  2088. if (this.steps[this.current].id == "commitment") {
  2089. this.lotData.isShow.commitmentShow = true;
  2090. } else {
  2091. this.lotData.isShow.commitmentShow = false;
  2092. }
  2093. // this.currentFileType(this.current);
  2094. }
  2095. },
  2096. /**步骤文件类型对应*/
  2097. currentFileType(current) {
  2098. let that = this;
  2099. this.swiperImg = {}
  2100. //卡类型
  2101. let blockType = that.lotData.blockType;
  2102. //其他材料-承诺涵
  2103. if (that.lotData.isShow.commitmentShow) {
  2104. that.swiperImg = that.lotData.commitmentFiles;
  2105. } else {
  2106. switch (current) {
  2107. case 0:
  2108. if (blockType == "test") {
  2109. that.swiperImg = that.lotData.testCardApplication
  2110. } else {
  2111. that.swiperImg = that.lotData.contractFiles
  2112. }
  2113. break;
  2114. case 1:
  2115. that.swiperImg = that.lotData.empowerFiles
  2116. break;
  2117. case 2:
  2118. that.swiperImg = that.lotData.idCardFiles
  2119. break;
  2120. case 3:
  2121. that.swiperImg = that.lotData.scanningFiles
  2122. break;
  2123. case 4:
  2124. that.swiperImg = that.lotData.riskFiles
  2125. break;
  2126. case 5:
  2127. that.swiperImg = that.lotData.priceFiles
  2128. break;
  2129. }
  2130. }
  2131. //拒绝下标为空 影响轮播样式
  2132. if (that.swiperImg.length == 0) {
  2133. that.swiperImg.push({})
  2134. }
  2135. },
  2136. urlBaseJoin(dataArray, name) {
  2137. let newDataArr = [];
  2138. for (var i in dataArray) {
  2139. let dataArrayElementElement = dataArray[i][name];
  2140. newDataArr.push(dataArrayElementElement);
  2141. }
  2142. return newDataArr.toString();
  2143. }
  2144. }
  2145. }
  2146. ;
  2147. </script>
  2148. <style lang="less" scoped>
  2149. h3 {
  2150. margin: 20px 0 0 10px;
  2151. }
  2152. .thumb-example {
  2153. //width: 864px;
  2154. margin-top: 20px;
  2155. // background: #000;
  2156. }
  2157. .swiper-slide {
  2158. background-size: cover;
  2159. background-position: center;
  2160. }
  2161. .gallery-top {
  2162. // height: 80% !important;
  2163. /*height: 600px;*/
  2164. width: 100%;
  2165. left: 15%;
  2166. margin-bottom: 50px
  2167. }
  2168. .gallery-thumbs {
  2169. height: 20% !important;
  2170. box-sizing: border-box;
  2171. padding: 10px 0px;
  2172. /* width: 864px;*/
  2173. margin-left: 2px;
  2174. .swiper-button-next {
  2175. right: 0px;
  2176. }
  2177. .swiper-button-prev {
  2178. left: 0px;
  2179. }
  2180. .swiper-button-next,
  2181. .swiper-button-prev {
  2182. background: #fff;
  2183. width: 45px;
  2184. text-align: center;
  2185. height: 101px;
  2186. top: 26%;
  2187. div {
  2188. margin-top: 30px;
  2189. background: rgb(207, 205, 205);
  2190. height: 45px;
  2191. border-radius: 50%;
  2192. img {
  2193. margin: 7px 0 0 2px;
  2194. width: 30px;
  2195. }
  2196. }
  2197. }
  2198. .swiper-button-next:hover div {
  2199. background: rgb(189, 186, 186);
  2200. }
  2201. .swiper-button-prev:hover div {
  2202. background: rgb(189, 186, 186);
  2203. }
  2204. }
  2205. .gallery-thumbs .swiper-slide {
  2206. width: 20%;
  2207. height: 80px;
  2208. // opacity: 0.4;
  2209. }
  2210. .gallery-thumbs .swiper-slide-active {
  2211. border: 2px solid red;
  2212. }
  2213. .markdown ul > li {
  2214. color: #000000d9;
  2215. font-size: 15px;
  2216. line-height: 3;
  2217. margin-left: 20px;
  2218. padding-left: 4px;
  2219. list-style-type: circle;
  2220. }
  2221. .liClass ul li{
  2222. //margin-top:-20px;/*设置有序列表项之间的间隔*/
  2223. font-size:13px;
  2224. }
  2225. </style>