Browse Source

Merge branch 'master' of ssh://gogs.zfire.top:2222/zfire-front/zfire-newmall-admin into develop

linwenxin 1 year ago
parent
commit
c4809b6066

+ 5 - 3
src/views/auxiliaryFittings/settleAccountManagement/settleAccount/index.vue

@@ -256,9 +256,9 @@ export default {
 		    getDetail({ id: row.settlementOrderId }).then(res => {
 		    getDetail({ id: row.settlementOrderId }).then(res => {
 		      Object.assign(this.formData, res.data)
 		      Object.assign(this.formData, res.data)
 			  res.data.settlementOrderItemList.forEach(item=>{
 			  res.data.settlementOrderItemList.forEach(item=>{
-				  this.totalAmount += item.totalAmount
-				  this.workerAmount += item.workerAmount
-				  this.websitAmount += item.websitAmount
+				  this.totalAmount += (item.totalAmount*100 +  this.totalAmount*100)/100
+				  this.workerAmount = (item.workerAmount*100 +  this.workerAmount*100)/100
+				  this.websitAmount += (item.websitAmount*100 +  this.websitAmount*100)/100
 			  })
 			  })
 		      this.formDialogType = 1
 		      this.formDialogType = 1
 		      this.openForm()
 		      this.openForm()
@@ -307,6 +307,7 @@ export default {
 				if (res.code == 200) {
 				if (res.code == 200) {
 					this.$message({ type: 'success', message: `结算成功!` })
 					this.$message({ type: 'success', message: `结算成功!` })
 					this.$refs.pageRef.refreshList()
 					this.$refs.pageRef.refreshList()
+					this.formDialog = false
 				} else {
 				} else {
 					this.$message.error(res.msg);
 					this.$message.error(res.msg);
 				}
 				}
@@ -331,6 +332,7 @@ export default {
 				if (res.code == 200) {
 				if (res.code == 200) {
 					this.$message({ type: 'success', message: `提现成功!` })
 					this.$message({ type: 'success', message: `提现成功!` })
 					this.$refs.pageRef.refreshList()
 					this.$refs.pageRef.refreshList()
+					this.formDialog = false
 				} else {
 				} else {
 					this.$message.error(res.msg);
 					this.$message.error(res.msg);
 				}
 				}

+ 5 - 1
src/views/login/index.vue

@@ -71,7 +71,11 @@
             {{ companyList[0].pubSecurityRecord }}
             {{ companyList[0].pubSecurityRecord }}
           </el-link>
           </el-link>
         </div>
         </div>
-        <div>{{ companyList[0] && companyList[0].companyName ? companyList[0].companyName : '' }}</div>
+		<div class="info-item">
+			<el-link href="https://www.zfire.top/#/" :underline="false" target="_blank">
+			  {{ companyList[0] && companyList[0].companyName ? companyList[0].companyName : '' }}
+			</el-link>
+		</div>
         <div class="link_gs">
         <div class="link_gs">
           <span v-if="dictList.length > 0" :underline="false" target="_blank">友链:</span>
           <span v-if="dictList.length > 0" :underline="false" target="_blank">友链:</span>
           <el-link style="margin-left: 10px" v-for="(v, i) in dictList" :key="i" :href="v.amityUrl" :underline="false"
           <el-link style="margin-left: 10px" v-for="(v, i) in dictList" :key="i" :href="v.amityUrl" :underline="false"

+ 28 - 0
src/views/setting/organizationManagement/tenantDetails/index.vue

@@ -36,6 +36,15 @@
           <el-input v-model="step1Form.password" type="password" disabled></el-input>
           <el-input v-model="step1Form.password" type="password" disabled></el-input>
           <el-button class="reset" @click="handleReset()">重置密码</el-button>
           <el-button class="reset" @click="handleReset()">重置密码</el-button>
         </el-form-item>
         </el-form-item>
+		<el-form-item label="到期时间" prop="companyExpireTime">
+		  <el-date-picker
+		        v-model="step1Form.companyExpireTime"
+		        type="datetime"
+				value-format="yyyy-MM-dd HH:mm:ss"
+		        placeholder="选择日期时间">
+		  </el-date-picker>
+		  <el-button type="primary" @click="saveTime()">保存</el-button>
+		</el-form-item>
         <!-- <el-form-item class="tr">
         <!-- <el-form-item class="tr">
           <el-button type="primary" @click="submitStep1Form">保存</el-button>
           <el-button type="primary" @click="submitStep1Form">保存</el-button>
         </el-form-item> -->
         </el-form-item> -->
@@ -304,6 +313,7 @@
 <script>
 <script>
 import { getToken } from '@/utils/auth'
 import { getToken } from '@/utils/auth'
 import { getDetail, resetPassword, editAccount } from "@/api/merchant";
 import { getDetail, resetPassword, editAccount } from "@/api/merchant";
+import request from '@/utils/request'
 
 
 export default {
 export default {
   data() {
   data() {
@@ -346,6 +356,7 @@ export default {
         address: '', // 地址
         address: '', // 地址
         newPassword: '', // 新密码
         newPassword: '', // 新密码
         confirmPassword: '', // 确认密码
         confirmPassword: '', // 确认密码
+		companyExpireTime: ''
       },
       },
 
 
       passwordType1: 'password',
       passwordType1: 'password',
@@ -464,6 +475,7 @@ export default {
         this.step1Form.email = res.data.email;
         this.step1Form.email = res.data.email;
         this.step1Form.address = res.data.address;
         this.step1Form.address = res.data.address;
         this.step1Form.password = '************';
         this.step1Form.password = '************';
+		this.step1Form.companyExpireTime = res.data.companyExpireTime
 
 
         this.img1_url = res.data.minLogo1;
         this.img1_url = res.data.minLogo1;
         this.img2_url = res.data.minLogo2;
         this.img2_url = res.data.minLogo2;
@@ -503,6 +515,22 @@ export default {
       this.passwordType2 = 'password';
       this.passwordType2 = 'password';
       this.$refs.resetForm.resetFields();
       this.$refs.resetForm.resetFields();
     },
     },
+	
+	saveTime(){
+		request({
+			url: '/admin/user/user/updateCompanyWechat',
+			method: 'post',
+			data: {
+				expireTime: this.step1Form.companyExpireTime,
+				companyWechatId: this.companyWechatId
+			}
+		}).then(res =>{
+			if(res.code == 200){
+				this.$successMsg('保存成功');
+				this.getDetail()
+			}
+		})
+	},
 
 
     // 提交重置密码
     // 提交重置密码
     submitResetForm() {
     submitResetForm() {

+ 33 - 27
src/views/setting/personal/index.vue

@@ -7,7 +7,7 @@
 			<el-row>
 			<el-row>
 				<el-col :span="4">
 				<el-col :span="4">
 					<div class="avatar">
 					<div class="avatar">
-						<fileUpload :multiple="true" :fileList="[{url: userInfo.minLogo3}]" :download="false" :viewOnline="false" :limit="1" @getFiles="getFiles" />
+						<fileUpload :multiple="true" :fileList="[{url: userInfo.minLogo3?userInfo.minLogo3:''}]" :download="false" :viewOnline="false" :limit="1" @getFiles="getFiles" />
 						<!-- <el-image style="width: 100px;height: 100px;border-radius: 50%;" :src="userInfo.minLogo3"></el-image> -->
 						<!-- <el-image style="width: 100px;height: 100px;border-radius: 50%;" :src="userInfo.minLogo3"></el-image> -->
 						<!-- <div class="img">
 						<!-- <div class="img">
 							<i class="el-icon-camera"></i>
 							<i class="el-icon-camera"></i>
@@ -18,7 +18,7 @@
 					<div style="height: 120px;display: flex;flex-direction: column;justify-content: space-around;">
 					<div style="height: 120px;display: flex;flex-direction: column;justify-content: space-around;">
 						<div>用户名: {{userInfo.nickName}}</div>
 						<div>用户名: {{userInfo.nickName}}</div>
 						<div>负责人: {{userInfo.linkName}}</div>
 						<div>负责人: {{userInfo.linkName}}</div>
-						<div>开通时间: {{userInfo.companyOpenTime}}</div>
+						<div>开通时间: {{userInfo.companyOpenTime.substring(0,10)}}</div>
 					</div>
 					</div>
 				</el-col>
 				</el-col>
 				<el-col :span="12">
 				<el-col :span="12">
@@ -26,7 +26,7 @@
 						<div>账号: {{userInfo.userName}}</div>
 						<div>账号: {{userInfo.userName}}</div>
 						<div>手机号码: {{userInfo.linkPhone}}</div>
 						<div>手机号码: {{userInfo.linkPhone}}</div>
 						<div class="flex">
 						<div class="flex">
-							<span style="color: #169dff;margin-right: 10px;">到期时间: {{userInfo.companyExpireTime}}</span>
+							<span style="color: #169dff;margin-right: 10px;">到期时间: {{userInfo.companyExpireTime.substring(0,10)}}</span>
 							<el-tooltip effect="dark" content="账号到期后将自动停用系统功能,续费后功能恢复使用!" placement="top">
 							<el-tooltip effect="dark" content="账号到期后将自动停用系统功能,续费后功能恢复使用!" placement="top">
 							    <i class="el-icon-question icon-question"></i>
 							    <i class="el-icon-question icon-question"></i>
 							</el-tooltip>
 							</el-tooltip>
@@ -38,30 +38,33 @@
 			</el-row>
 			</el-row>
 		</div>
 		</div>
 		
 		
-		<div style="margin-top: 60px;width: 50%;">
-			<el-form ref="dialogForm" :model="dialogForm" :rules="dialogFormRules" label-position="left" label-width="80px">
-			  <el-form-item label="原密码" prop="oldPassword">
-			    <el-input v-model="dialogForm.oldPassword" ref="password1" autocomplete="off" placeholder="请输入原密码" :type="passwordType1"></el-input>
-			    <span class="show-pwd" @click="showPwd(1)">
-			      <svg-icon :icon-class="passwordType1 === 'password' ? 'eye' : 'eye-open'" />
-			    </span>
-			  </el-form-item>
-			  <el-form-item label="新密码" prop="newPassword">
-			    <el-input v-model="dialogForm.newPassword" ref="password2" autocomplete="off" placeholder="请输入新密码" :type="passwordType2"></el-input>
-			    <span class="show-pwd" @click="showPwd(2)">
-			      <svg-icon :icon-class="passwordType2 === 'password' ? 'eye' : 'eye-open'" />
-			    </span>
-			  </el-form-item>
-			  <el-form-item label="确认密码" prop="confirmPassword">
-			    <el-input v-model="dialogForm.confirmPassword" ref="password3" autocomplete="off" placeholder="请再次输入新密码" :type="passwordType3"></el-input>
-			    <span class="show-pwd" @click="showPwd(3)">
-			      <svg-icon :icon-class="passwordType3 === 'password' ? 'eye' : 'eye-open'" />
-			    </span>
-			  </el-form-item>
-			</el-form>
-			<div slot="footer" class="dialog-footer" style="padding-left: 100px;">
-			  <el-button type="primary" @click="submitDialogForm">保存</el-button>
-			</div>
+		<div style="margin-top: 60px;">
+			<el-card class="goods">
+				<h3>修改密码</h3>
+				<el-form ref="dialogForm" :model="dialogForm" :rules="dialogFormRules" label-position="left" label-width="80px" style="width: 350px;margin-top: 40px;">
+				  <el-form-item label="原密码" prop="oldPassword">
+				    <el-input v-model="dialogForm.oldPassword" ref="password1" autocomplete="off" placeholder="请输入原密码" :type="passwordType1"></el-input>
+				    <span class="show-pwd" @click="showPwd(1)">
+				      <svg-icon :icon-class="passwordType1 === 'password' ? 'eye' : 'eye-open'" />
+				    </span>
+				  </el-form-item>
+				  <el-form-item label="新密码" prop="newPassword">
+				    <el-input v-model="dialogForm.newPassword" ref="password2" autocomplete="off" placeholder="请输入新密码" :type="passwordType2"></el-input>
+				    <span class="show-pwd" @click="showPwd(2)">
+				      <svg-icon :icon-class="passwordType2 === 'password' ? 'eye' : 'eye-open'" />
+				    </span>
+				  </el-form-item>
+				  <el-form-item label="确认密码" prop="confirmPassword">
+				    <el-input v-model="dialogForm.confirmPassword" ref="password3" autocomplete="off" placeholder="请再次输入新密码" :type="passwordType3"></el-input>
+				    <span class="show-pwd" @click="showPwd(3)">
+				      <svg-icon :icon-class="passwordType3 === 'password' ? 'eye' : 'eye-open'" />
+				    </span>
+				  </el-form-item>
+				</el-form>
+				<div style="padding-left: 100px;">
+				  <el-button type="primary" @click="submitDialogForm">保存</el-button>
+				</div>
+			</el-card>
 		</div>
 		</div>
 	</div>
 	</div>
 	<renew :userInfo="userInfo" @back="getUserInfo" v-if="isRenew"></renew>
 	<renew :userInfo="userInfo" @back="getUserInfo" v-if="isRenew"></renew>
@@ -134,6 +137,9 @@ export default {
   },
   },
   created() {
   created() {
     this.getUserInfo();
     this.getUserInfo();
+	if(this.$route.query.isRenew){
+		this.isRenew = true
+	}
   },
   },
   methods: {
   methods: {
     // 获取用户信息
     // 获取用户信息

+ 8 - 1
src/views/valueAddedService/orderSettleManag/index.vue

@@ -355,7 +355,14 @@ export default {
               })
               })
             }}>服务单明细</el-button>
             }}>服务单明细</el-button>
           ) : null}
           ) : null}
-          {["PAID"].includes(row.payStatus) && ["ING"].includes(row.settleStatus) ? (
+          {["PAID"].includes(row.payStatus) && ["ING"].includes(row.settleStatus) && (() => {
+            var currentDate = new Date(row.payTime);
+            currentDate.setDate(currentDate.getDate() + 7);
+            currentDate.setHours(23);
+            currentDate.setMinutes(59);
+            currentDate.setSeconds(59);
+            return currentDate > new Date() 
+          })() ? (
             <el-popconfirm
             <el-popconfirm
               title={`是否确定退款?`}
               title={`是否确定退款?`}
               onConfirm={() => {
               onConfirm={() => {

+ 3 - 3
src/views/workOrder/workOrderPool/index.vue

@@ -221,7 +221,7 @@ export default {
           this.detailFormBool = false
           this.detailFormBool = false
           this.recordSelected = []
           this.recordSelected = []
           this.$nextTick(() => {
           this.$nextTick(() => {
-            this.defaultSearchData = [{ "param": "a.pg_incre_item_id", "compare": "like", "value": this.$route.query.pgIncreItemId, label: "增置服务明细ID" }]
+            this.defaultSearchData = [{ "param": "a.pg_incre_order_id", "compare": "like", "value": this.$route.query.pgIncreItemId, label: "增置服务明细ID" }]
             this.$nextTick(() => {
             this.$nextTick(() => {
               // this.defaultSearchData = []
               // this.defaultSearchData = []
               this.$router.push({ name: "workOrderPool", params: {}, query: {} })
               this.$router.push({ name: "workOrderPool", params: {}, query: {} })
@@ -300,8 +300,8 @@ export default {
         if (this.$route.query.saleOrderId && !pam.params.find(item => item.param == "a.sale_order_id")) {
         if (this.$route.query.saleOrderId && !pam.params.find(item => item.param == "a.sale_order_id")) {
           pam.params.push({ "param": "a.sale_order_id", "compare": "like", "value": this.$route.query.saleOrderId, label: "销售订单号" })
           pam.params.push({ "param": "a.sale_order_id", "compare": "like", "value": this.$route.query.saleOrderId, label: "销售订单号" })
         }
         }
-        if (this.$route.query.pgIncreItemId && !pam.params.find(item => item.param == "a.pg_incre_item_id")) {
-          pam.params.push({ "param": "a.pg_incre_item_id", "compare": "like", "value": this.$route.query.pgIncreItemId, label: "增置服务明细ID" })
+        if (this.$route.query.pgIncreItemId && !pam.params.find(item => item.param == "a.pg_incre_order_id")) {
+          pam.params.push({ "param": "a.pg_incre_order_id", "compare": "like", "value": this.$route.query.pgIncreItemId, label: "增置服务明细ID" })
         }
         }
         cb && cb(pam)
         cb && cb(pam)
         return orderBaseList(pam)
         return orderBaseList(pam)