|
@@ -71,7 +71,7 @@
|
|
|
<el-form-item label="制单日期" prop="createTime">
|
|
|
<el-date-picker
|
|
|
v-model="basicForm.createTime"
|
|
|
- :disabled="sonDisable"
|
|
|
+ disabled
|
|
|
clearable
|
|
|
type="date"
|
|
|
value-format="yyyy-MM-dd"
|
|
@@ -103,11 +103,11 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
|
|
|
- <el-col :span="1.5">
|
|
|
+ <!-- <el-col :span="1.5">
|
|
|
<el-form-item label="需求客户名称">
|
|
|
<el-input disabled v-model="basicForm.customerName" size="mini" style="width: 200px"></el-input>
|
|
|
</el-form-item>
|
|
|
- </el-col>
|
|
|
+ </el-col> -->
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
<el-form-item label="编码">
|
|
@@ -161,14 +161,14 @@
|
|
|
<span>明细信息</span>
|
|
|
<div>
|
|
|
<el-button type="primary" size="mini" @click="addLine" v-if="!sonDisable">增行</el-button>
|
|
|
- <el-button type="primary" size="mini" v-if="!sonDisable" @click="adjustPl">批量调整</el-button>
|
|
|
+ <el-button type="primary" size="mini" v-if="!sonDisable" @click.stop="adjustPl">批量调整</el-button>
|
|
|
<el-button type="primary" size="mini" v-if="sonPageStu == 'check' || sonPageStu == 'edit'" @click="showReserved">货权预留单</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<el-table
|
|
|
- v-myscroll
|
|
|
- :data="basicForm.puDemandItemList.slice(0, over)"
|
|
|
+ v-loading="loading"
|
|
|
+ :data="basicForm.puDemandItemList"
|
|
|
fit
|
|
|
border
|
|
|
highlight-current-row
|
|
@@ -179,19 +179,24 @@
|
|
|
max-height="410"
|
|
|
style="font-size: 12px;"
|
|
|
@selection-change="handleSelectionChange"
|
|
|
+ @row-click="rowSelect"
|
|
|
:cell-class-name="cellClassName"
|
|
|
+ :row-key="getRowKeys"
|
|
|
+ ref="table"
|
|
|
+ v-el-table-infinite-scroll="load"
|
|
|
+ :infinite-scroll-disabled="loadDisabled"
|
|
|
>
|
|
|
- <el-table-column show-overflow-tooltip type="selection"/>
|
|
|
- <el-table-column show-overflow-tooltip label="序号" type="index" align="center" width="50px"/>
|
|
|
- <el-table-column show-overflow-tooltip label="行号" align="center" prop="rowNo">
|
|
|
+ <el-table-column show-overflow-tooltip type="selection" :reserve-selection="true" fixed="left"/>
|
|
|
+ <el-table-column show-overflow-tooltip label="序号" type="index" align="center" width="50px" fixed="left"/>
|
|
|
+ <el-table-column show-overflow-tooltip label="行号" align="center" prop="rowNo" fixed="left">
|
|
|
<template slot-scope="scope">
|
|
|
- {{ scope.$index + 1 + '0' }}
|
|
|
+ {{ scope.row.rowNo = scope.$index + 1 + "0" }}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column show-overflow-tooltip label="默认采购组织" align="center" prop="purOrgName" width="200px"/>
|
|
|
<el-table-column show-overflow-tooltip label="需求客户" align="center" prop="demandCustomerName" width="180px"/>
|
|
|
<el-table-column show-overflow-tooltip label="行状态" align="center" prop="status" :formatter="hangStatus" width="100px"/>
|
|
|
- <el-table-column show-overflow-tooltip label="物料编码" align="center" prop="materialCode" width="220px" :render-header="addRedStar">
|
|
|
+ <el-table-column show-overflow-tooltip label="物料编码" align="center" prop="materialCode" width="220px" :render-header="addRedStar" fixed="left">
|
|
|
<template slot-scope="scope">
|
|
|
<el-form-item class="hang" :prop="'puDemandItemList.' + scope.$index + '.' + 'materialCode'" :show-message="false" :rules="{ required: true, message: '请选择物料编码', trigger: 'blur' }">
|
|
|
<el-input clearable :disabled="sonDisable" size="mini" v-model="scope.row.materialCode" @paste.native="pasteMe($event, scope, scope.$index)">
|
|
@@ -200,7 +205,7 @@
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column show-overflow-tooltip label="物料名称" align="center" prop="materialName" width="200px" />
|
|
|
+ <el-table-column show-overflow-tooltip label="物料名称" align="center" prop="materialName" width="200px" fixed="left"/>
|
|
|
<el-table-column show-overflow-tooltip label="规格" align="center" prop="specification" />
|
|
|
<el-table-column show-overflow-tooltip label="型号" align="center" prop="model"/>
|
|
|
<el-table-column show-overflow-tooltip label="单位" align="center" prop="unitName"/>
|
|
@@ -209,7 +214,7 @@
|
|
|
<el-table-column show-overflow-tooltip label="实际(业务)需求量" align="center" prop="qty" width="150px" :render-header="addRedStar">
|
|
|
<template slot-scope="scope">
|
|
|
<el-form-item class="hang" :prop="'puDemandItemList.' + scope.$index + '.' + 'qty'" :show-message="false" :rules="{ required: true, message: '请填写实际(业务)需求量', trigger: 'blur' }">
|
|
|
- <el-input type="number" min="0" clearable :disabled="sonDisable" size="mini" v-model="scope.row.qty" @input="getYLSL(scope)"/>
|
|
|
+ <el-input type="number" min="0" clearable :disabled="sonDisable" size="mini" v-model="scope.row.qty" @input="getYLSL(scope)" @paste.native="pasteMe($event, scope, scope.$index)"/>
|
|
|
</el-form-item>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -322,7 +327,7 @@
|
|
|
<el-table-column show-overflow-tooltip label="补单供应商" align="center" prop="additionalSupplierName" width="200px" :render-header="anotherRedStar">
|
|
|
<template slot-scope="scope">
|
|
|
<el-form-item class="hang" :prop="'puDemandItemList.' + scope.$index + '.' + 'additionalSupplierName'" :rules="{ required: isBDXQ, message: '请选择补单供应商', trigger: 'blur' }">
|
|
|
- <el-input clearable :disabled="sonDisable || BDZT" size="mini" v-model="scope.row.additionalSupplierName" @clear="clearHang(scope.$index, '选择补单供应商')" @focus="chooseDept(scope.$index, 'SUPPLIER_PARAM', true, '选择补单供应商')">
|
|
|
+ <el-input clearable :disabled="sonDisable || BDZT" size="mini" v-model="scope.row.additionalSupplierName" @clear="clearHang(scope.$index, '选择补单供应商')" @paste.native="pasteMe($event, scope, scope.$index)">
|
|
|
<el-button size="mini" :disabled="sonDisable || BDZT" slot="append" icon="el-icon-more" @click="chooseDept(scope.$index, 'SUPPLIER_PARAM', true, '选择补单供应商')"></el-button>
|
|
|
</el-input>
|
|
|
</el-form-item>
|
|
@@ -419,8 +424,9 @@
|
|
|
</el-table>
|
|
|
</el-form>
|
|
|
<div class="btn_group">
|
|
|
- <el-button type="primary" size="mini" @click="jumpOA" v-if="sonPageStu == 'check' && (row.status == '1' || row.status == '2')">跳转OA</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="jumpOA" v-if="sonPageStu == 'check' && (row.status == '1' || row.status == '2') && basicForm.flowId">审批</el-button>
|
|
|
<el-button type="primary" size="mini" @click="copy" v-if="sonPageStu == 'check'">复制</el-button>
|
|
|
+ <el-button type="primary" size="mini" @click="editPage" v-if="sonPageStu == 'check' && row.status == '0'">编辑</el-button>
|
|
|
<el-button type="primary" size="mini" @click="save" v-if="sonPageStu == 'add' || sonPageStu == 'edit'">保存</el-button>
|
|
|
<el-button type="primary" size="mini" @click="submit" v-if="sonPageStu == 'check' && (row.status == '0' || row.status == '3')">提交</el-button>
|
|
|
<el-button size="mini" plain @click="back">返回</el-button>
|
|
@@ -523,7 +529,11 @@ import {addDemand,getDemandDetail, getDemandSonDetail, editDemand, submitDemand,
|
|
|
import {getRefer} from '@/api/purchase/basic.js'
|
|
|
// 明细行选择物料参照
|
|
|
import popDialog from '@/components/PopDialog/index.vue'
|
|
|
+import ElTableInfiniteScroll from "el-table-infinite-scroll";
|
|
|
export default {
|
|
|
+ directives: {
|
|
|
+ "el-table-infinite-scroll": ElTableInfiniteScroll,
|
|
|
+ },
|
|
|
name: 'addDemandList',
|
|
|
props: ['pageStu','row', 'disable'],
|
|
|
dicts: ['sys_processing_mode', 'sys_plan_type', 'sys_status', 'sys_bill_source', 'sys_business','sys_reserve_ratio', 'sys_period_unit', 'sys_price_type'],
|
|
@@ -538,6 +548,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ loading: true,
|
|
|
// 不能直接改变props传来的值
|
|
|
sonPageStu: this.pageStu,
|
|
|
sonDisable: this.disable,
|
|
@@ -556,8 +567,10 @@ export default {
|
|
|
customerName: '',
|
|
|
customerCode: '',
|
|
|
customerPrincipal: '',
|
|
|
- demandPersonal: this.$store.state.user.name,
|
|
|
- demandDept: this.$store.state.user.deptId,
|
|
|
+ demandPersonal: '',
|
|
|
+ demandPersonalName: '',
|
|
|
+ demandDept: '',
|
|
|
+ demandDeptName: '',
|
|
|
planType: '1',
|
|
|
demandDate: '',
|
|
|
createTime: '',
|
|
@@ -619,7 +632,118 @@ export default {
|
|
|
contactsPhone: '',
|
|
|
address: ''
|
|
|
},
|
|
|
- purchaseManOptions: []
|
|
|
+ purchaseManOptions: [],
|
|
|
+ sonModel: {
|
|
|
+ rowNo: null,
|
|
|
+ contacts: null,
|
|
|
+ id: null,
|
|
|
+ demandId: null,
|
|
|
+ status: null,
|
|
|
+ materialCategory: null,
|
|
|
+ buyer: null,
|
|
|
+ buyerName: null,
|
|
|
+ mateiralClassifyOne: null,
|
|
|
+ materialClassifyOneName: null,
|
|
|
+ materialClassifyTwo: null,
|
|
|
+ materialClassifyTwoName: null,
|
|
|
+ materialClassifyThree: null,
|
|
|
+ materialClassifyThreeName: null,
|
|
|
+ materialClassifyFour: null,
|
|
|
+ materialClassifyFourName: null,
|
|
|
+ materialCode: null,
|
|
|
+ material: null,
|
|
|
+ materialName: null,
|
|
|
+ classifyId: null,
|
|
|
+ specification: null,
|
|
|
+ unit: null,
|
|
|
+ unitName: null,
|
|
|
+ manufacturerName: null,
|
|
|
+ registrant: null,
|
|
|
+ puPeriod: null,
|
|
|
+ expiryUnit: null,
|
|
|
+ expiry: null,
|
|
|
+ minPackage: null,
|
|
|
+ minOrderQty: null,
|
|
|
+ minBatch: null,
|
|
|
+ safeStock: null,
|
|
|
+ averageQtyMonth: null,
|
|
|
+ qty: null,
|
|
|
+ adjustmentPersonal: null,
|
|
|
+ adjustmentTime: null,
|
|
|
+ manualRegulation: null,
|
|
|
+ updateCause: null,
|
|
|
+ reservedProportion: null,
|
|
|
+ reservedPeriod: null,
|
|
|
+ reservedQty: null,
|
|
|
+ demandPeriod: null,
|
|
|
+ forecastClassify: null,
|
|
|
+ onemonthAvgVolume: null,
|
|
|
+ threemonthAvgVolume: null,
|
|
|
+ puFreight: null,
|
|
|
+ deliveryDate: null,
|
|
|
+ isUrgency: 'N',
|
|
|
+ isReplenishment: 'N',
|
|
|
+ isBatchLock: 'N',
|
|
|
+ isCustomerSpecified: '',
|
|
|
+ remark: null,
|
|
|
+ puRemark: null,
|
|
|
+ lastWarehouseQty: null,
|
|
|
+ resDemandQty: null,
|
|
|
+ lastWarehouse: null,
|
|
|
+ lastWarehouseName: null,
|
|
|
+ deliveryWarehouse: null,
|
|
|
+ deliveryWarehouseName: null,
|
|
|
+ lastAllocation: null,
|
|
|
+ lastAllocationName: null,
|
|
|
+ deliveryAllocation: null,
|
|
|
+ deliveryAllocationName: null,
|
|
|
+ passageOn: null,
|
|
|
+ puOrg: null,
|
|
|
+ purOrgName: null,
|
|
|
+ lastStockQty: null,
|
|
|
+ superiorCenterQty: null,
|
|
|
+ superiorAllotQty: null,
|
|
|
+ availableQty: null,
|
|
|
+ statusAllot: 'N',
|
|
|
+ additionalSupplier: null,
|
|
|
+ additionalSupplierName: null,
|
|
|
+ periodUnit: null,
|
|
|
+ demandCustomer: null,
|
|
|
+ demandCustomerName: null,
|
|
|
+ lastStockOrg: null,
|
|
|
+ lastStockOrgName: null,
|
|
|
+ superiorStockOrg: null,
|
|
|
+ superiorStockOrgName: null,
|
|
|
+ allotCode: null,
|
|
|
+ deliveryAddress: null,
|
|
|
+ deliveryAddressName: null,
|
|
|
+ contacts: null,
|
|
|
+ contactsPhone: null,
|
|
|
+ address: null,
|
|
|
+ source: null,
|
|
|
+ priceType: 'order',
|
|
|
+ puManagerApprover: null,
|
|
|
+ puManagerApproverName: null,
|
|
|
+ processTime: null,
|
|
|
+ affirmer: null,
|
|
|
+ tenantId: null,
|
|
|
+ revision: null,
|
|
|
+ createBy: null,
|
|
|
+ createByName: null,
|
|
|
+ createTime: null,
|
|
|
+ updateBy: null,
|
|
|
+ updateByName: null,
|
|
|
+ updateTime: null,
|
|
|
+ delFlag: 0,
|
|
|
+ // 新增字段
|
|
|
+ model: null,
|
|
|
+ storageCondition: null,
|
|
|
+ transportationCondition: null,
|
|
|
+ },
|
|
|
+ // 无限滚动配置
|
|
|
+ loadDisabled: true,
|
|
|
+ page: 0,
|
|
|
+ total: 5,
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -629,11 +753,27 @@ export default {
|
|
|
} else if(this.pageStu == 'edit') {
|
|
|
this.getDetails(this.row)
|
|
|
} else if (this.pageStu == 'add') {
|
|
|
+ this.loading = false
|
|
|
+ this.basicForm.demandPersonal = this.$store.state.user.name
|
|
|
+ this.basicForm.demandPersonalName = this.$store.state.user.nickName
|
|
|
+ this.basicForm.demandDept = this.$store.state.user.deptId
|
|
|
+ this.basicForm.demandDeptName = this.$store.state.user.deptName
|
|
|
if (this.basicForm.demandPersonal) { this.reBackRefer('CONTACTS_PARAM', this.basicForm.demandPersonal, '需求人员') }
|
|
|
if (this.basicForm.demandDept) { this.reBackRefer('DEPT_PARAM', this.basicForm.demandDept) }
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ // 无限滚动加载配置
|
|
|
+ load() {
|
|
|
+ if (this.loadDisabled) return;
|
|
|
+ this.page++;
|
|
|
+ if (this.page <= this.total) {
|
|
|
+ this.basicForm.puDemandItemList = this.basicForm.puDemandItemList.concat(this.basicForm.puDemandItemList);
|
|
|
+ }
|
|
|
+ if (this.page === this.total) {
|
|
|
+ this.loadDisabled = true;
|
|
|
+ }
|
|
|
+ },
|
|
|
// 改变单据日期时清空子表的调拨日期
|
|
|
changeDemandDate() {
|
|
|
this.basicForm.puDemandItemList.forEach(item => {
|
|
@@ -713,7 +853,9 @@ export default {
|
|
|
this.basicForm.source = '4'
|
|
|
this.basicForm.isCustomerSpecified = 'N'
|
|
|
this.basicForm.demandPersonal = this.$store.state.user.name
|
|
|
+ this.basicForm.demandPersonalName = this.$store.state.user.nickName
|
|
|
this.basicForm.demandDept = this.$store.state.user.deptId
|
|
|
+ this.basicForm.demandDeptName = this.$store.state.user.deptName
|
|
|
if (this.basicForm.demandPersonal) { this.reBackRefer('CONTACTS_PARAM', this.basicForm.demandPersonal, '需求人员') }
|
|
|
if (this.basicForm.demandDept) { this.reBackRefer('DEPT_PARAM', this.basicForm.demandDept) }
|
|
|
this.basicForm.puDemandItemList.forEach(item => {
|
|
@@ -751,6 +893,10 @@ export default {
|
|
|
item.statusAllot = 'N'
|
|
|
})
|
|
|
},
|
|
|
+ editPage() {
|
|
|
+ this.sonPageStu = 'edit'
|
|
|
+ this.sonDisable = false
|
|
|
+ },
|
|
|
handleData() {
|
|
|
console.log('222')
|
|
|
// 复制新增把id,编码,创建人置为空,子表去掉id
|
|
@@ -835,116 +981,11 @@ export default {
|
|
|
},
|
|
|
// 增行
|
|
|
addLine() {
|
|
|
- const newLine = {
|
|
|
- contacts: null,
|
|
|
- id: null,
|
|
|
- demandId: null,
|
|
|
- status: null,
|
|
|
- businessDept: null,
|
|
|
- businessDeptName: null,
|
|
|
- materialCategory: null,
|
|
|
- buyer: null,
|
|
|
- buyerName: null,
|
|
|
- mateiralClassifyOne: null,
|
|
|
- materialClassifyOneName: null,
|
|
|
- materialClassifyTwo: null,
|
|
|
- materialClassifyTwoName: null,
|
|
|
- materialClassifyThree: null,
|
|
|
- materialClassifyThreeName: null,
|
|
|
- materialClassifyFour: null,
|
|
|
- materialClassifyFourName: null,
|
|
|
- materialCode: null,
|
|
|
- material: null,
|
|
|
- materialName: null,
|
|
|
- classifyId: null,
|
|
|
- specification: null,
|
|
|
- unit: null,
|
|
|
- unitName: null,
|
|
|
- manufacturerName: null,
|
|
|
- registrant: null,
|
|
|
- puPeriod: null,
|
|
|
- expiryUnit: null,
|
|
|
- expiry: null,
|
|
|
- minPackage: null,
|
|
|
- minOrderQty: null,
|
|
|
- minBatch: null,
|
|
|
- safeStock: null,
|
|
|
- averageQtyMonth: null,
|
|
|
- qty: null,
|
|
|
- adjustmentPersonal: null,
|
|
|
- adjustmentTime: null,
|
|
|
- manualRegulation: null,
|
|
|
- updateCause: null,
|
|
|
- reservedProportion: null,
|
|
|
- reservedPeriod: null,
|
|
|
- reservedQty: null,
|
|
|
- demandPeriod: null,
|
|
|
- forecastClassify: null,
|
|
|
- onemonthAvgVolume: null,
|
|
|
- threemonthAvgVolume: null,
|
|
|
- puFreight: null,
|
|
|
- deliveryDate: null,
|
|
|
- isUrgency: this.basicForm.billType == 'JJXQ' ? 'Y' : 'N',
|
|
|
- isReplenishment: this.basicForm.billType == 'BDXQ'? 'Y': 'N',
|
|
|
- isBatchLock: 'N',
|
|
|
- isCustomerSpecified: '',
|
|
|
- remark: null,
|
|
|
- puRemark: null,
|
|
|
- lastWarehouseQty: null,
|
|
|
- resDemandQty: null,
|
|
|
- lastWarehouse: null,
|
|
|
- lastWarehouseName: null,
|
|
|
- deliveryWarehouse: null,
|
|
|
- deliveryWarehouseName: null,
|
|
|
- lastAllocation: null,
|
|
|
- lastAllocationName: null,
|
|
|
- deliveryAllocation: null,
|
|
|
- deliveryAllocationName: null,
|
|
|
- passageOn: null,
|
|
|
- puOrg: null,
|
|
|
- purOrgName: null,
|
|
|
- lastStockQty: null,
|
|
|
- superiorCenterQty: null,
|
|
|
- superiorAllotQty: null,
|
|
|
- availableQty: null,
|
|
|
- statusAllot: 'N',
|
|
|
- additionalSupplier: null,
|
|
|
- additionalSupplierName: null,
|
|
|
- periodUnit: null,
|
|
|
- demandCustomer: this.basicForm.customer,
|
|
|
- demandCustomerName: this.basicForm.customerName,
|
|
|
- businessDept: this.basicForm.demandDept,
|
|
|
- businessDeptName: null,
|
|
|
- lastStockOrg: null,
|
|
|
- lastStockOrgName: null,
|
|
|
- superiorStockOrg: null,
|
|
|
- superiorStockOrgName: null,
|
|
|
- allotCode: null,
|
|
|
- deliveryAddress: null,
|
|
|
- deliveryAddressName: null,
|
|
|
- contacts: null,
|
|
|
- contactsPhone: null,
|
|
|
- address: null,
|
|
|
- source: null,
|
|
|
- priceType: 'order',
|
|
|
- puManagerApprover: null,
|
|
|
- puManagerApproverName: null,
|
|
|
- processTime: null,
|
|
|
- affirmer: null,
|
|
|
- tenantId: null,
|
|
|
- revision: null,
|
|
|
- createBy: null,
|
|
|
- createByName: null,
|
|
|
- createTime: null,
|
|
|
- updateBy: null,
|
|
|
- updateByName: null,
|
|
|
- updateTime: null,
|
|
|
- delFlag: 0,
|
|
|
- // 新增字段
|
|
|
- model: null,
|
|
|
- storageCondition: null,
|
|
|
- transportationCondition: null,
|
|
|
- }
|
|
|
+ const newLine = {...this.sonModel}
|
|
|
+ newLine.isUrgency = (this.basicForm.billType == 'JJXQ' ? 'Y' : 'N')
|
|
|
+ newLine.isReplenishment = (this.basicForm.billType == 'BDXQ' ? 'Y' : 'N')
|
|
|
+ newLine.demandCustomer = this.basicForm.customer
|
|
|
+ newLine.demandCustomerName = this.basicForm.customerName
|
|
|
this.basicForm.puDemandItemList.push(newLine)
|
|
|
// 补单需求状态改变
|
|
|
if (this.basicForm.billType == 'BDXQ') {
|
|
@@ -999,6 +1040,10 @@ export default {
|
|
|
this.isBDXQ = false
|
|
|
}
|
|
|
}
|
|
|
+ }).then(() => {
|
|
|
+ this.loading = false
|
|
|
+ }).catch(err => {
|
|
|
+ this.loading = false
|
|
|
})
|
|
|
}
|
|
|
})
|
|
@@ -1015,6 +1060,9 @@ export default {
|
|
|
})
|
|
|
console.log('选中数组', this.ids)
|
|
|
},
|
|
|
+ rowSelect(row) {
|
|
|
+ this.$refs.table.toggleRowSelection(row);
|
|
|
+ },
|
|
|
// 点击预留单展示
|
|
|
showReserved() {
|
|
|
this.dialog.config = true
|
|
@@ -1100,6 +1148,7 @@ export default {
|
|
|
if(this.referCondition.type == 'CONTACTS_PARAM' && this.referCondition.title == '需求人员') {
|
|
|
this.personOptions = selection
|
|
|
this.basicForm.demandPersonal = selection[0].code
|
|
|
+ this.basicForm.demandPersonalName = selection[0].name
|
|
|
}
|
|
|
if(this.referCondition.type == 'CONTACTS_PARAM' && this.referCondition.title == '采购员') {
|
|
|
this.purchaseManOptions = selection
|
|
@@ -1118,7 +1167,7 @@ export default {
|
|
|
}
|
|
|
if(this.referCondition.type == 'ADDRESS_PARAM' && this.referCondition.title == '收货地址') {
|
|
|
this.adjust.deliveryAddressName = selection[0].name
|
|
|
- this.adjust.deliveryAddress = selection[0].id
|
|
|
+ this.adjust.deliveryAddress = selection[0].code
|
|
|
this.adjust.contacts = selection[0].contactsName
|
|
|
this.adjust.contactsPhone = selection[0].contactsPhone
|
|
|
this.adjust.address = selection[0].address
|
|
@@ -1126,6 +1175,7 @@ export default {
|
|
|
if(this.referCondition.type == 'DEPT_PARAM') {
|
|
|
this.deptOptions = selection
|
|
|
this.basicForm.demandDept = selection[0].id
|
|
|
+ this.basicForm.demandDeptName = selection[0].name
|
|
|
}
|
|
|
if(this.referCondition.title == '选择收货仓库') {
|
|
|
this.basicForm.puDemandItemList[this.tableIndex].deliveryWarehouse = selection[0].id
|
|
@@ -1143,7 +1193,7 @@ export default {
|
|
|
}
|
|
|
if(this.referCondition.title == '选择收货地址') {
|
|
|
this.basicForm.puDemandItemList[this.tableIndex].deliveryAddressName = selection[0].name
|
|
|
- this.basicForm.puDemandItemList[this.tableIndex].deliveryAddress = selection[0].id
|
|
|
+ this.basicForm.puDemandItemList[this.tableIndex].deliveryAddress = selection[0].code
|
|
|
this.basicForm.puDemandItemList[this.tableIndex].contacts = selection[0].contactsName
|
|
|
this.basicForm.puDemandItemList[this.tableIndex].contactsPhone = selection[0].contactsPhone
|
|
|
this.basicForm.puDemandItemList[this.tableIndex].address = selection[0].address
|
|
@@ -1155,171 +1205,136 @@ export default {
|
|
|
e.preventDefault() //阻止默认粘贴事件
|
|
|
let source = e.clipboardData.getData("Text");
|
|
|
console.log('scope', scope.column.property)
|
|
|
- console.log('eee:', source)
|
|
|
// 首先对源头进行解析
|
|
|
let rows = source.split("\r\n"); // 拆成一个数组
|
|
|
// 数组去除空字符串
|
|
|
rows = rows.filter(item => {
|
|
|
return item && item.trim()
|
|
|
})
|
|
|
- console.log('复制的数组',rows);
|
|
|
- console.log('列表的数组',this.basicForm.puDemandItemList)
|
|
|
- if (rows.length < 1000) {
|
|
|
- await getRefer({ type: 'MATERIAL_PARAM', materialCodeList: rows }).then(res => {
|
|
|
- if (res.code === 200) {
|
|
|
- let rowList = res.rows
|
|
|
- for (let i = 0; i<rowList.length; i++) {
|
|
|
- let line = {
|
|
|
- contacts: null,
|
|
|
- id: null,
|
|
|
- demandId: null,
|
|
|
- status: null,
|
|
|
- businessDept: null,
|
|
|
- businessDeptName: null,
|
|
|
- materialCategory: null,
|
|
|
- buyer: null,
|
|
|
- buyerName: null,
|
|
|
- mateiralClassifyOne: null,
|
|
|
- materialClassifyOneName: null,
|
|
|
- materialClassifyTwo: null,
|
|
|
- materialClassifyTwoName: null,
|
|
|
- materialClassifyThree: null,
|
|
|
- materialClassifyThreeName: null,
|
|
|
- materialClassifyFour: null,
|
|
|
- materialClassifyFourName: null,
|
|
|
- materialCode: null,
|
|
|
- material: null,
|
|
|
- materialName: null,
|
|
|
- classifyId: null,
|
|
|
- specification: null,
|
|
|
- unit: null,
|
|
|
- unitName: null,
|
|
|
- manufacturerName: null,
|
|
|
- registrant: null,
|
|
|
- puPeriod: null,
|
|
|
- expiryUnit: null,
|
|
|
- expiry: null,
|
|
|
- minPackage: null,
|
|
|
- minOrderQty: null,
|
|
|
- minBatch: null,
|
|
|
- safeStock: null,
|
|
|
- averageQtyMonth: null,
|
|
|
- qty: null,
|
|
|
- adjustmentPersonal: null,
|
|
|
- adjustmentTime: null,
|
|
|
- manualRegulation: null,
|
|
|
- updateCause: null,
|
|
|
- reservedProportion: null,
|
|
|
- reservedPeriod: null,
|
|
|
- reservedQty: null,
|
|
|
- demandPeriod: null,
|
|
|
- forecastClassify: null,
|
|
|
- onemonthAvgVolume: null,
|
|
|
- threemonthAvgVolume: null,
|
|
|
- puFreight: null,
|
|
|
- deliveryDate: null,
|
|
|
- isUrgency: this.basicForm.billType == 'JJXQ' ? 'Y' : 'N',
|
|
|
- isReplenishment: this.basicForm.billType == 'BDXQ' ? 'Y' : 'N',
|
|
|
- isBatchLock: 'N',
|
|
|
- isCustomerSpecified: '',
|
|
|
- remark: null,
|
|
|
- puRemark: null,
|
|
|
- lastWarehouseQty: null,
|
|
|
- resDemandQty: null,
|
|
|
- lastWarehouse: null,
|
|
|
- lastWarehouseName: null,
|
|
|
- deliveryWarehouse: null,
|
|
|
- deliveryWarehouseName: null,
|
|
|
- lastAllocation: null,
|
|
|
- lastAllocationName: null,
|
|
|
- deliveryAllocation: null,
|
|
|
- deliveryAllocationName: null,
|
|
|
- passageOn: null,
|
|
|
- puOrg: null,
|
|
|
- purOrgName: null,
|
|
|
- lastStockQty: null,
|
|
|
- superiorCenterQty: null,
|
|
|
- superiorAllotQty: null,
|
|
|
- availableQty: null,
|
|
|
- statusAllot: 'N',
|
|
|
- additionalSupplier: null,
|
|
|
- additionalSupplierName: null,
|
|
|
- periodUnit: null,
|
|
|
- demandCustomer: this.basicForm.customer,
|
|
|
- demandCustomerName: this.basicForm.customerName,
|
|
|
- businessDept: this.basicForm.demandDept,
|
|
|
- businessDeptName: null,
|
|
|
- lastStockOrg: null,
|
|
|
- lastStockOrgName: null,
|
|
|
- superiorStockOrg: null,
|
|
|
- superiorStockOrgName: null,
|
|
|
- allotCode: null,
|
|
|
- deliveryAddress: null,
|
|
|
- deliveryAddressName: null,
|
|
|
- contacts: null,
|
|
|
- contactsPhone: null,
|
|
|
- address: null,
|
|
|
- source: null,
|
|
|
- priceType: 'order',
|
|
|
- puManagerApprover: null,
|
|
|
- puManagerApproverName: null,
|
|
|
- processTime: null,
|
|
|
- affirmer: null,
|
|
|
- tenantId: null,
|
|
|
- revision: null,
|
|
|
- createBy: null,
|
|
|
- createByName: null,
|
|
|
- createTime: null,
|
|
|
- updateBy: null,
|
|
|
- updateByName: null,
|
|
|
- updateTime: null,
|
|
|
- delFlag: 0,
|
|
|
- // 新增字段
|
|
|
- model: null,
|
|
|
- storageCondition: null,
|
|
|
- transportationCondition: null,
|
|
|
+
|
|
|
+ if (rows.length < 100) {
|
|
|
+
|
|
|
+ if(scope.column.property == 'materialCode') {
|
|
|
+ await getRefer({ type: 'MATERIAL_PARAM', materialCodeList: rows }).then(res => {
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ if (res.code === 200) {
|
|
|
+ let rowList = res.rows
|
|
|
+ let newLine = []
|
|
|
+ for (let i = 0; i<rowList.length; i++) {
|
|
|
+ let line = {...this.sonModel}
|
|
|
+ line.isUrgency = (this.basicForm.billType == 'JJXQ' ? 'Y' : 'N')
|
|
|
+ line.isReplenishment = (this.basicForm.billType == 'BDXQ' ? 'Y' : 'N')
|
|
|
+ line.demandCustomer = this.basicForm.customer
|
|
|
+ line.demandCustomerName = this.basicForm.customerName
|
|
|
+ line.materialCode = rowList[i].code
|
|
|
+ line.material = rowList[i].id
|
|
|
+ line.materialName = rowList[i].name
|
|
|
+ line.classifyId = rowList[i].classifyId
|
|
|
+ line.materialClassifyOneName = rowList[i].oneClass
|
|
|
+ line.materialClassifyTwoName = rowList[i].twoClass
|
|
|
+ line.materialClassifyThreeName = rowList[i].threeClass
|
|
|
+ line.materialClassifyFourName = rowList[i].fourClass
|
|
|
+ line.specification = rowList[i].specification
|
|
|
+ line.model = rowList[i].model
|
|
|
+ line.unit = rowList[i].unitId
|
|
|
+ line.unitName = rowList[i].unitIdName
|
|
|
+ line.registrant = rowList[i].registrant
|
|
|
+ line.manufacturerName = rowList[i].manufacturerIdName
|
|
|
+ line.puPeriod = rowList[i].deliveryPeriod
|
|
|
+ line.expiry = rowList[i].usefulLife
|
|
|
+ line.expiryUnit = rowList[i].expiryUnitIdName
|
|
|
+ // line.minPackage = rowList[i].usefulLife
|
|
|
+ line.minPackage = rowList[i].minPackQty
|
|
|
+ line.minOrderQty = rowList[i].minOrderQty
|
|
|
+ line.minBatch = rowList[i].minBatchQty
|
|
|
+ line.safeStock = rowList[i].safeStock
|
|
|
+ line.purOrgName = rowList[i].purchasingOrganizationName
|
|
|
+ line.puOrg = rowList[i].purchasingOrganization
|
|
|
+ // 物料存储条件和运输条件
|
|
|
+ line.transportationCondition = rowList[i].transportationCondition
|
|
|
+ line.storageCondition = rowList[i].storageCondition
|
|
|
+ newLine.push(line)
|
|
|
+ console.log('临时数组', newLine)
|
|
|
+ }
|
|
|
+ // 删除指定下标
|
|
|
+ this.basicForm.puDemandItemList.splice(index,this.basicForm.puDemandItemList.length - index,...newLine)
|
|
|
+ this.$modal.notifySuccess("共粘贴" + rowList.length + '条数据');
|
|
|
}
|
|
|
- line.businessDept = rowList[i].businessDepartment
|
|
|
- line.businessDeptName = rowList[i].businessDepartmentName
|
|
|
- line.materialCode = rowList[i].code
|
|
|
- line.material = rowList[i].id
|
|
|
- line.materialName = rowList[i].name
|
|
|
- line.classifyId = rowList[i].classifyId
|
|
|
- line.materialClassifyOneName = rowList[i].oneClass
|
|
|
- line.materialClassifyTwoName = rowList[i].twoClass
|
|
|
- line.materialClassifyThreeName = rowList[i].threeClass
|
|
|
- line.materialClassifyFourName = rowList[i].fourClass
|
|
|
- line.specification = rowList[i].specification
|
|
|
- line.model = rowList[i].model
|
|
|
- line.unit = rowList[i].unitId
|
|
|
- line.unitName = rowList[i].unitIdName
|
|
|
- line.registrant = rowList[i].registrant
|
|
|
- line.manufacturerName = rowList[i].manufacturerIdName
|
|
|
- line.puPeriod = rowList[i].deliveryPeriod
|
|
|
- line.expiry = rowList[i].usefulLife
|
|
|
- line.expiryUnit = rowList[i].expiryUnitIdName
|
|
|
- // line.minPackage = rowList[i].usefulLife
|
|
|
- line.minPackage = rowList[i].minPackQty
|
|
|
- line.minOrderQty = rowList[i].minOrderQty
|
|
|
- line.minBatch = rowList[i].minBatchQty
|
|
|
- line.safeStock = rowList[i].safeStock
|
|
|
- line.purOrgName = rowList[i].purchasingOrganizationName
|
|
|
- line.puOrg = rowList[i].purchasingOrganization
|
|
|
- // 物料存储条件和运输条件
|
|
|
- line.transportationCondition = rowList[i].transportationCondition
|
|
|
- line.storageCondition = rowList[i].storageCondition
|
|
|
- this.basicForm.puDemandItemList.push(line)
|
|
|
- // console.log('临时数组', line)
|
|
|
+ }).then(() => {
|
|
|
+ this.$refs.table.doLayout()
|
|
|
+ }).catch(err => {
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ })
|
|
|
+
|
|
|
+ }else if(scope.column.property == 'qty') {
|
|
|
+ console.log('复制内容:', rows)
|
|
|
+ let newLine = []
|
|
|
+ if(this.basicForm.puDemandItemList.length <= 1) {
|
|
|
+ for (let i = 0; i<rows.length; i++) {
|
|
|
+ let line = {...this.sonModel}
|
|
|
+ line.isUrgency = (this.basicForm.billType == 'JJXQ' ? 'Y' : 'N')
|
|
|
+ line.isReplenishment = (this.basicForm.billType == 'BDXQ' ? 'Y' : 'N')
|
|
|
+ line.demandCustomer = this.basicForm.customer
|
|
|
+ line.demandCustomerName = this.basicForm.customerName
|
|
|
+ line.qty = rows[i]
|
|
|
+ newLine.push(line)
|
|
|
+ }
|
|
|
+ // 删除指定下标
|
|
|
+ this.basicForm.puDemandItemList.splice(index,this.basicForm.puDemandItemList.length - index,...newLine)
|
|
|
+ this.$modal.notifySuccess("共粘贴" + rows.length + '条数据');
|
|
|
+ this.$refs.table.doLayout()
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ } else {
|
|
|
+ for(let i = index , j = 0; i < this.basicForm.puDemandItemList.length; i++, j++) {
|
|
|
+ this.basicForm.puDemandItemList[i].qty = rows[j]
|
|
|
}
|
|
|
- this.$modal.notifySuccess("共粘贴" + rowList.length + '条数据');
|
|
|
+ this.$refs.table.doLayout()
|
|
|
+ this.$modal.closeLoading();
|
|
|
}
|
|
|
- }).catch(err => {
|
|
|
- this.$modal.closeLoading();
|
|
|
- })
|
|
|
- this.$modal.closeLoading();
|
|
|
- console.log('列表', this.basicForm.puDemandItemList)
|
|
|
+
|
|
|
+ }else if(scope.column.property == 'additionalSupplierName') {
|
|
|
+ await getRefer({ type: 'SUPPLIER_PARAM', searchList: rows }).then(res => {
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ if (res.code === 200) {
|
|
|
+ let rowList = res.rows
|
|
|
+ let newLine = []
|
|
|
+ for (let i = 0; i<rowList.length; i++) {
|
|
|
+ let line = {...this.sonModel}
|
|
|
+ line.isUrgency = (this.basicForm.billType == 'JJXQ' ? 'Y' : 'N')
|
|
|
+ line.isReplenishment = (this.basicForm.billType == 'BDXQ' ? 'Y' : 'N')
|
|
|
+ line.demandCustomer = this.basicForm.customer
|
|
|
+ line.demandCustomerName = this.basicForm.customerName
|
|
|
+ line.additionalSupplier = rowList[i].id
|
|
|
+ line.additionalSupplierName = rowList[i].name
|
|
|
+ newLine.push(line)
|
|
|
+ console.log('临时数组', newLine)
|
|
|
+ }
|
|
|
+
|
|
|
+ if(this.basicForm.puDemandItemList.length <= 1) {
|
|
|
+ // 删除指定下标
|
|
|
+ this.basicForm.puDemandItemList.splice(index,this.basicForm.puDemandItemList.length - index,...newLine)
|
|
|
+ this.$modal.notifySuccess("共粘贴" + rowList.length + '条数据');
|
|
|
+ } else {
|
|
|
+ for(let i = index , j = 0; i < this.basicForm.puDemandItemList.length; i++, j++) {
|
|
|
+ this.basicForm.puDemandItemList[i].additionalSupplier = newLine[j].additionalSupplier
|
|
|
+ this.basicForm.puDemandItemList[i].additionalSupplierName = newLine[j].additionalSupplierName
|
|
|
+ }
|
|
|
+ this.$refs.table.doLayout()
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }).then(() => {
|
|
|
+ this.$refs.table.doLayout()
|
|
|
+ }).catch(err => {
|
|
|
+ this.$modal.closeLoading();
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
} else {
|
|
|
- this.$modal.notifyWarning("复制长度不能超过1000!");
|
|
|
+ this.$modal.notifyWarning("复制长度不能超过100!");
|
|
|
+ this.$modal.closeLoading();
|
|
|
}
|
|
|
},
|
|
|
// 明细行选择物料编码带出数据
|
|
@@ -1372,8 +1387,6 @@ export default {
|
|
|
this.basicForm.puDemandItemList[this.tableIndex].buyerName = res.rows[0].buyerName
|
|
|
}
|
|
|
})
|
|
|
- this.basicForm.puDemandItemList[this.tableIndex].businessDept = selection[0].businessDepartment
|
|
|
- this.basicForm.puDemandItemList[this.tableIndex].businessDeptName = selection[0].businessDepartmentName
|
|
|
this.basicForm.puDemandItemList[this.tableIndex].materialCode = selection[0].code
|
|
|
this.basicForm.puDemandItemList[this.tableIndex].material = selection[0].id
|
|
|
this.basicForm.puDemandItemList[this.tableIndex].materialName = selection[0].name
|
|
@@ -1404,117 +1417,13 @@ export default {
|
|
|
// 选中骨科耗材时候的物料,需求客户不必填
|
|
|
} else {
|
|
|
console.log('xxxxx', selection)
|
|
|
+ let newLine = []
|
|
|
for (let i = 0;i<selection.length;i++) {
|
|
|
- let line = {
|
|
|
- contacts: null,
|
|
|
- id: null,
|
|
|
- demandId: null,
|
|
|
- status: null,
|
|
|
- businessDept: null,
|
|
|
- businessDeptName: null,
|
|
|
- materialCategory: null,
|
|
|
- buyer: null,
|
|
|
- buyerName: null,
|
|
|
- mateiralClassifyOne: null,
|
|
|
- materialClassifyOneName: null,
|
|
|
- materialClassifyTwo: null,
|
|
|
- materialClassifyTwoName: null,
|
|
|
- materialClassifyThree: null,
|
|
|
- materialClassifyThreeName: null,
|
|
|
- materialClassifyFour: null,
|
|
|
- materialClassifyFourName: null,
|
|
|
- materialCode: null,
|
|
|
- material: null,
|
|
|
- materialName: null,
|
|
|
- classifyId: null,
|
|
|
- specification: null,
|
|
|
- unit: null,
|
|
|
- unitName: null,
|
|
|
- manufacturerName: null,
|
|
|
- registrant: null,
|
|
|
- puPeriod: null,
|
|
|
- expiryUnit: null,
|
|
|
- expiry: null,
|
|
|
- minPackage: null,
|
|
|
- minOrderQty: null,
|
|
|
- minBatch: null,
|
|
|
- safeStock: null,
|
|
|
- averageQtyMonth: null,
|
|
|
- qty: null,
|
|
|
- adjustmentPersonal: null,
|
|
|
- adjustmentTime: null,
|
|
|
- manualRegulation: null,
|
|
|
- updateCause: null,
|
|
|
- reservedProportion: null,
|
|
|
- reservedPeriod: null,
|
|
|
- reservedQty: null,
|
|
|
- demandPeriod: null,
|
|
|
- forecastClassify: null,
|
|
|
- onemonthAvgVolume: null,
|
|
|
- threemonthAvgVolume: null,
|
|
|
- puFreight: null,
|
|
|
- deliveryDate: null,
|
|
|
- isUrgency: this.basicForm.billType == 'JJXQ' ? 'Y' : 'N',
|
|
|
- isReplenishment: this.basicForm.billType == 'BDXQ' ? 'Y' : 'N',
|
|
|
- isBatchLock: 'N',
|
|
|
- isCustomerSpecified: '',
|
|
|
- remark: null,
|
|
|
- puRemark: null,
|
|
|
- lastWarehouseQty: null,
|
|
|
- resDemandQty: null,
|
|
|
- lastWarehouse: null,
|
|
|
- lastWarehouseName: null,
|
|
|
- deliveryWarehouse: null,
|
|
|
- deliveryWarehouseName: null,
|
|
|
- lastAllocation: null,
|
|
|
- lastAllocationName: null,
|
|
|
- deliveryAllocation: null,
|
|
|
- deliveryAllocationName: null,
|
|
|
- passageOn: null,
|
|
|
- puOrg: null,
|
|
|
- purOrgName: null,
|
|
|
- lastStockQty: null,
|
|
|
- superiorCenterQty: null,
|
|
|
- superiorAllotQty: null,
|
|
|
- availableQty: null,
|
|
|
- statusAllot: 'N',
|
|
|
- additionalSupplier: null,
|
|
|
- additionalSupplierName: null,
|
|
|
- periodUnit: null,
|
|
|
- demandCustomer: this.basicForm.customer,
|
|
|
- demandCustomerName: this.basicForm.customerName,
|
|
|
- businessDept: this.basicForm.demandDept,
|
|
|
- businessDeptName: null,
|
|
|
- lastStockOrg: null,
|
|
|
- lastStockOrgName: null,
|
|
|
- superiorStockOrg: null,
|
|
|
- superiorStockOrgName: null,
|
|
|
- allotCode: null,
|
|
|
- deliveryAddress: null,
|
|
|
- deliveryAddressName: null,
|
|
|
- contacts: null,
|
|
|
- contactsPhone: null,
|
|
|
- address: null,
|
|
|
- source: null,
|
|
|
- priceType: 'order',
|
|
|
- puManagerApprover: null,
|
|
|
- puManagerApproverName: null,
|
|
|
- processTime: null,
|
|
|
- affirmer: null,
|
|
|
- tenantId: null,
|
|
|
- revision: null,
|
|
|
- createBy: null,
|
|
|
- createByName: null,
|
|
|
- createTime: null,
|
|
|
- updateBy: null,
|
|
|
- updateByName: null,
|
|
|
- updateTime: null,
|
|
|
- delFlag: 0,
|
|
|
- // 新增字段
|
|
|
- model: null,
|
|
|
- storageCondition: null,
|
|
|
- transportationCondition: null,
|
|
|
- }
|
|
|
+ let line = {...this.sonModel}
|
|
|
+ line.isUrgency = (this.basicForm.billType == 'JJXQ' ? 'Y' : 'N')
|
|
|
+ line.isReplenishment = (this.basicForm.billType == 'BDXQ' ? 'Y' : 'N')
|
|
|
+ line.demandCustomer = this.basicForm.customer
|
|
|
+ line.demandCustomerName = this.basicForm.customerName
|
|
|
// 通过选择物料查询采购员
|
|
|
queryMan(selection[i].id).then(res => {
|
|
|
if (res.code === 200 && res.rows.length !== 0) {
|
|
@@ -1522,8 +1431,6 @@ export default {
|
|
|
line.buyerName = res.rows[0].buyerName
|
|
|
}
|
|
|
})
|
|
|
- line.businessDept = selection[i].businessDepartment
|
|
|
- line.businessDeptName = selection[i].businessDepartmentName
|
|
|
line.materialCode = selection[i].code
|
|
|
line.material = selection[i].id
|
|
|
line.materialName = selection[i].name
|
|
@@ -1551,10 +1458,12 @@ export default {
|
|
|
// 物料存储条件和运输条件
|
|
|
line.transportationCondition = selection[i].transportationCondition
|
|
|
line.storageCondition = selection[i].storageCondition
|
|
|
- this.basicForm.puDemandItemList.push(line)
|
|
|
+ // this.basicForm.puDemandItemList.push(line)
|
|
|
+ newLine.push(line)
|
|
|
}
|
|
|
// 删除指定下标
|
|
|
- this.basicForm.puDemandItemList.splice(this.tableIndex,1)
|
|
|
+ this.basicForm.puDemandItemList.splice(this.tableIndex,1,...newLine)
|
|
|
+ // this.basicForm.puDemandItemList.splice(this.tableIndex,1)
|
|
|
}
|
|
|
},
|
|
|
// 明细行选择业务部门参照带出业务部门数据
|
|
@@ -1730,6 +1639,7 @@ export default {
|
|
|
h('span', ' ' + column.label)
|
|
|
];
|
|
|
},
|
|
|
+ // 表格表头标星
|
|
|
anotherRedStar(h, { column }) {
|
|
|
if(this.isBDXQ) {
|
|
|
return [
|
|
@@ -1742,13 +1652,18 @@ export default {
|
|
|
];
|
|
|
}
|
|
|
},
|
|
|
+ // 审批
|
|
|
jumpOA() {
|
|
|
toOA(this.$store.state.user.name, this.basicForm.flowId).then(res => {
|
|
|
if(res.code === 200) {
|
|
|
window.open(res.oaUrl)
|
|
|
}
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
+ // 解决表格选中了又自动取消的问题
|
|
|
+ getRowKeys(row) {
|
|
|
+ return row.id
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -1782,7 +1697,7 @@ export default {
|
|
|
background: #f11616;
|
|
|
}
|
|
|
::v-deep .el-table__row > td {
|
|
|
- border: none;
|
|
|
+ border-right: none;
|
|
|
}
|
|
|
.pltzTxt{
|
|
|
text-align: right;
|