USER-20230908AJ\Administrator vor 1 Jahr
Ursprung
Commit
eb5942baa3

+ 7 - 17
page_task/credit_upload/camera.vue

@@ -77,21 +77,11 @@ export default {
     }
   },
   onLoad(data) {
-    console.log(data, '^^^^^^^^^^^^^^^^^^^^^^^^^^^^^');
-    if (data.id) {
-      // this.creditId = data.id
-      // this.getCreditImage(data.credit_sn)
-      this.srcList = uni.getStorageSync('creditImg');
-    }
-    uni.$on('newCameraImages', (res) => {
-      // this.srcList = uni.getStorageSync(res);
-      // console.log(this.srcList, "OOOOOOOOOOOOOOOOOOOOOOOOO");
-      // this.currentIndex = (this.srcList.length - 1)
-      // this.uuidKey = res
-      // uni.removeStorageSync(this.uuidKey);
-      this.srcList = uni.getStorageSync('creditImg');
-      this.currentIndex = (this.srcList.length - 1)
-    })
+
+  },
+  onShow() {
+    this.srcList = uni.getStorageSync('creditImg');
+    this.currentIndex = (this.srcList.length - 1)
   },
   mounted() {},
   onUnload() {
@@ -99,9 +89,9 @@ export default {
   },
   methods: {
     openAlbum(){
-      uni.chooseImage({
+      uni.chooseMedia({
         count: this.fileNum, //默认9
-        sizeType: 'compressed', //可以指定是原图还是压缩图
+        mediaType: 'image', //可以指定是原图还是压缩图
         sourceType: 'album',
         success: (res) => {
           tools.showLoading()

+ 1 - 1
page_task/credit_upload/credit_upload.vue

@@ -5,7 +5,7 @@
 			<view><text>已上传({{formData.credit_img.length}}页)</text></view>
 			<view class=" container m-t20">
 				<view class="column-c justify-center item-box" @click="onUpload">
-					<image class="wh-45 m-b10" src="/static/img/information/credit.png" mode="aspectFill"></image>
+					<image class="wh-45 m-b10" src="/page_task/static/img/information/credit.png" mode="aspectFill"></image>
 					<text class="text-color-666 size-26">上传征信</text>
 				</view>
 				<view class="item-box" v-for="(item,index) in formData.credit_img">

+ 17 - 0
page_task/linkman/linkman.vue

@@ -41,6 +41,15 @@
 					</view>
 				</view>
 				<view v-else>
+          <view class="row-justify-sb center p-b10">
+            <text class="size-28 sys-weight-600">联系人信息({{index+1}})</text>
+            <view class="row-c sys-background-fff r-100">
+              <image class="wh-30"
+                     src="/page_task/static/img/information/delete.png"
+                     mode="aspectFill" @click="delTripartite(index)">
+              </image>
+            </view>
+          </view>
 					<en-input label="姓名" v-if="verifyKey('name')" v-model="linkmen.name" type="text"
 						placeholder="输入联系人姓名"></en-input>
 					<en-select label="关系" v-if="verifyKey('relation')" v-model="linkmen.relation"
@@ -104,6 +113,13 @@
 				}
 			}
 		},
+    watch:{
+      'editIndex':function () {
+        if(this.editIndex<0){
+          this.editIndex=0
+        }
+      }
+    },
 		onPageScroll(res) {
 			this.scrollTop = res.scrollTop / 120
 		},
@@ -151,6 +167,7 @@
 					success: (res) => {
 						if (res.confirm) {
 							this.linkmenList.splice(itemKey, 1)
+              this.editIndex = itemKey - 1
 						}
 					}
 				})

+ 16 - 7
page_task/property/components/car.vue

@@ -18,10 +18,10 @@
           </view>
           <view class="row p-t30" v-if="verifyKey('brand_id')">
             <view class="text-color-666"><text></text>车辆品牌:</view>
-            <text class="flex">{{getTypeText(item.data.brand_id,1)}}</text>
+            <text class="flex">{{item.data.brand_id}}</text>
           </view>
           <view class="row p-t30" v-if="verifyKey('car_type')">
-            <view class="text-color-666"><text></text>车类型:</view>
+            <view class="text-color-666"><text></text>车类型:</view>
             <text class="flex">{{getTypeText(item.data.car_type,2)}}</text>
           </view>
           <view class="row p-t30" v-if="verifyKey('car_num')">
@@ -64,7 +64,7 @@
       </view>
       <view class="p-t30" v-else>
         <view class="row-justify-sb center p-b10">
-          <text class="size-28 sys-weight-600">房产信息({{index+1}})</text>
+          <text class="size-28 sys-weight-600">车辆信息({{index+1}})</text>
           <view class="row-c sys-background-fff r-100">
             <image class="wh-30"
                    src="/page_task/static/img/information/delete.png"
@@ -193,14 +193,23 @@ export default {
 			this.setValue()
 		},
 		methods: {
-      getTypeText(val){
+      getTypeText(val,type){
         val=val*1
-        for (const typeKey in   this.houseTypeData) {
-          if(val===this.houseTypeData[typeKey].value){
-            return this.houseTypeData[typeKey].text
+         if(type===1){
+          for (const typeKey in   this.carBrandData) {
+            if(val===this.carBrandData[typeKey].value){
+              return this.carBrandData[typeKey].text
+            }
+          }
+        }else if(type===2){
+          for (const typeKey in   this.carTypeData) {
+            if(val===this.carTypeData[typeKey].id){
+              return this.carTypeData[typeKey].name
+            }
           }
         }
 
+
       },
       onDeleteInfo(itemKey) {
         uni.showModal({

+ 104 - 1
page_task/property/components/company.vue

@@ -1,6 +1,78 @@
 <template>
 	<view class="">
-		<view class="data-from" v-for="item in firmList">
+		<view class="data-from" v-for="(item,index) in firmList">
+      <view class="p-t30" v-if="editIndex!==index">
+        <view  class="sys-from-background-color p-20 r-20">
+          <view class="row-justify-sb center">
+            <text class="size-28 sys-weight-600">企业信息({{index+1}})</text>
+            <view class="row-c sys-background-fff r-100 p-lr40 p-tb10">
+              <image class="wh-30"
+                     src="/page_task/static/img/information/edit.png"
+                     mode="aspectFill" @click="onEditInfo(index)"></image>
+              <view class="title-line m-lr20"></view>
+              <image class="wh-30"
+                     src="/page_task/static/img/information/delete.png"
+                     mode="aspectFill" @click="onDeleteInfo(index)">
+              </image>
+            </view>
+          </view>
+          <view class="row p-t30" v-if="verifyKey('firm_name')">
+            <view class="text-color-666"><text></text>企业名称:</view>
+            <text class="flex">{{item.data.firm_name}}</text>
+          </view>
+          <view class="row p-t30" v-if="verifyKey('establish_date')">
+            <view class="text-color-666"><text></text>成立时间:</view>
+            <text class="flex">{{item.data.establish_date}}</text>
+          </view>
+          <view class="row p-t30" v-if="verifyKey('year_money')">
+            <view class="text-color-666"><text></text>年交费额:</view>
+            <text class="flex">{{item.data.year_money}}</text>
+          </view>
+          <view class="row p-t30" v-if="verifyKey('establish_city')">
+            <view class="text-color-666"><text></text>实际经营地:</view>
+            <text class="flex">{{item.data.establish_city}}</text>
+          </view>
+          <view class="row p-t30" v-if="verifyKey('establish_address')">
+            <view class="text-color-666"><text></text>经营详细地址:</view>
+            <text class="flex">{{item.data.establish_address}}</text>
+          </view>
+          <view class="row p-t30" v-if="verifyKey('year_tax')">
+            <view class="text-color-666"><text></text>年交税额:</view>
+            <text class="flex">{{item.data.year_tax}}</text>
+          </view>
+          <view class="row p-t30" v-if="verifyKey('year_invoice')">
+            <view class="text-color-666"><text></text>年开票额:</view>
+            <text class="flex">{{item.data.year_invoice}}</text>
+          </view>
+          <view class="row p-t30" v-if="verifyKey('tax_grade')">
+            <view class="text-color-666"><text></text>税务等级:</view>
+            <text class="flex">{{getTypeText(item.data.tax_grade)}}</text>
+          </view>
+          <view class="row p-t30" v-if="verifyKey('is_end_tax')">
+            <view class="text-color-666"><text></text>税务有无断缴:</view>
+            <text class="flex">{{item.data.is_end_tax===1?'有':'无'}}</text>
+          </view>
+          <view class="row p-t30" v-if="verifyKey('firm_img')">
+            <view class="text-color-666"><text></text>企业相关图片:</view>
+            <EnImage :img="item.data.firm_img"></EnImage>
+          </view>
+
+          <view class="row p-t30">
+            <view class="text-color-666"><text></text>备注:</view>
+            <text class="flex">{{item.data.remark}}</text>
+          </view>
+        </view>
+      </view>
+      <view class="p-t30" v-else>
+        <view class="row-justify-sb center p-b10">
+          <text class="size-28 sys-weight-600">企业信息({{index+1}})</text>
+          <view class="row-c sys-background-fff r-100">
+            <image class="wh-30"
+                   src="/page_task/static/img/information/delete.png"
+                   mode="aspectFill" @click="onDeleteInfo(index)">
+            </image>
+          </view>
+        </view>
 			<en-input label="企业名称" type="text" v-model="item.firm_name" v-if="verifyKey('firm_name')"
 				placeholder="请输入公司名称"></en-input>
 			<en-date label="成立时间" v-model="item.establish_date" v-if="verifyKey('establish_date')"
@@ -21,6 +93,7 @@
 				:local-data="taxGradeData"></en-select>
 			<en-radio label="税务有无断缴" v-model="item.is_end_tax" v-if="verifyKey('is_end_tax')" :radio-data="endData"
 				:noBox="true"></en-radio>
+      </view>
 		</view>
 		<en-blank message="暂无企业信息,快来添加吧!" v-if="firmList.length<=0"></en-blank>
 		<button class="size-26 r-10 button-color house-button m-t30" hover-class="is-hover"
@@ -43,10 +116,12 @@
 	import {
 		getSn
 	} from "@/api/common";
+  import EnImage from "@/components/en-utils/en-image/en-image.vue";
 
 	export default {
 		name: 'property-guarantee',
 		components: {
+      EnImage,
 			EnBlank,
 			EnDate,
 			EnSelect,
@@ -67,6 +142,7 @@
 		},
 		data() {
 			return {
+        editIndex:0,
 				endData: [{
 					'id': 1,
 					'name': '有'
@@ -111,6 +187,32 @@
 			this.setValue()
 		},
 		methods: {
+      getTypeText(val){
+        val=val*1
+        for (const typeKey in   this.taxGradeData) {
+          if(val===this.taxGradeData[typeKey].value){
+            return this.taxGradeData[typeKey].text
+          }
+        }
+
+
+      },
+      onDeleteInfo(itemKey) {
+        uni.showModal({
+          title: '是否删除当前资产信息',
+          content: '确定删除?',
+          success: (res) => {
+            if (res.confirm) {
+              this.insuranceList.splice(itemKey, 1)
+              this.editIndex = itemKey-1
+            }
+          }
+        })
+
+      },
+      onEditInfo(index){
+        this.editIndex = index
+      },
 			addItem() {
 				tools.showLoading()
 				getSn().then((res) => {
@@ -120,6 +222,7 @@
 							'property_sn': res.data,
 							'data': JSON.parse(JSON.stringify(this.firmItem))
 						})
+            this.editIndex=this.firmList.length-1
 						this.$emit('onResize')
 					} else {
 						tools.error('编号生成失败')

+ 112 - 25
page_task/property/components/guarantee.vue

@@ -1,33 +1,90 @@
 <template>
 	<view class="">
-		<view class="data-from" v-for="item in insuranceList">
-			<en-input label="保险公司" type="text" placeholder="请输入保险公司名称" v-model="item.insurance_name"
-				v-if="verifyKey('insurance_name')"></en-input>
-			<en-select label="保险类型" placeholder="请选择保险类型" v-model="item.insurance_type"
-				v-if="verifyKey('insurance_type')" :local-data="insuranceTypeData"></en-select>
-			<en-input label="年交费额" type="number" v-model="item.year_money" v-if="verifyKey('year_money')"
-				placeholder="请输入年交费额" rightText="元"></en-input>
-			<en-radio label="满足缴费情况" v-model="item.is_fees" v-if="verifyKey('is_fees')"
-				:radio-data="payData"></en-radio>
-			<en-date label="保单有效期" v-model="item.validity_date" v-if="verifyKey('validity_date')"
-				item="选择保单有效期"></en-date>
-			<en-upload label="上传保单相关图片" v-model="insuranceItem.insurance_img" v-if="verifyKey('insurance_img')"
-				:imageWidth="180"></en-upload>
-			<en-input label="备注" v-model="item.remark" v-if="verifyKey('remark')" type="text" placeholder="请输入备注信息"
-				:noBox="true"></en-input>
-		</view>
-		<en-blank message="暂无保单信息,快来添加吧!" v-if="insuranceList.length<=0"></en-blank>
-		<button class="size-26 r-10 button-color house-button m-t30" hover-class="is-hover"
-			@click="addItem">+添加保单</button>
-	</view>
+    <view class="data-from" v-for="(item,index) in insuranceList">
+      <view class="p-t30" v-if="editIndex!==index">
+        <view  class="sys-from-background-color p-20 r-20">
+          <view class="row-justify-sb center">
+            <text class="size-28 sys-weight-600">房产信息({{index+1}})</text>
+            <view class="row-c sys-background-fff r-100 p-lr40 p-tb10">
+              <image class="wh-30"
+                     src="/page_task/static/img/information/edit.png"
+                     mode="aspectFill" @click="onEditInfo(index)"></image>
+              <view class="title-line m-lr20"></view>
+              <image class="wh-30"
+                     src="/page_task/static/img/information/delete.png"
+                     mode="aspectFill" @click="onDeleteInfo(index)">
+              </image>
+            </view>
+          </view>
+          <view class="row p-t30" v-if="verifyKey('insurance_name')">
+            <view class="text-color-666"><text></text>保险公司:</view>
+            <text class="flex">{{item.data.insurance_name}}</text>
+          </view>
+          <view class="row p-t30" v-if="verifyKey('insurance_type')">
+            <view class="text-color-666"><text></text>保险类型:</view>
+            <text class="flex">{{getTypeText(item.data.insurance_type,1)}}</text>
+          </view>
+          <view class="row p-t30" v-if="verifyKey('year_money')">
+            <view class="text-color-666"><text></text>年交费额:</view>
+            <text class="flex">{{item.data.year_money}}</text>
+          </view>
+          <view class="row p-t30"  v-if="verifyKey('is_fees')">
+            <view class="text-color-666"><text></text>满足缴费情况:</view>
+            <text class="flex">{{item.data.is_fees===1?'满足':'未满足'}}</text>
+          </view>
+          <view class="row p-t30" v-if="verifyKey('validity_date')">
+            <view class="text-color-666"><text></text>保单有效期:</view>
+            <text class="flex">{{item.data.validity_date}}</text>
+          </view>
+          <view class="row p-t30" v-if="verifyKey('insurance_img')">
+            <view class="text-color-666"><text></text>保单相关图片:</view>
+            <EnImage :img="item.data.insurance_img"></EnImage>
+          </view>
+
+          <view class="row p-t30">
+            <view class="text-color-666"><text></text>备注:</view>
+            <text class="flex">{{item.data.remark}}</text>
+          </view>
+        </view>
+      </view>
+      <view class="p-t30" v-else>
+        <view class="row-justify-sb center p-b10">
+          <text class="size-28 sys-weight-600">房产信息({{index+1}})</text>
+          <view class="row-c sys-background-fff r-100">
+            <image class="wh-30"
+                   src="/page_task/static/img/information/delete.png"
+                   mode="aspectFill" @click="onDeleteInfo(index)">
+            </image>
+          </view>
+        </view>
+        <en-input label="保险公司" type="text" placeholder="请输入保险公司名称" v-model="item.insurance_name"
+                  v-if="verifyKey('insurance_name')"></en-input>
+        <en-select label="保险类型" placeholder="请选择保险类型" v-model="item.insurance_type"
+                   v-if="verifyKey('insurance_type')" :local-data="insuranceTypeData"></en-select>
+        <en-input label="年交费额" type="number" v-model="item.year_money" v-if="verifyKey('year_money')"
+                  placeholder="请输入年交费额" rightText="元"></en-input>
+        <en-radio label="满足缴费情况" v-model="item.is_fees" v-if="verifyKey('is_fees')"
+                  :radio-data="payData"></en-radio>
+        <en-date label="保单有效期" v-model="item.validity_date" v-if="verifyKey('validity_date')"
+                 item="选择保单有效期"></en-date>
+        <en-upload label="上传保单相关图片" v-model="insuranceItem.insurance_img" v-if="verifyKey('insurance_img')"
+                   :imageWidth="180"></en-upload>
+        <en-input label="备注" v-model="item.remark" v-if="verifyKey('remark')" type="text" placeholder="请输入备注信息"
+                  :noBox="true"></en-input>
+      </view>
+    </view>
+    <en-blank message="暂无保单信息,快来添加吧!" v-if="insuranceList.length<=0"></en-blank>
+    <button class="size-26 r-10 button-color house-button m-t30" hover-class="is-hover"
+            @click="addItem">+添加保单</button>
+  </view>
 </template>
 
 <script>
-	import enInput from "@/components/en-from/en-input/en-input.vue"
-	import EnCity from "@/components/en-from/en-city/en-city.vue";
-	import EnUpload from "@/components/en-from/en-upload/en-upload.vue";
-	import EnSelect from "@/components/en-from/en-select/en-select.vue";
-	import {
+import enInput from "@/components/en-from/en-input/en-input.vue"
+import EnCity from "@/components/en-from/en-city/en-city.vue";
+import EnUpload from "@/components/en-from/en-upload/en-upload.vue";
+import EnSelect from "@/components/en-from/en-select/en-select.vue";
+import {
 		getTaskOptions
 	} from "@/api/task";
 	import md5 from "js-md5";
@@ -37,10 +94,12 @@
 	import {
 		getSn
 	} from "@/api/common";
+  import EnImage from "@/components/en-utils/en-image/en-image.vue";
 
 	export default {
 		name: 'property-guarantee',
 		components: {
+      EnImage,
 			EnBlank,
 			EnDate,
 			EnSelect,
@@ -61,6 +120,7 @@
 		},
 		data() {
 			return {
+        editIndex: 0,
 				payData: [{
 					'id': 1,
 					'name': '满足'
@@ -102,6 +162,32 @@
 			this.setValue()
 		},
 		methods: {
+      getTypeText(val){
+        val=val*1
+        for (const typeKey in   this.insuranceTypeData) {
+          if(val===this.insuranceTypeData[typeKey].value){
+            return this.insuranceTypeData[typeKey].text
+          }
+        }
+
+
+      },
+      onDeleteInfo(itemKey) {
+        uni.showModal({
+          title: '是否删除当前资产信息',
+          content: '确定删除?',
+          success: (res) => {
+            if (res.confirm) {
+              this.insuranceList.splice(itemKey, 1)
+              this.editIndex = itemKey-1
+            }
+          }
+        })
+
+      },
+      onEditInfo(index){
+        this.editIndex = index
+      },
 			addItem() {
 				tools.showLoading()
 				getSn().then((res) => {
@@ -111,6 +197,7 @@
 							'property_sn': res.data,
 							'data': JSON.parse(JSON.stringify(this.insuranceItem))
 						})
+            this.editIndex=this.insuranceList.length-1
 						this.$emit('onResize')
 					} else {
 						tools.error('编号生成失败')