grainpulseenterprisereview.vue 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822
  1. <!--粮脉企业审核-->
  2. <template>
  3. <div>
  4. <BaseHeaderLayout :leftSpan="15">
  5. <template slot="right">
  6. <ws-select
  7. v-model="searchTypeText"
  8. placeholder=""
  9. class="typeselect"
  10. @change="selectExamineType"
  11. :value="searchType"
  12. >
  13. <ws-option
  14. v-for="item in searchTypeList"
  15. :key="item.value"
  16. :label="item.value"
  17. :value="item.value"
  18. style="color: #8890b1"
  19. />
  20. </ws-select>
  21. <ws-input
  22. v-model="searchKeyWord"
  23. placeholder="可按账号、企业名称查找"
  24. clearable
  25. maxlength="500"
  26. type="input"
  27. ></ws-input>
  28. <ws-button class="find" type="primary" @click="lookUp()"
  29. ><img
  30. width="16"
  31. height="16"
  32. style="
  33. vertical-align: text-top;
  34. position: relative;
  35. top: 0px;
  36. left: -5px;
  37. "
  38. src="../../../public/img/sousuo.png"
  39. alt=""
  40. /></ws-button>
  41. <!-- </div> -->
  42. </template>
  43. </BaseHeaderLayout>
  44. <div class="container">
  45. <el-table
  46. class="wenzi"
  47. :data="grainList.records"
  48. style="width: 100%"
  49. height="680"
  50. >
  51. <el-table-column type="index" label="序号" width="50">
  52. <template scope="scope">
  53. <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
  54. <span v-else>{{ scope.$index + 1 }}</span>
  55. </template>
  56. </el-table-column>
  57. <el-table-column prop="userName" label="昵称"> </el-table-column>
  58. <el-table-column prop="createPhone" label="账号"> </el-table-column>
  59. <el-table-column prop="compName" label="企业名称"> </el-table-column>
  60. <el-table-column prop="address" label="地址">
  61. </el-table-column>
  62. <el-table-column prop="updateDate" label="更新时间" width="140">
  63. </el-table-column>
  64. <el-table-column prop="" label="操作" width="240">
  65. <template slot-scope="scope">
  66. <div
  67. class="record"
  68. @click="nocomplete(scope.row)"
  69. v-hasPermission="`audit.tranMerchant.tranMerchantInfo.view`"
  70. >
  71. 查看
  72. </div>
  73. <div
  74. class="record"
  75. @click="delivery(scope.row)"
  76. v-hasPermission="`audit.tranMerchant.tranMerchantInfo.view`"
  77. >
  78. 编辑
  79. </div>
  80. <div
  81. class="record"
  82. @click="deleteclick(scope.row)"
  83. v-hasPermission="`audit.tranMerchant.tranMerchantInfo.view`"
  84. >
  85. 删除
  86. </div>
  87. </template>
  88. </el-table-column>
  89. <el-table-column prop="address" label="审核" width="180">
  90. <template slot-scope="scope">
  91. <el-button
  92. size="medium"
  93. type="text"
  94. class="record"
  95. v-if="scope.row.statusFlag == 1"
  96. v-hasPermission="`audit.tranMerchant.tranMerchantInfo.view`"
  97. @click="reject(scope.row)"
  98. >驳回</el-button
  99. >
  100. <el-button
  101. size="medium"
  102. type="text"
  103. class="record"
  104. v-if="scope.row.statusFlag == 1"
  105. @click="adopt(scope.row)"
  106. v-hasPermission="`audit.tranMerchant.tranMerchantInfo.view`"
  107. >通过</el-button
  108. >
  109. <template
  110. v-else
  111. v-hasPermission="`audit.tranMerchant.tranMerchantInfo.view`"
  112. slot-scope="scope"
  113. >
  114. {{ scope.row.status }}
  115. </template>
  116. </template>
  117. </el-table-column>
  118. </el-table>
  119. <!-- 页数 -->
  120. <el-pagination
  121. @size-change="handleSizeChange"
  122. @current-change="handleCurrentChange"
  123. :current-page="currentPage"
  124. :page-size="deptCircularPage.pageSize"
  125. layout="total, sizes, prev, pager, next, jumper"
  126. :total="deptBudgetTotal"
  127. >
  128. </el-pagination>
  129. <!--查看-->
  130. <el-dialog
  131. width="30%"
  132. title="查看企业信息"
  133. :visible.sync="dialogFormVisible1"
  134. :append-to-body="true"
  135. >
  136. <el-form class="customer" :model="form">
  137. <h3 style="margin-left: 30px">基本信息</h3>
  138. <el-form-item label="公司名称" :label-width="formLabelWidth">
  139. {{ companyList.compName }}
  140. </el-form-item>
  141. <el-form-item label="主营类型" :label-width="formLabelWidth">
  142. {{ companyList.mainBusinessType }}
  143. </el-form-item>
  144. <el-form-item label="标题" :label-width="formLabelWidth">
  145. {{ companyList.title }}
  146. </el-form-item>
  147. <el-form-item label="封面简介" :label-width="formLabelWidth">
  148. {{ companyList.companyProfile }}
  149. </el-form-item>
  150. <el-form-item label="坐标" :label-width="formLabelWidth">
  151. <span>经度:{{ companyList.longitude }}</span>
  152. <span>纬度:{{ companyList.latitude }}</span>
  153. </el-form-item>
  154. <el-form-item label="所在区域" :label-width="formLabelWidth">
  155. {{ companyList.province }}{{ companyList.city }}{{ companyList.area }}
  156. </el-form-item>
  157. <el-form-item label="详细地址" :label-width="formLabelWidth">
  158. {{ companyList.detailedAddress }}
  159. </el-form-item>
  160. <h4>封面图片</h4>
  161. <img width="50%" :src="companyList.attachmentAddress" alt />
  162. <h4>营业执照</h4>
  163. <img width="50%" :src="companyList.licenseAddress" alt />
  164. <h3 style="margin-left: 30px">附加信息</h3>
  165. <el-form-item label="企业概况" :label-width="formLabelWidth">
  166. {{ companyList.companyContant }}
  167. </el-form-item>
  168. <el-form-item label="标签" :label-width="formLabelWidth">
  169. {{ companyList.label }}
  170. </el-form-item>
  171. <h4>场地图片</h4>
  172. <img width="50%" :src="companyList.sitePhotoAddress" alt />
  173. <h3 style="margin-left: 30px">联系方式</h3>
  174. <el-form-item label="联系人" :label-width="formLabelWidth">
  175. {{ companyList.contacts }}
  176. </el-form-item>
  177. <el-form-item label="电话" :label-width="formLabelWidth">
  178. {{ companyList.createPhone }}
  179. </el-form-item>
  180. <el-form-item label="邮箱" :label-width="formLabelWidth">
  181. {{ companyList.email }}
  182. </el-form-item>
  183. <el-form-item label="传真" :label-width="formLabelWidth">
  184. {{ companyList.fax }}
  185. </el-form-item>
  186. </el-form>
  187. <div slot="footer" class="dialog-footer">
  188. <el-button v-if="companyList.statusFlag != 1" @click="dialogFormVisible1 = false" type="primary">关闭</el-button>
  189. <el-button v-if="companyList.statusFlag == 1" @click="reject1(id)" type="danger">驳回</el-button>
  190. <el-button v-if="companyList.statusFlag == 1" @click="adopt1(id)" type="primary">通过</el-button>
  191. </div>
  192. </el-dialog>
  193. <!--编辑-->
  194. <el-dialog
  195. width="30%"
  196. title="编辑企业信息"
  197. :visible.sync="dialogFormVisible2"
  198. :append-to-body="true"
  199. >
  200. <el-form class="" :model="form1">
  201. <h3 style="margin-left: 30px">基本信息(必填)</h3>
  202. <el-form-item label="公司名称" :label-width="formLabelWidth" prop="compName">
  203. <el-input v-model="companyList1.compName" placeholder="请输入公司名称"></el-input>
  204. </el-form-item>
  205. <el-form-item label="主营类型(可多选,必须为真实经营类型)" prop="mainBusinessType">
  206. <el-checkbox-group v-model="companyList1.mainBusinessType" style="">
  207. <el-checkbox-button label="粮库" name="Type"></el-checkbox-button>
  208. <el-checkbox-button label="加工厂" name="Type"></el-checkbox-button>
  209. <el-checkbox-button label="烘干塔" name="Type"></el-checkbox-button>
  210. <el-checkbox-button label="饲料厂" name="Type"></el-checkbox-button>
  211. <el-checkbox-button label="养殖厂" name="Type"></el-checkbox-button>
  212. <el-checkbox-button label="粮贸" name="Type"></el-checkbox-button>
  213. <el-checkbox-button label="期货" name="Type"></el-checkbox-button>
  214. </el-checkbox-group>
  215. </el-form-item>
  216. <el-form-item label="标题" :label-width="formLabelWidth" prop="title">
  217. <el-input v-model="companyList1.title" placeholder="请输入标题"></el-input>
  218. </el-form-item>
  219. <el-form-item label="封面简介" :label-width="formLabelWidth" prop="companyProfile">
  220. <el-input type="textarea" v-model="companyList1.companyProfile" placeholder="请输入封面简介"></el-input>
  221. </el-form-item>
  222. <el-form-item label="坐标" :label-width="formLabelWidth" >
  223. <span>经度:{{ companyList1.longitude }}</span>
  224. <span>纬度:{{ companyList1.latitude }}</span>
  225. </el-form-item>
  226. <el-form-item label="所在区域" :label-width="formLabelWidth" prop="adress">
  227. <el-input v-model="companyList1.adress" placeholder="请输入所在区域"></el-input>
  228. </el-form-item>
  229. <el-form-item label="详细地址" :label-width="formLabelWidth" prop="detailedAddress">
  230. <el-input v-model="companyList1.detailedAddress" placeholder="请输入详细地址"></el-input>
  231. </el-form-item>
  232. <h4>上传封面图片</h4>
  233. <el-upload
  234. action="https://www.zthymaoyi.com/upload/admin"
  235. list-type="picture-card"
  236. :on-preview="handlePictureCardPreview"
  237. :on-remove="handleRemove"
  238. >
  239. <i class="el-icon-plus"></i>
  240. </el-upload>
  241. <el-dialog :visible.sync="dialogVisible">
  242. <img width="100%" :src="dialogImageUrl" alt="" />
  243. </el-dialog>
  244. <h4>营业执照</h4>
  245. <el-upload
  246. action="https://www.zthymaoyi.com/upload/admin"
  247. list-type="picture-card"
  248. :on-preview="handlePictureCardPreview"
  249. :on-remove="handleRemove"
  250. >
  251. <i class="el-icon-plus"></i>
  252. </el-upload>
  253. <el-dialog :visible.sync="dialogVisible">
  254. <img width="100%" :src="dialogImageUrl" alt="" />
  255. </el-dialog>
  256. <h3 style="margin-left: 30px">附加信息(选填)</h3>
  257. <el-form-item label="企业概况" :label-width="formLabelWidth" prop="companyContant">
  258. <el-input type="textarea" v-model="companyList1.companyContant" placeholder="请输入企业概况,如经营项目、产品类型、企业规模等,不超过300字"></el-input>
  259. </el-form-item>
  260. <el-form-item label="标签(标签应突出企业特色,最多6个)" prop="label">
  261. <el-tag
  262. :key="tag"
  263. v-for="tag in dynamicTags"
  264. closable
  265. :disable-transitions="false"
  266. @close="handleClose(tag)"
  267. >
  268. {{ tag }}
  269. </el-tag>
  270. <el-input
  271. class="input-new-tag"
  272. v-if="inputVisible"
  273. v-model="companyList1.label"
  274. ref="saveTagInput"
  275. size="small"
  276. placeholder="请输入标签内容,不超过6个字符"
  277. @keyup.enter.native="handleInputConfirm"
  278. @blur="handleInputConfirm"
  279. >
  280. </el-input>
  281. <el-button
  282. v-else
  283. class="button-new-tag"
  284. size="small"
  285. @click="showInput"
  286. >添加</el-button
  287. >
  288. </el-form-item>
  289. <h4>场地图片(图片清晰,最多9张)</h4>
  290. <el-upload
  291. action="https://www.zthymaoyi.com/upload/admin"
  292. list-type="picture-card"
  293. :on-preview="handlePictureCardPreview"
  294. :on-remove="handleRemove"
  295. >
  296. <i class="el-icon-plus"></i>
  297. </el-upload>
  298. <el-dialog :visible.sync="dialogVisible">
  299. <img width="100%" :src="dialogImageUrl" alt="" />
  300. </el-dialog>
  301. <h3 style="margin-left: 30px">联系方式</h3>
  302. <div :key="index" v-for="(item, index) in freightspace">
  303. <el-form-item label="联系人" :label-width="formLabelWidth" prop="contacts">
  304. <el-input v-model="companyList1.contacts" placeholder="请输入联系人姓名"></el-input>
  305. </el-form-item>
  306. <el-form-item label="电话" :label-width="formLabelWidth" prop="createPhone">
  307. <el-input v-model="companyList1.createPhone" placeholder="请输入联系人电话"></el-input>
  308. </el-form-item>
  309. <img
  310. width="22"
  311. height="22"
  312. class="add"
  313. @click="add()"
  314. src="../../../public/img/add.png"
  315. alt=""
  316. />
  317. <img
  318. width="22"
  319. height="22"
  320. class="del"
  321. @click="del(index)"
  322. src="../../../public/img/del.png"
  323. alt=""
  324. />
  325. </div>
  326. <el-form-item label="邮箱" :label-width="formLabelWidth" prop="email">
  327. <el-input v-model="companyList1.email" placeholder="请输入电子邮箱"></el-input>
  328. </el-form-item>
  329. <el-form-item label="传真" :label-width="formLabelWidth" prop="fax">
  330. <el-input v-model="companyList1.fax" placeholder="请输入传真号"></el-input>
  331. </el-form-item>
  332. </el-form>
  333. <div slot="footer" class="dialog-footer">
  334. <el-button @click="submit(id)" type="primary">提交</el-button>
  335. </div>
  336. </el-dialog>
  337. </div>
  338. </div>
  339. </template>
  340. <script>
  341. import { settledList,getSettled,editSettled,settledExamine,deleteSettled } from '@/model/platformaudit/index'
  342. import Pagination from '@/components/Pagination'
  343. import WsUpload from '@/components/WsUpload'
  344. import { EventBus } from 'base-core-lib'
  345. export default {
  346. name: 'viewSpareMoney',
  347. components: {
  348. WsUpload,
  349. Pagination,
  350. },
  351. watch: {
  352. vesselId(val) {
  353. this.getList()
  354. },
  355. isShow(val) {
  356. this.showType = val
  357. },
  358. },
  359. data() {
  360. return {
  361. //标签
  362. dynamicTags: [],
  363. inputVisible: false,
  364. // inputValue: '',
  365. //图片
  366. dialogImageUrl: '',
  367. dialogVisible: false,
  368. //弹窗
  369. dialogFormVisible1: false,
  370. dialogFormVisible2: false,
  371. checkboxGroup2: [],
  372. // 是否显示
  373. showType: true,
  374. // 年
  375. year: '',
  376. currentPage: 1,
  377. pageSize: 10,
  378. deptBudgetTotal: 0,
  379. searchTypeText: '待审核',
  380. searchKeyWord: '',
  381. // 提交类型
  382. submitType: true,
  383. size: 10,
  384. address:'',
  385. searchType: 1,
  386. formLabelWidth: '120px',
  387. form: {},
  388. form1: {
  389. type: [],
  390. textarea: '',
  391. },
  392. compId: sessionStorage.getItem('ws-pf_compId'),
  393. deptCircularPage: {},
  394. grainList: [],
  395. searchTypeList: [
  396. { value: '待审核', type: 1 },
  397. { value: '已通过', type: 2 },
  398. { value: '未通过', type: 3 },
  399. { value: '全部', type: '' },
  400. ],
  401. companyList: {
  402. },
  403. companyList1: {
  404. id:'',
  405. label:'',
  406. },
  407. settledCompanyInfo: {
  408. id: '',
  409. flag: '',
  410. },
  411. freightspace: [{}],
  412. pickerBeginDateBefore: {
  413. disabledDate: (time) => {
  414. return time.getTime() > Date.now()
  415. },
  416. },
  417. }
  418. },
  419. activated() {
  420. this.getList()
  421. this.showType = this.isShow
  422. },
  423. methods: {
  424. //图片
  425. handleRemove(file, fileList) {
  426. console.log(file, fileList)
  427. },
  428. handlePictureCardPreview(file) {
  429. this.dialogImageUrl = file.url
  430. this.dialogVisible = true
  431. },
  432. close(index) {
  433. this.addressUrls.splice(index, 1)
  434. },
  435. //联系人
  436. add() {
  437. this.freightspace.push({})
  438. },
  439. del(index) {
  440. if (this.freightspace.length > 1) {
  441. this.freightspace.splice(index, 1)
  442. }
  443. },
  444. // 上传附件
  445. uploadSuccessHandle(e) {
  446. this.deptBudgetList.addressUrl += e.url + ','
  447. this.addressUrls.push(e.url)
  448. },
  449. //列表
  450. getList() {
  451. settledList({
  452. compId: sessionStorage.getItem('ws-pf_compId'),
  453. searchType: this.searchType,
  454. currentPage: this.currentPage,
  455. pageSize: this.pageSize,
  456. searchKeyWord: this.searchKeyWord,
  457. })
  458. .toPromise()
  459. .then((response) => {
  460. this.grainList = response
  461. for(var i=0;i<this.grainList.records.length;i++){
  462. this.grainList.records[i].address=this.grainList.records[i].province+this.grainList.records[i].city+this.grainList.records[i].area+this.grainList.records[i].detailedAddress
  463. }
  464. this.deptCircularPage.currentPage = response.current
  465. this.deptCircularPage.pageSize = response.size
  466. this.deptBudgetTotal = response.total
  467. })
  468. },
  469. //删除
  470. deleteclick(row) {
  471. this.$confirm(`企业信息删除后不可恢复,是否确定删除?`, {
  472. confirmButtonText: '确定',
  473. cancelButtonText: '取消',
  474. type: 'warning',
  475. })
  476. .then(() => {
  477. deleteSettled({
  478. id: row.id,
  479. })
  480. .toPromise()
  481. .then((response) => {
  482. this.getList()
  483. })
  484. })
  485. .catch(() => {
  486. return false
  487. })
  488. },
  489. //查看
  490. nocomplete(row) {
  491. getSettled({ id: row.id })
  492. .toPromise()
  493. .then((response) => {
  494. this.companyList = response
  495. this.id=response.id
  496. this.dialogFormVisible1 = true
  497. })
  498. },
  499. //编辑
  500. delivery(row) {
  501. getSettled({ id: row.id })
  502. .toPromise()
  503. .then((response) => {
  504. this.companyList1 = response
  505. this.id=response.id
  506. this.dialogFormVisible2 = true
  507. })
  508. },
  509. submit(id){
  510. this.companyList1.id = id
  511. this.$confirm(`确定提交企业信息?`, {
  512. cancelButtonText: '取消',
  513. confirmButtonText: '确定',
  514. type: 'warning'
  515. })
  516. .then(() => {
  517. editSettled(this.companyList1)
  518. .toPromise()
  519. .then((response) => {
  520. this.$notify.success({
  521. title: '成功',
  522. message: '提交成功',
  523. })
  524. this.getList()
  525. })
  526. .catch((response) => {
  527. EventBus.$emit('error', response.message)
  528. })
  529. })
  530. .catch(() => {
  531. return false
  532. })
  533. },
  534. //查找
  535. lookUp() {
  536. this.currentPage = 1
  537. this.getList()
  538. },
  539. selectExamineType(e) {
  540. for (var i = 0; i < this.searchTypeList.length; i++) {
  541. if (this.searchTypeList[i].value == e) {
  542. this.searchType = this.searchTypeList[i].type
  543. }
  544. }
  545. this.currentPage = 1
  546. this.getList()
  547. },
  548. //查看审核通过
  549. adopt1(id) {
  550. this.settledCompanyInfo.id = id
  551. this.settledCompanyInfo.flag = 1
  552. this.$confirm(`确定通过该入驻申请?`, '提示', {
  553. confirmButtonText: '通过',
  554. cancelButtonText: '取消',
  555. type: 'warning',
  556. })
  557. .then(() => {
  558. settledExamine(this.settledCompanyInfo)
  559. .toPromise()
  560. .then((response) => {
  561. this.$notify.success({
  562. title: '成功',
  563. message: '通过成功',
  564. })
  565. this.getList()
  566. })
  567. .catch((response) => {
  568. EventBus.$emit('error', response.message)
  569. })
  570. })
  571. .catch(() => {
  572. return false
  573. })
  574. },
  575. //查看审核驳回
  576. reject1(id) {
  577. this.settledCompanyInfo.id = id
  578. this.settledCompanyInfo.flag = 2
  579. this.$confirm(`确定驳回该入驻申请?`, '提示', {
  580. confirmButtonText: '驳回',
  581. cancelButtonText: '取消',
  582. type: 'warning',
  583. })
  584. .then(() => {
  585. settledExamine(this.settledCompanyInfo)
  586. .toPromise()
  587. .then((response) => {
  588. this.$notify.success({
  589. title: '成功',
  590. message: '驳回成功',
  591. })
  592. this.getList()
  593. })
  594. .catch((response) => {
  595. EventBus.$emit('error', response.message)
  596. })
  597. })
  598. .catch(() => {
  599. return false
  600. })
  601. },
  602. //审核通过
  603. adopt(row) {
  604. this.settledCompanyInfo.id = row.id
  605. this.settledCompanyInfo.flag = 1
  606. this.$confirm(`确定通过该入驻申请?`, '提示', {
  607. confirmButtonText: '通过',
  608. cancelButtonText: '取消',
  609. type: 'warning',
  610. })
  611. .then(() => {
  612. settledExamine(this.settledCompanyInfo)
  613. .toPromise()
  614. .then((response) => {
  615. this.$notify.success({
  616. title: '成功',
  617. message: '通过成功',
  618. })
  619. this.getList()
  620. })
  621. .catch((response) => {
  622. EventBus.$emit('error', response.message)
  623. })
  624. })
  625. .catch(() => {
  626. return false
  627. })
  628. },
  629. //审核驳回
  630. reject(row) {
  631. this.settledCompanyInfo.id = row.id
  632. this.settledCompanyInfo.flag = 2
  633. this.$confirm(`确定驳回该入驻申请?`, '提示', {
  634. confirmButtonText: '驳回',
  635. cancelButtonText: '取消',
  636. type: 'warning',
  637. })
  638. .then(() => {
  639. settledExamine(this.settledCompanyInfo)
  640. .toPromise()
  641. .then((response) => {
  642. this.$notify.success({
  643. title: '成功',
  644. message: '驳回成功',
  645. })
  646. this.getList()
  647. })
  648. .catch((response) => {
  649. EventBus.$emit('error', response.message)
  650. })
  651. })
  652. .catch(() => {
  653. return false
  654. })
  655. },
  656. handleSizeChange(val) {
  657. console.log(`每页 ${val} 条`)
  658. this.pageSize = val
  659. this.getList()
  660. },
  661. handleCurrentChange(val) {
  662. this.currentPage = val
  663. console.log(`当前页: ${val}`)
  664. this.getList()
  665. },
  666. //标签
  667. handleClose(tag) {
  668. this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1)
  669. },
  670. showInput() {
  671. this.inputVisible = true
  672. this.$nextTick((_) => {
  673. this.$refs.saveTagInput.$refs.input.focus()
  674. })
  675. },
  676. handleInputConfirm() {
  677. let label = this.label
  678. if (label) {
  679. this.dynamicTags.push(label)
  680. }
  681. this.inputVisible = false
  682. this.label = ''
  683. },
  684. },
  685. }
  686. </script>
  687. <style lang="scss" scoped>
  688. .container {
  689. width: 100%;
  690. margin: 0 auto;
  691. }
  692. .vertical-text-left {
  693. width: 62px;
  694. text-align: right;
  695. }
  696. .el-button--primary {
  697. background-color: #5878e8;
  698. border-color: #5878e8;
  699. }
  700. .el-button--default {
  701. color: #8890b1;
  702. border-color: #e8eaf1;
  703. }
  704. /deep/.base_header_layout .grid-content.right .find.el-button--primary {
  705. width: 30px;
  706. margin-left: 0;
  707. border-top-left-radius: 0px;
  708. border-bottom-left-radius: 0px;
  709. }
  710. /deep/.findValue .el-input__inner {
  711. border-top-right-radius: 0px;
  712. border-bottom-right-radius: 0px;
  713. }
  714. //操作按钮
  715. .record,
  716. .adjustment {
  717. display: inline-block;
  718. color: #5878e8;
  719. padding: 0 4px !important;
  720. position: relative;
  721. font-size: 14px;
  722. }
  723. .record:after {
  724. position: absolute;
  725. content: '';
  726. display: block;
  727. top: 5px;
  728. right: -2px;
  729. width: 1px;
  730. height: 12px;
  731. background: #e9ecf7;
  732. }
  733. //状态样式
  734. .executory,
  735. .inExecution,
  736. .done {
  737. width: 6px;
  738. height: 6px;
  739. display: inline-block;
  740. border-radius: 50%;
  741. position: relative;
  742. top: -1px;
  743. font-size: 14px;
  744. }
  745. .executory {
  746. background: #ff9f24;
  747. }
  748. .inExecution {
  749. background: #5878e8;
  750. }
  751. .done {
  752. background: #50cad4;
  753. }
  754. .putstorage.el-button--default,
  755. .deliverystorage.el-button--default {
  756. border-color: #8890b1;
  757. background-color: #fff;
  758. color: #8890b1;
  759. }
  760. /deep/.el-table td,
  761. /deep/.el-table th.is-leaf {
  762. border-right: 1px solid #e9ecf7;
  763. text-align: center;
  764. }
  765. /deep/.el-table tr td:first-child,
  766. /deep/.el-table tr th.is-leaf:first-child {
  767. border-left: 1px solid #e9ecf7;
  768. }
  769. .el-row {
  770. height: 60px;
  771. }
  772. .base_header_layout .grid-content {
  773. margin-top: 80px;
  774. }
  775. .el-input--small .el-input__inner {
  776. margin-left: 20px;
  777. }
  778. .el-range-editor--small.el-input__inner {
  779. height: 32px;
  780. margin: 0 10px;
  781. }
  782. /deep/.el-pagination {
  783. text-align: center;
  784. white-space: nowrap;
  785. padding: 2px 5px;
  786. color: #303133;
  787. font-weight: 700;
  788. margin-bottom: 20px;
  789. }
  790. .el-select {
  791. width: 30%;
  792. margin-right: 10px;
  793. }
  794. .el-tag + .el-tag {
  795. margin-left: 10px;
  796. }
  797. .button-new-tag {
  798. margin-left: 10px;
  799. height: 32px;
  800. line-height: 30px;
  801. padding-top: 0;
  802. padding-bottom: 0;
  803. }
  804. .input-new-tag {
  805. width: 90px;
  806. margin-left: 10px;
  807. vertical-align: bottom;
  808. }
  809. .customer .el-form-item {
  810. border-bottom: 1px solid #ccc;
  811. }
  812. /deep/.typeselect .el-input__inner {
  813. color: #8890b1;
  814. }
  815. </style>