-
+
@@ -10,18 +10,18 @@
-
+
-
+
-
+
-
+
diff --git a/supervise-customer-ui/src/views/supervise/supplierbankinfo/supplierbankinfoAdd.vue b/supervise-customer-ui/src/views/supervise/supplierbankinfo/supplierbankinfoAdd.vue
index 5ba4c3af..fb7a07c6 100644
--- a/supervise-customer-ui/src/views/supervise/supplierbankinfo/supplierbankinfoAdd.vue
+++ b/supervise-customer-ui/src/views/supervise/supplierbankinfo/supplierbankinfoAdd.vue
@@ -94,7 +94,8 @@
合同有效期:
-
+
签署人:
@@ -102,7 +103,8 @@
合同金额:
-
+
经办人:
@@ -227,7 +229,6 @@
contractInfo: {
contractNo: "",
contractValidity: "",
- signingDepartment: "",
signatory: "",
contractPrice: "",
handledBy: "",
@@ -240,8 +241,44 @@
},
created() {},
methods: {
- handleReturn() {
- this.formobj = {}
+ formatNum(e) {
+ e.target.value = e.target.value.replace(/[^\d.]/g, '') // 清除“数字”和“.”"-"以外的字符
+ e.target.value = e.target.value.replace(/^00/, '0') // 开头不能有两个0
+ if (e.target.value.indexOf('.') < 0 && e.target.value !== '' && e.target.value !== '-') {
+ // 以上已经过滤,此处控制的是如果没有小数点,首位不能为类似于 01、02的金额
+ console.log(e.target.value)
+ e.target.value = parseFloat(e.target.value)
+ }
+ },
+ handleReturn(isreload) {
+ this.active = 0
+ this.imgList = []
+ this.imgList2 = []
+
+ if (isreload === 'true') this.$emit('reloadlist')
+ this.formobj = {
+ name: "",
+ codeUnified: "",
+ contacts: "",
+ telephone: "",
+ address: "",
+ bankName: "",
+ bankAccount: "",
+ bankAccountNumber: "",
+ legalRepresentative: "",
+ businessLicenseNo: "",
+ businessLicenseFiles: [],
+ contractInfo: {
+ contractNo: "",
+ contractValidity: "",
+ signatory: "",
+ contractPrice: "",
+ handledBy: "",
+ signingOrganization: "",
+ contractFiles: []
+ },
+ codeIndex: []
+ }
this.$emit('doback')
},
handleClose(done) {
@@ -253,28 +290,37 @@
.catch(_ => {});
},
showAdd(row) {
- // req.fetchBySid(row.sid).then((resp) => {
- // if (resp.success) {
- // this.formobj.sid = resp.data.sid
- // this.formobj.name = resp.data.name
- // this.formobj.codeUnified = resp.data.codeUnified
- // this.formobj.contacts = resp.data.contacts
- // this.formobj.telephone = resp.data.telephone
- // this.formobj.address = resp.data.address
- // this.formobj.bankAccount = resp.data.bankAccount
- // this.formobj.bankAccountNumber = resp.data.bankAccountNumber
- // this.formobj.bankName = resp.data.bankName
- // this.formobj.legalRepresentative = resp.data.legalRepresentative
- // this.formobj.businessLicenseNo = resp.data.businessLicenseNo
- // this.formobj.businessLicenseFiles = resp.data.businessLicenseFiles
- // this.formobj.contractFiles = resp.data.contractFiles
- // if (resp.data.supplierContractInfoDto !== null) {
- // this.formobj.supplierContractInfoDto = resp.data.supplierContractInfoDto
- // }
- // }
- // }).catch(e => {
- // this.formobj = row
- // })
+
+ },
+ showEdit(row) {
+ req.fetchBySid(row.sid)
+ .then(resp => {
+ if (resp.success) {
+ console.log("data211111111111112222222222>>>", resp.data)
+ this.formobj = resp.data
+
+ if (this.formobj.businessLicenseFiles.length > 0)
+ for (var i = 0; i < this.formobj.businessLicenseFiles.length; i++) {
+ this.imgList.push({
+ name: "",
+ url: this.formobj.businessLicenseFiles[i]
+ })
+ }
+
+ if (this.formobj.contractInfo.contractFiles.length > 0)
+ for (var j = 0; j < this.formobj.contractInfo.contractFiles.length; j++) {
+ this.imgList2.push({
+ name: "",
+ url: this.formobj.contractInfo.contractFiles[j]
+ })
+ }
+
+ }
+
+ })
+ .catch(e => {
+ this.formobj = row
+ })
},
prev() {
@@ -303,18 +349,26 @@
this.inputText
)
this.inputText = ""
+ console.log("codeIndex>>>", this.formobj.codeIndex)
},
submit() {
- req.saveSupplier(this.formobj)
- .then(resp => {
- this.submitdisabled = false
- if (resp.success) {
- this.$message({ showClose: true, type: 'success', message: resp.msg })
- this.handleReturn()
- } else {
- // 根据resp.code进行异常情况处理
- }
- })
+
+ console.log("data>>>", this.formobj)
+
+ req.saveOrUpdate(this.formobj)
+ .then(resp => {
+ this.submitdisabled = false
+ if (resp.success) {
+ this.$message({
+ showClose: true,
+ type: 'success',
+ message: resp.msg
+ })
+ this.handleReturn("true")
+ } else {
+ // 根据resp.code进行异常情况处理
+ }
+ })
},
backData(value) {
console.log(value, 999)
@@ -382,11 +436,11 @@
margin-bottom: 50px;
.stepsLay_top {
- width: 70%;
+ width: 75%;
}
.box-card {
- min-width: 70%;
+ min-width: 75%;
margin-top: 20px;
.item {
diff --git a/yxt-portal-ui/.env.development b/yxt-portal-ui/.env.development
index 0777e64e..8e04a50e 100644
--- a/yxt-portal-ui/.env.development
+++ b/yxt-portal-ui/.env.development
@@ -5,5 +5,5 @@ ENV = 'development'
VUE_APP_BASE_API = '/api'
## 配置测试和本地开发时的 接口地址
-VUE_APP_URL = "http://192.168.3.9:8112"
+VUE_APP_URL = "http://192.168.3.20:8112"
##VUE_APP_URL = "http://8.130.39.13:8112"