addStock.vue 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933
  1. <template>
  2. <view class="mainBox">
  3. <uni-nav-bar fixed="true" statusBar="true" left-icon="back" title="新增入库单" @clickLeft="back">
  4. <!-- @clickRight="handleScan"
  5. right-icon="scan"
  6. > -->
  7. <!--右菜单-->
  8. <template slot="float">
  9. <!-- <view class="nav-icon-caozuo rightNav" @click="getsure">
  10. <u-button type="success" size="small" class="u-reset-button" text="确定"></u-button>
  11. </view> -->
  12. </template>
  13. </uni-nav-bar>
  14. <u-form labelPosition="left" :model="formData" :rules="rules" ref="formRef" labelWidth="260" labelAlign="right" class="baseForm">
  15. <u-form-item label="物品类型" class="required-form" borderBottom prop="assetType">
  16. <view class="assetType_box" @click="openPicker">{{ assetTypeName ? assetTypeName : '请选择产品类型' }}</view>
  17. </u-form-item>
  18. <u-form-item label="出库场景" class="required-form" prop="bizType" borderBottom>
  19. <picker :disabled="!!(productList && productList.length)" @change="e => handlePicker(e, outputSceneState, 'bizType')" :value="pickerIndex" :range="outputSceneState" range-key="text">
  20. <u-input :value="sceneStateFilter(formData.bizType)" :disableColor="!!(productList && productList.length) ? '#F5F7FA' : '#fff'" placeholder="请选择" disabled type="select" />
  21. </picker>
  22. <u-icon slot="right" name="arrow-right"></u-icon>
  23. </u-form-item>
  24. <u-form-item label="来源单据" prop="documentSource" borderBottom>
  25. <u-input type="text" placeholder="请输入" v-model="formData.sourceBizNo" />
  26. </u-form-item>
  27. <u-form-item label="出库登记人" prop="createUserName" borderBottom>
  28. <u-input disableColor="#ffffff" :value="formData.createUserName" placeholder="请选择" disabled type="text" />
  29. </u-form-item>
  30. <u-form-item class="required-form" label="领料部门" prop="deliveryName" borderBottom>
  31. <view class="assetType_box" @click="openDepartmentPicker">{{ formData.extInfo.verifyDeptName ? formData.extInfo.verifyDeptName : '请选择领料部门' }}</view>
  32. </u-form-item>
  33. <u-form-item class="required-form" label="领料人" prop="deliveryPhone" borderBottom>
  34. <view class="assetType_box" @click="openUserPicker">{{ formData.fromUser ? formData.fromUser : '请选择领料人' }}</view>
  35. </u-form-item>
  36. <u-form-item label="备注" prop="remark" borderBottom>
  37. <u-input disableColor="#ffffff" :value="formData.remark" placeholder="请输入内容" type="text" />
  38. </u-form-item>
  39. </u-form>
  40. <uni-collapse ref="collapse" v-model="collapseOpen">
  41. <uni-collapse-item :typeOpen="1" title="" name="collapse1" :open="true" :key="detailOpen" :show-animation="true">
  42. <template v-slot:title>
  43. <view class="detail-box">
  44. <view data-v-41027c34="" class="uni-collapse-item__title-wrap">
  45. <view data-v-41027c34="" class="uni-collapse-item__title-box uni-collapse-item__title-box-base">
  46. <text data-v-41027c34="" class="tag tag-base"><text></text></text>
  47. <text data-v-41027c34="" class="uni-collapse-item__title-text"><text>出库明细</text></text>
  48. </view>
  49. </view>
  50. <!-- <u-button type="primary" size="small" text="扫码添加" @click.native.stop="selectType"></u-button> -->
  51. <u-button type="success" size="small" class="selectEnterType" text="手动添加" @click.native.stop="selectType"></u-button>
  52. </view>
  53. </template>
  54. <u-form
  55. labelPosition="left"
  56. :model="{ productList: productList }"
  57. ref="lisrFormRef"
  58. labelWidth="150"
  59. :rules="listRules"
  60. errorType="none"
  61. labelAlign="right"
  62. :labelStyle="{
  63. fontSize: '28rpx'
  64. }">
  65. <view class="listContent">
  66. <view class="listBox" v-for="(item, index) in productList" :key="index">
  67. <view class="listTit">
  68. <view class="name">{{ item.categoryCode }}</view>
  69. </view>
  70. <view class="listCont" :class="{ save: item.isSave }">
  71. <view class="item w100">
  72. <u-form-item :label="`物品名称`">
  73. {{ item.categoryName }}
  74. </u-form-item>
  75. </view>
  76. <view class="item w100">
  77. <u-form-item label="包装规格" prop="packingSpecificationLabel">
  78. <u-tag style="margin-right: 5rpx" v-for="ite in item.packingSpecificationLabel" :text="ite"></u-tag>
  79. </u-form-item>
  80. </view>
  81. <view class="item">
  82. <u-form-item label="批次号" :prop="`productList.${index}.batchNo`">
  83. {{ item.batchNo }}
  84. </u-form-item>
  85. </view>
  86. <view class="item">
  87. <u-form-item label="数量" :prop="`productList.${index}.packingQuantity`">
  88. {{ item.packingQuantity }}
  89. </u-form-item>
  90. </view>
  91. <view class="item">
  92. <u-form-item label="包装单位" :prop="`productList.${index}.packingUnit`">
  93. {{ item.packingUnit }}
  94. </u-form-item>
  95. </view>
  96. <view class="item">
  97. <u-form-item label="仓库" :prop="`productList.${index}.warehouseId`">
  98. {{ item.warehouseName }}
  99. </u-form-item>
  100. </view>
  101. <view class="item w100">
  102. <u-form-item label="供应商" :prop="`productList.${index}.supplierName`">
  103. {{ item.supplierName }}
  104. </u-form-item>
  105. </view>
  106. <view class="item">
  107. <u-form-item label="计量数量" prop="measureQuantity">{{ item.measureQuantity }}</u-form-item>
  108. </view>
  109. <view class="item">
  110. <u-form-item label="计量单位" prop="measureUnit">{{ item.measureUnit }}</u-form-item>
  111. </view>
  112. <view class="item">
  113. <u-form-item label="重量" prop="weight">{{ item.weight }}</u-form-item>
  114. </view>
  115. <view class="item">
  116. <u-form-item label="重量单位" prop="weightUnit">{{ item.weightUnit }}</u-form-item>
  117. </view>
  118. <view class="item">
  119. <u-form-item label="是否拆包" prop="isUnpack">{{ item.isUnpack ? '是' : '否' }}</u-form-item>
  120. </view>
  121. </view>
  122. <u-list @scrolltolower="scrolltolower" class="z_list" style="height: 100% !important">
  123. <view class="material rx-ss" v-for="(ite, idx) in item.outInDetailRecordRequestList" :key="idx">
  124. <view class="content_table">
  125. <view class="item">
  126. <view class="lable rx-cc">序号</view>
  127. <view class="content">{{ idx + 1 }}</view>
  128. </view>
  129. <view class="item">
  130. <view class="lable rx-cc">包装编码</view>
  131. <view class="content">{{ ite.packageNo }}</view>
  132. </view>
  133. <view class="item">
  134. <view class="lable rx-cc">包装数量({{ ite.packingUnit }})</view>
  135. <view class="content">{{ ite.packingQuantity }}</view>
  136. </view>
  137. <view class="item">
  138. <view class="lable rx-cc">计量数量({{ ite.measureUnit }})</view>
  139. <view class="content">{{ ite.measureQuantity }}</view>
  140. </view>
  141. <view class="item">
  142. <view class="lable rx-cc">物料代号</view>
  143. <view class="content">{{ ite.materielDesignation }}</view>
  144. </view>
  145. <view class="item">
  146. <view class="lable rx-cc">客户代号</view>
  147. <view class="content">{{ ite.clientCode }}</view>
  148. </view>
  149. <view class="item">
  150. <view class="lable rx-cc">刻码</view>
  151. <view class="content">{{ ite.engrave }}</view>
  152. </view>
  153. <view class="item">
  154. <view class="lable rx-cc">重量({{ ite.weightUnit }})</view>
  155. <view class="content">
  156. {{ ite.weight }}
  157. </view>
  158. </view>
  159. <view class="item">
  160. <view class="lable rx-cc">质检状态</view>
  161. <view class="content">
  162. {{ qualityResults[ite.status] }}
  163. </view>
  164. </view>
  165. <view class="item">
  166. <view class="lable rx-cc">采购日期</view>
  167. <view class="content">
  168. {{ ite.purchaseDate }}
  169. </view>
  170. </view>
  171. <view class="item">
  172. <view class="lable rx-cc">生产日期</view>
  173. <view class="content">
  174. {{ ite.productionDate }}
  175. </view>
  176. </view>
  177. </view>
  178. </view>
  179. </u-list>
  180. </view>
  181. </view>
  182. </u-form>
  183. </uni-collapse-item>
  184. </uni-collapse>
  185. <view class="footBox">
  186. <view class="reg" @click="submit">
  187. <uni-icons custom-prefix="iconfont" size="20" color="#fff"></uni-icons>
  188. 提交
  189. </view>
  190. </view>
  191. <!-- 选择物品类型 -->
  192. <ba-tree-picker ref="treePicker" :multiple="true" @select-change="confirm" title="选择物品类型" :localdata="goodsLists" valueKey="id" textKey="name" childrenKey="child" />
  193. <!-- 选择领料部门 -->
  194. <ba-tree-picker
  195. ref="departmentPicker"
  196. :multiple="false"
  197. @select-change="departmentConfirm"
  198. title="选择领料部门"
  199. :localdata="departmentOption"
  200. valueKey="id"
  201. textKey="name"
  202. childrenKey="children" />
  203. <!-- 选择领料人 -->
  204. <ba-tree-picker ref="userPicker" :multiple="false" @select-change="userConfirm" title="选择领料人" :localdata="userOption" valueKey="id" textKey="name" childrenKey="children" />
  205. </view>
  206. </template>
  207. <script>
  208. // import ScanCode from '@/components/ScanCode.vue'
  209. import { toTreeData } from '@/utils/utils.js'
  210. import {
  211. getTreeByGroup,
  212. contactQueryByCategoryIdsAPI,
  213. getCode,
  214. getCategoryPackageDisposition,
  215. getWarehouseList,
  216. getAssetNum,
  217. storage,
  218. qualityInspectionTwo,
  219. submitTwo
  220. } from '@/api/warehouseManagement'
  221. import { listOrganizations, getUserPage } from '@/api/common'
  222. import { getByCode } from '@/api/pda/common'
  223. import dayjs from 'dayjs'
  224. import { outputSceneState } from '../common'
  225. import { post, postJ, get, getJ } from '@/utils/api.js'
  226. import WarehouseChoose from '@/components/WarehouseChoose'
  227. import { warehousingType, inputStatus, emergencyState, warehousingMaterialListTable, getDictName, materialType } from '../enum.js'
  228. import baTreePicker from '@/components/ba-tree-picker/ba-tree-picker.vue'
  229. // import addDetails from '@/components/addDetails'
  230. import UploadFileNew from '@/components/UploadFileNew'
  231. // import dictMixins from '@/mixins/dictMixins.js'
  232. export default {
  233. components: {
  234. WarehouseChoose,
  235. baTreePicker,
  236. UploadFileNew
  237. },
  238. data() {
  239. return {
  240. userOption: [], // 用户列表
  241. departmentOption: [], // 部门列表
  242. goodsLists: [], // 物品类型
  243. assetTypeName: '', // 物品类型名称
  244. timeShow: false,
  245. packingSpecificationOption: [], // 包装规格
  246. currentPackingSpecificationOption: [], // 当前包装规格
  247. currentSupplierListOption: [], // 当前供货商
  248. warehouseListOption: [], // 仓库列表
  249. currentTypeTime: Number(new Date()), // 当前时间类型的时间
  250. storageTime: '', // 入库时间
  251. currentProductIndex: null, // 当前产品索引
  252. currentPackingIndex: null, // 当前包装索引
  253. packingUnitsShow: false,
  254. typeTimeShow: false,
  255. suppliersShow: false,
  256. warehouseShow: false,
  257. timeTypeShow: false,
  258. statusShow: false,
  259. dictCodeList: [], // 字典列表
  260. curDateType: 'purchaseDate',
  261. qualityResultsOption: [
  262. [
  263. {
  264. label: '合格',
  265. value: 1
  266. },
  267. {
  268. label: '不合格',
  269. value: 2
  270. }
  271. ]
  272. ], // 质检状态 0未检 1已检
  273. qualityResults: {
  274. 1: '合格',
  275. 2: '不合格'
  276. }, // 质检结果 1合格 2不合格
  277. curDateTypeLabel: {
  278. purchaseDate: '采购日期',
  279. productionDate: '生产日期'
  280. },
  281. timeTypeOption: [
  282. [
  283. {
  284. name: '采购日期',
  285. prop: 'purchaseDate'
  286. },
  287. {
  288. name: '生产日期',
  289. prop: 'productionDate'
  290. }
  291. ]
  292. ], // 时间类型
  293. collapseOpen: 'collapse1',
  294. emergencyState,
  295. warehousingType,
  296. materialType,
  297. outputSceneState,
  298. inputStatus,
  299. getDictName,
  300. detailOpen: false,
  301. codeOpen: false,
  302. deptList: [], //部门
  303. supplierList: [], //供应商
  304. formData: {
  305. type: 1, // 入库
  306. bizType: '1', // 入库场景
  307. storageTime: '', // 入库时间
  308. extInfo: {}, // 扩展信息
  309. sourceBizNo: '', // 来源单据编号
  310. fromUser: '', // 送货人
  311. remark: '' // 备注
  312. },
  313. statusList: [
  314. {
  315. id: 1,
  316. name: '紧急'
  317. },
  318. {
  319. id: 2,
  320. name: '中等'
  321. },
  322. {
  323. id: 1,
  324. name: '普通'
  325. }
  326. ], //紧急状态
  327. pickerIndex: 0,
  328. productList: [],
  329. userList: [],
  330. rules: {
  331. assetType: {
  332. type: 'number',
  333. required: true,
  334. message: '请选择入库产品类型',
  335. trigger: ['blur', 'change']
  336. },
  337. bizType: {
  338. type: 'number',
  339. required: true,
  340. message: '请选择入库场景',
  341. trigger: ['blur', 'change']
  342. }
  343. // contentImage: {
  344. // type: 'array',
  345. // required: true,
  346. // message: '请上传附件',
  347. // trigger: ['blur', 'change']
  348. // }
  349. },
  350. settingIndex: 0
  351. }
  352. },
  353. onShow() {
  354. this.collapseOpen = 'collapse1'
  355. },
  356. beforeDestroy() {
  357. uni.$off('setSelectList') // 每次进来先 移除全局自定义事件监听器
  358. },
  359. onLoad() {
  360. this.getListItems() // 物品类型
  361. this.initDeptData() // 部门列表
  362. const userInfo = uni.getStorageSync('userInfo')
  363. this.formData.createUserName = userInfo.name
  364. uni.$on('setSelectList', async data => {
  365. if (data?.length) {
  366. console.log(data)
  367. setTimeout(() => {
  368. this.detailOpen = !this.detailOpen
  369. this.$refs.collapse && this.$refs.collapse.resize()
  370. }, 0)
  371. }
  372. })
  373. // 明细信息填写
  374. uni.$on('batchNumBack', productList => {
  375. if (productList?.length) {
  376. this.productList = productList
  377. }
  378. })
  379. },
  380. mounted() {
  381. // this.getAddDetails();
  382. },
  383. computed: {
  384. listRules() {
  385. return this.productList.reduce((cur, pre, index) => {
  386. return {
  387. ...cur,
  388. [`productList.${index}.batchNo`]: {
  389. type: 'string',
  390. required: true,
  391. trigger: ['blur', 'change']
  392. },
  393. [`productList.${index}.packingQuantity`]: {
  394. type: 'number',
  395. required: true,
  396. trigger: ['blur', 'change']
  397. },
  398. [`productList.${index}.packingUnit`]: {
  399. type: 'string',
  400. required: true,
  401. trigger: ['blur', 'change']
  402. },
  403. [`productList.${index}.warehouseId`]: {
  404. type: 'string',
  405. required: true,
  406. trigger: ['blur', 'change']
  407. }
  408. }
  409. }, {})
  410. }
  411. },
  412. methods: {
  413. // 部门列表
  414. async initDeptData() {
  415. let deptTreeList = await listOrganizations()
  416. this.departmentOption = toTreeData({
  417. data: deptTreeList,
  418. idField: 'id',
  419. parentIdField: 'parentId'
  420. })
  421. },
  422. async getStaffList(id) {
  423. uni.showLoading({
  424. title: '加载中',
  425. mask: true
  426. })
  427. let res = await getUserPage({
  428. groupId: id,
  429. size: 9999,
  430. page: 1
  431. })
  432. uni.hideLoading()
  433. this.userOption = res.list
  434. },
  435. // 打开领料部门选择器
  436. openDepartmentPicker() {
  437. this.$refs.departmentPicker._show()
  438. },
  439. // 打开领料人选择器
  440. openUserPicker() {
  441. this.$refs.userPicker._show()
  442. },
  443. sceneStateFilter(bizType) {
  444. if (bizType) {
  445. return this.outputSceneState.filter(item => item.value == bizType)[0].text
  446. }
  447. },
  448. formatter(dataTime) {
  449. return dayjs(dataTime).format('YYYY-MM-DD HH:mm:ss')
  450. },
  451. openPicker() {
  452. this.$refs.treePicker._show()
  453. },
  454. // 获取物品列表
  455. getListItems() {
  456. getTreeByGroup({ type: 2 }).then(res => {
  457. this.goodsLists = res
  458. })
  459. },
  460. selectType() {
  461. if (!this.formData.extInfo.assetType) {
  462. uni.showToast({
  463. title: '请选择出库类型',
  464. icon: 'none'
  465. })
  466. return
  467. }
  468. if (!this.formData.bizType) {
  469. uni.showToast({
  470. title: '请选择出库场景',
  471. icon: 'none'
  472. })
  473. return
  474. }
  475. // const storageKey = Date.now() + ''
  476. // uni.setStorageSync(storageKey, this.warehousingMaterialList)
  477. uni.navigateTo({
  478. url: '/pages/warehouse/outHouse/selectOutType?assetType=' + this.formData.extInfo.assetType
  479. })
  480. },
  481. userConfirm(data, name) {
  482. this.formData.fromId = data[0]
  483. this.formData.fromUser = name
  484. },
  485. departmentConfirm(data, name, allList) {
  486. this.formData.extInfo.verifyDeptCode = data[0]
  487. this.formData.extInfo.verifyDeptName = name
  488. this.formData.fromId = ''
  489. this.formData.fromUser = ''
  490. this.getStaffList(data[0])
  491. },
  492. confirm(data, name, allList) {
  493. this.assetTypeName = name
  494. this.formData.extInfo.assetType = allList.map(item => item.id)
  495. },
  496. // 抬头下拉信息保存
  497. handlePicker(e, list, idKey, nameKey) {
  498. if (idKey) {
  499. this.formData[idKey] = list[e?.detail.value]?.value
  500. }
  501. if (nameKey) {
  502. this.formData[nameKey] = list[e?.detail.value]?.text
  503. }
  504. this.$nextTick(() => {
  505. if (idKey === 'assetType' || idKey === 'bizType') {
  506. this.$refs.formRef.validateField(idKey)
  507. }
  508. })
  509. },
  510. // 部门确认
  511. deptConfirm(data, name) {
  512. this.formData.deptName = name
  513. this.formData.deptCode = data[0]
  514. },
  515. // 部门确认
  516. verifyDeptConfirm(data, name) {
  517. this.formData.verifyDeptCode = data[0]
  518. this.formData.verifyDeptName = name
  519. this.formData.verifyId = ''
  520. this.formData.verifyName = ''
  521. this.getUser(data[0])
  522. }
  523. }
  524. }
  525. </script>
  526. <style lang="scss" scoped>
  527. .mainBox {
  528. padding-bottom: 120rpx;
  529. /deep/.required-form .u-form-item__body__left__content__label::before {
  530. content: '*';
  531. color: red;
  532. }
  533. }
  534. .required-form-text {
  535. /deep/ .u-form-item__body__right {
  536. overflow: hidden;
  537. .u-form-item__body__right__content {
  538. width: 100%;
  539. display: inline-block !important;
  540. width: 100%;
  541. }
  542. }
  543. }
  544. .picList {
  545. display: flex;
  546. align-items: center;
  547. justify-items: flex-start;
  548. flex-wrap: wrap;
  549. }
  550. /deep/.baseForm {
  551. .u-form-item__body {
  552. padding: 0px !important;
  553. }
  554. .assetType_box {
  555. padding: 12rpx 18rpx;
  556. width: 100%;
  557. overflow: hidden;
  558. white-space: nowrap;
  559. text-overflow: ellipsis;
  560. }
  561. }
  562. /deep/.picList .u-image {
  563. margin-right: 10rpx;
  564. margin-bottom: 10rpx;
  565. }
  566. /deep/.cLine .u-line:nth-child(1) {
  567. border-bottom: none !important;
  568. }
  569. .detail-box {
  570. position: relative;
  571. display: flex;
  572. justify-content: space-between;
  573. align-items: center;
  574. /deep/uni-button {
  575. margin: 0 !important;
  576. width: 180rpx;
  577. }
  578. .selectEnterType {
  579. margin-left: 10rpx !important;
  580. }
  581. }
  582. .footBox {
  583. position: fixed;
  584. left: 0px;
  585. bottom: 0px;
  586. height: 100rpx;
  587. width: 100%;
  588. display: flex;
  589. align-items: center;
  590. justify-content: space-between;
  591. view {
  592. width: 100%;
  593. height: 100%;
  594. text-align: center;
  595. color: #fff;
  596. display: flex;
  597. align-items: center;
  598. justify-content: center;
  599. }
  600. .reg {
  601. background: $u-success-dark;
  602. }
  603. .add {
  604. background: $uni-color-primary;
  605. }
  606. .uni-icons {
  607. margin-right: 8rpx !important;
  608. }
  609. }
  610. .listBox {
  611. padding: 20rpx 10rpx;
  612. border-bottom: 1px #f2f2f2 solid;
  613. position: relative;
  614. &.code {
  615. .label {
  616. width: 120rpx !important;
  617. }
  618. }
  619. .listTit {
  620. width: 100%;
  621. display: flex;
  622. justify-content: space-between;
  623. align-items: center;
  624. /deep/uni-button {
  625. margin-right: 20rpx;
  626. width: 100rpx;
  627. &.assets {
  628. width: 180rpx;
  629. }
  630. }
  631. .name {
  632. width: 50%;
  633. margin-left: 10px;
  634. overflow: hidden;
  635. white-space: nowrap;
  636. -o-text-overflow: ellipsis;
  637. text-overflow: ellipsis;
  638. font-size: 30rpx;
  639. }
  640. .btn {
  641. display: flex;
  642. justify-content: flex-end;
  643. }
  644. .weight {
  645. width: 30%;
  646. font-size: 30rpx;
  647. margin-left: auto;
  648. margin-right: 60rpx;
  649. position: relative;
  650. display: flex;
  651. input {
  652. margin-right: 10rpx;
  653. border: 1px solid black;
  654. width: 40%;
  655. height: 20rpx;
  656. }
  657. }
  658. .weight::after {
  659. position: absolute;
  660. right: -30rpx;
  661. top: 50%;
  662. content: '';
  663. background: #eee;
  664. width: 1px;
  665. height: 28rpx;
  666. margin-top: -14rpx;
  667. }
  668. }
  669. .z_list {
  670. max-height: 500rpx;
  671. .material {
  672. margin-top: 10rpx;
  673. .left {
  674. width: 40rpx;
  675. }
  676. .zdy_check {
  677. width: 30rpx;
  678. height: 30rpx;
  679. border: 2rpx solid #c8c9cc;
  680. border-radius: 4rpx;
  681. }
  682. .check_active {
  683. background: $theme-color;
  684. border: 2rpx solid $theme-color;
  685. /deep/ .u-icon__icon {
  686. color: #fff !important;
  687. }
  688. }
  689. .content_table {
  690. width: 670rpx;
  691. border: 2rpx solid $border-color;
  692. .item {
  693. display: flex;
  694. border-bottom: 2rpx solid $border-color;
  695. .lable {
  696. width: 200rpx;
  697. text-align: center;
  698. background-color: #f7f9fa;
  699. font-size: 26rpx;
  700. border-right: 2rpx solid $border-color;
  701. flex-shrink: 0;
  702. }
  703. .ww80 {
  704. width: 80rpx;
  705. }
  706. .content {
  707. width: 500rpx;
  708. min-height: 64rpx;
  709. font-size: 28rpx;
  710. line-height: 28rpx;
  711. font-style: normal;
  712. font-weight: 400;
  713. padding: 18rpx 8rpx;
  714. box-sizing: border-box;
  715. word-wrap: break-word;
  716. flex-grow: 1 !important;
  717. }
  718. .input_box {
  719. padding: 0 !important;
  720. }
  721. .content_num {
  722. display: flex;
  723. align-items: center;
  724. padding: 0 4rpx;
  725. /deep/ .uni-input-input {
  726. width: 200rpx;
  727. border: 2rpx solid #f0f8f2;
  728. background: #f0f8f2;
  729. color: $theme-color;
  730. }
  731. .unit {
  732. padding: 0 4rpx;
  733. font-size: 24rpx;
  734. color: #404446;
  735. }
  736. }
  737. .ww400 {
  738. /deep/ .uni-input-input {
  739. width: 400rpx;
  740. }
  741. }
  742. .pd4 {
  743. padding: 4rpx 8rpx;
  744. }
  745. &:last-child {
  746. border-bottom: none;
  747. }
  748. }
  749. .ww55 {
  750. width: 55%;
  751. }
  752. .ww45 {
  753. width: 45%;
  754. }
  755. .ww50 {
  756. width: 50%;
  757. }
  758. .ww30 {
  759. width: 30%;
  760. }
  761. .ww70 {
  762. width: 70%;
  763. }
  764. .ww80 {
  765. width: 80%;
  766. }
  767. .ww20 {
  768. width: 20%;
  769. }
  770. .check {
  771. width: 30rpx;
  772. height: 30rpx;
  773. }
  774. .tag_box {
  775. padding: 2rpx 10rpx;
  776. margin-right: 12rpx;
  777. background: #e6a23c;
  778. font-size: 22rpx;
  779. color: #fff;
  780. border-radius: 4rpx;
  781. }
  782. }
  783. }
  784. }
  785. .more {
  786. position: absolute;
  787. bottom: 26rpx;
  788. right: 30rpx;
  789. font-size: 28rpx;
  790. color: #666;
  791. }
  792. }
  793. .listCont {
  794. display: flex;
  795. align-items: center;
  796. flex-wrap: wrap;
  797. margin-top: 20rpx;
  798. margin-left: 10rpx;
  799. &.save {
  800. .u-input {
  801. border: none;
  802. }
  803. }
  804. .u-input {
  805. border: 1px solid rgb(229, 229, 229);
  806. height: 15rpx !important;
  807. }
  808. .item {
  809. width: 47%;
  810. font-size: 28rpx;
  811. margin-bottom: 10rpx;
  812. margin-right: 3%;
  813. // line-height: 45rpx;
  814. // overflow: hidden;
  815. // white-space: nowrap;
  816. // text-overflow: ellipsis;
  817. // -o-text-overflow: ellipsis;
  818. // color: #000;
  819. // display: flex;
  820. /deep/.u-form-item__body {
  821. padding: 0 !important;
  822. }
  823. /deep/.u-input__content__field-wrapper__field,
  824. /deep/.u-form-item {
  825. font-size: 28rpx !important;
  826. }
  827. text.label {
  828. width: 120rpx;
  829. display: inline-block;
  830. text-align: right;
  831. margin-right: 20rpx;
  832. margin-bottom: 20rpx;
  833. }
  834. /deep/.uni-date__x-input {
  835. height: 40rpx;
  836. font-size: 28rpx;
  837. }
  838. /deep/.uni-date {
  839. width: 48%;
  840. display: inline-block;
  841. .uni-icons {
  842. display: none !important;
  843. }
  844. .uni-date-x {
  845. padding: 0 !important;
  846. }
  847. }
  848. }
  849. .item text {
  850. color: #666;
  851. }
  852. }
  853. .selectTime {
  854. display: flex;
  855. justify-content: flex-end;
  856. margin-bottom: 10rpx;
  857. .timeBox {
  858. display: flex;
  859. width: 500rpx;
  860. .firstBtn {
  861. margin-right: 10rpx;
  862. }
  863. }
  864. }
  865. .listBox:last-child {
  866. border: none !important;
  867. }
  868. .textBox {
  869. border: 1px #f2f2f2 solid;
  870. height: 160px;
  871. display: block;
  872. width: auto !important;
  873. }
  874. .saveBtn {
  875. width: 50%;
  876. margin: 40rpx auto;
  877. }
  878. .top-css {
  879. border-bottom: 1px solid rgb(207, 204, 204);
  880. }
  881. </style>