cancelStockOrderEdit.vue 25KB

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