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

cancelStockOrderAdd.vue 25KB

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