diff --git a/anrui-scm/anrui-scm-ui/src/api/gongyingshang/gongyingshang.js b/anrui-scm/anrui-scm-ui/src/api/gongyingshang/gongyingshang.js
index 3e882349e9..7a180455fd 100644
--- a/anrui-scm/anrui-scm-ui/src/api/gongyingshang/gongyingshang.js
+++ b/anrui-scm/anrui-scm-ui/src/api/gongyingshang/gongyingshang.js
@@ -36,6 +36,14 @@ export default {
method: 'get'
})
},
+ // 获取分公司按钮
+ saveAllByOrgSid: function(data) {
+ return request({
+ url: '/base/v1/basemanufacturer/saveAllByOrgSid',
+ method: 'get',
+ params: data
+ })
+ },
// 通过sid删除一条或多条记录
delBySids: function(data) {
return request({
diff --git a/anrui-scm/anrui-scm-ui/src/views/gongyingshang/gongyingshangAdd.vue b/anrui-scm/anrui-scm-ui/src/views/gongyingshang/gongyingshangAdd.vue
index e1a9fd4dec..95888226e7 100644
--- a/anrui-scm/anrui-scm-ui/src/views/gongyingshang/gongyingshangAdd.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/gongyingshang/gongyingshangAdd.vue
@@ -4,7 +4,7 @@
@@ -313,7 +313,11 @@ export default {
paymentLines: info.paymentLines,
swiftCode: info.swiftCode,
currency: info.currency,
- remarks: info.remarks
+ remarks: info.remarks,
+ actualPay: info.actualPay,
+ actualPayKey: info.actualPayKey,
+ paymentAccessNoValue: info.paymentAccessNoValue,
+ paymentAccessNoKey: info.paymentAccessNoValue
})
return
}
@@ -330,7 +334,11 @@ export default {
paymentLines: info.paymentLines,
swiftCode: info.swiftCode,
currency: info.currency,
- remarks: info.remarks
+ remarks: info.remarks,
+ actualPay: info.actualPay,
+ actualPayKey: info.actualPayKey,
+ paymentAccessNoValue: info.paymentAccessNoValue,
+ paymentAccessNoKey: info.paymentAccessNoValue
}
return
}
@@ -363,6 +371,20 @@ export default {
this.formobj = row
})
},
+ handleSave() {
+ if (this.baseManufacturerBankDto.manufacturerCode !== '') {
+ const tip = '请确认编码是否正确,保存后信息将无法修改'
+ this.$confirm(tip, '提示', {
+ confirmButtonText: '确定',
+ cancelButtonText: '取消',
+ type: 'warning'
+ }).then(() => {
+ this.saveEdit()
+ })
+ } else {
+ this.saveEdit()
+ }
+ },
saveEdit() {
this.$refs['form_obj'].validate(valid => {
if (valid) {
diff --git a/anrui-scm/anrui-scm-ui/src/views/gongyingshang/gongyingshangByHosts.vue b/anrui-scm/anrui-scm-ui/src/views/gongyingshang/gongyingshangByHosts.vue
new file mode 100644
index 0000000000..00a3270723
--- /dev/null
+++ b/anrui-scm/anrui-scm-ui/src/views/gongyingshang/gongyingshangByHosts.vue
@@ -0,0 +1,248 @@
+
+
+
+
+
+
+
+
+
+ *厂商名称
+
+
+
+ {{ baseManufacturerDto.manufacturerName }}
+
+
+
+ 简称
+
+
+
+ {{ baseManufacturerDto.manufacturerAs }}
+
+
+
+
+
+ *编码
+
+
+
+
+
+
+
+ *分类
+
+
+
+ {{ baseManufacturerDto.supplierTypeValue }}
+
+
+
+
+
+ *通讯地址
+
+
+
+ {{ baseManufacturerDto.manufacturerAddress }}
+
+
+
+
+
+ *厂商办公电话
+
+
+
+ {{ baseManufacturerDto.manufacturerTelePhone }}
+
+
+
+ 传真
+
+
+
+ {{ baseManufacturerDto.manufacturerFax }}
+
+
+
+
+
+ *联系人姓名
+
+
+
+ {{ baseManufacturerDto.contactName }}
+
+
+
+ *联系人手机号
+
+
+
+ {{ baseManufacturerDto.contactMobile }}
+
+
+
+
+
+ 联系人办公电话
+
+
+
+ {{ baseManufacturerDto.contactTelePhone }}
+
+
+
+ 微信号
+
+
+
+ {{ baseManufacturerDto.weChatID }}
+
+
+
+
+
+ 邮编
+
+
+
+ {{ baseManufacturerDto.zipCode }}
+
+
+
+ 邮箱
+
+
+
+ {{ baseManufacturerDto.email }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/anrui-scm/anrui-scm-ui/src/views/gongyingshang/gongyingshangInfo.vue b/anrui-scm/anrui-scm-ui/src/views/gongyingshang/gongyingshangInfo.vue
index ec890aadfa..5793347a26 100644
--- a/anrui-scm/anrui-scm-ui/src/views/gongyingshang/gongyingshangInfo.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/gongyingshang/gongyingshangInfo.vue
@@ -145,6 +145,8 @@
+
+
diff --git a/anrui-scm/anrui-scm-ui/src/views/gongyingshang/gongyingshanggaunli.vue b/anrui-scm/anrui-scm-ui/src/views/gongyingshang/gongyingshanggaunli.vue
index d41eac329b..1ee1162490 100644
--- a/anrui-scm/anrui-scm-ui/src/views/gongyingshang/gongyingshanggaunli.vue
+++ b/anrui-scm/anrui-scm-ui/src/views/gongyingshang/gongyingshanggaunli.vue
@@ -12,7 +12,7 @@
-
+
@@ -39,7 +39,7 @@
- 编辑
+ 编辑
@@ -82,6 +82,7 @@
+
@@ -93,6 +94,7 @@ import { typeValues, getPathSidByUserSid } from '@/api/cheliang/dictcommons'
import gongyingshangAdd from './gongyingshangAdd'
import gongyingshangInfo from './gongyingshangInfo'
import req from '@/api/gongyingshang/gongyingshang'
+import gongyingshangByHosts from './gongyingshangByHosts'
export default {
name: 'gongyingshangguanli',
@@ -101,7 +103,8 @@ export default {
pageye,
ButtonBar,
gongyingshangAdd,
- gongyingshangInfo
+ gongyingshangInfo,
+ gongyingshangByHosts
},
data() {
return {
@@ -121,6 +124,13 @@ export default {
btnKey: 'doDel',
btnLabel: '删除'
},
+ {
+ type: 'primary',
+ size: 'small',
+ icon: '',
+ btnKey: 'toGain',
+ btnLabel: '获取分公司'
+ },
{
type: 'success',
size: 'small',
@@ -181,6 +191,9 @@ export default {
case 'doDel':
this.doDel()
break
+ case 'toGain':
+ this.toGain()
+ break
case 'doExport':
this.doExport()
break
@@ -304,9 +317,22 @@ export default {
return
}
},
+ toGain() {
+ req.saveAllByOrgSid({ orgSid: this.listQuery.params.createOrgSid }).then((resp) => {
+ if (resp.success) {
+ this.$message({ showClose: true, type: 'success', message: '获取成功' })
+ this.getList()
+ }
+ })
+ },
handleEdit(row) {
- this.viewState = 3
- this.$refs['divadd'].showEdit(row)
+ if (row.supplierTypeValue !== '主机厂' && row.supplierTypeValue !== '分公司') {
+ this.viewState = 3
+ this.$refs['divadd'].showEdit(row)
+ } else {
+ this.viewState = 5
+ this.$refs['divHosts'].showInfo(row)
+ }
},
// 打开查看
handleCheck(row) {