gjy 3 anos atrás
pai
commit
8a3b53ea02

+ 27 - 11
src/views/contractManagement/collectionContractRecord.vue

@@ -171,8 +171,15 @@
             <div class="upLoad">
               <el-upload class="avatar-uploader" action="https://www.zthymaoyi.com/upload/admin" :show-file-list="false"
                 :on-success="handleAvatarSuccess">
-                <img v-if="imageUrl" :src="imageUrl" class="avatar" />
-                <i v-else class="el-icon-plus avatar-uploader-icon"></i>
+                
+                <div v-if='imageUrl.length>0'>
+                  <div style='display:inline-block;' v-for='item in imageUrl'>
+                    <img :src="item" class="avatar" />
+                  </div>
+                </div>
+                <i class="el-icon-plus avatar-uploader-icon"></i>
+                
+                
               </el-upload>
             </div>
           </ws-info-table>
@@ -199,8 +206,14 @@
             <div class="upLoad">
               <el-upload class="avatar-uploader" action="https://www.zthymaoyi.com/upload/admin" :show-file-list="false"
                 :on-success="handleAvatarSuccess">
-                <img v-if="imageUrl" :src="imageUrl" class="avatar" />
-                <i v-else class="el-icon-plus avatar-uploader-icon"></i>
+                <!-- <img v-if="imageUrl" :src="imageUrl" class="avatar" />
+                <i v-else class="el-icon-plus avatar-uploader-icon"></i> -->   
+                <div v-if='imageUrl.length>0'>
+                  <div style='display:inline-block;' v-for='item in imageUrl'>
+                    <img :src="item" class="avatar" />
+                  </div>
+                </div>
+                <i class="el-icon-plus avatar-uploader-icon"></i>
               </el-upload>
             </div>
           </ws-info-table>
@@ -448,7 +461,7 @@
         showPayImgs: false,
         isShowAdopt: false,
         //上传截图路径
-        imageUrl: '',
+        imageUrl:[],
         payImg: [],
         rowData: {},
         value2: [],
@@ -551,6 +564,7 @@
               message: '导入成功!'
             })
             this.selectCollectionWarehousingRecordPage()
+            this.getList()
             // debugger
             // if (response.length != 0) {
             //   const h = this.$createElement;
@@ -982,7 +996,7 @@
         editCollectionWarehousingRecord(this.customerObj)
           .toPromise()
           .then((response) => {
-            debugger
+            // debugger
             this.$message({
               message: '编辑成功!',
               type: 'success',
@@ -1031,7 +1045,7 @@
 
       //上传付款截图
       handleAvatarSuccess(e) {
-        this.imageUrl = e.url
+        this.imageUrl.push(e.url)
       },
       printBig() {
         let _list2 = []
@@ -1067,7 +1081,7 @@
           .toPromise()
           .then((response) => {
             this.recordList = response.records
-            // this.deptBudgetTotal = response.total
+            this.deptBudgetTotal = response.total
           })
         // getJurisdiction({
         //   managementType: 1,
@@ -1144,7 +1158,7 @@
               collectionWarehousingRecordList: this.modification,
               money: this.collectionments.money,
               collectionDate: this.collectionments.collectionDate,
-              collectionScreenshot: this.imageUrl,
+              collectionScreenshot: this.imageUrl.toString(),
             })
             .toPromise()
             .then((response) => {
@@ -1153,6 +1167,7 @@
               this.collectionDate = ''
               this.collectionScreenshot = ''
               this.collectForm = false
+              this.imageUrl=[]
               this.getList()
             })
         })
@@ -1223,7 +1238,7 @@
           })
           return
         }
-        this.payments.paymentScreenshot = this.imageUrl
+        this.payments.paymentScreenshot = this.imageUrl.toString()
         delete this.payments.amountNotPayable
         // this.payments.cashier = localStorage.getItem('ws-pf_staffName')
         this.payments.collectionWarehousingRecordList = this.modification
@@ -1241,6 +1256,7 @@
                   title: '成功',
                   message: '付款成功',
                 })
+                this.imageUrl=[]
                 this.paymentForm = false
                 this.getList()
               })
@@ -1494,7 +1510,7 @@
     height: 178px;
     border: 1px solid #8890b1;
     border-radius: 5px;
-    display: block;
+    display: inline-block;
   }
 
   .pay_img {

+ 2 - 70
src/views/contractManagement/salesContractEdit.vue

@@ -15,7 +15,7 @@
          <div class="remark">
       <h3>基本信息</h3>
       <p style="color: #8890b1">
-          &nbsp;&nbsp;注:基本信息和货物信息均为必填项,“<span style="color:red">*</span>”
+          &nbsp;&nbsp;注:基本信息均为必填项,“<span style="color:red">*</span>”
           标记的条目提交后不可修改。
         </p>
     </div>
@@ -106,7 +106,7 @@
           </ws-form-item>
           <!--卖方电话-->
           <ws-form-item label="卖方电话" span="1" prop="contractNo">
-            <ws-input v-model="deptBudgetList.sellerPhone" placeholder="请输入卖电话" maxlength="100" size="small" />
+            <ws-input v-model="deptBudgetList.sellerPhone" placeholder="请输入卖电话" maxlength="100" size="small" />
           </ws-form-item>
           <!--验收方式-->
           <ws-form-item label="验收方式" span="1" prop="acceptanceMethod">
@@ -560,32 +560,6 @@
           })
           .toPromise()
           .then((response) => {
-            var tmp = []
-            tmp[0] = TextToCode[response.sourceProvince].code
-            tmp[1] = TextToCode[response.sourceProvince][response.sourceCity].code
-            if (tmp[0] == 810000 || tmp[0] == 820000) {
-              tmp[2] = null
-            } else {
-              tmp[2] =
-                TextToCode[response.sourceProvince][response.sourceCity][
-                  response.sourceArea
-                ].code
-            }
-            this.selectedOptions = tmp
-            var tmp1 = []
-            tmp1[0] = TextToCode[response.deliveryProvince].code
-            tmp1[1] =
-              TextToCode[response.deliveryProvince][response.deliveryCity].code
-            if (tmp1[0] == 810000 || tmp1[0] == 820000) {
-              tmp1[2] = null
-            } else {
-              tmp1[2] =
-                TextToCode[response.deliveryProvince][response.deliveryCity][
-                  response.deliveryArea
-                ].code
-            }
-
-            this.selectedOptions1 = tmp1
             this.deptBudgetList = response
             if (this.deptBudgetList.deliverType == 1) {
               this.deptBudgetList.deliverType1 = '我方送货'
@@ -1041,13 +1015,6 @@
           })
           return
         }
-        if (!this.deptBudgetList.contractGoodsInfo.waterContent) {
-          this.$message({
-            message: '请输入水分',
-            type: 'warning',
-          })
-          return
-        }
         if (
           this.deptBudgetList.contractGoodsInfo.waterContent &&
           String(this.deptBudgetList.contractGoodsInfo.waterContent).indexOf('.') != -1 &&
@@ -1069,13 +1036,6 @@
           })
           return
         }
-        if (!this.deptBudgetList.contractGoodsInfo.impurity) {
-          this.$message({
-            message: '请输入杂质',
-            type: 'warning',
-          })
-          return
-        }
         if (
           this.deptBudgetList.contractGoodsInfo.impurity &&
           String(this.deptBudgetList.contractGoodsInfo.impurity).indexOf('.') != -1 &&
@@ -1089,13 +1049,6 @@
           })
           return
         }
-        if (!this.deptBudgetList.contractGoodsInfo.bulkDensity) {
-          this.$message({
-            message: '请输入容重',
-            type: 'warning',
-          })
-          return
-        }
         if (
           (this.deptBudgetList.contractGoodsInfo.bulkDensity &&
             String(this.deptBudgetList.contractGoodsInfo.bulkDensity).indexOf('.') != -1 &&
@@ -1110,13 +1063,6 @@
           })
           return
         }
-        if (!this.deptBudgetList.contractGoodsInfo.mildewGrain) {
-          this.$message({
-            message: '请输入霉变粒',
-            type: 'warning',
-          })
-          return
-        }
         if (
           !this.deptBudgetList.contractGoodsInfo.mildewGrain ||
           (String(this.deptBudgetList.contractGoodsInfo.mildewGrain).indexOf(
@@ -1136,13 +1082,6 @@
           })
           return
         }
-        if (!this.deptBudgetList.contractGoodsInfo.jiaorenli) {
-          this.$message({
-            message: '请输入热损伤',
-            type: 'warning',
-          })
-          return
-        }
         if (
           !this.deptBudgetList.contractGoodsInfo.jiaorenli ||
           (String(this.deptBudgetList.contractGoodsInfo.jiaorenli).indexOf('.') !=
@@ -1161,13 +1100,6 @@
           })
           return
         }
-        if (!this.deptBudgetList.contractGoodsInfo.imperfectGrain) {
-          this.$message({
-            message: '请输入不完善粒',
-            type: 'warning',
-          })
-          return
-        }
         if (
           !this.deptBudgetList.contractGoodsInfo.imperfectGrain ||
           (String(this.deptBudgetList.contractGoodsInfo.imperfectGrain).indexOf(

+ 4 - 0
src/views/statisticalReport/stockSaleOutReportList.vue

@@ -829,9 +829,13 @@
             if (index === 0) {
               sums[index] = '合计'
             } else if (
+              index === 7 ||
+              index === 8 ||
+              index === 9 ||
               index === 10 ||
               index === 11 ||
               index === 13 ||
+              index === 14 ||
               index === 12
             ) {
               const values = data.map((item) => Number(item[column.property]))