-
-
+
+
+
+ 请款
+
+
+
{{ scope.row.采购合同编号 }}
-
+
{{ scope.row.采购合同名称 }}
- {{ scope.row.规定到货时间 }}
+ {{ scope.row.规定到货时间.split(' ')[0] }}
-
+
{{ scope.row.供应商名称 }}
-
+
{{ scope.row.总金额 }}
@@ -69,7 +83,7 @@
{{ scope.row.付款方式内容 }}
-
+
{{ scope.row.欠款金额 }}
@@ -84,9 +98,18 @@
-
+
-
+
+
+
+ 取消请款
+
+
@@ -95,25 +118,25 @@
- {{ scope.row.请款时间 }}
+ {{ scope.row.请款时间 ? scope.row.请款时间.split(' ')[0] : '' }}
-
+
{{ scope.row.审核情况内容 }}
-
+
{{ scope.row.未通过审核原因 }}
-
+
{{ scope.row.审批情况内容 }}
-
+
{{ scope.row.未通过审批原因 }}
@@ -123,32 +146,14 @@
{{ scope.row.付款情况内容 }}
-
+
{{ scope.row.未付款原因 }}
-
-
- 取消请款
-
-
-
-
- 请款
-
-
- 请款开始时间:
+ 请款时间区间:
- 请款结束时间:
+ placeholder="开始日期"/>
+ ~
+ placeholder="结束日期"/>
导出Excel
+ style="margin-left:10px"
+ >导出Excel
@@ -207,10 +213,10 @@
- {{ scope.row.规定到货时间 }}
+ {{ scope.row.规定到货时间.split(' ')[0] }}
-
+
{{ scope.row.供应商名称 }}
@@ -242,46 +248,11 @@
- {{ scope.row.请款时间 }}
+ {{ scope.row.请款时间.split(' ')[0] }}
-
-
-
-
-
- {{ scope.row.考勤编号 }}
-
-
-
-
- {{ scope.row.姓名 }}
-
-
-
-
- {{ scope.row.性别 }}
-
-
-
-
- {{ scope.row.岗位名称 }}
-
-
-
-
-
@@ -292,8 +263,8 @@ import { mapGetters } from 'vuex'
export default {
data() {
return {
- tableData02: [],
- dialogVisible2: false,
+ personValue: '',
+ person: [],
loading2: false,
tableData2: [],
tableData11: [],
@@ -303,37 +274,10 @@ export default {
startDate: '',
endDate: '',
contractNum: '',
- buyerName: '',
- dialogVisible1: false,
submitDisable: true,
form1: {},
- supplierValue: '',
supplierName: '',
- enterpriseNature: '',
- createDate: '',
- registeredCapital: '',
- taxNum: '',
- EMail: '',
- address: '',
- account: '',
- openingBank: '',
- phone: '',
- fax: '',
- goodTime: '',
- supplierCheck1: 0,
- supplierCheck2: 0,
- supplierCheck3: 0,
- supplierCheck4: 0,
- supplierCheck5: 0,
- supplierCheck6: 0,
- supplierCheck7: 0,
- supplierCheck8: 0,
- supplierCheck9: 0,
- supplierCheck10: 0,
- supplierCheck11: 0,
- supplierCheck12: 0,
tableData01: [],
- loading1: false,
tableData1: [],
check1: 0,
check2: 0,
@@ -352,45 +296,43 @@ export default {
'id'
])
},
+ created() {
+ this.initBuyer()
+ },
methods: {
- submitSelectBuyer() { // 确定
- this.dialogVisible2 = false
- },
- clickBuyer(row) { // 点击采购员表某一行
- this.submitDisable = false
- this.buyerName = row.姓名
- },
initBuyer() { // 初始化采购人员
initBuyer().then(response => {
- this.tableData02 = response.data
+ for (let i = 0; i < response.data.length; i++) {
+ this.person.push({
+ text: response.data[i].姓名,
+ label: response.data[i].姓名,
+ value: response.data[i].人员编号
+ })
+ }
})
},
searchTable1() {
- this.loading1 = true
this.tableData1 = []
this.startDate && this.endDate ? this.check1 = 1 : this.check1 = 0
this.contractNum ? this.check2 = 1 : this.check2 = 0
- this.buyerName ? this.check3 = 1 : this.check3 = 0
+ this.personValue ? this.check3 = 1 : this.check3 = 0
this.supplierName ? this.check4 = 1 : this.check4 = 0
- searchTable1(this.pageCurrent1, this.pageSize1, this.check1, this.startDate, this.endDate, this.check2, this.contractNum, this.check3, this.buyerName, this.check4, this.supplierName).then(response => {
+ searchTable1(this.pageCurrent1, this.pageSize1, this.check1, this.startDate, this.endDate, this.check2, this.contractNum, this.check3, this.personValue, this.check4, this.supplierName).then(response => {
for (let j = 0; j < response.data.rows.length; j++) {
- if (response.data.rows[j].规定到货时间 !== null) {
- response.data.rows[j].规定到货时间 = response.data.rows[j].规定到货时间.substring(0, response.data.rows[j].规定到货时间.indexOf(' '))
- }
this.tableData11[j] = []
searchCondition(response.data.rows[j].采购合同流水号).then(response0 => {
- this.tableData1 = response.data.rows
- this.total1 = response.data.total
- for (let i = 0; i < response0.data.length; i++) {
- if (response0.data[i].请款时间 !== null) {
- response0.data[i].请款时间 = response0.data[i].请款时间.substring(0, response0.data[i].请款时间.indexOf(' '))
+ if (response0.data.length === 0) {
+ this.tableData11[j].push(response0.data)
+ document.getElementById(j).setAttribute('style', 'display:none')
+ } else {
+ for (let i = 0; i < response0.data.length; i++) {
+ this.tableData11[j].push(response0.data[i])
}
- this.tableData11[j].push(response0.data[i])
}
})
}
- }).then(() => {
- this.loading1 = false
+ this.tableData1 = response.data.rows
+ this.total1 = response.data.total
})
},
handleSizeChange1(val) {
@@ -416,6 +358,7 @@ export default {
})
},
cancelRequestFund(row) { // 取消请款
+ console.log(row)
this.$confirm('确认取消请款吗?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
@@ -443,14 +386,17 @@ export default {
},
searchRequestTable() { // 查询请款表
this.loading2 = true
- if (this.startRequestDate === '' || this.startRequestDate === null || this.endRequestDate === '' || this.endRequestDate === null) {
+ if ((this.startRequestDate === '' || this.startRequestDate === null) && (this.endRequestDate === '' || this.endRequestDate === null)) {
this.checkRequest = 0
- } else { this.checkRequest = 1 }
+ } else if (this.startRequestDate !== '' && this.startRequestDate !== null && this.endRequestDate !== '' && this.endRequestDate !== null) {
+ this.checkRequest = 1
+ } else {
+ this.$message.error('请款时间区间有误')
+ this.loading2 = false
+ return
+ }
searchRequestTable(this.checkRequest, this.startRequestDate, this.endRequestDate).then(response => {
for (let j = 0; j < response.data.length; j++) {
- if (response.data[j].规定到货时间 !== null) {
- response.data[j].规定到货时间 = response.data[j].规定到货时间.substring(0, response.data[j].规定到货时间.indexOf(' '))
- }
if (response.data[j].请款时间 !== null) {
response.data[j].请款时间 = response.data[j].请款时间.substring(0, response.data[j].请款时间.indexOf(' '))
}
diff --git a/src/views/WorkshopProcurement/PurchaseContractChange/index.vue b/src/views/WorkshopProcurement/PurchaseContractChange/index.vue
index 21828f71..fceff486 100644
--- a/src/views/WorkshopProcurement/PurchaseContractChange/index.vue
+++ b/src/views/WorkshopProcurement/PurchaseContractChange/index.vue
@@ -25,7 +25,7 @@