index.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751
  1. <template>
  2. <view class="container">
  3. <view class="example">
  4. <!-- 基础表单校验 -->
  5. <uni-forms ref="valiForm" label-align="right" :rules="rules" :modelValue="valiFormData">
  6. <uni-forms-item label="单号" :required="valiFormData.search_order_choice !== 2" name="orderNum">
  7. <uni-easyinput v-model="valiFormData.orderNum" placeholder="请输入单号" suffixIcon="scan" :focus="focusType" @iconClick="scan" />
  8. </uni-forms-item>
  9. <uni-forms-item v-if="valiFormData.search_order_choice === 2" label="批次号" name="batch_number">
  10. <uni-data-select v-model="valiFormData.batch_number" :localdata="batchOptions" placeholder="请选择批次号"></uni-data-select>
  11. </uni-forms-item>
  12. <uni-forms-item v-if="valiFormData.search_order_choice === 1" label="仓位编码" name="space_code">
  13. <uni-data-select v-model="valiFormData.space_code" :localdata="spaces" placeholder="请选择仓位编码"></uni-data-select>
  14. </uni-forms-item>
  15. <uni-forms-item v-if="valiFormData.search_order_choice !== 2" label="重量" required name="weight">
  16. <uni-easyinput
  17. v-model="valiFormData.weight"
  18. placeholder="请输入重量"
  19. oninput="value=value.replace(/[^\d.]/g,'').replace(/^\./g, '').replace(/\.{2,}/g, '').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').match(/^\d*(\.?\d{0,2})/g)[0] || null"
  20. >
  21. <template #right>
  22. <view class="weight-right">KG</view>
  23. </template>
  24. </uni-easyinput>
  25. </uni-forms-item>
  26. <uni-forms-item>
  27. <view @click="searchPkgChange" class="checkbox-cum" :style="{ color: valiFormData.search_pkg ? '#007AFF' : 'gray' }">
  28. <checkbox :checked="valiFormData.search_pkg" @click="searchPkgChange" />
  29. 搜索寄存包裹
  30. </view>
  31. <view class="sub-choice">
  32. <checkbox :disabled="!valiFormData.search_pkg" :checked="valiFormData.typing" />
  33. <text
  34. @click="
  35. () => {
  36. if (valiFormData.search_pkg) {
  37. valiFormData.typing = !valiFormData.typing;
  38. }
  39. }
  40. "
  41. :style="{ color: valiFormData.search_pkg && valiFormData.typing ? '#007AFF' : 'gray' }"
  42. >
  43. 包裹寄存、代购、运单都找不到时手工添加包裹
  44. </text>
  45. </view>
  46. <view @click="searchOrderChoiceChange" class="checkbox-cum" :style="{ color: valiFormData.search_order ? '#007AFF' : 'gray' }">
  47. <checkbox :checked="valiFormData.search_order" @click="searchOrderChoiceChange" />
  48. 搜索运单
  49. </view>
  50. <view>
  51. <uni-data-checkbox :disabled="!valiFormData.search_order" v-model="valiFormData.search_order_choice" :localdata="searchOrderChoice" />
  52. </view>
  53. </uni-forms-item>
  54. </uni-forms>
  55. <view class="button-group">
  56. <button type="info" @click="reset">重置</button>
  57. <button type="primary" @click="onsubmit" :loading="loading">
  58. <uni-icons v-if="!loading" type="checkmarkempty" size="18" color="white"></uni-icons>
  59. 提交
  60. </button>
  61. </view>
  62. </view>
  63. <view class="history">
  64. <view class="item" v-for="(item, i) in instockHistory.slice(0, 5)" :key="i">
  65. <text class="code" :style="{ color: item.status ? 'green' : '#666' }">
  66. {{ item.orderNum }}
  67. <text v-if="item.batch_text">批次号: {{ item.batch_text }}</text>
  68. <text v-if="item.space">仓位编码: {{ item.space }}</text>
  69. {{ item.type }}
  70. </text>
  71. <uni-icons v-if="item.status" type="checkmarkempty" class="status" size="16" color="green"></uni-icons>
  72. <text class="status fail" v-else>F</text>
  73. <text style="margin-left: 10rpx; font-weight: 300">
  74. {{ '\r\n' + item.createTime }}
  75. </text>
  76. </view>
  77. </view>
  78. <uni-popup ref="message" type="message">
  79. <uni-popup-message :type="messageType" :message="messageText" :duration="2000"></uni-popup-message>
  80. </uni-popup>
  81. <uni-popup ref="alertDialog" type="dialog">
  82. <uni-popup-dialog
  83. type="info"
  84. cancelText="否"
  85. confirmText="是"
  86. title="提示"
  87. content="是否按默认申报(默认申报为:衣服,10件,单价1)"
  88. @confirm="dialogConfirm"
  89. @close="dialogClose"
  90. ></uni-popup-dialog>
  91. </uni-popup>
  92. <uni-popup ref="printerDialog" type="dialog" :is-mask-click="false">
  93. <view style="width: 90%; margin: 0 auto; min-height: 250px; background-color: #fff; border-radius: 5px">
  94. <view class="" style="font-size: 20px; border-bottom: 1px solid #e1e1e1; padding: 15px 10px">
  95. <view>
  96. <view style="margin-bottom: 20px">
  97. <text>打印尾程面单</text>
  98. </view>
  99. <view>
  100. <view v-if="printerList">
  101. <view>
  102. <uni-data-checkbox
  103. multiple
  104. v-model="sendToPeinter"
  105. :localdata="[
  106. {
  107. text: '发送到标签打印机打印',
  108. value: 1
  109. }
  110. ]"
  111. @change="sendToPeinterFun"
  112. >
  113. >
  114. </uni-data-checkbox>
  115. <uni-data-checkbox :disabled="sendToPeinter.length === 0" v-model="selectPrinter" :localdata="printers"></uni-data-checkbox>
  116. </view>
  117. </view>
  118. </view>
  119. </view>
  120. <view style="text-align: center; position: absolute; bottom: 10px; width: 90%; display: flex; margin: 0 auto; left: 0; right: 0">
  121. <button @click="close" style="width: 35%">关闭</button>
  122. <button
  123. @click="printConfirm"
  124. :hover-stay-time="500"
  125. :loading="subLoading"
  126. :disabled="sendToPeinter.length === 0 || subLoading"
  127. class="my-bt-bg"
  128. style="width: 35%"
  129. >
  130. 打印
  131. </button>
  132. </view>
  133. </view>
  134. </view>
  135. </uni-popup>
  136. </view>
  137. </template>
  138. <script>
  139. import permision from '@/common/permission.js';
  140. import { ref, reactive, nextTick, provide } from 'vue';
  141. import {
  142. instockScanURL,
  143. outStockScanURL,
  144. weighScanURL,
  145. checkWaybillGoodsURL,
  146. printWaybillLabelURL,
  147. getWarehouseSpaceURL,
  148. getBindParamsURL,
  149. getPrinterListURL
  150. } from '@/utils/api.js';
  151. export default {
  152. data() {
  153. const token = ref(null);
  154. const user = ref(null);
  155. const loading = ref(false);
  156. return {
  157. token,
  158. user,
  159. messageType: '',
  160. messageText: '',
  161. batchOptions: [],
  162. spaces: [],
  163. printerList: {},
  164. instockHistory: [],
  165. printers: [],
  166. downloadFile: [],
  167. sendToPeinter: [1],
  168. selectPrinter: 0,
  169. subLoading: false,
  170. focusType: true,
  171. loading,
  172. // 校验表单数据
  173. valiFormData: {
  174. orderNum: '',
  175. batch_number: '',
  176. space_code: '',
  177. weight: '',
  178. search_pkg: true,
  179. typing: true,
  180. search_order: true,
  181. search_order_choice: 1
  182. },
  183. searchOrderChoice: [
  184. {
  185. text: '更新为已入库,状态为【已入库】',
  186. value: 1
  187. },
  188. {
  189. text: '更新为已出库,状态为【已出库】',
  190. value: 2
  191. },
  192. {
  193. text: '称重计费',
  194. value: 3
  195. }
  196. ]
  197. };
  198. },
  199. computed: {
  200. rules: function () {
  201. return {
  202. orderNum: {
  203. rules: [
  204. {
  205. required: this.valiFormData.search_order_choice !== 2,
  206. errorMessage: '单号不能为空'
  207. }
  208. ]
  209. },
  210. weight: {
  211. rules: [
  212. {
  213. required: true,
  214. errorMessage: '重量不能为空'
  215. },
  216. {
  217. format: 'number',
  218. errorMessage: '重量只能输入数字'
  219. }
  220. ]
  221. }
  222. };
  223. },
  224. spaceRes: function () {
  225. try {
  226. const res = this.spaces.find((item) => item.value === this.valiFormData.space_code);
  227. // console.log(res);
  228. return res?.text;
  229. } catch (e) {
  230. console.log(e);
  231. return '';
  232. }
  233. }
  234. },
  235. onShow() {
  236. this.focusType = true;
  237. this.loading = false;
  238. this.token = uni.getStorageSync('token');
  239. this.user = uni.getStorageSync('user');
  240. this.getWarehouseSpace();
  241. this.getBindParams();
  242. this.getPrinterList();
  243. },
  244. onHide() {
  245. this.focusType = false;
  246. this.loading = false;
  247. },
  248. onReady() {},
  249. onNavigationBarButtonTap(event) {
  250. if (event.index === 0) {
  251. uni.navigateTo({
  252. url: '/pages/instock/instockLog'
  253. });
  254. }
  255. },
  256. methods: {
  257. getWarehouseSpace() {
  258. uni.request({
  259. url: getWarehouseSpaceURL,
  260. method: 'POST',
  261. header: {
  262. batoken: this.token
  263. },
  264. data: {
  265. code: ''
  266. },
  267. success: (res) => {
  268. if (res.data.code === 1) {
  269. this.spaces = res.data.data.spaces.map((item) => {
  270. return {
  271. text: item.name,
  272. value: item.code
  273. };
  274. });
  275. }
  276. }
  277. });
  278. },
  279. getBindParams() {
  280. uni.request({
  281. url: getBindParamsURL,
  282. method: 'GET',
  283. header: {
  284. batoken: this.token
  285. },
  286. success: (res) => {
  287. if (res.data.code === 1) {
  288. this.batchOptions = res.data.data.batch_number.map((item) => {
  289. return {
  290. text: item.name,
  291. value: item.id
  292. };
  293. });
  294. }
  295. },
  296. fail(e) {
  297. console.log('fail--', e);
  298. }
  299. });
  300. },
  301. getPrinterList() {
  302. uni.request({
  303. url: getPrinterListURL,
  304. method: 'GET',
  305. header: {
  306. batoken: this.token
  307. },
  308. success: (res) => {
  309. if (res.data.code === 1) {
  310. this.printerList = res.data.data.printers;
  311. this.printers = Object.values(this.printerList).map((item) => {
  312. return {
  313. text: item.name,
  314. value: item.value
  315. };
  316. });
  317. }
  318. },
  319. fail(e) {
  320. console.log('fail--', e);
  321. }
  322. });
  323. },
  324. batchText(batch_number) {
  325. return this.batchOptions.find((item) => item.value === batch_number)?.text;
  326. },
  327. searchPkgChange() {
  328. this.valiFormData.search_pkg = !this.valiFormData.search_pkg;
  329. this.valiFormData.typing = this.valiFormData.search_pkg;
  330. },
  331. searchOrderChoiceChange() {
  332. this.valiFormData.search_order = !this.valiFormData.search_order;
  333. this.valiFormData.search_order_choice = this.valiFormData.search_order ? 3 : '';
  334. },
  335. reset() {
  336. this.loading = false;
  337. this.focusType = false;
  338. this.valiFormData = {
  339. ...this.valiFormData,
  340. orderNum: '',
  341. // space_code: '',
  342. batch_number: '',
  343. weight: '',
  344. search_pkg: true,
  345. typing: true,
  346. search_order: true
  347. };
  348. nextTick(() => {
  349. this.focusType = true;
  350. });
  351. },
  352. async scan() {
  353. // #ifdef APP-PLUS
  354. let status = await this.checkPermission();
  355. if (status !== 1) {
  356. return;
  357. }
  358. // #endif
  359. uni.scanCode({
  360. success: (res) => {
  361. this.result = res.result;
  362. this.valiFormData.orderNum = res.result;
  363. // this.onsubmit();
  364. },
  365. fail: (err) => {
  366. // 需要注意的是小程序扫码不需要申请相机权限
  367. }
  368. });
  369. },
  370. // #ifdef APP-PLUS
  371. async checkPermission(code) {
  372. let status = permision.isIOS ? await permision.requestIOS('camera') : await permision.requestAndroid('android.permission.CAMERA');
  373. if (status === null || status === 1) {
  374. status = 1;
  375. } else {
  376. uni.showModal({
  377. content: 'Camera permission required',
  378. confirmText: 'Setting',
  379. success: function (res) {
  380. if (res.confirm) {
  381. permision.gotoAppSetting();
  382. }
  383. }
  384. });
  385. }
  386. return status;
  387. },
  388. // #endif
  389. async warehouseScan() {
  390. this.st && clearTimeout(this.st);
  391. if (this.valiFormData.search_order_choice === 1) {
  392. await this.checkWaybillGoods();
  393. } else if (this.valiFormData.search_order_choice === 2) {
  394. await this.scanOutstock();
  395. } else if (this.valiFormData.search_order_choice === 3) {
  396. await this.weighScan();
  397. }
  398. },
  399. async checkWaybillGoods() {
  400. this.loading = true;
  401. uni.request({
  402. url: checkWaybillGoodsURL,
  403. method: 'POST',
  404. header: {
  405. batoken: this.token
  406. },
  407. data: {
  408. order_no: this.valiFormData.orderNum
  409. },
  410. success: (res) => {
  411. if (res.data.code === 1 && res.data.data.is_goods_empty) {
  412. this.$refs.alertDialog.open();
  413. } else {
  414. this.instockScan(0);
  415. }
  416. }
  417. });
  418. },
  419. instockScan(is_save_goods) {
  420. uni.request({
  421. url: instockScanURL,
  422. method: 'POST',
  423. header: {
  424. batoken: this.token
  425. },
  426. data: {
  427. order_no: this.valiFormData.orderNum,
  428. weight: this.valiFormData.weight,
  429. space_code: this.valiFormData.space_code,
  430. is_save_goods: is_save_goods
  431. },
  432. success: (res) => {
  433. this.loading = false;
  434. if (res.data.code == 1) {
  435. this.messageType = 'success';
  436. this.messageText = res.data.msg;
  437. this.$refs.message.open();
  438. console.log('res.data.data---', res.data.data);
  439. const historyItem = {
  440. orderNum: this.valiFormData.orderNum,
  441. createTime: new Date(),
  442. space: this.spaceRes,
  443. type: '入库',
  444. status: true
  445. };
  446. this.instockHistory.unshift(historyItem);
  447. uni.setStorageSync('instockHistory', this.instockHistory);
  448. this.getHistory();
  449. if (res.data.data.express_label) {
  450. console.log('有打印面单');
  451. this.selectPrinter = this.sendToPeinter.length > 0 ? this.printers[0].value : 0;
  452. this.$refs.printerDialog.open();
  453. } else {
  454. this.st = setTimeout(() => {
  455. this.reset();
  456. this.st && clearTimeout(this.st);
  457. }, 1000);
  458. }
  459. } else {
  460. this.messageType = 'error';
  461. this.messageText = res.data.msg;
  462. this.$refs.message.open();
  463. const historyItem = {
  464. orderNum: this.valiFormData.orderNum,
  465. createTime: new Date(),
  466. space: this.spaceRes,
  467. type: '入库',
  468. status: false
  469. };
  470. this.instockHistory.unshift(historyItem);
  471. uni.setStorageSync('instockHistory', this.instockHistory);
  472. this.getHistory();
  473. this.st = setTimeout(() => {
  474. this.reset();
  475. this.st && clearTimeout(this.st);
  476. }, 1000);
  477. }
  478. }
  479. });
  480. },
  481. scanOutstock() {
  482. console.log(this.valiFormData.orderNum, this.valiFormData.batch_number);
  483. if (this.valiFormData.orderNum.length === 0 && this.valiFormData.batch_number.length === 0) {
  484. this.messageType = 'error';
  485. this.messageText = '单号或批次号至少填一个';
  486. this.$refs.message.open();
  487. return;
  488. }
  489. this.loading = true;
  490. uni.request({
  491. url: outStockScanURL,
  492. method: 'POST',
  493. header: {
  494. batoken: this.token
  495. },
  496. data: {
  497. order_no: this.valiFormData.orderNum,
  498. batch_number: this.valiFormData.batch_number
  499. },
  500. success: (res) => {
  501. this.loading = false;
  502. if (res.data.code == 1) {
  503. this.messageType = 'success';
  504. this.messageText = res.data.msg;
  505. this.$refs.message.open();
  506. const historyItem = {
  507. orderNum: this.valiFormData.orderNum,
  508. batch_text: this.batchText(this.valiFormData.batch_number),
  509. createTime: new Date(),
  510. type: '出库',
  511. status: true
  512. };
  513. this.instockHistory.unshift(historyItem);
  514. this.instockHistory.length > 10 && (this.instockHistory.length = 10);
  515. uni.setStorageSync('instockHistory', this.instockHistory);
  516. this.getHistory();
  517. if (res.data.data.labels && res.data.data.labels.length > 0) {
  518. console.log('有打印面单');
  519. this.selectPrinter = this.sendToPeinter.length > 0 ? this.printers[0].value : 0;
  520. this.$refs.printerDialog.open();
  521. } else {
  522. this.st = setTimeout(() => {
  523. this.reset();
  524. this.st && clearTimeout(this.st);
  525. }, 700);
  526. }
  527. } else {
  528. this.messageType = 'error';
  529. this.messageText = res.data.msg;
  530. this.$refs.message.open();
  531. const historyItem = {
  532. orderNum: this.valiFormData.orderNum,
  533. batch_text: this.batchText(this.valiFormData.batch_number),
  534. createTime: new Date(),
  535. type: '出库',
  536. status: false
  537. };
  538. this.instockHistory.unshift(historyItem);
  539. this.instockHistory.length > 10 && (this.instockHistory.length = 10);
  540. uni.setStorageSync('instockHistory', this.instockHistory);
  541. this.getHistory();
  542. this.st = setTimeout(() => {
  543. this.reset();
  544. this.st && clearTimeout(this.st);
  545. }, 700);
  546. }
  547. }
  548. });
  549. },
  550. weighScan() {
  551. this.loading = true;
  552. uni.request({
  553. url: weighScanURL,
  554. method: 'POST',
  555. header: {
  556. batoken: this.token
  557. },
  558. data: {
  559. order_no: this.valiFormData.orderNum,
  560. weight: this.valiFormData.weight
  561. },
  562. success: (res) => {
  563. this.loading = false;
  564. if (res.data.code == 1) {
  565. this.messageType = 'success';
  566. this.messageText = res.data.msg;
  567. this.$refs.message.open();
  568. const historyItem = {
  569. orderNum: this.valiFormData.orderNum,
  570. createTime: new Date(),
  571. type: '称重',
  572. status: true
  573. };
  574. this.instockHistory.unshift(historyItem);
  575. this.instockHistory.length > 10 && (this.instockHistory.length = 10);
  576. uni.setStorageSync('instockHistory', this.instockHistory);
  577. this.getHistory();
  578. } else {
  579. this.messageType = 'error';
  580. this.messageText = res.data.msg;
  581. this.$refs.message.open();
  582. const historyItem = {
  583. orderNum: this.valiFormData.orderNum,
  584. createTime: new Date(),
  585. type: '称重',
  586. status: false
  587. };
  588. this.instockHistory.unshift(historyItem);
  589. this.instockHistory.length > 10 && (this.instockHistory.length = 10);
  590. uni.setStorageSync('instockHistory', this.instockHistory);
  591. this.getHistory();
  592. }
  593. this.st = setTimeout(() => {
  594. this.reset();
  595. this.st && clearTimeout(this.st);
  596. }, 700);
  597. }
  598. });
  599. },
  600. isNotGoods() {
  601. this.instockScan(0);
  602. },
  603. close() {
  604. this.$refs.printerDialog.close();
  605. this.st = setTimeout(() => {
  606. this.reset();
  607. this.st && clearTimeout(this.st);
  608. }, 700);
  609. },
  610. dialogConfirm() {
  611. this.instockScan(1);
  612. },
  613. dialogClose() {
  614. this.instockScan(0);
  615. },
  616. sendToPeinterFun(res) {
  617. if (!res.detail.value.length > 0) {
  618. this.selectPrinter = 0;
  619. } else {
  620. this.selectPrinter = this.printers[0].value;
  621. }
  622. },
  623. printConfirm() {
  624. this.subLoading = true;
  625. uni.request({
  626. url: printWaybillLabelURL,
  627. method: 'POST',
  628. header: {
  629. batoken: this.token
  630. },
  631. data: {
  632. order_no: this.valiFormData.orderNum,
  633. printer_code: this.selectPrinter
  634. },
  635. success: (res) => {
  636. this.close();
  637. this.subLoading = false;
  638. console.log('打印成功', res);
  639. this.messageType = 'success';
  640. this.messageText = '打印成功';
  641. this.$refs.message.open();
  642. }
  643. });
  644. },
  645. onsubmit() {
  646. this.$refs.valiForm
  647. .validate()
  648. .then((res) => {
  649. this.warehouseScan();
  650. })
  651. .catch((err) => {
  652. console.log('err', err);
  653. });
  654. },
  655. getHistory() {
  656. // this.instockHistory = uni.getStorageSync('history')
  657. }
  658. }
  659. };
  660. </script>
  661. <style lang="scss">
  662. .example {
  663. padding: 15px;
  664. background-color: #fff;
  665. }
  666. .checkbox-cum {
  667. margin-bottom: 20rpx;
  668. font-size: 14rpx;
  669. }
  670. .sub-choice {
  671. margin-bottom: 20rpx;
  672. margin-left: 20rpx;
  673. font-size: 14rpx;
  674. }
  675. .button-group {
  676. margin-top: 15px;
  677. display: flex;
  678. flex-direction: row;
  679. justify-content: space-around;
  680. button {
  681. display: flex;
  682. align-items: center;
  683. justify-content: center;
  684. height: 35px;
  685. width: 50%;
  686. margin-left: 10px;
  687. font-size: 16rpx;
  688. }
  689. .uni-icons {
  690. margin-right: 10px;
  691. }
  692. }
  693. .weight-right {
  694. padding-right: 10rpx;
  695. font-size: 14rpx;
  696. }
  697. .history {
  698. display: flex;
  699. width: 100%;
  700. flex-direction: column;
  701. justify-items: start;
  702. .title {
  703. padding: 20rpx;
  704. font-size: 24rpx;
  705. font-weight: 600;
  706. }
  707. .code {
  708. font-weight: 600;
  709. }
  710. .item {
  711. padding: 20rpx;
  712. font-size: 20rpx;
  713. color: #666;
  714. .status {
  715. padding-left: 20rpx;
  716. }
  717. .fail {
  718. font-weight: 600;
  719. color: #f00;
  720. }
  721. }
  722. }
  723. </style>