|
@@ -21,7 +21,7 @@
|
|
|
<el-row>
|
|
|
<el-col v-for="(item, index) in basicData.column" :span="item.span?item.span:8" :key="index">
|
|
|
<el-form-item :label="item.label" :prop="item.prop" :rules="item.rules">
|
|
|
- <el-date-picker v-if="item.type === 'datetime'" style="width: 100%;" v-model="form[item.prop]" size="small" type="datetime" placeholder="选择日期" value-format="yyyy-MM-dd HH:mm:ss"/>
|
|
|
+ <el-date-picker v-if="item.type === 'date'" style="width: 100%;" v-model="form[item.prop]" size="small" type="date" placeholder="选择日期" value-format="yyyy-MM-dd HH:mm:ss"/>
|
|
|
<el-select v-else-if="item.type === 'select'" style="width: 100%" v-model="form[item.prop]" size="small" placeholder="请选择" clearable filterable>
|
|
|
<el-option
|
|
|
v-for="(data, index) in item.dicData"
|
|
@@ -31,6 +31,15 @@
|
|
|
></el-option>
|
|
|
</el-select>
|
|
|
<selectComponent v-else-if="item.type === 'component'" v-model="form[item.prop]" :configuration="configuration"/>
|
|
|
+ <el-select v-else-if="item.prop === 'orderType'" style="width: 100%" v-model="form[item.prop]" size="small" placeholder="请选择" clearable filterable>
|
|
|
+ <el-option v-for="(item,index) in contractTypeDic" :key="index" :label="item.dictValue" :value="item.dictValue"></el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-select v-else-if="item.prop === 'currency'" style="width: 100%" v-model="form[item.prop]" size="small" placeholder="请选择" clearable filterable>
|
|
|
+ <el-option v-for="(item,index) in currencyDic" :key="index" :label="item.dictValue" :value="item.dictValue"></el-option>
|
|
|
+ </el-select>
|
|
|
+ <el-select v-else-if="item.prop === 'paymentType'" style="width: 100%" v-model="form[item.prop]" size="small" placeholder="请选择" clearable filterable>
|
|
|
+ <el-option v-for="(item,index) in paymentTypeDic" :key="index" :label="item.dictValue" :value="item.dictValue"></el-option>
|
|
|
+ </el-select>
|
|
|
<el-input type="textarea" v-else-if="(item.prop === 'orderRemark')" v-model="form[item.prop]" size="small" autocomplete="off" placeholder="请输入"></el-input>
|
|
|
<el-input type="age" v-else v-model="form[item.prop]" :disabled="item.disabled?true:false" size="small" autocomplete="off" placeholder="请输入"></el-input>
|
|
|
</el-form-item>
|
|
@@ -66,72 +75,42 @@
|
|
|
@click="commoditySelection"
|
|
|
>录入明细
|
|
|
</el-button>
|
|
|
- <el-button type="primary"
|
|
|
- icon="el-icon-plus"
|
|
|
+ <el-button type="warning"
|
|
|
+ icon="el-icon-s-check"
|
|
|
size="small"
|
|
|
- @click=""
|
|
|
+ :disabled="selectContact.length == 0"
|
|
|
+ @click="beforePage(true)"
|
|
|
>申请付款(开证)
|
|
|
</el-button>
|
|
|
- <el-button type="primary"
|
|
|
+ <el-button type="warning"
|
|
|
size="small"
|
|
|
- @click=""
|
|
|
- >查看申请记录
|
|
|
+ :disabled="selectContact.length == 0"
|
|
|
+ @click="beforePage(false)"
|
|
|
+ >收货单
|
|
|
</el-button>
|
|
|
- <el-button type="primary"
|
|
|
+ <el-button type="info"
|
|
|
size="small"
|
|
|
-
|
|
|
@click=""
|
|
|
- >收货单
|
|
|
+ >查看申请记录
|
|
|
</el-button>
|
|
|
</template>
|
|
|
- </avue-crud>
|
|
|
- </basic-container>
|
|
|
-<!-- 其他费用-->
|
|
|
- <containerTitle title="其他费用"></containerTitle>
|
|
|
- <basic-container style="margin-bottom: 40px">
|
|
|
- <avue-crud
|
|
|
- :option="advantageProject"
|
|
|
- v-model="advantageProjectForm"
|
|
|
- :data="advantageProjectData"
|
|
|
- ref="crudProject"
|
|
|
- @row-save="rowSaveProject"
|
|
|
- @row-update="rowUpdateAdvantageProject"
|
|
|
- @row-del="rowDelAdvantageProject"
|
|
|
- >
|
|
|
- <template slot="code" slot-scope="{row,index}">
|
|
|
- <span v-if="row.$cellEdit" style="float: left;color: #F56C6C;">*</span>
|
|
|
- <span style="margin-left: 12px;padding-top: 2px">{{ row.code }}</span>
|
|
|
+ <template slot="priceCategory" slot-scope="{row,index}">
|
|
|
+ <span style="margin-left: 12px;padding-top: 2px">{{ row.priceCategoryNames }}</span>
|
|
|
<el-button v-if="row.$cellEdit" type="text" size="mini" style="float: right" @click="choice(row)">选择</el-button>
|
|
|
</template>
|
|
|
- <template slot-scope="{row,index}" slot="menu">
|
|
|
- <el-button
|
|
|
- type="text"
|
|
|
- size="small"
|
|
|
- @click="rowCellTwo(row,index)"
|
|
|
- >{{row.$cellEdit?'保存':'修改'}}</el-button>
|
|
|
- </template>
|
|
|
- <template slot="menuLeft" slot-scope="{size}">
|
|
|
- <el-button type="primary"
|
|
|
- icon="el-icon-plus"
|
|
|
- size="small"
|
|
|
- @click="costIncrease"
|
|
|
- >录入明细
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
</avue-crud>
|
|
|
</basic-container>
|
|
|
-<!-- 合同上传-->
|
|
|
- <containerTitle title="附件上传"></containerTitle>
|
|
|
- <basic-container style="margin-bottom: 40px">
|
|
|
- <avue-crud
|
|
|
- :option="uploadList"
|
|
|
- v-model="bankOfDepositForm"
|
|
|
- :data="bankOfDepositData"
|
|
|
- @row-save="rowSaveBankOfDeposit"
|
|
|
- @row-update="rowUpdateBankOfDeposit"
|
|
|
- @row-del="rowDelBankOfDeposit"
|
|
|
- ></avue-crud>
|
|
|
- </basic-container>
|
|
|
+ <fee-info
|
|
|
+ ref="feeInfo"
|
|
|
+ :orderFeesList="orderFeesList"
|
|
|
+ feeUrl=""
|
|
|
+ />
|
|
|
+ <upload-file
|
|
|
+ ref="uploadFile"
|
|
|
+ title="合同附件"
|
|
|
+ :orderFilesList="orderFilesList"
|
|
|
+ delUrl=""
|
|
|
+ />
|
|
|
</el-form>
|
|
|
</div>
|
|
|
|
|
@@ -168,49 +147,11 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="dialogVisible = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="importGoods" v-if="commodityData !== true">导入</el-button>
|
|
|
- <el-button type="primary" @click="importChoice" v-if="commodityData === true"
|
|
|
- :disabled="tableData.length !== 1">导入</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog>
|
|
|
- <el-dialog
|
|
|
- title="导入费用"
|
|
|
- append-to-body
|
|
|
- class="el-dialogDeep"
|
|
|
- :visible.sync="dialogCost"
|
|
|
- width="80%"
|
|
|
- :close-on-click-modal="false"
|
|
|
- :destroy-on-close="true"
|
|
|
- :close-on-press-escape="false">
|
|
|
- <el-row style="height: 0;">
|
|
|
- <el-col :span="5">
|
|
|
- <div>
|
|
|
- <el-scrollbar>
|
|
|
- <basic-container>
|
|
|
- <avue-tree :option="treeOptionCost" :data="treeData" @node-click="nodeClickCost"/>
|
|
|
- </basic-container>
|
|
|
- </el-scrollbar>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- <el-col :span="19">
|
|
|
- <basic-container>
|
|
|
- <avue-crud :option="optionTwoCost"
|
|
|
- :table-loading="loadingCost"
|
|
|
- :data="dataCost"
|
|
|
- ref="crud"
|
|
|
- @refresh-change="refreshChangeCost"
|
|
|
- @selection-change="selectionChangeCost"
|
|
|
- :page.sync="pageCost"
|
|
|
- @on-load="onLoadCost">
|
|
|
- </avue-crud>
|
|
|
- </basic-container>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- <span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="dialogCost = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="importCost" v-if="choiceData !== true">导入</el-button>
|
|
|
- <el-button type="primary" @click="choiceCost" v-if="choiceData === true" :disabled="tableDataCost.length !== 1">导入</el-button>
|
|
|
+ <el-button @click="dialogVisible = false , selectKind = -1">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="commodityConfirm" v-if="selectKind != -1" :disabled="tableData.length !== 1">确定</el-button>
|
|
|
+ <el-button type="primary" @click="importGoods" v-if="commodityData !== true && selectKind == -1">导入</el-button>
|
|
|
+ <el-button type="primary" @click="importChoice" v-if="commodityData === true && selectKind == -1"
|
|
|
+ :disabled="tableData.length !== 1">导入{{selectKind}}<</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -222,9 +163,10 @@ import uploadList from './config/uploadList.json'
|
|
|
import advantageProject from "./config/advantageProject.json"
|
|
|
import {getDeptLazyTree,customerList} from "@/api/basicData/basicFeesDesc";
|
|
|
import optionTwoCost from "./config/mainListCost.json"
|
|
|
-import {detailListData,
|
|
|
- submitData,} from "@/api/importTrade/purchase";
|
|
|
+import {detailListData, submitData,} from "@/api/importTrade/purchase";
|
|
|
import commodity from "./config/commodity.json"
|
|
|
+import feeInfo from "@/components/fee-info/main";
|
|
|
+import uploadFile from "@/components/upload-file/main";
|
|
|
//商品详情接口
|
|
|
import {corpsattn, corpsbank, getDeptLazyTreeS} from "@/api/basicData/configuration"
|
|
|
import { getList } from "@/api/basicData/commodityType"
|
|
@@ -248,6 +190,13 @@ export default {
|
|
|
currentPage: 1,
|
|
|
total: 0
|
|
|
},
|
|
|
+ contractTypeDic:[],
|
|
|
+ currencyDic:[],
|
|
|
+ selectContact:[],//选中采购明细
|
|
|
+ selectKind: -1,//选择采购明细的货品
|
|
|
+ paymentTypeDic:[],
|
|
|
+ orderFeesList:[],
|
|
|
+ orderFilesList:[],
|
|
|
treeDeptId: '',
|
|
|
treeOption: {
|
|
|
nodeKey: 'id',
|
|
@@ -255,7 +204,6 @@ export default {
|
|
|
treeLoad: function (node, resolve) {
|
|
|
const parentId = (node.level === 0) ? 0 : node.data.id;
|
|
|
getDeptLazyTreeS(parentId).then(res => {
|
|
|
- console.log(res.data.data)
|
|
|
resolve(res.data.data.map(item => {
|
|
|
return {
|
|
|
...item,
|
|
@@ -381,7 +329,7 @@ export default {
|
|
|
}, {
|
|
|
label: '合同日期',
|
|
|
prop: 'businesDate',
|
|
|
- type:'datetime',
|
|
|
+ type:'date',
|
|
|
rules: [
|
|
|
{
|
|
|
required: false,
|
|
@@ -406,7 +354,7 @@ export default {
|
|
|
prop: 'orderAmount',
|
|
|
rules: [
|
|
|
{
|
|
|
- required: false,
|
|
|
+ pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
|
|
|
message: ' ',
|
|
|
trigger: 'blur'
|
|
|
}
|
|
@@ -424,7 +372,6 @@ export default {
|
|
|
}, {
|
|
|
label: '业务员',
|
|
|
prop: 'salesName',
|
|
|
- // type:'select',
|
|
|
dicData: [],
|
|
|
rules: [
|
|
|
{
|
|
@@ -436,7 +383,7 @@ export default {
|
|
|
},{
|
|
|
label: '要求发货日期',
|
|
|
prop: 'requiredDeliveryDate',
|
|
|
- type:'datetime',
|
|
|
+ type:'date',
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
@@ -447,7 +394,7 @@ export default {
|
|
|
}, {
|
|
|
label: '要求到货日期',
|
|
|
prop: 'requiredArrivalDate',
|
|
|
- type:'datetime',
|
|
|
+ type:'date',
|
|
|
rules: [
|
|
|
{
|
|
|
required: true,
|
|
@@ -458,7 +405,7 @@ export default {
|
|
|
},{
|
|
|
label: '到港日期',
|
|
|
prop: 'dateOfArrival',
|
|
|
- type:'datetime',
|
|
|
+ type:'date',
|
|
|
rules: [
|
|
|
{
|
|
|
required: false,
|
|
@@ -471,37 +418,23 @@ export default {
|
|
|
prop: 'salesPrice',
|
|
|
rules: [
|
|
|
{
|
|
|
- required: false,
|
|
|
+ pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
|
|
|
message: ' ',
|
|
|
trigger: 'blur'
|
|
|
}
|
|
|
]
|
|
|
}, {
|
|
|
label: '币别',
|
|
|
- prop: 'currency',
|
|
|
- rules: [
|
|
|
- {
|
|
|
- required: false,
|
|
|
- message: ' ',
|
|
|
- trigger: 'blur'
|
|
|
- }
|
|
|
- ]
|
|
|
+ prop: 'currency'
|
|
|
}, {
|
|
|
label: '汇率',
|
|
|
prop: 'exchangeRate',
|
|
|
- rules: [
|
|
|
- {
|
|
|
- required: false,
|
|
|
- message: ' ',
|
|
|
- trigger: 'blur'
|
|
|
- }
|
|
|
- ]
|
|
|
}, {
|
|
|
label: '人民币金额',
|
|
|
prop: 'rmbAmount',
|
|
|
rules: [
|
|
|
{
|
|
|
- required: false,
|
|
|
+ pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
|
|
|
message: ' ',
|
|
|
trigger: 'blur'
|
|
|
}
|
|
@@ -509,19 +442,10 @@ export default {
|
|
|
}, {
|
|
|
label: '付款方式',
|
|
|
prop: 'paymentType',
|
|
|
- // type:'select',
|
|
|
- dicData: [],
|
|
|
- rules: [
|
|
|
- {
|
|
|
- required: false,
|
|
|
- message: ' ',
|
|
|
- trigger: 'blur'
|
|
|
- }
|
|
|
- ]
|
|
|
}, {
|
|
|
label: '付款/开证日期',
|
|
|
prop: 'accountsCollectionDate',
|
|
|
- type:'datetime',
|
|
|
+ type:'date',
|
|
|
rules: [
|
|
|
{
|
|
|
required: false,
|
|
@@ -534,7 +458,7 @@ export default {
|
|
|
prop: 'advancePayment',
|
|
|
rules: [
|
|
|
{
|
|
|
- required: false,
|
|
|
+ pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
|
|
|
message: ' ',
|
|
|
trigger: 'blur'
|
|
|
}
|
|
@@ -544,7 +468,7 @@ export default {
|
|
|
prop: 'settlmentAmount',
|
|
|
rules: [
|
|
|
{
|
|
|
- required: false,
|
|
|
+ pattern: /(^[1-9]([0-9]+)?(\.[0-9]{1,2})?$)|(^(0){1}$)|(^[0-9]\.[0-9]([0-9])?$)/,
|
|
|
message: ' ',
|
|
|
trigger: 'blur'
|
|
|
}
|
|
@@ -552,7 +476,7 @@ export default {
|
|
|
}, {
|
|
|
label: '信用证到期日',
|
|
|
prop: 'creditDate',
|
|
|
- type:'datetime',
|
|
|
+ type:'date',
|
|
|
rules: [
|
|
|
{
|
|
|
required: false,
|
|
@@ -583,6 +507,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ //币别
|
|
|
+ this.getWorkDicts("currency").then(res =>{
|
|
|
+ this.currencyDic = res.data.data
|
|
|
+ })
|
|
|
+ this.getWorkDicts("contractType").then(res =>{
|
|
|
+ this.contractTypeDic = res.data.data
|
|
|
+ })
|
|
|
+ this.getWorkDicts("affair_payment_term").then(res =>{
|
|
|
+ this.paymentTypeDic = res.data.data
|
|
|
+ })
|
|
|
if (this.$route.query.id) {
|
|
|
let id = this.$route.query.id.replace(/\"/g, "")
|
|
|
detailListData(id).then(res => {
|
|
@@ -591,32 +525,60 @@ export default {
|
|
|
this.contactsData = res.data.data.itemsVOList
|
|
|
}
|
|
|
if(res.data.data.orderFeesList){
|
|
|
- this.advantageProjectData = res.data.data.orderFeesList
|
|
|
+ this.orderFeesList = res.data.data.orderFeesList
|
|
|
}
|
|
|
if( res.data.data.orderFilesList){
|
|
|
- this.bankOfDepositData = res.data.data.orderFilesList
|
|
|
+ this.orderFilesList = res.data.data.orderFilesList
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ components: {
|
|
|
+ feeInfo,
|
|
|
+ uploadFile
|
|
|
+ },
|
|
|
methods: {
|
|
|
//修改提交触发
|
|
|
editCustomer() {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
+ let orderFeesList = this.$refs.feeInfo.submitData();
|
|
|
+ for (let i = 0; i < orderFeesList.length; i++) {
|
|
|
+ if (orderFeesList[i].corpId == null) {
|
|
|
+ return this.$message.error(`请输入第${i + 1}行的结算中心`);
|
|
|
+ }
|
|
|
+ if (orderFeesList[i].price == 0) {
|
|
|
+ return this.$message.error(`请正确输入第${i + 1}行的价格`);
|
|
|
+ }
|
|
|
+ if (orderFeesList[i].orderQuantity == 0) {
|
|
|
+ return this.$message.error(`请正确输入第${i + 1}行的数量`);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ const orderFilesList = this.$refs.uploadFile.submitData();
|
|
|
let submitDto = {
|
|
|
- itemsVOList: [],
|
|
|
- orderFeesList: [],
|
|
|
- orderFilesList: []
|
|
|
+ ...this.form,
|
|
|
+ tradeType:"JK",
|
|
|
+ billType:"CG",
|
|
|
+ itemsVOList: this.contactsData,
|
|
|
+ orderFeesList: orderFeesList,
|
|
|
+ orderFilesList: orderFilesList
|
|
|
};
|
|
|
- submitDto = Object.assign({}, submitDto, this.form)
|
|
|
- submitDto.itemsVOList = this.contactsData
|
|
|
- submitDto.orderFeesList = this.advantageProjectData
|
|
|
- submitDto.orderFilesList = this.bankOfDepositData
|
|
|
- submitDto.tradeType = "JK"
|
|
|
submitData(submitDto).then(res => {
|
|
|
if(res.data.success){
|
|
|
+ this.form.id = res.data.data
|
|
|
this.$message.success("操作成功!")
|
|
|
+ detailListData(this.form.id).then(res => {
|
|
|
+ this.form = res.data.data;
|
|
|
+ if(res.data.data.itemsVOList){
|
|
|
+ this.contactsData = res.data.data.itemsVOList
|
|
|
+ }
|
|
|
+ if(res.data.data.orderFeesList){
|
|
|
+ this.orderFeesList = res.data.data.orderFeesList
|
|
|
+ }
|
|
|
+ if( res.data.data.orderFilesList){
|
|
|
+ this.orderFilesList = res.data.data.orderFilesList
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
@@ -625,7 +587,52 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
selectionContact(row){
|
|
|
- this.selectcontact = row;
|
|
|
+ this.selectContact = row;
|
|
|
+ },
|
|
|
+ beforePage(type){
|
|
|
+ let list = []
|
|
|
+ for (let item in this.selectContact){
|
|
|
+ if (!this.selectContact[item].id){
|
|
|
+ return this.$confirm('商品信息有未保存数据, 是否立即保存?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.editCustomer();
|
|
|
+ })
|
|
|
+ }else {
|
|
|
+ list.push(this.selectContact[item].$index)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ const params = {
|
|
|
+ id:this.form.id,
|
|
|
+ orderItemIds:list
|
|
|
+ }
|
|
|
+ if(type){
|
|
|
+ this.$router.push({
|
|
|
+ path: "payment_detailsPage",
|
|
|
+ query: {params: params},
|
|
|
+ });
|
|
|
+ }else{
|
|
|
+ this.$router.push({
|
|
|
+ path: "importReceipt_detailsPage",
|
|
|
+ query: {params: params},
|
|
|
+ });
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //选择货物品种
|
|
|
+ choice(row){
|
|
|
+ this.dialogVisible = true;
|
|
|
+ this.selectKind = row.$index;
|
|
|
+ },
|
|
|
+ //选择货品
|
|
|
+ commodityConfirm(){
|
|
|
+ if(this.tableData){
|
|
|
+ this.contactsData[this.selectKind].priceCategory = this.tableData[0].id;
|
|
|
+ this.$set(this.contactsData[this.selectKind],'priceCategoryNames',this.tableData[0].cname)
|
|
|
+ this.dialogVisible = !this.dialogVisible
|
|
|
+ this.selectKind = -1
|
|
|
+ }
|
|
|
},
|
|
|
//新增商品明细保存触发
|
|
|
rowSave(row, done, loading) {
|
|
@@ -709,11 +716,14 @@ export default {
|
|
|
importGoods() {
|
|
|
if (this.tableData.length > 0) {
|
|
|
for (let item in this.tableData) {
|
|
|
- this.tableData[item].priceCategory = this.tableData[item].goodsTypeName
|
|
|
- this.tableData[item].itemId = this.tableData[item].id
|
|
|
- delete this.tableData[item].id
|
|
|
- this.$refs.crudContact.rowCellAdd(this.tableData[item]);
|
|
|
- this.$refs.crudContact.rowCell(this.tableData[item], this.contactsData.length - 1)
|
|
|
+ const params ={
|
|
|
+ priceCategory:this.tableData[item].code,
|
|
|
+ priceCategoryNames:this.tableData[item].cname,
|
|
|
+ itemId:this.tableData[item].id,
|
|
|
+ cname:this.tableData[item].cname
|
|
|
+ }
|
|
|
+ this.$refs.crudContact.rowCellAdd(params);
|
|
|
+ this.$refs.crudContact.rowCell(params,this.contactsData.length - 1)
|
|
|
}
|
|
|
}
|
|
|
this.tableData = []
|
|
@@ -840,19 +850,12 @@ export default {
|
|
|
this.loadingCost = true;
|
|
|
let queryParams = Object.assign({}, params, {pageSize: page.pageSize, pageNum: page.currentPage,parentId:0,feesTypeId:this.treeDeptIdCost})
|
|
|
customerList(queryParams).then(res => {
|
|
|
- console.log(res)
|
|
|
const data = res.data.data;
|
|
|
this.pageCost.total = data.total;
|
|
|
this.dataCost = data.records;
|
|
|
this.loadingCost = false;
|
|
|
});
|
|
|
},
|
|
|
- //点击费用明细选择触发
|
|
|
- choice(row){
|
|
|
- this.dialogCost = !this.dialogCost
|
|
|
- this.choiceData = true
|
|
|
- this.choiceIndex = row.$index
|
|
|
- },
|
|
|
nodeClickCost(data){
|
|
|
this.treeDeptIdCost = data.id;
|
|
|
this.pageCost.currentPage = 1;
|
|
@@ -873,7 +876,6 @@ export default {
|
|
|
// this.advantageProjectForm = this.advantageProjectForm.concat(this.tableDataCost)
|
|
|
if (this.tableDataCost.length>0){
|
|
|
for(let item in this.tableDataCost){
|
|
|
- console.log(this.tableDataCost[item])
|
|
|
this.tableDataCost[item].itemId = this.tableDataCost[item].id
|
|
|
this.tableDataCost[item].feeName = this.tableDataCost[item].cname
|
|
|
delete this.tableDataCost[item].id
|
|
@@ -936,7 +938,6 @@ export default {
|
|
|
right: 36px;
|
|
|
top: 115px;
|
|
|
}
|
|
|
-
|
|
|
::v-deep .el-form-item {
|
|
|
margin-bottom: 0;
|
|
|
}
|