Ver código fonte

1.采购需求单修改仓库,清空收货地址2.采购需求处理详情调整字段顺序

黄梓星 1 ano atrás
pai
commit
004cb99569

+ 7 - 7
src/views/purchase/DemandSummary/add.vue

@@ -26,6 +26,13 @@
           ref="table"
         >
         <el-table-column show-overflow-tooltip type="selection" fixed="left"/>
+        <el-table-column show-overflow-tooltip label="默认采购组织" align="center" prop="orgName" width="250px">
+          <template slot-scope="scope">
+              <el-input clearable :disabled="scope.row.status !== '1' || lineDisable" size="mini" v-model="scope.row.orgName" @clear="clean(scope.row, '默认采购组织')" @focus="chooseMxHW(scope.$index, 'ORG_PARAM', true, '默认采购组织')">
+                <el-button size="mini" :disabled="scope.row.status !== '1' || lineDisable" slot="append" icon="el-icon-more" @click="chooseMxHW(scope.$index, 'ORG_PARAM', true, '默认采购组织')"></el-button>
+              </el-input>
+          </template>
+        </el-table-column>
         <el-table-column show-overflow-tooltip label="需求单号" align="center" prop="code" width="100"/>
         <!-- <el-table-column show-overflow-tooltip label="序号" align="center" type="index" width="55" fixed="left"/> -->
         <el-table-column show-overflow-tooltip label="行号" align="center" prop="rowNo">
@@ -106,13 +113,6 @@
         </el-table-column>
         <el-table-column show-overflow-tooltip label="供应仓库" align="center" prop="lastWarehouseName" width="100"/>
         <el-table-column show-overflow-tooltip label="供应货位" align="center" prop="lastAllocationName" width="120"/>
-        <el-table-column show-overflow-tooltip label="默认采购组织" align="center" prop="orgName" width="250px">
-          <template slot-scope="scope">
-              <el-input clearable :disabled="scope.row.status !== '1' || lineDisable" size="mini" v-model="scope.row.orgName" @clear="clean(scope.row, '默认采购组织')" @focus="chooseMxHW(scope.$index, 'ORG_PARAM', true, '默认采购组织')">
-                <el-button size="mini" :disabled="scope.row.status !== '1' || lineDisable" slot="append" icon="el-icon-more" @click="chooseMxHW(scope.$index, 'ORG_PARAM', true, '默认采购组织')"></el-button>
-              </el-input>
-          </template>
-        </el-table-column>
         <el-table-column show-overflow-tooltip label="业务类型" align="center" prop="billType" width="120" :formatter="formatterBillType"/>
         <el-table-column show-overflow-tooltip label="行状态" align="center" prop="status" width="100px" :formatter="hangStatus"/>
         <el-table-column show-overflow-tooltip label="收货仓库" align="center" prop="deliveryWarehouseName" width="200">

+ 10 - 0
src/views/purchase/PurchaseDemandList/add.vue

@@ -1344,6 +1344,11 @@ export default {
         this.adjust.csFlag = selection[0].csFlag
         this.adjust.allocation = ''
         this.adjust.allocationName = ''
+        this.adjust.deliveryAddressName = ''
+        this.adjust.deliveryAddress = ''
+        this.adjust.contacts = ''
+        this.adjust.contactsPhone = ''
+        this.adjust.address = ''
       }
       if(this.referCondition.type == 'ALLOCATION_PARAM' && this.referCondition.title == '收货货位') {
         this.adjust.allocation = selection[0].id
@@ -1367,6 +1372,11 @@ export default {
         this.basicForm.puDemandItemList[this.tableIndex].csFlag = selection[0].csFlag
         this.basicForm.puDemandItemList[this.tableIndex].deliveryAllocation = null
         this.basicForm.puDemandItemList[this.tableIndex].deliveryAllocationName = null
+        this.basicForm.puDemandItemList[this.tableIndex].deliveryAddressName = null
+        this.basicForm.puDemandItemList[this.tableIndex].deliveryAddress = null
+        this.basicForm.puDemandItemList[this.tableIndex].contacts = null
+        this.basicForm.puDemandItemList[this.tableIndex].contactsPhone = null
+        this.basicForm.puDemandItemList[this.tableIndex].address = null
       }
       if(this.referCondition.title == '选择收货货位') {
         this.basicForm.puDemandItemList[this.tableIndex].deliveryAllocation = selection[0].id