zhangyuewww 3 年之前
父節點
當前提交
da413c5cb3

+ 24 - 11
src/views/warehouse/warehouseManagementNoWeightIn.vue

@@ -25,7 +25,7 @@
         <ws-info-table>
         <ws-info-table>
           <!--任务编号-->
           <!--任务编号-->
           <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
           <ws-form-item label="任务编号" span="1" prop="inOutTaskNo">
-            <el-select filterable clearable v-model="dataList.inOutTaskNo" placeholder="请选择任务编号" class="typeselect"
+            <el-select filterable clearable  v-model="dataList.inOutTaskNo" placeholder="请选择任务编号" class="typeselect"
               @change="contractNoChange">
               @change="contractNoChange">
               <el-option v-for="item in deptBudgetList2" :key="item.inOutTaskNo" :label="item.inOutTaskNo"
               <el-option v-for="item in deptBudgetList2" :key="item.inOutTaskNo" :label="item.inOutTaskNo"
                 :value="item.inOutTaskNo" />
                 :value="item.inOutTaskNo" />
@@ -38,6 +38,10 @@
                 :value="item.contractNo" />
                 :value="item.contractNo" />
             </el-select>
             </el-select>
           </ws-form-item>
           </ws-form-item>
+          <ws-form-item label="提示" span="1" prop="tips">
+           <ws-input  onmouseover="this.title=this.value" v-model="dataList.tips"
+              maxlength="20" size="small" />
+          </ws-form-item>
           <!-- 货名 -->
           <!-- 货名 -->
           <ws-form-item label="货名" span="1">
           <ws-form-item label="货名" span="1">
             <ws-select disabled v-model="dataList.goodsName" placeholder class="typeselect" @change="selectgoodsName">
             <ws-select disabled v-model="dataList.goodsName" placeholder class="typeselect" @change="selectgoodsName">
@@ -632,20 +636,29 @@
         for (var i = 0; i < this.outContractNo.length; i++) {
         for (var i = 0; i < this.outContractNo.length; i++) {
           if (this.outContractNo[i].contractNo == e) {
           if (this.outContractNo[i].contractNo == e) {
             if (this.outContractNo[i].inOutType == '采购入库') {
             if (this.outContractNo[i].inOutType == '采购入库') {
-              this.deptBudgetList.tips='卖方'+this.outContractNo[i].seller
-              this.deptBudgetList.inOutTypeKey = 1
+              this.dataList.tips='卖方'+this.outContractNo[i].seller+ '( '+this.outContractNo[i].unitContractPrice+'元/吨)'
+              this.dataList.inOutTypeKey = 1
             } else if (this.outContractNo[i].inOutType == '移库入库') {
             } else if (this.outContractNo[i].inOutType == '移库入库') {
-              this.deptBudgetList.tips='入货库'+data.warehouseName
-              this.deptBudgetList.inOutTypeKey = 3
+              if(this.outContractNo[i].unitContractPrice){
+                this.dataList.tips='出货库'+data.sendWarehouse+ ' ('+this.outContractNo[i].unitContractPrice+'元/吨)'
+              }else{
+                this.dataList.tips='出货库'+data.sendWarehouse
+              }
+              this.dataList.inOutTypeKey = 3
             }else if (this.outContractNo[i].inOutType == '移库出库') {
             }else if (this.outContractNo[i].inOutType == '移库出库') {
-              this.deptBudgetList.tips='出货库'+data.warehouseName
+              this.dataList.tips='出货库'+data.warehouseName
             } else if (this.outContractNo[i].inOutType == '暂存入库') {
             } else if (this.outContractNo[i].inOutType == '暂存入库') {
-              this.deptBudgetList.inOutTypeKey = 4
+              this.dataList.inOutTypeKey = 4
             } else if (this.outContractNo[i].inOutType == '贸易服务入库') {
             } else if (this.outContractNo[i].inOutType == '贸易服务入库') {
-              this.deptBudgetList.inOutTypeKey = 5
+              this.dataList.inOutTypeKey = 5
             } else if (this.outContractNo[i].inOutType == '退库') {
             } else if (this.outContractNo[i].inOutType == '退库') {
-              this.deptBudgetList.tips='出货库'+data.warehouseName
-              this.deptBudgetList.inOutTypeKey = 6
+               if(this.outContractNo[i].contractNo){
+                this.dataList.tips='买方'+this.outContractNo[i].buyer
+              }
+              else{
+                this.dataList.tips='出货库'+data.sendWarehouse
+              }
+              this.dataList.inOutTypeKey = 6
             }
             }
             this.dataList.goodsName = this.outContractNo[i].goodsName
             this.dataList.goodsName = this.outContractNo[i].goodsName
             this.dataList.goodsNameKey = this.outContractNo[i].goodsNameKey
             this.dataList.goodsNameKey = this.outContractNo[i].goodsNameKey
@@ -1462,7 +1475,7 @@
         //经办人
         //经办人
         getstaff({
         getstaff({
             compId: localStorage.getItem('ws-pf_compId'),
             compId: localStorage.getItem('ws-pf_compId'),
-            warehouseId: this.dataList.id
+            warehouseId: this.dataList.baseId
           })
           })
           .toPromise()
           .toPromise()
           .then((response) => {
           .then((response) => {

+ 16 - 7
src/views/warehouse/warehouseManagementNoWeightOut.vue

@@ -44,6 +44,10 @@
               <ws-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
               <ws-option v-for="item in goodnameList" :key="item.constKey" :label="item.constValue"
                 :value="item.constValue" />
                 :value="item.constValue" />
             </ws-select>
             </ws-select>
+          </ws-form-item>
+           <ws-form-item label="提示" span="1" prop="tips">
+           <ws-input  onmouseover="this.title=this.value" v-model="dataList.tips"
+              maxlength="20" size="small" />
           </ws-form-item>
           </ws-form-item>
           <ws-form-item label="类型" span="1" prop="type">
           <ws-form-item label="类型" span="1" prop="type">
             <ws-select disabled v-model="dataList.type" @change="typeChange">
             <ws-select disabled v-model="dataList.type" @change="typeChange">
@@ -602,17 +606,22 @@
         for (var i = 0; i < this.outContractNo.length; i++) {
         for (var i = 0; i < this.outContractNo.length; i++) {
           if (this.outContractNo[i].contractNo == e) {
           if (this.outContractNo[i].contractNo == e) {
             if (this.outContractNo[i].inOutType == '销售出库') {
             if (this.outContractNo[i].inOutType == '销售出库') {
-              this.deptBudgetList.tips='买方'+this.outContractNo[i].buyer
-              this.deptBudgetList.inOutTypeKey = 1
+              this.dataList.tips='买方'+this.outContractNo[i].buyer+ '( '+this.outContractNo[i].unitContractPrice+'元/吨)'
+              this.dataList.inOutTypeKey = 1
             } else if (this.outContractNo[i].inOutType == '移库出库') {
             } else if (this.outContractNo[i].inOutType == '移库出库') {
-              this.deptBudgetList.tips='出货库'+data.warehouseName
-              this.deptBudgetList.inOutTypeKey = 3
+              if(this.outContractNo[i].unitContractPrice){
+                   this.dataList.tips='入货库'+data.receiveWarehouse+ '( '+this.outContractNo[i].unitContractPrice+'元/吨)'
+              }
+              else{
+                this.dataList.tips='入货库'+data.receiveWarehouse
+              }
+              this.dataList.inOutTypeKey = 3
             } else if (this.outContractNo[i].inOutType == '暂存入库') {
             } else if (this.outContractNo[i].inOutType == '暂存入库') {
-              this.deptBudgetList.inOutTypeKey = 4
+              this.dataList.inOutTypeKey = 4
             } else if (this.outContractNo[i].inOutType == '贸易服务出库') {
             } else if (this.outContractNo[i].inOutType == '贸易服务出库') {
-              this.deptBudgetList.inOutTypeKey = 5
+              this.dataList.inOutTypeKey = 5
             } else if (this.outContractNo[i].inOutType == '采购出库') {
             } else if (this.outContractNo[i].inOutType == '采购出库') {
-              this.deptBudgetList.inOutTypeKey = 6
+              this.dataList.inOutTypeKey = 6
             }
             }
             this.dataList.goodsName = this.outContractNo[i].goodsName
             this.dataList.goodsName = this.outContractNo[i].goodsName
             this.dataList.goodsNameKey = this.outContractNo[i].goodsNameKey
             this.dataList.goodsNameKey = this.outContractNo[i].goodsNameKey