Browse Source

其他负责人

zhangyuewww 3 years ago
parent
commit
c9c20232fb

+ 17 - 2
src/views/warehouse/warehouseManagementAdd.vue

@@ -70,7 +70,21 @@
             size="small"
             size="small"
           />
           />
         </ws-form-item>
         </ws-form-item>
-
+        <!--其他负责人-->
+        <ws-form-item label="其他负责人"  span="1" prop="otherPersonCharge">
+          <el-select
+            v-model="deptBudgetList.otherPersonCharge"
+            placeholder="请选择其他负责人"
+            multiple
+          >
+            <el-option
+              v-for="item in options"
+              :key="item.value"
+              :label="item.staffName"
+              :value="item.staffName"
+            />
+          </el-select>
+        </ws-form-item>
         <!--仓库所在地-->
         <!--仓库所在地-->
         <ws-form-item label="仓库所在地" span="1" prop="acceptanceMethod">
         <ws-form-item label="仓库所在地" span="1" prop="acceptanceMethod">
           <el-cascader
           <el-cascader
@@ -118,8 +132,8 @@
           style="width: 100%"
           style="width: 100%"
           class="flex position"
           class="flex position"
           v-for="(item, index) in freightspace"
           v-for="(item, index) in freightspace"
-          :key="index"
           v-show="radio == 1"
           v-show="radio == 1"
+          :key="index"
         >
         >
           <ws-form-item
           <ws-form-item
             label="仓位编号"
             label="仓位编号"
@@ -498,6 +512,7 @@ export default {
           .then(() => {
           .then(() => {
             this.$refs.deptBudgetList.validate((valid) => {
             this.$refs.deptBudgetList.validate((valid) => {
               if (valid) {
               if (valid) {
+                this.deptBudgetList.otherPersonCharge=this.deptBudgetList.otherPersonCharge.toString()
                 this.deptBudgetList.compId =
                 this.deptBudgetList.compId =
                   sessionStorage.getItem('ws-pf_compId')
                   sessionStorage.getItem('ws-pf_compId')
                 this.deptBudgetList.warehousePrivate =
                 this.deptBudgetList.warehousePrivate =

+ 17 - 0
src/views/warehouse/warehouseManagementEdit.vue

@@ -77,6 +77,21 @@
               size="small"
               size="small"
             />
             />
           </ws-form-item>
           </ws-form-item>
+          <!--其他负责人-->
+        <ws-form-item label="其他负责人"  v-if="warehouseType == 1" span="1" prop="otherPersonCharge">
+          <el-select
+            v-model="deptBudgetList.otherPersonCharge"
+            placeholder="请选择其他负责人"
+            multiple
+          >
+            <el-option
+              v-for="item in options"
+              :key="item.value"
+              :label="item.staffName"
+              :value="item.staffName"
+            />
+          </el-select>
+        </ws-form-item>
           <!--仓库所在地-->
           <!--仓库所在地-->
           <ws-form-item label="仓库所在地" span="1" prop="warehouseCity">
           <ws-form-item label="仓库所在地" span="1" prop="warehouseCity">
             <el-cascader
             <el-cascader
@@ -504,6 +519,7 @@ export default {
           //   this.fileList =  this._getFileList(this.deptBudgetList.addressUrl)
           //   this.fileList =  this._getFileList(this.deptBudgetList.addressUrl)
           // }
           // }
           this.addressUrls = this.deptBudgetList.addressUrl.split(',')
           this.addressUrls = this.deptBudgetList.addressUrl.split(',')
+           this.deptBudgetList.otherPersonCharge=this.deptBudgetList.otherPersonCharge.split(',')
           this.addressUrls.pop()
           this.addressUrls.pop()
         })
         })
     },
     },
@@ -636,6 +652,7 @@ export default {
           this.deptBudgetList.baseId = this.baseId
           this.deptBudgetList.baseId = this.baseId
           this.deptBudgetList.compId = this.compId
           this.deptBudgetList.compId = this.compId
           this.deptBudgetList.contractType = 1
           this.deptBudgetList.contractType = 1
+           this.deptBudgetList.otherPersonCharge=this.deptBudgetList.otherPersonCharge.toString()
           edit(this.deptBudgetList)
           edit(this.deptBudgetList)
             .toPromise()
             .toPromise()
             .then((response) => {
             .then((response) => {

+ 3 - 0
src/views/warehouse/warehouseManagementLook.vue

@@ -62,6 +62,9 @@
             class="readonly"
             class="readonly"
           >
           >
             {{ deptBudgetList.personPhone }}
             {{ deptBudgetList.personPhone }}
+          </ws-form-item>
+           <ws-form-item label="其他负责人" span="1" prop="otherPersonCharge">
+            {{ deptBudgetList.otherPersonCharge }}
           </ws-form-item>
           </ws-form-item>
           <!--仓库所在地-->
           <!--仓库所在地-->
           <ws-form-item label="仓库所在地" span="1" prop="warehouseLocation">
           <ws-form-item label="仓库所在地" span="1" prop="warehouseLocation">