shaogen1995 4 лет назад
Родитель
Сommit
61de95ac33

+ 2 - 2
src/utils/request.js

@@ -2,8 +2,8 @@ import axios from 'axios'
 // export const baseURL = '666初始地址'
 const service = axios.create({
   // baseURL: 'http://192.168.0.135:8006', // 本地调试
-  // baseURL: 'http://8.135.106.227:8006', // 线上调试
-  baseURL: '', // build
+  baseURL: 'http://8.135.106.227:8006', // 线上调试
+  // baseURL: '', // build
   timeout: 5000
 })
 

+ 2 - 2
src/views/holding/holding0.vue

@@ -157,7 +157,7 @@ export default {
       stateInd: 0,
       stateArr: [
         { txt: '全部', num: 0 },
-        { txt: '审核', num: 0 },
+        { txt: '审核', num: 0 },
         { txt: '待办理', num: 0 },
         { txt: '已完成', num: 0 },
         { txt: '审核不通过', num: 0 }
@@ -194,7 +194,7 @@ export default {
     stateSelect (index) {
       if (index !== this.stateInd) {
         this.myData.pageNum = 1
-        // 点击审核
+        // 点击审核
         if (index === 1) {
           this.myData.status = 1
           this.getList(this.myData)

+ 20 - 2
src/views/holding/holding0_add.vue

@@ -302,8 +302,26 @@ export default {
     this.fromData.number = this.mydata.num
     this.fromData.unit = this.mydata.unit
     if (this.fromData.unit) {
-      console.log(998)
-      this.fromData.sourceId = this.mydata.sourceId
+      const obj = [
+        { id: 1, name: '征集购买' },
+        { id: 2, name: '接受捐赠' },
+        { id: 3, name: '依法交换' },
+        { id: 4, name: '拨交' },
+        { id: 5, name: '移交' },
+        { id: 6, name: '旧藏' },
+        { id: 7, name: '发掘' },
+        { id: 8, name: '采集' },
+        { id: 9, name: '拣选' },
+        { id: 10, name: '其他' }
+      ]
+      for (const k in obj) {
+        // console.log(998, obj[k], '---', this.mydata.sourceId)
+        if (obj[k].name === this.mydata.sourceId) {
+          // console.log(123)
+          this.fromData.sourceId = obj[k].id
+        }
+      }
+      // this.fromData.sourceId = this.mydata.sourceId
     }
     this.fromData.description = this.mydata.description
     this.fromData.people = this.mydata.realName

+ 3 - 3
src/views/holding/holding1.vue

@@ -176,13 +176,13 @@ export default {
         pageSize: 10, // 每页数量
         searchKey: '', // 搜索条件
         startTime: '', // 开始时间
-        status: null // 状态,不传返回全部,0:草稿中, 1:审核, 2:审核不通过, 3:审核通过,
+        status: null // 状态,不传返回全部,0:草稿中, 1:审核, 2:审核不通过, 3:审核通过,
       },
       // 选择状态的变量
       stateInd: 0,
       stateArr: [
         { txt: '全部', num: 0 },
-        { txt: '审核', num: 0 },
+        { txt: '审核', num: 0 },
         { txt: '待办理', num: 0 },
         { txt: '已完成', num: 0 },
         { txt: '审核不通过', num: 0 }
@@ -243,7 +243,7 @@ export default {
     stateSelect (index) {
       if (index !== this.stateInd) {
         this.myData.pageNum = 1
-        // 点击审核
+        // 点击审核
         if (index === 1) {
           this.myData.status = 1
           this.getList(this.myData)

+ 1 - 0
src/views/holding/holding1_add.vue

@@ -344,6 +344,7 @@ export default {
     }
   }
   .conten {
+    min-height: 750px;
     position: relative;
     padding: 40px 0 0 20px;
     flex: 1;

+ 3 - 3
src/views/holding/holding2.vue

@@ -186,13 +186,13 @@ export default {
         pageSize: 10, // 每页数量
         searchKey: '', // 搜索条件
         startTime: '', // 开始时间
-        status: null // 状态,不传返回全部,0:草稿中, 1:审核, 2:审核不通过, 3:审核通过,
+        status: null // 状态,不传返回全部,0:草稿中, 1:审核, 2:审核不通过, 3:审核通过,
       },
       // 选择状态的变量
       stateInd: 0,
       stateArr: [
         { txt: '全部', num: 0 },
-        { txt: '审核', num: 0 },
+        { txt: '审核', num: 0 },
         { txt: '待办理', num: 0 },
         { txt: '待归还', num: 0 },
         { txt: '已归还', num: 0 },
@@ -254,7 +254,7 @@ export default {
     stateSelect (index) {
       if (index !== this.stateInd) {
         this.myData.pageNum = 1
-        // 点击审核
+        // 点击审核
         if (index === 1) {
           this.myData.status = 1
           this.getList(this.myData)

+ 1 - 0
src/views/holding/holding2_add.vue

@@ -356,6 +356,7 @@ export default {
     }
   }
   .conten {
+    min-height: 750px;
     position: relative;
     padding: 40px 0 0 20px;
     flex: 1;

+ 2 - 1
src/views/holding/holding3.vue

@@ -488,10 +488,11 @@ export default {
             border: 1px solid #ccc;
             img {
               // object-fit:scale-down;
-              width: 264px;
+              width: 263px;
               height: 200px;
               margin-bottom: 8px;
               object-fit: cover;
+              // border: 1px solid #ccc;
               border-bottom: 1px solid #ccc;
             }
             span {

+ 1 - 1
src/views/holding/holding3_look.vue

@@ -235,7 +235,7 @@
             type="primary"
             size="small"
             @click="applyMove"
-            v-if="myObj.storageId && myObj.status !== '已出库'"
+            v-if="myObj.storageId && myObj.status !== '已出库' && myObj.status !== '待入库'"
             v-show="userLimits.move"
             >申请移库</el-button
           >

+ 3 - 3
src/views/holding/holding4.vue

@@ -157,13 +157,13 @@ export default {
         pageSize: 10, // 每页数量
         searchKey: '', // 搜索条件
         startTime: '', // 开始时间
-        status: null // 状态,不传返回全部,0:草稿中, 1:审核, 2:审核不通过, 3:审核通过,
+        status: null // 状态,不传返回全部,0:草稿中, 1:审核, 2:审核不通过, 3:审核通过,
       },
       // 选择状态的变量
       stateInd: 0,
       stateArr: [
         { txt: '全部', num: 0 },
-        { txt: '审核', num: 0 },
+        { txt: '审核', num: 0 },
         { txt: '已完成', num: 0 },
         { txt: '审核不通过', num: 0 }
       ],
@@ -223,7 +223,7 @@ export default {
     stateSelect (index) {
       if (index !== this.stateInd) {
         this.myData.pageNum = 1
-        // 点击审核
+        // 点击审核
         if (index === 1) {
           this.myData.status = 1
           this.getList(this.myData)

+ 1 - 1
src/views/holding/holding4_audit.vue

@@ -402,7 +402,7 @@ export default {
         }
       }
       .father {
-        max-height: 320px;
+        max-height: 273px;
         overflow: auto;
       }
       .con_txt {

+ 2 - 2
src/views/holding/holding5.vue

@@ -168,7 +168,7 @@ export default {
       stateInd: 0,
       stateArr: [
         { txt: '全部', num: 0 },
-        { txt: '审核', num: 0 },
+        { txt: '审核', num: 0 },
         { txt: '待办理', num: 0 },
         { txt: '已完成', num: 0 },
         { txt: '审核不通过', num: 0 }
@@ -295,7 +295,7 @@ export default {
     stateSelect (index) {
       if (index !== this.stateInd) {
         this.myData.pageNum = 1
-        // 点击审核
+        // 点击审核
         if (index === 1) {
           this.myData.status = 1
           this.getList(this.myData)

+ 3 - 3
src/views/statistics/statistics2.vue

@@ -162,13 +162,13 @@ export default {
         pageSize: 10, // 每页数量
         searchKey: '', // 搜索条件
         startTime: '', // 开始时间
-        status: null // 状态,不传返回全部,0:草稿中, 1:审核, 2:审核不通过, 3:审核通过,
+        status: null // 状态,不传返回全部,0:草稿中, 1:审核, 2:审核不通过, 3:审核通过,
       },
       // 选择状态的变量
       stateInd: 0,
       stateArr: [
         { txt: '全部', num: 0 },
-        { txt: '审核', num: 0 },
+        { txt: '审核', num: 0 },
         { txt: '已完成', num: 0 },
         { txt: '审核不通过', num: 0 }
       ],
@@ -228,7 +228,7 @@ export default {
     stateSelect (index) {
       if (index !== this.stateInd) {
         this.myData.pageNum = 1
-        // 点击审核
+        // 点击审核
         if (index === 1) {
           this.myData.status = 1
           this.getList(this.myData)