+ @selection-change="handleSelectionChange2"
+ @select="handleSelection1">
-
-
- 未询价
- 已询价
- 审批中
- 已采购
-
-
+
+
+
+
+
+
+
+
{{ scope.row.供货商 }}
+
+
+ {{ scope.row.备注 }}
+
+
{{ scope.row.零件图号 }}
@@ -371,11 +385,6 @@
{{ scope.row.零件数量 }}
-
-
- {{ scope.row.备注 }}
-
-
{{ scope.row.任务分配时间.split(' ')[0] }}
@@ -386,12 +395,12 @@
{{ scope.row.组件设计者 || scope.row.机床设计者 || '—' }}
-
-
- {{ scope.row.询价单编号 }}
- —
-
-
+
+
+
+
+
+
@@ -400,10 +409,17 @@
:page-sizes="[10, 50, 100, 150]"
:page-size="pageSize12"
:total="total12"
- style="display:inline-block;width:50%"
- layout="total, sizes, prev, pager, next, jumper"
+ style="display:inline-block;width:50px"
+ layout="total"
@size-change="handleSizeChange12"
@current-change="handleCurrentChange12"/>
+
+ 选入物料
+
@@ -592,39 +608,24 @@
-
-
+
查询
-
- 选入物料
-
创建询价单
-
-
- 询价单
- 编辑
- 删除
-
+ icon="el-icon-circle-plus-outline"
+ size="mini"
+ style="margin-left: 10px"
+ @click="createInquirySheet">创建
+ 编辑
+ 删除
打印
导出
-
- 保存
-
-
@@ -729,7 +730,7 @@
-
+
@@ -739,7 +740,7 @@
-
+
@@ -1180,11 +1181,11 @@ export default {
tableData11: [], // 外购件列表
total11: 0,
pageCurrent11: 1,
- pageSize11: 100,
+ pageSize11: 1000,
tableData12: [], // 基本件列表
total12: 0,
pageCurrent12: 1,
- pageSize12: 100,
+ pageSize12: 1000,
tableData13: [], // 外购件列表
total13: 0,
pageCurrent13: 1,
@@ -1197,6 +1198,7 @@ export default {
pageSize2: 10000,
tableData3: [], // 询价单明细
dialogVisible1: false,
+ visible1: false,
inquirySheetNum: '', // 询价单号
inquirySheetFlowNum: '', // 询价单流水号
form1: {},
@@ -1265,6 +1267,8 @@ export default {
cancelNum: 0,
machines1: [],
machines2: [],
+ numbers: [],
+ numbers1: [],
row1: ''
}
},
@@ -1312,6 +1316,30 @@ export default {
this.searchTable11()
})
},
+ handleSelection(val, row) {
+ this.tableData11.forEach((item, i) => {
+ if (item.组件零件流水号 === row.组件零件流水号) {
+ console.log(this.numbers.indexOf(i), 234)
+ if (this.numbers.indexOf(i) === -1) {
+ this.numbers.push(i)
+ } else {
+ this.numbers.splice(this.numbers.indexOf(i), 1)
+ }
+ }
+ })
+ },
+ handleSelection1(val, row) {
+ this.tableData12.forEach((item, i) => {
+ if (item.组件零件基本件流水号 === row.组件零件基本件流水号) {
+ console.log(this.numbers1.indexOf(i), 234)
+ if (this.numbers1.indexOf(i) === -1) {
+ this.numbers1.push(i)
+ } else {
+ this.numbers1.splice(this.numbers1.indexOf(i), 1)
+ }
+ }
+ })
+ },
timeChange1() {
if (this.startTime) {
timeChange1(this.startTime[0], this.startTime[1])
@@ -1689,20 +1717,9 @@ export default {
// this.$message.info('已取消操作')
// })
// },
- saveOrder() { // 保存询价单
- const orderNumGroup = []
- const numGroup = []
- const remarkGroup = []
- for (let i = 0; i < this.tableData3.length; i++) {
- orderNumGroup.push(this.tableData3[i].询价单明细流水号)
- numGroup.push(this.tableData3[i].数量)
- remarkGroup.push(this.tableData3[i].备注)
- }
- saveOrder(orderNumGroup, numGroup, remarkGroup).then(response => {
- if (response.data[0].result === '1') {
- this.$message.success('保存成功')
- } else { this.$message.error('保存失败') }
- })
+ saveOrder(row) { // 保存询价单
+ console.log(row, 1111)
+ saveOrder(row.询价单明细流水号, row.数量, row.备注).then(response => {})
},
selectable(row, index) { // 控制某行是否可选
return (parseInt(row.询价状态编号) === 1 && parseInt(row.采购状态编号) < 3 && parseInt(row.是否确认) === 1) // 未询价&&未采购&&确认物料修改
@@ -1823,9 +1840,8 @@ export default {
this.searchTable13()
},
searchTable2() { // 查询询价单列表
- this.supplierName ? this.check3 = 1 : this.check3 = 0
this.inquirySheetNum ? this.check4 = 1 : this.check4 = 0
- searchCreateInquirySheet(this.pageCurrent2, this.pageSize2, this.check3, this.supplierName, this.check4, this.inquirySheetNum, this.id).then(response => {
+ searchCreateInquirySheet(this.pageCurrent2, this.pageSize2, this.check4, this.inquirySheetNum, this.id).then(response => {
this.tableData2 = response.data.rows
this.total2 = response.data.total
})
@@ -2299,10 +2315,22 @@ export default {
})
},
tableRowClassName({ row, rowIndex }) {
- if (parseInt(row.是否确认) === 0) {
- return 'MistyRose'
- }
- return ''
+ let color = ''
+ this.numbers.forEach((r, i) => {
+ if (rowIndex === r) {
+ color = 'MistyRose'
+ }
+ })
+ return color
+ },
+ tableRowClassName2({ row, rowIndex }) {
+ let color = ''
+ this.numbers1.forEach((r, i) => {
+ if (rowIndex === r) {
+ color = 'MistyRose'
+ }
+ })
+ return color
}
}
}
@@ -2352,7 +2380,7 @@ export default {
background: Tomato!important;
}
.el-table .MistyRose {
- background: MistyRose!important;
+ background: #9BD7FC!important;
}
.el-table .gray {
background: lightgray;
diff --git a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
index b521a335..add4a19b 100644
--- a/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
+++ b/src/views/PurchasingCenter/CreatePurchaseContract/index.vue
@@ -38,8 +38,12 @@
active-value="含税"
inactive-value="未税"/>
+ 快速修改价格
+ 还原
+ 折叠
+ 展开其他说明
-
+
@@ -50,8 +54,6 @@
- 快速修改价格
- 还原
@@ -171,6 +173,7 @@ export default {
inject: ['reload'],
data() {
return {
+ isShowN: false,
supplierValue11: '', // 供应商查询条件
supplier11: [],
quickChangePrice: true,
@@ -255,7 +258,7 @@ export default {
this.contractNumValue = ''
this.tableData1 = []
if (this.supplierValue11) { this.asdasd = 1 } else { this.asdasd = 0 }
- searchInquirySheet(0, 0, 0, 0, 1, this.id, this.asdasd, this.supplierValue11).then(response => { // 初始化询价单号
+ searchInquirySheet(0, 0, 1, this.id, this.asdasd, this.supplierValue11).then(response => { // 初始化询价单号
this.contractNums = []
for (let i = 0; i < response.data.length; i++) {
this.contractNums.push({
@@ -394,7 +397,7 @@ export default {
this.account2 = res.data[0] ? res.data[0].帐号 : ''
this.bank2 = res.data[0] ? res.data[0].开户行 : ''
})
- searchInquirySheet(0, 0, 0, 0, 1, this.id, 0, 0).then(response => { // 初始化询价单号
+ searchInquirySheet(0, 0, 1, this.id, 0, 0).then(response => { // 初始化询价单号
this.contractNums = []
for (let i = 0; i < response.data.length; i++) {
this.contractNums.push({
@@ -430,7 +433,7 @@ export default {
supplierChange() {
let check
this.supplierValue ? check = 1 : check = 0
- searchInquirySheet(0, 0, 0, 0, 1, this.id, check, this.supplierValue).then(response => { // 初始化询价单号
+ searchInquirySheet(0, 0, 1, this.id, check, this.supplierValue).then(response => { // 初始化询价单号
this.contractNums = []
this.contractNumValue = ''
for (let i = 0; i < response.data.length; i++) {
diff --git a/src/views/PurchasingCenter/OfflineContract/index.vue b/src/views/PurchasingCenter/OfflineContract/index.vue
index 905993eb..eb36931a 100644
--- a/src/views/PurchasingCenter/OfflineContract/index.vue
+++ b/src/views/PurchasingCenter/OfflineContract/index.vue
@@ -165,7 +165,7 @@
-
+
查询
-
-
- {{ scope.row.请款时间 ? scope.row.请款时间.split(' ')[0] : '-' }}
-
-
{{ scope.row.姓名 }}
@@ -36,38 +31,43 @@
{{ scope.row.请款金额 }}
-
+
+
+ {{ scope.row.请款时间 ? scope.row.请款时间.split(' ')[0] : '-' }}
+
+
+
未审核
已通过
不通过
-
+
{{ scope.row.未通过审核原因 === '通过' ? '—' : scope.row.未通过审核原因 }}
-
+
未审批
已通过
不通过
-
+
{{ scope.row.未通过审批原因 === '通过' ? '—' : scope.row.未通过审批原因 }}
-
+
未操作
已付款
不同意
-
+
{{ scope.row.未付款原因 === '通过' ? '—' : scope.row.未付款原因 }}
@@ -100,6 +100,11 @@
{{ scope.row.采购合同编号 ? scope.row.采购合同编号 : scope.row.离线合同编号 }}
+
+
+ {{ parseFloat(scope.row.合同总额).toFixed(2) }}
+
+
{{ parseFloat(scope.row.已付金额).toFixed(2) }}
@@ -139,16 +144,16 @@
{{ scope.row.合同类型 === 1 ? scope.row.已到货数量 : scope.row.到货数量 }}
-
-
- {{ (parseFloat(scope.row.单价||0) * parseInt(scope.row.数量||0)).toFixed(2) }}
-
-
-
-
- {{ parseFloat(scope.row.单价||0).toFixed(2) }}
-
-
+
+
+
+
+
+
+
+
+
+
{{ scope.row.合同类型 === 1 ? scope.row.交货期.split(' ')[0] === '1900-01-01' ? '-' : scope.row.交货期.split(' ')[0] : scope.row.交货期要求 }}
@@ -370,7 +375,7 @@ export default {
if (index === 0) {
sums[index] = '总价'
return
- } else if (index === 2 || index === 3) {
+ } else if (index === 2 || index === 3 || index === 1) {
const values = data.map(item => Number(item[column.property]))
if (!values.every(value => isNaN(value))) {
sums[index] = values.reduce((prev, curr) => {