+
{{ scope.row.执行进度名 }}于{{ scope.row.节点日期 }}完成,计划于{{ scope.row.计划付款时间 }}进行收款,距离计划截止还剩{{ parseInt(scope.row.剩余天数) > 0 ? scope.row.剩余天数 : 0 }}天
+
+
{{ scope.row.执行进度名 }}阶段收款已完成
+
进度未完
已完成
未开始
@@ -279,7 +287,7 @@
:current-page="PageCurrent2"
:page-sizes="[10, 20, 30, 40]"
:page-size="10"
- :total="total2"
+ :total="PageSize2"
layout="total, sizes, prev, pager, next, jumper"
@size-change="handleSizeChange2"
@current-change="handleCurrentChange2"/>
@@ -1091,7 +1099,7 @@ export default {
})
this.$message.success('删除成功')
} else {
- this.$message.error('删除失败')
+ this.$message.error('数据占用')
}
})
})
@@ -1146,7 +1154,7 @@ export default {
this.$message.success('删除成功')
this.tableData2 = []
} else {
- this.$message.error('删除失败')
+ this.$message.error('数据占用')
}
})
})
diff --git a/src/views/MarketingCenter/ContractInformationManagement/index.vue b/src/views/MarketingCenter/ContractInformationManagement/index.vue
index a7cf28db..43515ddb 100644
--- a/src/views/MarketingCenter/ContractInformationManagement/index.vue
+++ b/src/views/MarketingCenter/ContractInformationManagement/index.vue
@@ -27,7 +27,7 @@
size="small"
type="date"
placeholder="请选择结束日期"/>
-
查询
+
查询
增加
@@ -148,7 +148,7 @@
{{ scope.row.电话 }}
-
+
{{ scope.row.合同信息备注 }}
@@ -507,7 +507,7 @@
- 查询
+ 查询
@@ -533,7 +533,7 @@
{
this.$message({
@@ -928,7 +928,7 @@ export default {
this.$message.sucess('删除成功')
this.getSelect(searchCargoBox, ['货箱号', '货箱号编号'], 'cargoBox', this.invoiceNum)
} else {
- this.$message.error('删除失败')
+ this.$message.error('数据占用')
}
})
})
@@ -1107,7 +1107,7 @@ export default {
}
})
if (data[0].result === '0') {
- this.$message.error('删除失败了。')
+ this.$message.error('数据占用')
}
},
handlePictureCardPreview(file) {
diff --git a/src/views/MarketingCenter/InvoiceRecord/index.vue b/src/views/MarketingCenter/InvoiceRecord/index.vue
index bc984c2d..f0b6a296 100644
--- a/src/views/MarketingCenter/InvoiceRecord/index.vue
+++ b/src/views/MarketingCenter/InvoiceRecord/index.vue
@@ -28,7 +28,7 @@
size="small"
type="date"
placeholder="请选择结束日期"/>
- 查询
+ 查询
@@ -286,7 +286,7 @@
- 查询
+ 查询
@@ -491,7 +491,7 @@ export default {
this.fetchTableData1()
this.fetchTableData2(row)
} else {
- this.$message.error('修改失败')
+ this.$message.error('数据占用')
}
})
},
@@ -596,7 +596,7 @@ export default {
this.tableData2 = data
})
} else {
- this.$message.error('增加失败')
+ this.$message.error('数据占用')
}
})
},
@@ -630,7 +630,7 @@ export default {
this.tableData2 = data
})
} else {
- this.$message.error('修改失败')
+ this.$message.error('数据占用')
}
})
},
diff --git a/src/views/MarketingCenter/PerformanceBond/index.vue b/src/views/MarketingCenter/PerformanceBond/index.vue
new file mode 100644
index 00000000..16c73912
--- /dev/null
+++ b/src/views/MarketingCenter/PerformanceBond/index.vue
@@ -0,0 +1,373 @@
+
+
+
+ 项目名称:
+
+
+
+ 开始日期:
+
+ 结束日期:
+
+ 查询
+
+
+
+
+
+
+ {{ scope.row.合同编号 }}
+
+
+
+
+ {{ scope.row.项目名称 }}
+
+
+
+
+ {{ scope.row.执行进度名 }}
+
+
+
+
+ {{ scope.row.合同签订日期 }}
+
+
+
+
+ {{ scope.row.姓名 }}
+
+
+
+
+ {{ scope.row.客户名称 }}
+
+
+
+
+ {{ scope.row.姓名 }}
+
+
+
+
+ {{ scope.row.电话 }}
+
+
+
+
+ {{ scope.row.合同信息备注 }}
+
+
+
+
+ 履约保证金
+ 履约保函
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.履约保证金金额 }}
+
+
+
+
+ {{ scope.row.保证金类型 }}
+
+
+
+
+ {{ scope.row.执行进度名 }}
+
+
+
+
+ 后{{ scope.row.提前X天提醒我 }}天内收回
+
+
+
+
+ 已收回
+ 未收回
+
+
+
+
+ {{ scope.row.实际收回日期 === '' || scope.row.实际收回日期 === null ? scope.row.实际收回日期 = '暂未收回' : scope.row.实际收回日期 }}
+
+
+
+
+
+
+
{{ scope.row.执行进度名 }} 未完成
+
+
+
{{ scope.row.执行进度名 }}于{{ scope.row.节点日期 }}完成,计划于{{ scope.row.计划收款日期 }}进行收款,距离计划截止还剩{{ parseInt(scope.row.剩余天数) > 0 ? scope.row.剩余天数 : 0 }}天
+
+
+
已于{{ scope.row.实际收回日期 }}收回
+
+ 即将拖期
+ 已经拖期
+ 无计划
+ 已完成
+ 进度未完
+
+
+
+
+
+ 收回
+ 编辑
+ 删除
+
+
+
+
+
+ 履约保函
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/MarketingCenter/SafetyMargin/index.vue b/src/views/MarketingCenter/SafetyMargin/index.vue
index 81455555..d505f397 100644
--- a/src/views/MarketingCenter/SafetyMargin/index.vue
+++ b/src/views/MarketingCenter/SafetyMargin/index.vue
@@ -12,7 +12,7 @@
:label="item.label"
:value="item.value"/>
- 查询
+ 查询
增加
预警颜色说明:
未到时间
From 859bb9049271d396cfcb141f1de5daba1bc208cf Mon Sep 17 00:00:00 2001
From: chenjianan
Date: Fri, 14 Dec 2018 19:45:39 +0800
Subject: [PATCH 03/11] =?UTF-8?q?=E5=8F=91=E7=A5=A8=E6=8C=89=E4=BE=9B?=
=?UTF-8?q?=E5=BA=94=E5=95=86?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/PurchasingCenter/FundApproval.js | 12 +-
src/api/PurchasingCenter/OfflineContract.js | 46 +-
.../PurchaseInvoiceDelivery.js | 50 +-
src/utils/request.js | 1 +
.../PurchasingCenter/FundApproval2/index.vue | 12 +-
.../PurchasingCenter/FundApproval3/index.vue | 12 +-
.../OfflineContract/index.vue | 587 +++++++-----------
.../OfflineContractRequestFund/index.vue | 31 +-
.../PurchaseContractRequestFund/index.vue | 8 +-
.../PurchaseInvoiceDelivery/index.vue | 210 ++++---
10 files changed, 424 insertions(+), 545 deletions(-)
diff --git a/src/api/PurchasingCenter/FundApproval.js b/src/api/PurchasingCenter/FundApproval.js
index ed809eac..358b60bf 100644
--- a/src/api/PurchasingCenter/FundApproval.js
+++ b/src/api/PurchasingCenter/FundApproval.js
@@ -25,15 +25,15 @@ export function execApproval(num1, num2, reason, person, state) {
}
})
}
-// 查询离线合同审核/审批/付款
+// 查询离线合同审批/付款
export function initApprovalOffline(pageCurrent, pageSize, state) {
return request({
url: '',
method: 'post',
data: {
type: '1',
- name: '采购管理_离线合同_审核审批付款_查询数据',
- param: `审核_审批_付款状态=${state}`,
+ name: '采购管理_离线合同_审批付款_查询数据',
+ param: `审批_付款状态=${state}`,
Pagination: pageCurrent + '&' + pageSize
}
})
@@ -50,15 +50,15 @@ export function searchRequsetFundDetail(num) {
}
})
}
-// 执行审核/审批/付款(离线合同)
+// 执行审批/付款(离线合同)
export function execApprovalOffline(num1, num2, reason, person, state) {
return request({
url: '',
method: 'post',
data: {
type: '2',
- name: '采购管理_离线合同_审核审批付款_修改数据',
- param: `离线合同请款流水号=${num1}&审核_审批_付款情况流水号=${num2}&未通过原因=${reason}&操作员编号=${person}&审核_审批_付款状态=${state}`
+ name: '采购管理_离线合同_审批付款_修改数据',
+ param: `离线合同请款流水号=${num1}&审批_付款情况流水号=${num2}&未通过原因=${reason}&操作员编号=${person}&审批_付款状态=${state}`
}
})
}
diff --git a/src/api/PurchasingCenter/OfflineContract.js b/src/api/PurchasingCenter/OfflineContract.js
index e08a6eb5..2088e18d 100644
--- a/src/api/PurchasingCenter/OfflineContract.js
+++ b/src/api/PurchasingCenter/OfflineContract.js
@@ -50,49 +50,27 @@ export function searchSupplier(check1, value1, check2, value2, check3, value3, c
}
})
}
-// 初始化付款方式
-export function initPayMethod() {
- return request({
- url: '',
- method: 'post',
- data: {
- type: '1',
- name: '采购管理_付款方式_查询数据'
- }
- })
-}
-// 初始化付款时间节点
-export function initPayTimeNode() {
- return request({
- url: '',
- method: 'post',
- data: {
- type: '1',
- name: '采购管理_付款时间节点_查询数据'
- }
- })
-}
// 增加离线合同
-export function addOfflineContract(contractNum, contractName, supplier, person, date, freight, type, one, two, three, four) {
+export function addOfflineContract(contractNum, contractName, supplier, person, date, remark) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '采购管理_离线合同_增加数据',
- param: `离线合同编号=${contractNum}&离线合同名称=${contractName}&供应商流水号=${supplier}&人员编号=${person}&规定到货时间=${date}&运费=${freight}&付款方式流水号=${type}&第一次付款时间节点流水号=${one}&第二次付款时间节点流水号=${two}&第三次付款时间节点流水号=${three}&第四次付款时间节点流水号=${four}`
+ param: `离线合同编号=${contractNum}&离线合同名称=${contractName}&供应商流水号=${supplier}&人员编号=${person}&规定到货时间=${date}&离线合同备注=${remark}`
}
})
}
// 编辑离线合同
-export function editOfflineContract(contractNumValue, contractNum, contractName, supplier, person, date, freight, type, one, two, three, four) {
+export function editOfflineContract(contractNumValue, contractNum, contractName, supplier, person, date, remark) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '采购管理_离线合同_修改数据',
- param: `离线合同流水号=${contractNumValue}&离线合同编号=${contractNum}&离线合同名称=${contractName}&供应商流水号=${supplier}&人员编号=${person}&规定到货时间=${date}&运费=${freight}&付款方式流水号=${type}&第一次付款时间节点流水号=${one}&第二次付款时间节点流水号=${two}&第三次付款时间节点流水号=${three}&第四次付款时间节点流水号=${four}`
+ param: `离线合同流水号=${contractNumValue}&离线合同编号=${contractNum}&离线合同名称=${contractName}&供应商流水号=${supplier}&人员编号=${person}&规定到货时间=${date}&离线合同备注=${remark}`
}
})
}
@@ -145,26 +123,14 @@ export function deleteMateriel(num) {
})
}
// 生成离线合同
-export function doneOfflineContact(contractNum, total, text, partGroup, numGroup, priceGroup) {
+export function doneOfflineContact(contractNum, total, partGroup, numGroup, priceGroup) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '采购管理_离线合同_生成合同',
- param: `离线合同流水号=${contractNum}&合同总额=${total}&合同文本=${text}&离线合同明细流水号组=${partGroup}&数量组=${numGroup}&单价组=${priceGroup}`
- }
- })
-}
-// 查询合同模板
-export function searchContractDemo(num1 = null) {
- return request({
- url: '',
- method: 'post',
- data: {
- type: '1',
- name: '采购管理_合同模板_查询数据',
- param: '合同模板流水号=' + num1
+ param: `离线合同流水号=${contractNum}&合同总额=${total}&离线合同明细流水号组=${partGroup}&数量组=${numGroup}&单价组=${priceGroup}`
}
})
}
diff --git a/src/api/PurchasingCenter/PurchaseInvoiceDelivery.js b/src/api/PurchasingCenter/PurchaseInvoiceDelivery.js
index 9dd4b537..3b1e8410 100644
--- a/src/api/PurchasingCenter/PurchaseInvoiceDelivery.js
+++ b/src/api/PurchasingCenter/PurchaseInvoiceDelivery.js
@@ -11,17 +11,6 @@ export function initProject() {
}
})
}
-// 初始化合同号
-export function initContract() {
- return request({
- url: '',
- method: 'post',
- data: {
- type: '1',
- name: '采购管理_付款情况_查询数据'
- }
- })
-}
// 发票查询
export function searchInvoice(...params) {
return request({
@@ -30,7 +19,7 @@ export function searchInvoice(...params) {
data: {
type: '1',
name: '采购管理_采购发票_查询数据',
- param: `项目流水号_check=${params[2]}&项目流水号=${params[3]}&采购合同流水号_check=${params[4]}&采购合同流水号=${params[5]}`,
+ param: `供应商流水号_check=${params[2]}&供应商流水号=${params[3]}&采购合同流水号_check=${params[4]}&采购合同流水号=${params[5]}`,
Pagination: params[0] + '&' + params[1]
}
})
@@ -43,7 +32,7 @@ export function addInvoice(...params) {
data: {
type: '2',
name: '采购管理_采购发票_增加数据',
- param: `采购合同流水号=${params[0]}&开票金额=${params[1]}&传送人流水号=${params[2]}`
+ param: `采购合同流水号=${params[0]}&开票金额=${params[1]}&传送人流水号=${params[2]}&备注=${params[3]}`
}
})
}
@@ -83,3 +72,38 @@ export function initSender() {
}
})
}
+// 初始化供应商
+export function initSupplier() {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '采购管理_供应商_查询数据_根据条件'
+ }
+ })
+}
+// 根据供应商查合同
+export function searchContract(num) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '采购管理_采购合同_查询数据_根据供应商',
+ param: `供应商流水号=${num}`
+ }
+ })
+}
+// 根据供应商查合同
+export function invoiceDetail(num) {
+ return request({
+ url: '',
+ method: 'post',
+ data: {
+ type: '1',
+ name: '采购管理_采购发票明细_查询数据',
+ param: `发票交接流水号=${num}`
+ }
+ })
+}
diff --git a/src/utils/request.js b/src/utils/request.js
index 9f774934..6db16b7c 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -8,6 +8,7 @@ export const name = `OP8888`
// 创建axios实例
export const upload = `http://localhost:8411/submit/uploadFile.ashx`
+export const uploadInvoiceScan = `http://localhost:8411/submit/uploadInvoiceScan.ashx`
export const download = `http://localhost:8411/submit/downloadFile.ashx`
const service = axios.create({
diff --git a/src/views/PurchasingCenter/FundApproval2/index.vue b/src/views/PurchasingCenter/FundApproval2/index.vue
index 18e45acc..70f64b13 100644
--- a/src/views/PurchasingCenter/FundApproval2/index.vue
+++ b/src/views/PurchasingCenter/FundApproval2/index.vue
@@ -54,7 +54,7 @@
-
+
{{ scope.row.供应商名称 }}
@@ -64,12 +64,12 @@
{{ scope.row.请款时间 }}
-
+
{{ scope.row.姓名 }}
-
+
{{ scope.row.请款金额 }}
@@ -164,7 +164,7 @@ export default {
this.searchTable1()
},
searchTable2() {
- initApprovalOffline(this.pageCurrent2, this.pageSize2, 2).then(response => {
+ initApprovalOffline(this.pageCurrent2, this.pageSize2, 1).then(response => {
console.log(response.data.rows)
this.tableData2 = response.data.rows
this.total2 = response.data.total
@@ -227,7 +227,7 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
- execApprovalOffline(row.离线合同请款流水号, 1, '通过', this.id, 2).then(response => {
+ execApprovalOffline(row.离线合同请款流水号, 1, '通过', this.id, 1).then(response => {
if (response.data[0].result === '1') {
this.$message.success('执行成功')
this.searchTable2()
@@ -245,7 +245,7 @@ export default {
confirmButtonText: '确定',
cancelButtonText: '取消'
}).then(({ value }) => {
- execApprovalOffline(row.离线合同请款流水号, 2, value, this.id, 2).then(response => {
+ execApprovalOffline(row.离线合同请款流水号, 2, value, this.id, 1).then(response => {
if (response.data[0].result === '1') {
this.$message.success('执行成功')
this.searchTable2()
diff --git a/src/views/PurchasingCenter/FundApproval3/index.vue b/src/views/PurchasingCenter/FundApproval3/index.vue
index e309a3cf..68c7738f 100644
--- a/src/views/PurchasingCenter/FundApproval3/index.vue
+++ b/src/views/PurchasingCenter/FundApproval3/index.vue
@@ -54,7 +54,7 @@
-
+
{{ scope.row.供应商名称 }}
@@ -64,12 +64,12 @@
{{ scope.row.请款时间 }}
-
+
{{ scope.row.姓名 }}
-
+
{{ scope.row.请款金额 }}
@@ -163,7 +163,7 @@ export default {
this.searchTable1()
},
searchTable2() {
- initApprovalOffline(this.pageCurrent2, this.pageSize2, 3).then(response => {
+ initApprovalOffline(this.pageCurrent2, this.pageSize2, 2).then(response => {
console.log(response.data.rows)
this.tableData2 = response.data.rows
this.total2 = response.data.total
@@ -227,7 +227,7 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
- execApprovalOffline(row.离线合同请款流水号, 1, '通过', this.id, 3).then(response => {
+ execApprovalOffline(row.离线合同请款流水号, 1, '通过', this.id, 2).then(response => {
if (response.data[0].result === '1') {
this.$message.success('执行成功')
this.searchTable2()
@@ -245,7 +245,7 @@ export default {
confirmButtonText: '确定',
cancelButtonText: '取消'
}).then(({ value }) => {
- execApprovalOffline(row.离线合同请款流水号, 2, value, this.id, 3).then(response => {
+ execApprovalOffline(row.离线合同请款流水号, 2, value, this.id, 2).then(response => {
if (response.data[0].result === '1') {
this.$message.success('执行成功')
this.searchTable2()
diff --git a/src/views/PurchasingCenter/OfflineContract/index.vue b/src/views/PurchasingCenter/OfflineContract/index.vue
index 676eb163..466c47fd 100644
--- a/src/views/PurchasingCenter/OfflineContract/index.vue
+++ b/src/views/PurchasingCenter/OfflineContract/index.vue
@@ -1,148 +1,148 @@
- 物料名称:
-
- 库存状态:
-
-
-
- 采购状态:
-
-
-
- 查询
-
-
-
-
-
-
-
- 不足
- 充足
-
-
-
-
- {{ scope.row.物料名称 }}
-
-
-
-
- {{ scope.row.物料型号 }}
-
-
-
-
- {{ scope.row.物料规格 }}
-
-
-
-
- {{ scope.row.供货商 }}
-
-
-
-
- {{ scope.row.当前库存量 }}
-
-
-
-
-
-
- 取消
+
+ 物料名称:
+
+ 库存状态:
+
+
+
+ 采购状态:
+
+
+
+ 查询
+ {{ showMaterialTable ? '收起' : '展开' }}
+
+
+
+
+
+
+ 不足
+ 充足
- {{ scope.row.安全库存量 }}
-
-
-
-
- 确定
- 设置
-
-
-
-
-
+
+
+
+ {{ scope.row.物料名称 }}
+
+
+
+
+ {{ scope.row.物料型号 }}
+
+
+
+
+ {{ scope.row.物料规格 }}
+
+
+
+
+ {{ scope.row.供货商 }}
+
+
+
+
+ {{ scope.row.当前库存量 }}
+
+
+
+
+
+
+ 取消
+
+ {{ scope.row.安全库存量 }}
+
+
+
+
+ 确定
+ 设置
+
+
+
+
+
+
- 离线合同号:
-
- 供应商:
-
- 查询
- 创建离线合同
- 选入物料
-
-
-
-
+
+ 离线合同号:
+
+ 供应商:
+
+ 查询
+ 创建离线合同
+ 选入物料
+
+
- 编辑中
- 采购中
- 已到货
- 已作废
+ 编辑中
+ 已采购
+ 已作废
-
+
{{ scope.row.离线合同编号 }}
-
+
{{ scope.row.离线合同名称 }}
@@ -157,41 +157,26 @@
{{ scope.row.采购员 }}
+
+
+ {{ scope.row.创建日期.split(' ')[0] }}
+
+
{{ scope.row.规定到货时间.split(' ')[0] }}
-
+
- {{ scope.row.付款方式内容 }}
+ {{ scope.row.离线合同备注 }}
-
+
- {{ scope.row.第一次付款时间节点 }}
-
-
-
-
- {{ scope.row.第二次付款时间节点 }}
-
-
-
-
- {{ scope.row.第三次付款时间节点 }}
-
-
-
-
- {{ scope.row.第四次付款时间节点 }}
-
-
-
-
- 编辑
- 作废
- 导出
+
+
+
@@ -205,6 +190,7 @@
layout="total, sizes, prev, pager, next, jumper"
@size-change="handleSizeChange2"
@current-change="handleCurrentChange2"/>
+ 生成离线合同
@@ -247,6 +233,11 @@
{{ parseFloat(scope.row.单价||0) * parseInt(scope.row.数量||0) }}
+
+
+ {{ scope.row.到货数量 }}
+
+
移除
@@ -255,26 +246,6 @@
-
-
-
-
- {{ scope.row.合同模板名称 }}
-
-
-
-
- 生成离线合同
-
-
@@ -386,8 +357,8 @@
-
-
+
+
@@ -422,67 +393,8 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -506,14 +418,15 @@