|
@@ -949,8 +949,9 @@ export default {
|
|
|
},
|
|
|
on: {
|
|
|
click: () => {
|
|
|
- axios.post('/api/storage-restructure/supplier/getSafetyWarnDayBySupplier',{supplierId:p.row.id}).then(res=>{
|
|
|
- this.accountDateRemarkModalData = res.data.data
|
|
|
+
|
|
|
+ this.$post('/api/storage-restructure/material/getMaterialBySupplierId',{supplierId:p.row.id}).then(res=>{
|
|
|
+ this.accountDateRemarkModalData = res.data
|
|
|
this.accountDateRemarkModal = true
|
|
|
})
|
|
|
|
|
@@ -984,6 +985,7 @@ export default {
|
|
|
fixed: 'right',
|
|
|
width: 150,
|
|
|
render: (h, params) => {
|
|
|
+ const v = this
|
|
|
return h('div', [
|
|
|
h(
|
|
|
'Icon',
|
|
@@ -999,12 +1001,16 @@ export default {
|
|
|
on: {
|
|
|
click: () => {
|
|
|
this.show = true
|
|
|
- axios.get('/cloudApi/supplier/detail?id=' + params.row.id,{}).then(res=>{
|
|
|
- this.formData = res.data.data
|
|
|
+ this.$post('/api/storage-restructure/supplier/details',{id:params.row.id}).then(res=>{
|
|
|
+
|
|
|
+ v.$set(v,'formData',res.data)
|
|
|
+
|
|
|
+ console.log(this.formData)
|
|
|
this.formType = 'form'
|
|
|
this.title = '供应商详情'
|
|
|
this.show = true
|
|
|
})
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -1163,8 +1169,7 @@ export default {
|
|
|
|
|
|
},
|
|
|
cfm (type, formData) {
|
|
|
- if (type === 'add') {
|
|
|
- const formDataCopy = {
|
|
|
+ const formDataCopy = {
|
|
|
...formData,
|
|
|
supplierBank:{
|
|
|
accountName:formData.accountName,
|
|
@@ -1184,6 +1189,8 @@ export default {
|
|
|
supplierKeepList:[],
|
|
|
otherQualifications:[],
|
|
|
}
|
|
|
+ if (type === 'add') {
|
|
|
+
|
|
|
|
|
|
this.$post('/api/storage-restructure/supplier/add',formDataCopy).then(res=>{
|
|
|
this.show = false
|
|
@@ -1196,7 +1203,7 @@ export default {
|
|
|
})
|
|
|
} else if (type === 'edit') {
|
|
|
|
|
|
- axios.post('/cloudApi/supplier/edit',formData).then(res=>{
|
|
|
+ this.$post('/api/storage-restructure/supplier/edit',formDataCopy).then(res=>{
|
|
|
this.show = false
|
|
|
this.$Message.info(res.data.msg)
|
|
|
this.getList()
|