|
|
@@ -26,6 +26,7 @@
|
|
|
<el-dropdown-item :disabled="browse" @click.native="pleaseCheck">请核数据</el-dropdown-item>
|
|
|
<el-dropdown-item v-if="form.status > 0" @click.native="checkScheduleDialog = true,checkId=form.id">审核进度</el-dropdown-item>
|
|
|
<el-dropdown-item v-if="false">撤销请核</el-dropdown-item>
|
|
|
+ <el-dropdown-item v-if="checkDisabled" @click.native="changeApproveOpen">特殊审批</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
|
<el-dropdown style="margin-right: 8px;">
|
|
|
@@ -148,6 +149,18 @@
|
|
|
:disabled="detailData.seeDisabled || browse">
|
|
|
<el-option v-for="(item,index) in bankList" :key="index" :label="item.accountNo" :value="item.accountNo"></el-option>
|
|
|
</el-select>
|
|
|
+ <el-select v-else-if="item.prop === 'corpAttn'"
|
|
|
+ v-model="form[item.prop]" placeholder="请选择"
|
|
|
+ clearable
|
|
|
+ filterable
|
|
|
+ allow-create
|
|
|
+ default-first-option
|
|
|
+ size="small"
|
|
|
+ style="width: 100%;"
|
|
|
+ @change="corpAttnChange"
|
|
|
+ :disabled="detailData.seeDisabled || browse">
|
|
|
+ <el-option v-for="(item,index) in khInfoList" :key="index" :label="item.cname" :value="item.id"></el-option>
|
|
|
+ </el-select>
|
|
|
<el-input
|
|
|
v-else-if="item.type == 'number'"
|
|
|
placeholder="请输入"
|
|
|
@@ -282,7 +295,7 @@
|
|
|
</template>
|
|
|
<template slot="price" slot-scope="{ row }">
|
|
|
<el-select
|
|
|
- v-if="row.$cellEdit"
|
|
|
+ v-if="false"
|
|
|
v-model="row.price"
|
|
|
@focus="getMarketPrice(row)"
|
|
|
@input="priceChange(row)"
|
|
|
@@ -377,12 +390,6 @@
|
|
|
v-show="goodsActives == 'goods'"
|
|
|
>报 表</el-button>
|
|
|
<el-button
|
|
|
- type="info"
|
|
|
- size="small"
|
|
|
- v-show="goodsActives == 'goods'"
|
|
|
- @click="exportHandle"
|
|
|
- >导 出</el-button>
|
|
|
- <el-button
|
|
|
type="primary"
|
|
|
size="small"
|
|
|
icon="el-icon-download"
|
|
|
@@ -423,110 +430,12 @@
|
|
|
:corpId="form.corpId"
|
|
|
:financeDisabled="false"
|
|
|
/>
|
|
|
-<!-- <containerTitle title="费用明细"></containerTitle>-->
|
|
|
-<!-- <basic-container style="margin-bottom: 10px">-->
|
|
|
-<!-- <avue-crud-->
|
|
|
-<!-- :option="advantageProject"-->
|
|
|
-<!-- v-model="advantageProjectForm"-->
|
|
|
-<!-- :data="advantageProjectData"-->
|
|
|
-<!-- ref="crudProject"-->
|
|
|
-<!-- @row-save="rowSaveProject"-->
|
|
|
-<!-- @row-update="rowUpdateProject"-->
|
|
|
-<!-- @row-del="rowDelProject"-->
|
|
|
-<!-- @saveColumn="saveColumn('fees')"-->
|
|
|
-<!-- >-->
|
|
|
-<!-- <template slot="code" slot-scope="{row,index}">-->
|
|
|
-<!-- <el-button type="text" size="mini" style="padding:4px 10px;float:left" @click="choice(row)" :disabled="detailData.seeDisabled || !row.$cellEdit">选择</el-button>-->
|
|
|
-<!-- <span>{{ row.code }}</span>-->
|
|
|
-<!-- </template>-->
|
|
|
-<!-- <template slot="corpId" slot-scope="{ row }">-->
|
|
|
-<!-- <selectComponent v-if="row.$cellEdit" v-model="row.corpId"-->
|
|
|
-<!-- :configuration="configuration" @receiveList="receiveList"/>-->
|
|
|
-<!-- <span v-else>-->
|
|
|
-<!-- <span v-for="item in configuration.dicData" v-if="item.id == row.corpId">{{ item.cname }}</span>-->
|
|
|
-<!-- </span>-->
|
|
|
-<!-- </template>-->
|
|
|
-<!-- <template slot="amount" slot-scope="{ row }">-->
|
|
|
-<!-- <el-input v-if="row.$cellEdit" v-model.trim="row.amount"-->
|
|
|
-<!-- size="small" v-input-limit="2"-->
|
|
|
-<!-- ></el-input>-->
|
|
|
-<!-- <span v-else>{{ row.amount }}</span>-->
|
|
|
-<!-- </template>-->
|
|
|
-<!-- <template slot="settlmentAmount" slot-scope="{ row }">-->
|
|
|
-<!-- <el-input v-if="row.$cellEdit" v-model.trim="row.settlmentAmount"-->
|
|
|
-<!-- size="small" v-input-limit="2"-->
|
|
|
-<!-- ></el-input>-->
|
|
|
-<!-- <span v-else>{{ row.settlmentAmount }}</span>-->
|
|
|
-<!-- </template>-->
|
|
|
-<!-- <template slot-scope="{row,index}" slot="menu">-->
|
|
|
-<!-- <el-button-->
|
|
|
-<!-- type="text"-->
|
|
|
-<!-- size="small"-->
|
|
|
-<!-- @click="rowCellTwo(row,index)"-->
|
|
|
-<!-- :disabled="detailData.seeDisabled"-->
|
|
|
-<!-- >{{ row.$cellEdit ? '保 存' : '修 改 ' }}-->
|
|
|
-<!-- </el-button>-->
|
|
|
-<!-- <el-button-->
|
|
|
-<!-- size="small"-->
|
|
|
-<!-- icon="el-icon-delete"-->
|
|
|
-<!-- type="text"-->
|
|
|
-<!-- @click="rowDelProject(row, index)"-->
|
|
|
-<!-- :disabled="detailData.seeDisabled"-->
|
|
|
-<!-- v-if="!row.$cellEdit"-->
|
|
|
-<!-- >删 除</el-button>-->
|
|
|
-<!-- </template>-->
|
|
|
-<!-- <template slot="menuLeft" slot-scope="{size}">-->
|
|
|
-<!-- <el-button type="primary"-->
|
|
|
-<!-- icon="el-icon-plus"-->
|
|
|
-<!-- size="small"-->
|
|
|
-<!-- @click="costIncrease"-->
|
|
|
-<!-- :disabled="detailData.seeDisabled"-->
|
|
|
-<!-- >录入明细-->
|
|
|
-<!-- </el-button>-->
|
|
|
-<!-- </template>-->
|
|
|
-<!-- </avue-crud>-->
|
|
|
-<!-- </basic-container>-->
|
|
|
- <containerTitle title="附件上传"></containerTitle>
|
|
|
- <basic-container style="margin-bottom: 40px">
|
|
|
- <avue-crud
|
|
|
- :option="bankOfDeposit"
|
|
|
- v-model="bankOfDepositForm"
|
|
|
- :data="bankOfDepositData"
|
|
|
- @row-save="rowSaveBankOfDeposit"
|
|
|
- @row-update="rowUpdateBankOfDeposit"
|
|
|
- @row-del="rowDelBankOfDeposit"
|
|
|
- :upload-after="uploadAfter"
|
|
|
- ref="uploadCrud"
|
|
|
- >
|
|
|
- <template slot="menuLeft">
|
|
|
- <el-button
|
|
|
- type="primary"
|
|
|
- icon="el-icon-plus"
|
|
|
- size="small"
|
|
|
- @click.stop="$refs.uploadCrud.rowAdd()"
|
|
|
- :disabled="detailData.seeDisabled || browse"
|
|
|
- >上传</el-button>
|
|
|
- </template>
|
|
|
- <template slot="menu" slot-scope="{ row, index }">
|
|
|
- <el-button
|
|
|
- size="small"
|
|
|
- icon="el-icon-edit"
|
|
|
- type="text"
|
|
|
- @click="$refs.uploadCrud.rowEdit(row, index)"
|
|
|
- :disabled="detailData.seeDisabled || browse"
|
|
|
- >编 辑</el-button
|
|
|
- >
|
|
|
- <el-button
|
|
|
- size="small"
|
|
|
- icon="el-icon-delete"
|
|
|
- type="text"
|
|
|
- @click="rowDelBankOfDeposit(row, index)"
|
|
|
- :disabled="detailData.seeDisabled || browse"
|
|
|
- >删 除</el-button
|
|
|
- >
|
|
|
- </template>
|
|
|
- </avue-crud>
|
|
|
- </basic-container>
|
|
|
+ <containerTitle title="上传附件"></containerTitle>
|
|
|
+ <c-upload
|
|
|
+ :data="bankOfDepositData"
|
|
|
+ deleteUrl="/api/blade-client/corpsbank/update"
|
|
|
+ />
|
|
|
+
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<el-dialog
|
|
|
@@ -790,6 +699,18 @@
|
|
|
>
|
|
|
</check-schedule>
|
|
|
</el-dialog>
|
|
|
+ <messagePost
|
|
|
+ v-if="messageVisble"
|
|
|
+ ref="messagePost"
|
|
|
+ @closeDialog="closeDialog"
|
|
|
+ />
|
|
|
+ <changeApprove
|
|
|
+ v-if="changeApproveVis"
|
|
|
+ ref="changeApprove"
|
|
|
+ @closeDialog="closeChangeApprove"
|
|
|
+ :auditId="detailData.auditId"
|
|
|
+ url="/api/blade-purchase-sales/order/changeAuditUser"
|
|
|
+ />
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -838,7 +759,7 @@ import reportDialog from "@/components/report-dialog/main";
|
|
|
import { getToken } from "@/util/auth";
|
|
|
import Cookies from 'js-cookie'
|
|
|
import feeInfo from "@/components/fee-info/main";
|
|
|
-import {corpsAddrSelect} from "@/api/basicData/customerInformation";
|
|
|
+import {corpsAddrSelect, customerList as getKHList, detail as khDetail} from "@/api/basicData/customerInformation";
|
|
|
import billApplication from "@/components/bill/billApplication";
|
|
|
import {
|
|
|
isDiscount,
|
|
|
@@ -851,6 +772,7 @@ import { gainUser } from "@/api/basicData/customerInquiry";
|
|
|
import check from "@/components/check/check";
|
|
|
import checkSchedule from "@/components/check/checkSchedule";
|
|
|
import { customerList as feeList } from "@/api/basicData/basicFeesDesc";
|
|
|
+import {mapGetters} from "vuex";
|
|
|
|
|
|
export default {
|
|
|
name: "detailsPage",
|
|
|
@@ -1395,6 +1317,16 @@ export default {
|
|
|
}
|
|
|
]
|
|
|
}, {
|
|
|
+ label: '付款方式',
|
|
|
+ prop: 'paymentType',
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: true,
|
|
|
+ message: ' ',
|
|
|
+ trigger: 'change'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }, {
|
|
|
label: '银行帐号',
|
|
|
prop: 'banks',
|
|
|
type: 'select',
|
|
|
@@ -1426,16 +1358,6 @@ export default {
|
|
|
}
|
|
|
]
|
|
|
}, {
|
|
|
- label: '付款方式',
|
|
|
- prop: 'paymentType',
|
|
|
- rules: [
|
|
|
- {
|
|
|
- required: true,
|
|
|
- message: ' ',
|
|
|
- trigger: 'change'
|
|
|
- }
|
|
|
- ]
|
|
|
- }, {
|
|
|
label: '包装要求',
|
|
|
prop: 'packageRemarks',
|
|
|
rules: [
|
|
|
@@ -1522,6 +1444,26 @@ export default {
|
|
|
}
|
|
|
]
|
|
|
}, {
|
|
|
+ label: '联系人',
|
|
|
+ prop: 'corpAttn',
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: ' ',
|
|
|
+ trigger: 'change'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }, {
|
|
|
+ label: '联系电话',
|
|
|
+ prop: 'corpTel',
|
|
|
+ rules: [
|
|
|
+ {
|
|
|
+ required: false,
|
|
|
+ message: ' ',
|
|
|
+ trigger: 'change'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }, {
|
|
|
label: "订单备注",
|
|
|
type: 'textarea',
|
|
|
span: 24,
|
|
|
@@ -1590,6 +1532,9 @@ export default {
|
|
|
checkId: '',
|
|
|
batchNo:'',
|
|
|
applyPaymentList: [],
|
|
|
+ khInfoList: [],
|
|
|
+ messageVisble: false, //消息弹窗开关
|
|
|
+ changeApproveVis: false, // 更换审批人弹窗
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
@@ -1863,11 +1808,18 @@ export default {
|
|
|
saveSell(this.form.id).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.$message.success("生成成功");
|
|
|
+ this.messageVisble = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.messagePost.init()
|
|
|
+ })
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ closeDialog() {
|
|
|
+ this.messageVisble = false
|
|
|
+ },
|
|
|
//点击行可编辑
|
|
|
handleRowClick(row, event, column) {
|
|
|
},
|
|
|
@@ -1882,7 +1834,6 @@ export default {
|
|
|
},
|
|
|
//费用编辑
|
|
|
rowCellTwo(row, index) {
|
|
|
- console.log(row)
|
|
|
this.$refs.crudProject.rowCell(row, index)
|
|
|
},
|
|
|
//费用新增触发
|
|
|
@@ -2202,6 +2153,13 @@ export default {
|
|
|
})
|
|
|
this.$set(this.form, 'chargeMember', arr[0])
|
|
|
}
|
|
|
+ khDetail(data.id).then(res => {
|
|
|
+ if (res.data.data.corpsAttnList) {
|
|
|
+ this.khInfoList = res.data.data.corpsAttnList
|
|
|
+ this.$set(this.form, 'corpAttn', res.data.data.corpsAttnList[0].cname);
|
|
|
+ this.$set(this.form, 'corpTel', res.data.data.corpsAttnList[0].tel);
|
|
|
+ }
|
|
|
+ })
|
|
|
if (data.belongtocompany) {
|
|
|
// this.form.belongToCorpId = data.belongtocompany
|
|
|
// this.returnBack({id: this.form.belongToCorpId})
|
|
|
@@ -2737,7 +2695,7 @@ export default {
|
|
|
//商品列表查询
|
|
|
onLoad(page, params = {}) {
|
|
|
this.loading = true;
|
|
|
- getList(page.currentPage, page.pageSize, Object.assign(params, this.query), this.treeDeptId).then(res => {
|
|
|
+ getList(page.currentPage, page.pageSize, Object.assign(params, this.query), this.treeDeptId, this.form.belongToCorpId).then(res => {
|
|
|
const data = res.data.data;
|
|
|
this.page.total = data.total;
|
|
|
this.pageList.total = data.total
|
|
|
@@ -2762,7 +2720,6 @@ export default {
|
|
|
feesTypeId: this.treeDeptIdCost
|
|
|
})
|
|
|
customerList(queryParams).then(res => {
|
|
|
- console.log(res)
|
|
|
const data = res.data.data;
|
|
|
this.pageCost.total = data.total;
|
|
|
this.dataCost = data.records;
|
|
|
@@ -2794,48 +2751,6 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- //新增附件上传保存触发
|
|
|
- rowSaveBankOfDeposit(row, done, loading) {
|
|
|
- this.bankOfDepositData.push(row)
|
|
|
- done()
|
|
|
- },
|
|
|
- //修改附件上传触发
|
|
|
- rowUpdateBankOfDeposit(row, index, done, loading) {
|
|
|
- done(row);
|
|
|
- },
|
|
|
- //删除附件上传触发
|
|
|
- rowDelBankOfDeposit(row, index, donerowDel) {
|
|
|
- this.$confirm("确定将选择数据删除?", {
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
- type: "warning"
|
|
|
- }).then(() => {
|
|
|
- //附件判断是否需要调用删除接口
|
|
|
- if (row.id) {
|
|
|
- corpsbank(row.id).then(res => {
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功!"
|
|
|
- });
|
|
|
- this.bankOfDepositData.splice(index, 1);
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: "操作成功!"
|
|
|
- });
|
|
|
- this.bankOfDepositData.splice(index, 1);
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- uploadAfter(res, done) {
|
|
|
- if (res.originalName) {
|
|
|
- this.bankOfDepositForm.fileName = this.bankOfDepositForm.fileName
|
|
|
- ? this.bankOfDepositForm.fileName
|
|
|
- : res.originalName;
|
|
|
- }
|
|
|
- done();
|
|
|
- },
|
|
|
//修改提交触发
|
|
|
editCustomer(isBack = false, type) {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
@@ -2936,6 +2851,10 @@ export default {
|
|
|
saveSell(this.form.id).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.$message.success("生成成功");
|
|
|
+ this.messageVisble = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.messagePost.init()
|
|
|
+ })
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
@@ -3089,6 +3008,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
returnBack(row) {
|
|
|
+ const queryParams = {
|
|
|
+ corpType: 'KH',
|
|
|
+ belongtocompany: row.id
|
|
|
+ }
|
|
|
+ getKHList(queryParams).then(res => {
|
|
|
+ this.form.corpId = res.data.data.records.length > 0? res.data.data.records[0].id: null
|
|
|
+ this.getCorpRow({adminProfiles: res.data.data.records[0].adminProfiles, id: res.data.data.records[0].id})
|
|
|
+ })
|
|
|
this.form.belongCompany = row.cname
|
|
|
getlistBankBy(row.id).then(res =>{
|
|
|
this.$set(this.form, 'banks', null)
|
|
|
@@ -3117,6 +3044,19 @@ export default {
|
|
|
this.$set(this.form, 'accountBank', null)
|
|
|
}
|
|
|
},
|
|
|
+ // 联系人变化
|
|
|
+ corpAttnChange(val) {
|
|
|
+ let isTrue = false
|
|
|
+ this.khInfoList.forEach(item => {
|
|
|
+ if (val == item.id) {
|
|
|
+ this.$set(this.form, 'corpTel', item.tel)
|
|
|
+ isTrue = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (!isTrue) {
|
|
|
+ this.$set(this.form, 'corpTel', null)
|
|
|
+ }
|
|
|
+ },
|
|
|
// 合计计算
|
|
|
summaryMethod({ columns, data }) {
|
|
|
const sums = [];
|
|
|
@@ -3197,6 +3137,12 @@ export default {
|
|
|
) {
|
|
|
item.hide = false;
|
|
|
item.showColumn = true;
|
|
|
+ if (!this.permission.show_purPrice) {
|
|
|
+ if (item.prop == 'purchaseAmount') {
|
|
|
+ item.hide = true;
|
|
|
+ item.showColumn = false;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
})
|
|
|
// contactsData它是商品的数组 giftData它是赠品的数组 goodsShowData它是展示页面的数组一共三个
|
|
|
@@ -3290,12 +3236,9 @@ export default {
|
|
|
getGiftList = this.goodsShowData
|
|
|
getGoodsList = this.contactsData
|
|
|
} else {
|
|
|
- console.log(this.giftData)
|
|
|
getGoodsList = this.goodsShowData
|
|
|
getGiftList = this.giftData
|
|
|
}
|
|
|
- console.log(getGiftList)
|
|
|
- console.log(this.oldGiftList)
|
|
|
if (contrastObj(this.form, this.oldForm) ||
|
|
|
contrastList(getGoodsList, this.oldGoodsList) ||
|
|
|
contrastList(getGiftList, this.oldGiftList) ||
|
|
|
@@ -3361,7 +3304,31 @@ export default {
|
|
|
cellStyle() {
|
|
|
return "padding:0;height:40px;";
|
|
|
},
|
|
|
+ changeApproveOpen() {
|
|
|
+ this.changeApproveVis = true
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs.changeApprove.init()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ closeChangeApprove() {
|
|
|
+ this.changeApproveVis = false
|
|
|
+ },
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ ...mapGetters(["userInfo", "permission"])
|
|
|
},
|
|
|
+ watch: {
|
|
|
+ customerContact(oldVal, newVal) {
|
|
|
+ if (!this.permission.show_purPrice) {
|
|
|
+ oldVal.column.forEach(item => {
|
|
|
+ if (item.prop == 'purchaseAmount') {
|
|
|
+ item.hide = true;
|
|
|
+ item.showColumn = false;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
</script>
|
|
|
|