XMLWAN 4 år sedan
förälder
incheckning
6a82e20b18
2 ändrade filer med 7 tillägg och 3 borttagningar
  1. 1 0
      src/api/stock.js
  2. 6 3
      src/xt_pages/data/components/consumables.vue

+ 1 - 0
src/api/stock.js Visa fil

121
 }
121
 }
122
 
122
 
123
 export function createGoodInfo(params) {
123
 export function createGoodInfo(params) {
124
+  console.log("prams",params)
124
   return request({
125
   return request({
125
     url: '/api/stock/good/info/create',
126
     url: '/api/stock/good/info/create',
126
     method: 'post',
127
     method: 'post',

+ 6 - 3
src/xt_pages/data/components/consumables.vue Visa fil

500
           good_kind:this.good_kind,
500
           good_kind:this.good_kind,
501
           is_charge: this.is_charge,
501
           is_charge: this.is_charge,
502
         }
502
         }
503
+        console.log("222222",params)
503
         getGoodInfoList(params).then(response => {
504
         getGoodInfoList(params).then(response => {
504
           if (response.data.state == 0) {
505
           if (response.data.state == 0) {
505
             this.goodInfo.loading = false
506
             this.goodInfo.loading = false
550
 
551
 
551
           modifyGoodInfo(val).then(response => {
552
           modifyGoodInfo(val).then(response => {
552
             if (response.data.state == 0) {
553
             if (response.data.state == 0) {
553
-              this.$message.error(response.data.msg)
554
+              // this.$message.error(response.data.msg)
555
+              this.$message.error("同一耗材类型同一规格名称不能重复录入!")
554
               return false
556
               return false
555
             } else {
557
             } else {
556
               this.$refs.addConsumable.hide()
558
               this.$refs.addConsumable.hide()
581
           //新增
583
           //新增
582
           createGoodInfo(val).then(response => {
584
           createGoodInfo(val).then(response => {
583
             if (response.data.state == 0) {
585
             if (response.data.state == 0) {
584
-              this.$message.error(response.data.msg)
585
-              return false
586
+              // this.$message.error(response.data.msg)
587
+              // return false
588
+              this.$message.error("同一耗材类型同一规格名称不能重复录入!")
586
             } else {
589
             } else {
587
               this.$refs.addConsumable.hide()
590
               this.$refs.addConsumable.hide()
588
               this.getList()
591
               this.getList()