LAPTOP-FO2T5SIU\35838 9 månader sedan
förälder
incheckning
be0d0b4624
2 ändrade filer med 274 tillägg och 96 borttagningar
  1. 7 2
      js_sdk/http.js
  2. 267 94
      pages/subPackages/todo/inventoryReview.vue

+ 7 - 2
js_sdk/http.js

@@ -409,12 +409,17 @@ export function getBySaveStatus(e) {
 }
 export function companyExamineAdd(e) {
     return $http.post(
-        "/wx/company/add", e, {})
+        "/wx/companyExamine/add", e, {})
 }
 
 export function companyExamineGetById(e) {
     return $http.post(
-        "/wx/company/getById", e, {})
+        "/wx/companyExamine/getById", e, {})
+}
+
+export function companyExamineExamine(e) {
+    return $http.post(
+        "/wx/companyExamine/examine", e, {})
 }
 
 export function listByModel(e) {

+ 267 - 94
pages/subPackages/todo/inventoryReview.vue

@@ -7,7 +7,7 @@
             企业名称
           </span>
           <div class="inputBox">
-            <input v-model="postData.name" disabled class="myIpt">
+            <input v-model="form.qymc" disabled class="myIpt">
           </div>
         </li>
         <li class="detailLi">
@@ -16,7 +16,7 @@
             统一社会信用代码
           </span>
           <div class="inputBox">
-            <input v-model="postData.code" disabled class="myIpt">
+            <input v-model="form.shxydm" disabled class="myIpt">
           </div>
         </li>
         <li class="detailLi">
@@ -24,7 +24,7 @@
             注册资金(万元)
           </span>
           <div class="inputBox">
-            <input v-model="postData.capital" disabled class="myIpt">
+            <input v-model="form.zczj" disabled class="myIpt">
           </div>
         </li>
         <li class="detailLi">
@@ -32,8 +32,8 @@
             币种
           </span>
           <div class="inputBox">
-            <input placeholder="请填写" v-model="postData.currency" disabled class="myIpt">
-            <van-icon name="arrow" />
+            <input placeholder="" v-model="form.currencyStr" disabled class="myIpt">
+<!--            <van-icon name="arrow" />-->
           </div>
         </li>
         <li class="detailLi">
@@ -41,22 +41,22 @@
             注册时间
           </span>
           <div class="inputBox">
-            <input placeholder="请填写" v-model="postData.registrationTime" disabled class="myIpt">
-            <van-icon name="arrow" />
+            <input placeholder="" v-model="form.zcsj" disabled class="myIpt">
+<!--            <van-icon name="arrow" />-->
           </div>
         </li>
         <li class="detailLi">
           <span class="liName">
             法定代表人
           </span>
-          <input class="myIpt" value="256" disabled style="padding-right: 30rpx">
+          <input class="myIpt" value="256" disabled style="padding-right: 30rpx" v-model="form.fddbr">
         </li>
         <li class="detailLi">
           <span class="liName">
             法人电话
           </span>
           <div class="inputBox">
-            <input disabled class="myIpt">
+            <input disabled class="myIpt" v-model="form.legalPersonPhone">
           </div>
         </li>
         <li class="detailLi">
@@ -64,7 +64,7 @@
             法人邮箱
           </span>
           <div class="inputBox">
-            <input disabled class="myIpt">
+            <input disabled class="myIpt" v-model="form.frEmail">
           </div>
         </li>
         <li class="detailLi">
@@ -73,7 +73,7 @@
             企业联系人
           </span>
           <div class="inputBox">
-            <input value="李瑜" disabled class="myIpt">
+            <input disabled class="myIpt" v-model="form.qylxr">
           </div>
         </li>
         <li class="detailLi">
@@ -82,7 +82,7 @@
             联系人手机
           </span>
           <div class="inputBox">
-            <input value="15822485522" disabled class="myIpt">
+            <input disabled class="myIpt" v-model="form.lxdh">
           </div>
         </li>
         <li class="detailLi">
@@ -91,7 +91,7 @@
             联系人邮箱
           </span>
           <div class="inputBox">
-            <input value="15822485511@qq.com" disabled class="myIpt">
+            <input disabled class="myIpt" v-model="form.email">
           </div>
         </li>
         <li class="detailLi">
@@ -100,7 +100,7 @@
             财务负责人
           </span>
           <div class="inputBox">
-            <input value="李瑜" disabled class="myIpt">
+            <input disabled class="myIpt" v-model="form.cwfzr">
           </div>
         </li>
         <li class="detailLi">
@@ -109,7 +109,7 @@
             负责人电话
           </span>
           <div class="inputBox">
-            <input value="15822485522" disabled class="myIpt">
+            <input  disabled class="myIpt" v-model="form.cwfzrdh">
           </div>
         </li>
         <li class="detailLi">
@@ -117,7 +117,7 @@
             注册地址
           </span>
           <div class="moreLineBox">
-            XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+            {{ form.zcdz }}
           </div>
         </li>
         <li class="detailLi">
@@ -125,7 +125,7 @@
             经营地址
           </span>
           <div class="moreLineBox">
-            XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
+            {{ form.jydz }}
           </div>
         </li>
         <li class="detailLi2" >
@@ -133,6 +133,7 @@
             <span class="liName">经营范围</span>
           </div>
           <van-field
+              :value="form.jyfw"
               autosize
               type="textarea"
               class="myField"
@@ -151,6 +152,7 @@
               @delete="deleteRYXXZP"
               @after-read="uploadRYXXZP"
               :show-upload="true"
+              :file-list="fileList"
           />
         </li>
         <li class="detailLi2" >
@@ -166,9 +168,9 @@
           />
           <van-uploader
               :max-count="6"
-              @delete="deleteRYXXZP2"
-              :file-list="fileList2"
-              @after-read="uploadRYXXZP2"
+              @delete="deleteRYXXZP1"
+              :file-list="fileList1"
+              @after-read="uploadRYXXZP1"
               :show-upload="true"
           />
           <span style="color: #B3B3B3;font-size: 28rpx">(只能上传jpg/png格式,限制上传6张)</span>
@@ -193,6 +195,7 @@
             <span class="liName">主营业务</span>
           </div>
           <van-field
+              :value="form.business"
               autosize
               type="textarea"
               class="myField"
@@ -204,7 +207,7 @@
             全年研发投入(万元)
           </span>
           <div class="moreLineBox">
-            552
+            {{ form.rdInvestment || ''}}
           </div>
         </li>
         <li class="detailLi">
@@ -212,7 +215,7 @@
             全年技改投入(万元)
           </span>
           <div class="moreLineBox">
-            328
+            {{ form.jgInvestment || '' }}
           </div>
         </li>
         <li class="detailLi">
@@ -220,7 +223,7 @@
             发明专利(件)
           </span>
           <div class="moreLineBox">
-            -
+            {{ form.inventionPatent || '' }}
           </div>
         </li>
         <li class="detailLi">
@@ -228,7 +231,7 @@
              软件著作(件)
           </span>
           <div class="moreLineBox">
-            -
+            {{ form.softwareWorks || '' }}
           </div>
         </li>
         <li class="detailLi">
@@ -236,7 +239,7 @@
              实用新型专利(件)
           </span>
           <div class="moreLineBox">
-            -
+            {{ form.utilityModel || '' }}
           </div>
         </li>
         <li class="detailLi">
@@ -244,7 +247,7 @@
               集成电路布图设计专有权(件)
           </span>
           <div class="moreLineBox">
-            -
+            {{ form.integratedCircuit || '' }}
           </div>
         </li>
         <li class="detailLi">
@@ -252,7 +255,7 @@
               四技合同金额-开发(万元)
           </span>
           <div class="moreLineBox">
-            -
+            {{ form.fourOpennessAmount || '' }}
           </div>
         </li>
         <li class="detailLi">
@@ -260,7 +263,7 @@
              四技合同金额-转让(万元)
           </span>
           <div class="moreLineBox">
-            -
+            {{ form.fourTransferenceAmount || '' }}
           </div>
         </li>
         <li class="detailLi">
@@ -268,7 +271,7 @@
              四技合同金额-服务(万元)
           </span>
           <div class="moreLineBox">
-            -
+            {{ form.fourServiceAmount || '' }}
           </div>
         </li>
         <li class="detailLi" style="border-bottom: none">
@@ -276,7 +279,7 @@
               四技合同金额-咨询(万元)
           </span>
           <div class="moreLineBox">
-            -
+            {{ form.fourConsultAmount || '' }}
           </div>
         </li>
       </ul>
@@ -286,23 +289,23 @@
             <span style="color: red;margin-right: 5rpx">*</span>
             入驻类型
           </span>
-          <van-radio-group :value="radio" @change="onChange">
-            <van-radio name="在园">在园</van-radio>
-            <van-radio name="挂靠">挂靠</van-radio>
-            <van-radio name="异地生产">异地生产</van-radio>
-            <van-radio name="飞地">飞地</van-radio>
-            <van-radio name="迁出">迁出</van-radio>
-            <van-radio name="在园(仅租赁)">在园(仅租赁)</van-radio>
-            <van-radio name="注销">注销</van-radio>
+          <van-radio-group :value="settleInType" @change="onChange">
+            <van-radio
+                :name="item.value"
+                checked-color="#976CEB"
+                v-for="item in settleInTypeList"
+                :key="item.value"
+            >{{ item.label }}</van-radio
+            >
           </van-radio-group>
         </li>
         <li class="detailLi">
           <span class="liName">
-            招经理
+            招经理
           </span>
           <div class="inputBox">
-            <input placeholder="请填写" value="李军" disabled class="myIpt">
-            <van-icon name="arrow" />
+            <input placeholder="" v-model="form.investmentManagerName" disabled class="myIpt">
+<!--            <van-icon name="arrow" />-->
           </div>
         </li>
         <li class="detailLi">
@@ -310,8 +313,8 @@
             关联企业
           </span>
           <div class="inputBox" style="border-bottom: none">
-            <input placeholder="请填写" value="xxx" disabled class="myIpt">
-            <van-icon name="arrow" />
+            <input placeholder="" v-model="form.associationCompanyName" disabled class="myIpt">
+<!--            <van-icon name="arrow" />-->
           </div>
         </li>
       </ul>
@@ -320,52 +323,35 @@
         <li class="detailLi">
           <span class="liName">
             <span style="color: red;margin-right: 5rpx">*</span>
-            入驻类型
+            处理结果
           </span>
           <van-radio-group :value="radio2" @change="onChange2">
-            <van-radio name="通过">通过</van-radio>
-            <van-radio name="不通过">不通过</van-radio>
+            <van-radio name="1">通过</van-radio>
+            <van-radio name="2">不通过</van-radio>
           </van-radio-group>
         </li>
-        <li class="detailLi">
-          <span class="liName">
-            招聘经理
-          </span>
-          <div class="inputBox">
-            <input placeholder="请填写" value="李军" disabled class="myIpt">
-            <van-icon name="arrow" />
-          </div>
-        </li>
-        <li class="detailLi">
-          <span class="liName">
-            处理结果
-          </span>
-          <div class="inputBox" style="border-bottom: none">
-            <input placeholder="请填写" value="xxx" disabled class="myIpt">
-            <van-icon name="arrow" />
-          </div>
-        </li>
         <li class="detailLi2" style="position:relative;border-bottom: none">
           <div class="titleBox" >
             <span class="liName">处理意见</span>
           </div>
           <van-field
+              @change="onChange3"
+              :value="form.handleOpinions"
               autosize
               type="textarea"
               class="myField"
-              readonly
           />
         </li>
       </ul>
       <div class="buttonBox">
-        <button class="btn zcBtn">取消</button>
-        <button class="btn tjBtn">提交审核</button>
+        <button class="btn zcBtn" @click="cancel">取消</button>
+        <button class="btn tjBtn" @click="confirmSubmit()">提交审核</button>
       </div>
     </div>
 </template>
 
 <script>
-import { getUserLocalStorageInfo,getByCodes,companyExamineGetById } from "@/js_sdk/http";
+import { getUserLocalStorageInfo,getByCodes,companyExamineGetById,companyExamineExamine } from "@/js_sdk/http";
 
 export default {
   name: "inventoryReview",
@@ -373,43 +359,102 @@ export default {
     console.log('options:',options)
     this.id = options.id
     this.proveType = options.proveType
+    this.getById()
+    this.getByCodes()
   },
   data(){
     return{
-      postData:{
-        name:'无锡XXXXX有限公司',
-        code:'91320214MABPBK9G2E',
-        capital:0,
-        currency: '人民币',
-        registrationTime: '2022-06-02',
-        fileList:[],
-      },
+      dc_key: ['MNP_BUILDING_TYPE', 'CURRENCY'],
       form:{
-
       },
-      radio: '在园',
-      radio2: '通过',
+      radio: '',
+      radio2: '',
       id: '',
-      proveType: ''
+      proveType: '',
+      fileList: [],
+      fileList1: [],
+      fileList2: [],
+      settleInType:'',
+      settleInTypeList: [],
+      dic_SelectList: []
     }
   },
   methods:{
     getById(){
-      companyExamineGetById.then(res=>{
+      const data = {
+        id: this.id
+      }
+      companyExamineGetById(data).then(res=>{
         if(res){
-
+          this.form = res
+          this.form.currencyStr = this.form.currency == null ? ' ' : this.getDicType("bizhong", this.form.currency)
+          this.settleInType = res.settleInType
+          if (res.yyzzfbzp) {
+            res.yyzzfbzp.split(',').forEach(id=>{
+              this.fileList.push({
+                imgUrl: "/FileController/download/" + id,
+                id: id,
+                url:
+                    this.$constant.BASE_URI +
+                    "/FileController/download/" +
+                    id,
+                isImage: true,
+              });
+            })
+          }
+          if (res.ryxxzp) {
+            res.ryxxzp.split(',').forEach(id=>{
+              this.fileList1.push({
+                imgUrl: "/FileController/download/" + id,
+                id: id,
+                url:
+                    this.$constant.BASE_URI +
+                    "/FileController/download/" +
+                    id,
+                isImage: true,
+              });
+            })
+          }
+          if (res.frsfzh) {
+            res.frsfzh.split(',').forEach(id=>{
+              this.fileList2.push({
+                imgUrl: "/FileController/download/" + id,
+                id: id,
+                url:
+                    this.$constant.BASE_URI +
+                    "/FileController/download/" +
+                    id,
+                isImage: true,
+              });
+            })
+          }
         }
       })
     },
+    async getByCodes() {
+      let data = await getByCodes(JSON.stringify(this.dc_key));
+      this.dic_SelectList = this.$common.handleDicList(data);
+      this.dic_SelectList.MNP_BUILDING_TYPE.forEach(item=>{
+        this.settleInTypeList.push(item)
+      })
+    },
+    getDicType(type, value) {
+      if (type == "bizhong" && this.dic_SelectList.CURRENCY) {
+        let CURRENCY = this.dic_SelectList.CURRENCY;
+        let index = CURRENCY.findIndex((e) => e.value == value);
+        return CURRENCY[index].label;
+      }
+    },
     onChange(event) {
-      this.setData({
-        radio: event.detail,
-      });
+      this.form.settleInType = event.detail
     },
     onChange2(event) {
-      this.setData({
-        radio2: event.detail,
-      });
+      console.log(event)
+      this.form.state = event.detail
+    },
+    onChange3(event) {
+      console.log(event)
+      this.form.handleOpinions = event.detail
     },
     deleteRYXXZP(event) {
       this.fileList.splice(event.detail.index, 1);
@@ -428,18 +473,146 @@ export default {
           // 上传完成需要更新 fileList
           let data = JSON.parse(res.data);
           that.fileList.push({
-            imgUrl: "/FileController/download/" + data.data[0],
             id: data.data[0],
-            url:
-                that.$constant.BASE_URI +
-                "/FileController/download/" +
-                data.data[0],
-            isImage: true,
           });
         },
         fail(res) {},
       });
     },
+    deleteRYXXZP1(event) {
+      this.fileList1.splice(event.detail.index, 1);
+      this.$forceUpdate();
+    },
+    uploadRYXXZP1(event) {
+      console.log(event)
+      let that = this;
+      const { file } = event.detail;
+      uni.uploadFile({
+        url: that.$constant.BASE_URI + "/wx/fileController/upload",
+        filePath: file.url,
+        name: "file",
+        formData: { user: "test" },
+        success(res) {
+          // 上传完成需要更新 fileList
+          let data = JSON.parse(res.data);
+          that.fileList1.push({
+            id: data.data[0],
+          });
+        },
+        fail(res) {},
+      });
+    },
+    deleteRYXXZP2(event) {
+      this.fileList2.splice(event.detail.index, 1);
+      this.$forceUpdate();
+    },
+    uploadRYXXZP2(event) {
+      console.log(event)
+      let that = this;
+      const { file } = event.detail;
+      uni.uploadFile({
+        url: that.$constant.BASE_URI + "/wx/fileController/upload",
+        filePath: file.url,
+        name: "file",
+        formData: { user: "test" },
+        success(res) {
+          // 上传完成需要更新 fileList
+          let data = JSON.parse(res.data);
+          that.fileList2.push({
+            id: data.data[0],
+          });
+        },
+        fail(res) {},
+      });
+    },
+    cancel(){
+      uni.navigateBack({})
+    },
+    confirmSubmit(){
+      const _this = this
+      // 通过才校验
+      if(_this.form.state == '1'){
+        if (!_this.form.qymc){
+          this.$showToast('请输入企业名称')
+          return
+        }
+        if (!_this.form.shxydm){
+          this.$showToast('请输入统一社会信用代码')
+          return
+        }
+        if (!_this.form.qylxr){
+          this.$showToast('请输入企业联系人')
+          return
+        }
+        if (!_this.form.lxdh){
+          this.$showToast('请输入联系人手机')
+          return
+        }
+        if (!_this.form.email){
+          this.$showToast('请输入联系人邮箱')
+          return
+        }
+        if (!_this.form.cwfzr){
+          this.$showToast('请输入财务负责人')
+          return
+        }
+        if (!_this.form.cwfzrdh){
+          this.$showToast('请输入财务负责人电话')
+          return
+        }
+        if (!_this.form.yyzzfbzp){
+          this.$showToast('请上传营业执照')
+          return
+        }
+        if (!_this.form.settleInType){
+          this.$showToast('请选择入驻类型')
+          return
+        }
+        if (!_this.form.state){
+          this.$showToast('请选择处理结果')
+          return
+        }
+      }
+      if (this.fileList.length > 0){
+        let yyzzfbzp = []
+        this.fileList.forEach(e=>{
+          yyzzfbzp.push(e.id)
+        })
+        this.form.yyzzfbzp = yyzzfbzp.toString()
+      }
+
+      if (this.fileList1.length > 0){
+        let ryxxzp = []
+        this.fileList1.forEach(e=>{
+          ryxxzp.push(e.id)
+        })
+        this.form.ryxxzp = ryxxzp.toString()
+      }
+
+      if (this.fileList2.length > 0){
+        let qylbbq = []
+        this.fileList2.forEach(e=>{
+          qylbbq.push(e.id)
+        })
+        this.form.qylbbq = qylbbq.toString()
+      }
+      const data = {
+        id: _this.id,
+        state: _this.form.state,
+        proveType: _this.proveType,
+        handleOpinions: _this.form.handleOpinions,
+        examineUserId: getUserLocalStorageInfo().userId,
+      }
+      companyExamineExamine(data).then(res=>{
+        if(res.code == '200'){
+          this.$showToast("审核成功");
+          this.cancel()
+        }else {
+          this.$showToast(res.msg);
+        }
+      })
+
+    }
   }
 }
 </script>