Elizabeth's proactive approach involves introducing urinal toilet attachment , an ingenious concept that optimizes space and functionality.

drugStockInOrderAdd.vue 24KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755
  1. <template>
  2. <div class="main-contain">
  3. <div class="position">
  4. <bread-crumb v-if="type == 1" :crumbs='crumbs'></bread-crumb>
  5. <bread-crumb v-if="type == 2" :crumbs='crumbs2'></bread-crumb>
  6. <div style="float:right;">
  7. <el-button size="small" @click="back()" class="filter-item">取 消</el-button>
  8. <el-button size="small" type="primary" @click="submit()" class="filter-item">保 存</el-button>
  9. </div>
  10. </div>
  11. <div class="app-container">
  12. <!--<stock-in-dialog ref="dialog" :propForm="propForm"-->
  13. <!--:visibility="isVisibility"-->
  14. <!--v-on:dialog-comfirm="comfirm"-->
  15. <!--v-on:dialog-cancle="cancle"></stock-in-dialog>-->
  16. <drugs-stock-dialog
  17. ref="dialog"
  18. :propForm="propForm"
  19. :visibility="isVisibility"
  20. v-on:dialog-comfirm="comfirm"
  21. v-on:dialog-cancle="cancle"
  22. ></drugs-stock-dialog>
  23. <div class="cell clearfix">
  24. <label class="title"><span class="name">入库时间</span> : </label>
  25. <el-date-picker size="small" v-model="warehousing_time" prefix-icon="el-icon-date" :editable="false"
  26. style="width: 196px;" type="date" placeholder="选择日期时间" align="right" format="yyyy-MM-dd"
  27. value-format="yyyy-MM-dd"></el-date-picker>
  28. </div>
  29. <div class="cell clearfix">
  30. <label class="title"><span class="name">经销商</span> : </label>
  31. <el-select size="small" v-model="form.dealer" filterable placeholder="请选择经销商" @change="changeDealer">
  32. <el-option
  33. v-for="(option, index) in dealer"
  34. :key="index"
  35. :label="option.dealer_name"
  36. :value="option.id">
  37. </el-option>
  38. </el-select>
  39. </div>
  40. <div class="cell clearfix">
  41. <label class="title"><span class="name">厂商</span> : </label>
  42. <el-select size="small" v-model="form.manufacturer" filterable placeholder="请选择厂商"
  43. @change="changeManufacturer">
  44. <el-option
  45. v-for="(option, index) in manufacturer"
  46. :key="index"
  47. :label="option.manufacturer_name"
  48. :value="option.id">
  49. </el-option>
  50. </el-select>
  51. </div>
  52. <el-form :rules="tableRules" :model="recordInfo" ref="tableForm">
  53. <el-table
  54. id="oictable"
  55. :data="recordInfo.recordData"
  56. :class="signAndWeighBoxPatients"
  57. style="width: 100%"
  58. border
  59. max-height="450"
  60. :header-cell-style="{ backgroundColor: 'rgb(245, 247, 250)' }"
  61. >
  62. <el-table-column align="center" width="200">
  63. <template slot="header" slot-scope="scope">
  64. <span>药品名称<span style="color: red">*</span></span>
  65. </template>
  66. <template slot-scope="scope">
  67. <el-form-item style="padding-top: 15px">
  68. <el-input
  69. placeholder="请输入药品名称"
  70. v-model="scope.row.drug_id"
  71. :value="typeName(scope.row.drug_id)"
  72. @focus="showDialog(scope.$index, scope.row)"
  73. ></el-input>
  74. </el-form-item>
  75. </template>
  76. </el-table-column>
  77. <el-table-column align="center" width="200">
  78. <template slot="header" slot-scope="scope">
  79. <span>规格名称<span style="color: red">*</span></span>
  80. </template>
  81. <template slot-scope="scope">
  82. <el-form-item style="padding-top: 15px">
  83. <el-input
  84. placeholder="请输入规格名称"
  85. v-model="scope.row.drug_id"
  86. :value="specificationName(scope.row.drug_id)"
  87. @focus="showDialog(scope.$index, scope.row)"
  88. ></el-input>
  89. </el-form-item>
  90. </template>
  91. </el-table-column>
  92. <el-table-column align="center" width="150">
  93. <template slot="header" slot-scope="scope">
  94. <span>进价<span style="color: red">*</span></span>
  95. </template>
  96. <template slot-scope="scope">
  97. <!--<el-input type="number" v-model="scope.row.price" @blur="handleBlur(scope.$index, scope.row)"></el-input>-->
  98. <el-form-item
  99. :prop="'recordData.' + scope.$index + '.price'"
  100. :rules="tableRules.price"
  101. style="padding-top: 17px"
  102. >
  103. <el-input
  104. placeholder="请输入单价"
  105. type="number"
  106. v-model="scope.row.price"
  107. ></el-input>
  108. </el-form-item>
  109. </template>
  110. </el-table-column>
  111. <el-table-column align="center" width="180">
  112. <template slot="header" slot-scope="scope">
  113. <span>单位<span style="color: red">*</span></span>
  114. </template>
  115. <template slot-scope="scope">
  116. <el-form-item
  117. :prop="'recordData.' + scope.$index + '.min_unit'"
  118. :rules="tableRules.min_unit"
  119. style="padding-top: 17px"
  120. >
  121. <el-select v-model="scope.row.min_unit" style="width:160px;" placeholder="请选择">
  122. <el-option
  123. v-for="(item,index) in getDataConfig('hemodialysis','units')"
  124. :key="index"
  125. :label="item.name"
  126. :value="item.name">
  127. </el-option>
  128. </el-select>
  129. </el-form-item>
  130. </template>
  131. </el-table-column>
  132. <el-table-column align="center" width="180">
  133. <template slot="header" slot-scope="scope">
  134. <span>入库数量<span style="color: red">*</span></span>
  135. </template>
  136. <template slot-scope="scope">
  137. <!--{{scope.row.warehousing_count}}-->
  138. <!--<el-input type="number" v-model="scope.row.warehousing_count" @blur="handleBlur(scope.$index, scope.row)"></el-input>-->
  139. <el-form-item
  140. :prop="'recordData.' + scope.$index + '.warehousing_count'"
  141. :rules="tableRules.warehousing_count"
  142. style="padding-top: 17px"
  143. >
  144. <el-input
  145. placeholder="请输入入库数量"
  146. type="number"
  147. v-model="scope.row.warehousing_count"
  148. ></el-input>
  149. </el-form-item>
  150. </template>
  151. </el-table-column>
  152. <el-table-column label="进价总价" align="center" width="150">
  153. <template slot-scope="scope">
  154. {{ calculate(scope.row.price * scope.row.warehousing_count) }}
  155. </template>
  156. </el-table-column>
  157. <el-table-column label="零售价" align="center" width="150">
  158. <template slot-scope="scope">
  159. {{ scope.row.retail_price }}
  160. </template>
  161. </el-table-column>
  162. <el-table-column label="零价总价" align="center" width="150">
  163. <template slot-scope="scope">
  164. {{ calculate(scope.row.retail_price * scope.row.warehousing_count) }}
  165. </template>
  166. </el-table-column>
  167. <el-table-column align="center" width="150">
  168. <template slot="header" slot-scope="scope">
  169. <span>批号</span>
  170. </template>
  171. <template slot-scope="scope">
  172. <el-form-item>
  173. <el-input
  174. placeholder="请输入批号"
  175. v-model="scope.row.number"
  176. ></el-input>
  177. </el-form-item>
  178. </template>
  179. </el-table-column>
  180. <el-table-column label="生产日期" width="250" align="center">
  181. <template slot-scope="scope">
  182. <!--{{scope.row.product_date | parseTime("{y}-{m}-{d}")}}-->
  183. <el-date-picker
  184. prefix-icon="el-icon-date"
  185. style="width: 145px"
  186. v-model="scope.row.product_date"
  187. type="date"
  188. placeholder="选择日期时间"
  189. format="yyyy-MM-dd"
  190. value-format="yyyy-MM-dd"
  191. ></el-date-picker>
  192. </template>
  193. </el-table-column>
  194. <el-table-column label="有效日期" width="250" align="center">
  195. <template slot-scope="scope">
  196. <!--{{ scope.row.expiry_date | parseTime("{y}-{m}-{d}")}}-->
  197. <el-date-picker
  198. prefix-icon="el-icon-date"
  199. style="width: 145px"
  200. v-model="scope.row.expiry_date"
  201. type="date"
  202. placeholder="选择日期时间"
  203. format="yyyy-MM-dd"
  204. value-format="yyyy-MM-dd"
  205. ></el-date-picker>
  206. </template>
  207. </el-table-column>
  208. <el-table-column label="备注" width="150" align="center">
  209. <template slot-scope="scope">
  210. <el-input v-model="scope.row.remark"></el-input>
  211. </template>
  212. </el-table-column>
  213. <el-table-column
  214. label="操作"
  215. fixed="right"
  216. align="center"
  217. width="150"
  218. >
  219. <template slot-scope="scope">
  220. <el-tooltip
  221. class="item"
  222. effect="dark"
  223. content="新增"
  224. placement="top"
  225. >
  226. <el-button
  227. size="mini"
  228. type="primary"
  229. icon="el-icon-circle-plus-outline"
  230. @click="handleEdit(scope.$index, scope.row)"
  231. >
  232. </el-button>
  233. </el-tooltip>
  234. <el-tooltip
  235. class="item"
  236. effect="dark"
  237. content="删除"
  238. placement="top"
  239. >
  240. <el-button
  241. size="mini"
  242. type="danger"
  243. icon="el-icon-delete"
  244. @click="handleDelete(scope.$index, scope.row)"
  245. >
  246. </el-button>
  247. </el-tooltip>
  248. </template>
  249. </el-table-column>
  250. </el-table>
  251. </el-form>
  252. </div>
  253. </div>
  254. </template>
  255. <script>
  256. import { uParseTime } from '@/utils/tools'
  257. import {
  258. GetAllConfig,
  259. GetAllDrugInfoByID,
  260. postDrugWarehouse
  261. } from "@/api/drug/drug_stock";
  262. import BreadCrumb from '../../components/bread-crumb'
  263. import DrugsStockDialog from './drugsStockDialog/index'
  264. import {getDataConfig } from "@/utils/data";
  265. export default {
  266. components: { DrugsStockDialog, BreadCrumb },
  267. name: 'stockIn',
  268. data() {
  269. var checkGoodId = (rule, value, callback) => {
  270. setTimeout(() => {
  271. if (value == '' || value == 0) {
  272. return callback(new Error('规格名称不能为空'))
  273. }
  274. }, 2000)
  275. }
  276. return {
  277. crumbs: [
  278. { path: false, name: '库存管理' },
  279. { path: false, name: "药品入库单" },
  280. { path: false, name: "新增入库单" }
  281. ],
  282. crumbs2: [
  283. { path: false, name: '库存管理' },
  284. { path: false, name: '其他入库单' },
  285. { path: false, name: '新增入库单' }
  286. ],
  287. signAndWeighBoxPatients: 'sign-and-weigh-box-patients',
  288. warehousing_time: '',
  289. adminUserOptions: null,
  290. currentIndex: 0,
  291. recordInfo: {
  292. recordData: [],
  293. stock_in_code: '',
  294. current_index: ''
  295. },
  296. tableRules: {
  297. price: [
  298. { required: true, message: '单价不能为空', trigger: 'blur' }
  299. ],
  300. warehousing_count: [
  301. { required: true, message: '数量不能为空', trigge: 'blur' }
  302. ],
  303. good_id: [
  304. { validator: checkGoodId, trigger: 'blur' }
  305. ],
  306. min_unit:[
  307. {required:true,message:'单位不能为空',trigger:'blur'}
  308. ]
  309. },
  310. type: this.$route.query.type,
  311. total: '',
  312. product_date: '',
  313. expiry_date: '',
  314. numbers: '',
  315. // prop
  316. isVisibility: false,
  317. propForm: {
  318. goods: [],
  319. goodType: [],
  320. goodInfo: [],
  321. goodUnit: [],
  322. title: '入库',
  323. formValue: {
  324. good_type_id: '',
  325. good_id: '',
  326. number: '',
  327. product_date: '',
  328. expiry_date: '',
  329. warehousing_count: '',
  330. price: '',
  331. remark: '',
  332. dealer: '',
  333. manufacturer: ''
  334. },
  335. isCreated: 1
  336. },
  337. form: {
  338. manufacturer: '',
  339. dealer: ''
  340. },
  341. formValue: {
  342. good_type_id: '',
  343. good_id: '',
  344. number: '',
  345. product_date: '',
  346. expiry_date: '',
  347. warehousing_count: '',
  348. price: '',
  349. remark: '',
  350. dealer: '',
  351. manufacturer: ''
  352. },
  353. manufacturer: [],
  354. dealer: [],
  355. goodType: [],
  356. goodInfo:[]
  357. }
  358. },
  359. methods: {
  360. handleSave: function() {
  361. if (this.recordInfo.recordData.length <= 0) {
  362. this.$message.error('请添加入库信息')
  363. return
  364. }
  365. sessionStorage.removeItem('warehousing_orders')
  366. this.$router.back(-1)
  367. }, handleCancle: function() {
  368. this.$confirm('是否放弃编辑返回上一页?', '放弃编辑', {
  369. confirmButtonText: '确定',
  370. cancelButtonText: '取消',
  371. type: 'warning'
  372. }).then(() => {
  373. sessionStorage.removeItem('warehousing_orders')
  374. this.$router.back(-1)
  375. }).catch(() => {
  376. })
  377. }, handleCreate: function() {
  378. this.propForm.formValue = {}
  379. this.propForm.isCreated = 1
  380. this.isVisibility = true
  381. },
  382. comfirm: function(val) {
  383. console.log("Val2222222",val)
  384. this.$refs.dialog.hide()
  385. if (val.selectedGoodInfo.length > 0) {
  386. for (let i = val.selectedGoodInfo.length - 1; i >= 0; i--) {
  387. if (i == 0) {
  388. this.recordInfo.recordData[this.currentIndex].drug_id = val.selectedGoodInfo[i].id
  389. this.recordInfo.recordData[this.currentIndex].price = val.selectedGoodInfo[i].last_price.toString()
  390. this.recordInfo.recordData[this.currentIndex].retail_price = val.selectedGoodInfo[i].retail_price.toString()
  391. this.recordInfo.recordData[this.currentIndex].min_unit = val.selectedGoodInfo[i].min_unit
  392. } else {
  393. const tempForm = {}
  394. tempForm["id"] = 0;
  395. tempForm['drug_id'] = val.selectedGoodInfo[i].id
  396. tempForm['number'] = ''
  397. tempForm['product_date'] = ''
  398. tempForm['expiry_date'] = ''
  399. tempForm['warehousing_count'] = ''
  400. tempForm['retail_price'] = val.selectedGoodInfo[i].retail_price.toString()
  401. tempForm['price'] = val.selectedGoodInfo[i].last_price.toString()
  402. tempForm['remark'] = ''
  403. tempForm['dealer'] = ''
  404. tempForm['manufacturer'] = ''
  405. tempForm['min_unit']= val.selectedGoodInfo[i].min_unit
  406. this.recordInfo.recordData.splice(this.currentIndex + 1, 0, tempForm)
  407. }
  408. }
  409. }
  410. this.currentIndex = -1
  411. },
  412. cancle: function() {
  413. this.$refs.dialog.hide()
  414. },
  415. GetConfigInfo: function() {
  416. const loading = this.$loading({
  417. lock: true,
  418. text: 'Loading',
  419. spinner: 'el-icon-loading',
  420. background: 'rgba(0, 0, 0, 0.7)'
  421. })
  422. GetAllConfig().then(response => {
  423. if (response.data.state == 0) {
  424. this.$message.error(response.data.msg)
  425. return false
  426. } else {
  427. this.manufacturer = response.data.data.manufacturer;
  428. this.dealer = response.data.data.dealer;
  429. console.log("2222333333",response.data.data.drugs)
  430. for(let i = 0; i< response.data.data.drugs.length;i++){
  431. this.goodType.push(response.data.data.drugs[i])
  432. if(response.data.data.drugs[i].drug_specs != null) {
  433. for (let b = 0; b < response.data.data.drugs[i].drug_specs.length; b++) {
  434. this.goodInfo.push(response.data.data.drugs[i].drug_specs[b])
  435. }
  436. }
  437. }
  438. this.manufacturer.splice(0, 0, { id: 0, manufacturer_name: "全部" });
  439. this.dealer.splice(0, 0, { id: 0, dealer_name: "全部" });
  440. this.form.manufacturer = 0
  441. this.form.dealer = 0
  442. }
  443. loading.close()
  444. })
  445. },
  446. typeName: function(drug_id) {
  447. let name = "";
  448. for (let i = 0; i < this.goodInfo.length; i++) {
  449. if (this.goodInfo[i].id == drug_id) {
  450. name = this.goodInfo[i].drug_name;
  451. }
  452. }
  453. return name;
  454. }, specificationName: function(drug_id) {
  455. let name = "";
  456. for (let i = 0; i < this.goodInfo.length; i++) {
  457. if (this.goodInfo[i].id == drug_id) {
  458. name = this.goodInfo[i].drug_spec;
  459. }
  460. }
  461. return name;
  462. },
  463. handleEdit: function(index, row) {
  464. const tempObj = {}
  465. tempObj['drug_id'] = 0
  466. tempObj['number'] = ''
  467. tempObj['product_date'] = ''
  468. tempObj['expiry_date'] = ''
  469. tempObj['warehousing_count'] = ''
  470. tempObj['retail_price'] = ''
  471. tempObj['price'] = ''
  472. tempObj['remark'] = ''
  473. tempObj['dealer'] = ''
  474. tempObj['manufacturer'] = ''
  475. tempObj['min_unit'] = ''
  476. this.recordInfo.recordData.push(tempObj)
  477. }, handleDelete: function(index, row) {
  478. if (this.recordInfo.recordData.length <= 1) {
  479. this.$message.error('只有一条记录的时候无法删除')
  480. return
  481. } else {
  482. this.recordInfo.recordData.splice(index, 1)
  483. }
  484. }, calculate: function(val) {
  485. if (val == 0) {
  486. return ''
  487. }
  488. return Math.round(parseFloat(val) * 100) / 100
  489. },
  490. // GetWarehouseInfoByOrdeNumber: function() {
  491. // const params = {
  492. // 'warehousing_order': sessionStorage.getItem('warehousing_orders')
  493. // }
  494. // this.recordInfo.recordData = []
  495. // getWarehouseInfoByOrdeNumber(params).then(response => {
  496. // if (response.data.state != 0) {
  497. // for (let i = 0; i < response.data.data.info.length; i++) {
  498. // this.recordInfo.recordData.push(response.data.data.info[i])
  499. // }
  500. // }
  501. // })
  502. // },
  503. getTime(val, temp) {
  504. if (val != 0) {
  505. return uParseTime(val, temp)
  506. } else {
  507. return ''
  508. }
  509. },
  510. showDialog(index, row) {
  511. const loading = this.$loading({
  512. lock: true,
  513. text: 'Loading',
  514. spinner: 'el-icon-loading',
  515. background: 'rgba(0, 0, 0, 0.7)'
  516. })
  517. this.currentIndex = index
  518. this.isVisibility = true
  519. const params = {
  520. manufacturer_id: this.form.manufacturer,
  521. dealer_id: this.form.dealer
  522. }
  523. GetAllDrugInfoByID(params).then(response => {
  524. if (response.data.state == 0) {
  525. this.$message.error(response.data.msg)
  526. return false
  527. loading.close()
  528. } else {
  529. loading.close()
  530. console.log("3333333",response.data.data.drugs)
  531. if (response.data.data.drugs.length <= 0) {
  532. this.$message.error('该厂商或经销商没有药品信息')
  533. return
  534. }
  535. this.$refs.dialog.show()
  536. for (let i = 0; i < response.data.data.drugs.length; i++) {
  537. this.propForm.goods.push(
  538. response.data.data.drugs[i]
  539. );
  540. }
  541. const obj = {};
  542. this.propForm.goods = this.propForm.goods.reduce(
  543. (cur, next) => {
  544. obj[next.id] ? "" : (obj[next.id] = true && cur.push(next));
  545. return cur;
  546. },
  547. []
  548. ); // 设置cur默认类型为数组,并且初始值为空的数组
  549. }
  550. for (let i = 0; i < this.propForm.goods.length; i++) {
  551. for (let a = 0; a < this.propForm.goods[i].drug_specs.length; a++) {
  552. var respObj = this.propForm.goods[i].drug_specs[a];
  553. respObj["isSelected"] = false;
  554. }
  555. }
  556. }
  557. )
  558. },
  559. getSummaries(param) {
  560. const { columns, data } = param
  561. const sums = []
  562. columns.forEach((column, index) => {
  563. if (index === 0) {
  564. sums[index] = '总价'
  565. return
  566. }
  567. const values = data.map(item => Number(item[column.property]))
  568. if (!values.every(value => isNaN(value))) {
  569. sums[index] = values.reduce((prev, curr) => {
  570. const value = Number(curr)
  571. if (!isNaN(value)) {
  572. return prev + curr
  573. } else {
  574. return prev
  575. }
  576. }, 0)
  577. sums[index] += ' 元'
  578. } else {
  579. sums[index] = 'N/A'
  580. }
  581. })
  582. return sums
  583. }
  584. ,
  585. back() {
  586. this.$router.go(-1)
  587. }
  588. ,
  589. submit() {
  590. this.$refs['tableForm'].validate((valid) => {
  591. if (valid) {
  592. const array = this.recordInfo.recordData
  593. console.log(array)
  594. for (let i = 0; i < array.length; i++) {
  595. if (array[i].drug_id == 0) {
  596. this.$message.error('药品名称或者药品规格名称不能为空')
  597. return
  598. }
  599. }
  600. if(this.recordInfo.recordData.length <= 0){
  601. this.$message.success('请添加入库商品')
  602. return
  603. }
  604. const params = {
  605. 'stockIn': this.recordInfo.recordData
  606. }
  607. postDrugWarehouse(params, this.warehousing_time, this.form.manufacturer, this.form.dealer, this.type).then(response => {
  608. if (response.data.state == 0) {
  609. this.$message.error(response.data.msg)
  610. return false
  611. } else {
  612. this.$message.success('入库成功')
  613. this.$router.back(-1)
  614. }
  615. })
  616. } else {
  617. return false
  618. }
  619. })
  620. }
  621. ,
  622. changeManufacturer(val) {
  623. },
  624. changeDealer(val) {
  625. },
  626. getDataConfig(module, filed_name){
  627. return getDataConfig(module, filed_name)
  628. },
  629. }
  630. ,
  631. created() {
  632. var nowDate = new Date()
  633. var nowYear = nowDate.getFullYear()
  634. var nowMonth = nowDate.getMonth() + 1
  635. var nowDay = nowDate.getDate()
  636. this.warehousing_time =
  637. nowYear +
  638. '-' +
  639. (nowMonth < 10 ? '0' + nowMonth : nowMonth) +
  640. '-' +
  641. (nowDay < 10 ? '0' + nowDay : nowDay)
  642. const tempObj = {}
  643. tempObj['drug_id'] = 0
  644. tempObj['number'] = ''
  645. tempObj['product_date'] = ''
  646. tempObj['expiry_date'] = ''
  647. tempObj['warehousing_count'] = ''
  648. tempObj['retail_price'] = ''
  649. tempObj['price'] = ''
  650. tempObj['remark'] = ''
  651. tempObj['dealer'] = ''
  652. tempObj['manufacturer'] = ''
  653. tempObj['min_unit'] = ''
  654. this.recordInfo.recordData.push(tempObj)
  655. this.GetConfigInfo()
  656. this.propForm.goodUnit = this.$store.getters.good_unit
  657. }
  658. }
  659. </script>
  660. <style>
  661. #oictable ::-webkit-scrollbar {
  662. height: 15px;
  663. }
  664. </style>
  665. <style rel="stylesheet/css" lang="scss" scoped>
  666. .information {
  667. border: 1px #dcdfe6 solid;
  668. padding: 30px 20px 30px 20px;
  669. .border {
  670. border-bottom: 1px #dcdfe6 solid;
  671. margin: 0px 0 20px 0;
  672. }
  673. }
  674. .edit_separater {
  675. border-top: 1px solid rgb(233, 233, 233);
  676. margin-top: 15px;
  677. margin-bottom: 15px;
  678. }
  679. </style>
  680. <style>
  681. .sign-and-weigh-box .sign-and-weigh-box-patients .cell {
  682. font-size: 12px;
  683. }
  684. .sign-and-weigh-box .sign-and-weigh-box-patients .current-row > td {
  685. background: #6fb5fa;
  686. }
  687. </style>