gjy %!s(int64=3) %!d(string=hai) anos
pai
achega
e525dfce4a

+ 30 - 5
src/views/statisticalReport/stockPurchaseReceiptReportList.vue

@@ -201,7 +201,11 @@
           class="table_td"
           prop="netWeight"
           label="净重"
-        ></el-table-column>
+        >
+          <template slot-scope="scope">
+            <div @click.stop='fujian1(scope.row)'>{{scope.row.netWeight}}</div>
+          </template>
+        </el-table-column>
         <el-table-column
           width="120"
           class="table_td"
@@ -288,6 +292,13 @@
       <img width="100" height="100" :src="item" alt="">
       </div>
     </WinseaContentModal>
+    <WinseaContentModal
+      v-model="accessoryTFs1"
+      :title="$t('system.noticeCircular.information')"
+      @on-cancel="handleClose"
+    >
+      <img width="100" height="100" :src="appendixIdss1" alt="">
+    </WinseaContentModal>
     </el-scrollbar>
     <el-dialog
       width="25%"
@@ -375,7 +386,7 @@
       <el-form>
         <el-form-item label="已付定金" :label-width="formLabelWidth">
           <el-input
-            v-model="deposit"
+            v-model="orderList.deposit"
             autocomplete="off"
             class="deal"
             placeholder="输入定金金额"
@@ -535,7 +546,9 @@ export default {
         },
       },
       accessoryTFs: false,
+      accessoryTFs1: false,
       appendixIdss: [],
+      appendixIdss1:'',
     }
   },
   activated() {
@@ -547,11 +560,11 @@ export default {
     varietyClick(row) {
       if (
         row.settlementWeight < 0 ||
-        row.settlementWeight > 100000 ||
+        row.settlementWeight > 200 ||
         (String(row.settlementWeight).indexOf('.') != -1 &&
           String(row.settlementWeight).length -
             (String(row.settlementWeight).indexOf('.') + 1) >
-            2)
+            3)
       ) {
         this.$message({
           message: '结算重量输入错误',
@@ -632,7 +645,7 @@ export default {
     },
     //定金
     amendconfirm() {
-      this.contractManagementInfo.deposit = this.deposit
+      this.contractManagementInfo.deposit = this.orderList.deposit 
       this.contractManagementInfo.depositUrl = this.depositUrl
       this.$confirm(`确定提交定金信息?`, {
         cancelButtonText: '取消',
@@ -667,6 +680,18 @@ export default {
       }
       this.appendixIdss = this.orderList.depositUrl
       this.accessoryTFs = true
+    },
+     //定金附件
+    fujian1(item) {
+      if (this.orderList.poundImg === null || this.orderList.poundImg === '') {
+        EventBus.$emit(
+          'warning',
+          this.$t('system.noticeCircular.NoInformation')
+        )
+      }
+      this.appendixIdss1 = item.poundImg
+      
+      this.accessoryTFs1 = true
     },
     //备注
     addRemarks() {

+ 43 - 18
src/views/statisticalReport/stockSaleOutReportList.vue

@@ -34,14 +34,14 @@
 				<span v-else>出库量: 0 吨</span>
 				<span v-if="orderList.unitContractPrice">合同单价: {{ orderList.unitContractPrice }} 元/吨</span>
 				<span v-else>合同单价: 0 元/吨</span>
-				<span v-if="amountReceivable">应收: {{ amountReceivable }} 元</span>
+				<span v-if="amountReceivable">应收: {{ amountReceivable.toFixed(2) }} 元</span>
 				<span v-else>应收: 0 元</span>
-				<span v-if="amountReceived">已收: {{ amountReceived }} 元
+				<span v-if="amountReceived">已收: {{ amountReceived.toFixed(2) }} 元
 					<img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
 						src="../../../public/img/fujian.png" @click="fujian1()" alt="" />
 				</span>
 				<span v-else>已收: 0 元</span>
-				<span v-if="uncollectedAmount">未收: {{ uncollectedAmount }} 元</span>
+				<span v-if="uncollectedAmount">未收: {{ uncollectedAmount.toFixed(2) }} 元</span>
 				<span v-else>未收: 0 元</span>
 				<span v-if="orderList.deposit">定金: {{ orderList.deposit }} 元
 					<img width="18" height="20" style="vertical-align: text-top; position: relative; top: -1px"
@@ -65,9 +65,9 @@
 				<el-table-column class="table_td" prop="tare" label="皮重(吨)"></el-table-column>
 				<el-table-column class="table_td" prop="netWeight" label="净重(吨)">
 					<template slot-scope="scope">
-						<span style="color: #ce4545;"
-							v-if="scope.row.returnFlag == 1">-{{scope.row.netWeight}}(退)</span>
-						<span v-if="scope.row.returnFlag == null">{{scope.row.netWeight }}</span>
+						<span style="color: #ce4545;" @click='fujian2(scope.row)'
+							v-if="scope.row.returnFlag == 1">{{scope.row.netWeight}}(退)</span>
+						<span @click='fujian2(scope.row)' v-if="scope.row.returnFlag == null">{{scope.row.netWeight }}</span>
 					</template>
 				</el-table-column>
 				<el-table-column class="table_td" prop="settlementWeight" label="结算重量(吨)">
@@ -81,7 +81,7 @@
 								<span v-if="scope.row.returnFlag == null">{{scope.row.settlementWeight }}</span>
 							</div>
 						</div>
-						<img width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
+						<img  v-hasPermission="`report.goodsSaleOutReport.edit`" width="17" height="18" style="vertical-align: text-top; position: relative; top: -1px"
 							src="../../../public/img/edit.png" @click="whether(scope.row)"
 							v-if="scope.row.identification == 'false'" alt="" />
 						<i class="el-icon-check" style="line-height: 29px; margin-left: 10px"
@@ -118,6 +118,10 @@
 				</div>
 			</div>
 		</WinseaContentModal>
+		<WinseaContentModal v-model="accessoryTFs2" :title="$t('system.noticeCircular.information')"
+			@on-cancel="handleClose">
+			<img width="100" height="100" :src="appendixIdss2" alt="">      
+		</WinseaContentModal>
 		<!-- 收款 -->
 		<el-dialog width="25%" title="收款" :visible.sync="dialogFormVisible1" :append-to-body="true">
 			<el-form :model="form">
@@ -132,7 +136,7 @@
 						class="deal" />
 				</el-form-item>
 				<el-form-item label="上传收款截图" :label-width="formLabelWidth">
-					<el-upload action="https://www.zthymaoyi.com/upload/admin" list-type="picture-card"
+					<el-upload ref='upload' action="https://www.zthymaoyi.com/upload/admin" list-type="picture-card"
 						:on-success="handlePictureCardPreview" :on-remove="handleRemove" class="photo2">
 						<i class="el-icon-plus"></i>
 					</el-upload>
@@ -140,17 +144,17 @@
 			</el-form>
 			<div slot="footer" class="dialog-footer">
 				<el-button @click="dialogFormVisible1 = false">取 消</el-button>
-				<el-button type="primary" @click="collectment()">提 交</el-button>
+				<el-button  v-hasPermission="`report.goodsSaleOutReport.payment`" type="primary" @click="collectment()">提 交</el-button>
 			</div>
 		</el-dialog>
 		<!-- 定金 -->
 		<el-dialog width="25%" title="定金" :visible.sync="dialogFormVisible2" :append-to-body="true">
 			<el-form :model="form">
 				<el-form-item label="已收定金(元)" :label-width="formLabelWidth">
-					<el-input v-model="deposit" autocomplete="off" placeholder="输入定金金额" class="deal"></el-input>
+					<el-input v-model="orderList.deposit" autocomplete="off" placeholder="输入定金金额" class="deal"></el-input>
 				</el-form-item>
 				<el-form-item label="上传定金截图" :label-width="formLabelWidth">
-					<el-upload action="https://www.zthymaoyi.com/upload/admin" list-type="picture-card"
+					<el-upload action="https://www.zthymaoyi.com/upload/admin" :limit='1' list-type="picture-card"
 						:on-success="handlePictureCardPreview1" :on-remove="handleRemove" class="photo2">
 						<i class="el-icon-plus"></i>
 					</el-upload>
@@ -165,12 +169,12 @@
 		<el-dialog width="25%" title="备注" :visible.sync="collectForm1" :append-to-body="true">
 			<el-form :model="form">
 				<div class="beizhu">
-					<el-input v-model="remark" autocomplete="off" placeholder="备注信息,不超过1000字" class="deal"></el-input>
+					<el-input v-model="orderList.remark" autocomplete="off" placeholder="备注信息,不超过1000字" class="deal"></el-input>
 				</div>
 			</el-form>
 			<div slot="footer" class="dialog-footer">
-				<el-button @click="collectForm1 = false">取 消</el-button>
-				<el-button type="primary" @click="adoptRemarks()">保存</el-button>
+				<el-button  @click="collectForm1 = false">关闭</el-button>
+				<el-button  v-hasPermission="`report.goodsSaleOutReport.carry`" type="primary" @click="adoptRemarks()">保存</el-button>
 			</div>
 		</el-dialog>
 	</div>
@@ -272,11 +276,21 @@
 				appendixIdss: [],
 				accessoryTFs1: false,
 				appendixIdss1: [],
+				appendixIdss2:'',
+				accessoryTFs2: false,
 				addressUrlArray: [],
 				addressUrlArray1: [],
 			}
 		},
 		activated() {
+       var now = new Date();
+       var year = now.getFullYear(); //得到年份
+       var month = now.getMonth(); //得到月份
+       var date = now.getDate(); //得到日期
+       month = month + 1;
+       month = month.toString().padStart(2, "0");
+       date = date.toString().padStart(2, "0");
+       this.collectionDate = `${year}-${month}-${date}`;
 			this.getList()
 			this.showType = this.isShow
 		},
@@ -366,7 +380,7 @@
 				this.collectForm1 = true
 			},
 			adoptRemarks() {
-				this.remarkInformation.remark = this.remark
+				this.remarkInformation.remark = this.orderList.remark
 				this.$confirm(`确定要保存备注信息?`, {
 						confirmButtonText: '确定',
 						cancelButtonText: '取消',
@@ -446,7 +460,7 @@
 				this.dialogFormVisible2 = true
 			},
 			depositSubmit() {
-				this.remarkInformation.deposit = this.deposit
+				this.remarkInformation.deposit = this.orderList.deposit
 				this.remarkInformation.depositUrl = this.depositUrl
 				this.$confirm(`确定提交定金信息?`, {
 					cancelButtonText: '取消',
@@ -458,8 +472,8 @@
 							this.remarkInformationList.id = this.contractNoList[i].id
 						}
 					}
-					this.remarkInformationList.deposit = this.deposit
-					this.remarkInformationList.depositUrl = this.depositUrl
+					this.remarkInformationList.deposit = this.orderList.deposit
+					this.remarkInformationList.depositUrl = this.depositUrl.toString()
 					disOrRemarks(this.remarkInformationList)
 						.toPromise()
 						.then((response) => {
@@ -488,6 +502,16 @@
 				this.appendixIdss = this.orderList.depositUrl
 				this.accessoryTFs = true
 			},
+			fujian2(item) {
+				if (item.poundImg === null || item.poundImg === '') {
+					EventBus.$emit(
+						'warning',
+						this.$t('system.noticeCircular.NoInformation')
+					)
+				}
+				this.appendixIdss2 = item.poundImg
+				this.accessoryTFs2 = true
+			},
 			handleClose() {
 				this.accessoryTFs = false
 			},
@@ -574,6 +598,7 @@
 							this.money = ''
 							this.collectionDate = ''
 							this.collectionScreenshot = ''
+							this.$refs.upload.clearFiles()
 							this.dialogFormVisible1 = false
 							this.getList()
 						})

+ 1 - 1
vue.config.js

@@ -141,7 +141,7 @@ module.exports = {
         // target: 'https://product-server.winsea.com/', //目标地址
         // target: 'http://standard-dev.winsea.com/', //目标地址
         // target: 'http://localhost:8090/',
-        target: 'http://192.168.1.120:8090/',
+        target: 'http://192.168.1.108:8090/',
         // target: 'http://192.168.1.115:8090/',
         // target: 'http://192.168.1.122:9100/',
         // target: 'http://192.168.1.121:8090/',