-
+
{{ scope.row.物料名称 ? scope.row.物料名称 : scope.row.零件名称 }}
@@ -612,13 +601,6 @@
-
-
-
-
-
-
-
-
离线合同 |
| GAOJING |
- 合同名称 |
- |
- 供应商 |
- |
- |
+ 合同名称 |
+ |
+ 供应商 |
+ |
+ |
- | 合同编号 |
- |
- 采购员 |
- |
+ 合同编号 |
+ |
+ 采购员 |
+ |
- | 序号 |
- 名称 |
- 规格 |
- 型号 |
- 数量 |
- 单价 |
- 合计 |
- 交货期 |
- 备注 |
+ 序号 |
+ 名称 |
+ 规格 |
+ 型号 |
+ 数量 |
+ 单价 |
+ 合计 |
+ 交货期 |
+ 备注 |
- | 总计 |
-
- |
- |
+ 总计 |
+
+
+
-
@@ -323,7 +306,7 @@ export default {
for (let i = 0; i < length; i++) {
tr[i] = document.createElement('tr')
tr[i].setAttribute('class', 'tableData')
- tr[i].innerHTML = `
| | | | | | | | | `
+ tr[i].innerHTML = `
| | | | | | | | | `
$('#tablehead').after(tr[i])
}
let total = 0
@@ -344,10 +327,10 @@ export default {
document.getElementById('contractName').innerHTML = row.离线合同名称
document.getElementById('supplier').innerHTML = row.供应商名称
document.getElementById('buyer').innerHTML = row.采购员
- document.getElementById('total').innerHTML = total
- document.getElementById('remark').innerHTML = row.离线合同备注
+ document.getElementById('total').innerHTML = ''
+ document.getElementById('remark').innerHTML = total + ' 元'
$('#qrCode').html(`
![]()
`)
- this.useqrcode(row.离线合同流水号) // 显示二维码
+ this.useqrcode(row.离线合同编号) // 显示二维码
},
useqrcode(contractNum) { // 二维码
const opts = {
diff --git a/src/views/PurchasingCenter/OfflinePartsQuery/index.vue b/src/views/PurchasingCenter/OfflinePartsQuery/index.vue
index 207b5559..8b1cf674 100644
--- a/src/views/PurchasingCenter/OfflinePartsQuery/index.vue
+++ b/src/views/PurchasingCenter/OfflinePartsQuery/index.vue
@@ -11,8 +11,7 @@
-
-
+
{{ scope.row.名称 }}
@@ -47,27 +46,22 @@
{{ scope.row.到货时间 ? scope.row.到货时间.split(' ')[0] : '' }}
-
-
- {{ scope.row.到货金额 }}
-
-
{{ scope.row.离线合同编号 }}
-
+
{{ scope.row.供应商名称 }}
-
+
{{ scope.row.采购员 }}
-
+
{{ scope.row.创建日期 }}
diff --git a/src/views/PurchasingCenter/SupplierManagement/index.vue b/src/views/PurchasingCenter/SupplierManagement/index.vue
index ea82e57e..2fdc7622 100644
--- a/src/views/PurchasingCenter/SupplierManagement/index.vue
+++ b/src/views/PurchasingCenter/SupplierManagement/index.vue
@@ -4,67 +4,9 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
供应商
@@ -72,16 +14,20 @@
-
{{ scope.row.供应商名称 }}
-
+
- {{ scope.row.主要产品 }}
+ {{ scope.row.编辑时间 }}
+
+
+
+
+ {{ scope.row.编辑人姓名 }}
@@ -129,11 +75,6 @@
{{ scope.row.注册资本 }}
-
-
- {{ scope.row.货期 }}
-
-
@@ -204,15 +145,6 @@
-
-
-
-
-
-
-
-
-
import { searchData, addTable, editTable, deleteData, getName, addPerson, editPerson, deletePerson } from '@/api/PurchasingCenter/SupplierManagement'
+import { mapGetters } from 'vuex'
export default {
data() {
@@ -417,6 +350,12 @@ export default {
}
}
},
+ computed: {
+ ...mapGetters([
+ 'name',
+ 'id'
+ ])
+ },
mounted() {
this.fetchData()
},
@@ -469,7 +408,7 @@ export default {
this.$refs[formName].validate((valid) => {
if (valid) {
this.submitAdd_disable = true
- addTable(this.form.供应商名称, this.form.企业性质, this.form.创立日期, this.form.注册资本, this.form.税号, this.form.开户行, this.form.帐号, this.form.电子信箱, this.form.地址, this.form.电话号码, this.form.传真, this.form.货期).then(response => {
+ addTable(this.form.供应商名称, this.form.企业性质, this.form.创立日期, this.form.注册资本, this.form.税号, this.form.开户行, this.form.帐号, this.form.电子信箱, this.form.地址, this.form.电话号码, this.form.传真, this.form.货期, this.id, this.name).then(response => {
if (Number(response.data.output[0].output1) === 0) {
this.$message.warning('该供应商已存在')
} else if (response.data.result[0].result === '1') {
@@ -511,7 +450,7 @@ export default {
this.$refs[formName].validate((valid) => {
if (valid) {
this.handleEdit_disable = true
- editTable(this.form.供应商名称, this.form.企业性质, this.form.创立日期, this.form.注册资本, this.form.税号, this.form.开户行, this.form.帐号, this.form.电子信箱, this.form.地址, this.supplierSerialNumber, this.form.传真, this.form.货期, this.form.电话号码).then(response => {
+ editTable(this.form.供应商名称, this.form.企业性质, this.form.创立日期, this.form.注册资本, this.form.税号, this.form.开户行, this.form.帐号, this.form.电子信箱, this.form.地址, this.supplierSerialNumber, this.form.传真, this.form.货期, this.form.电话号码, this.id, this.name).then(response => {
if (response.data[0].result === '1') {
this.$message.success('编辑成功')
this.dialogFormVisible = false