diff --git a/anrui-riskcenter-ui/src/views/homevisitpreparation/homevisitpreparationAdd.vue b/anrui-riskcenter-ui/src/views/homevisitpreparation/homevisitpreparationAdd.vue index 0ddc130657..90db567c36 100644 --- a/anrui-riskcenter-ui/src/views/homevisitpreparation/homevisitpreparationAdd.vue +++ b/anrui-riskcenter-ui/src/views/homevisitpreparation/homevisitpreparationAdd.vue @@ -206,7 +206,7 @@
选择挂靠运输公司
- + @@ -215,14 +215,12 @@
*挂靠公司名称
- - - + {{ formobj.accCompName }}
*统一社会信用代码
- +
diff --git a/anrui-riskcenter-ui/src/views/managementcreditaudit/managementcreditaudit.vue b/anrui-riskcenter-ui/src/views/managementcreditaudit/managementcreditaudit.vue index 3b9f6673ee..2426d1c145 100644 --- a/anrui-riskcenter-ui/src/views/managementcreditaudit/managementcreditaudit.vue +++ b/anrui-riskcenter-ui/src/views/managementcreditaudit/managementcreditaudit.vue @@ -70,7 +70,7 @@ - + @@ -101,7 +101,7 @@ {{ scope.row.customerName }} - + diff --git a/anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue b/anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue index 2c66f66b1f..178ecca8c8 100644 --- a/anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue +++ b/anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue @@ -266,25 +266,27 @@ export default { }, toEdit() { if (this.sids.length === 1) { - if (this.multipleSelection[0].handleBtn) { - this.viewState = 2 - this.$refs['divAdd'].showEdit(this.sids[0]) - } else { - this.$message({ showClose: true, type: 'error', message: '该记录资方合同号为空或已生成还款计划表且已存在还款记录' }) + // if (this.multipleSelection[0].handleBtn) { + // this.viewState = 2 + // this.$refs['divAdd'].showEdit(this.sids[0]) + // } else { + // this.$message({ showClose: true, type: 'error', message: '该记录资方合同号为空或已生成还款计划表且已存在还款记录' }) + // } + if (this.state_list.length > 0) { + for (var i = 0; i < this.state_list.length; i++) { + if (this.state_list[i] === '是') { + this.$message({ showClose: true, type: 'error', message: '请选择是否已生成还款计划表状态为否的记录进行操作' }) + return + } + } } + this.viewState = 2 + this.$refs['divAdd'].showEdit(this.sids[0]) } else { this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行操作' }) } }, downloadRepaymentPlan() { - if (this.state_list.length > 0) { - for (var i = 0; i < this.state_list.length; i++) { - if (this.state_list[i] === '是') { - this.$message({ showClose: true, type: 'error', message: '请选择是否已生成还款计划表状态为否的记录进行操作' }) - return - } - } - } if (this.sids.length > 0) { req.createRepaymentVoucher(this.sids).then((res) => { if (res.success) { diff --git a/yxt-as-ui/src/api/Common/Upload.js b/yxt-as-ui/src/api/Common/Upload.js index 6f5f0c578a..2a3a89c243 100644 --- a/yxt-as-ui/src/api/Common/Upload.js +++ b/yxt-as-ui/src/api/Common/Upload.js @@ -1,4 +1,4 @@ import request from '@/utils/request' // 上传图片 -export const uploadFile = '/api/riskcenter/file/upload' +export const uploadFile = '/api/portal/file/upload' diff --git a/yxt-as-ui/src/api/goods/unit.js b/yxt-as-ui/src/api/goods/unit.js index 8795c0b363..732f5d9f27 100644 --- a/yxt-as-ui/src/api/goods/unit.js +++ b/yxt-as-ui/src/api/goods/unit.js @@ -46,7 +46,7 @@ export default { // 初始化 initUnits: function(data) { return request({ - url: '/base/basegoodsunit/initialization/' + data, + url: '/yxtbase/apiadmin/base/basegoodsunit/initialization/' + data, method: 'get' }); }, diff --git a/yxt-as-ui/src/views/basicinformation/supplier/relation/openingbank.vue b/yxt-as-ui/src/views/basicinformation/supplier/relation/openingbank.vue index 27c130bf0f..d439332060 100644 --- a/yxt-as-ui/src/views/basicinformation/supplier/relation/openingbank.vue +++ b/yxt-as-ui/src/views/basicinformation/supplier/relation/openingbank.vue @@ -12,22 +12,22 @@ -
开户银行
- +
*开户银行
+
-
银行账号
- +
*银行账号
+
-
账号名称
- +
*账号名称
+
-
账号类型
- +
*账号类型
+ @@ -91,7 +91,12 @@ export default { currency: '' }, index: '', - rules: {} + rules: { + bankName: [{ required: true, message: '开户银行不能为空', trigger: 'blur' }], + bankAccount: [{ required: true, message: '银行账号不能为空', trigger: 'blur' }], + accountName: [{ required: true, message: '账号名称不能为空', trigger: 'blur' }], + dueBankKey: [{ required: true, message: '账号类型不能为空', trigger: 'change' }] + } } }, methods: { @@ -163,4 +168,7 @@ export default { .addinputInfo { margin-left: 130px !important; } +/deep/ .el-form-item__error { + margin-left: 120px !important; +} diff --git a/yxt-as-ui/src/views/basicinformation/supplier/supplier.vue b/yxt-as-ui/src/views/basicinformation/supplier/supplier.vue index 720eb446ca..ade9f0e62d 100644 --- a/yxt-as-ui/src/views/basicinformation/supplier/supplier.vue +++ b/yxt-as-ui/src/views/basicinformation/supplier/supplier.vue @@ -30,7 +30,7 @@
-
销售开单列表
+
供应商列表
@@ -212,7 +212,7 @@ export default { contactName: '' } } - this.init() + this.getList() }, toAdd() { this.viewState = 2 diff --git a/yxt-as-ui/src/views/basicinformation/supplier/supplierAdd.vue b/yxt-as-ui/src/views/basicinformation/supplier/supplierAdd.vue index 4959f3998e..da10635314 100644 --- a/yxt-as-ui/src/views/basicinformation/supplier/supplierAdd.vue +++ b/yxt-as-ui/src/views/basicinformation/supplier/supplierAdd.vue @@ -13,30 +13,30 @@
基本信息
-
供应商名称
- +
*供应商名称
+
-
供应商简称
- +
*供应商简称
+
-
供应商编码
- +
*供应商编码
+
-
供应商类型
- +
*供应商类型
+
-
供应商电话
- +
*供应商电话
+
传真
@@ -48,14 +48,14 @@
详细地址
- - + + - - + + - - + +
@@ -90,8 +90,8 @@
-
开票公司名称
- +
*开票公司名称
+
税号
@@ -108,16 +108,16 @@
-
开票类型
- +
*开票类型
+
-
税率
- +
*税率
+
@@ -212,12 +212,21 @@ export default { remarks: '', pmsSupplierBankList: [] }, - rules: {} + rules: { + supplierName: [{ required: true, message: '供应商名称不能为空', trigger: 'blur' }], + supplierPY: [{ required: true, message: '供应商简称不能为空', trigger: 'blur' }], + supplierCode: [{ required: true, message: '供应商编码不能为空', trigger: 'blur' }], + supplierTypeSid: [{ required: true, message: '供应商类型不能为空', trigger: 'change' }], + contactTelePhone: [{ required: true, message: '供应商电话不能为空', trigger: 'blur' }], + billingCompanyName: [{ required: true, message: '开票公司名称不能为空', trigger: 'blur' }], + billingTypeValue: [{ required: true, message: '开票类型不能为空', trigger: 'change' }], + taxRate: [{ required: true, message: '税率不能为空', trigger: 'blur' }] + } } }, methods: { init() { - typeValues({ type: 'billingType' }).then((res) => { + typeValues({ type: 'accountType' }).then((res) => { if (res.success) { this.billingType_list = res.data } @@ -258,10 +267,18 @@ export default { } }, provinceChange(value) { - const choose = this.province_list.filter((item) => item.sid === value) + const choose = this.province_list.filter((item) => item.name === value) if (choose !== null && choose.length > 0) { - this.formobj.province = choose[0].name - this.getCity(value) + this.formobj.provinceSid = choose[0].sid + this.getCity(this.formobj.provinceSid) + } else { + this.formobj.provinceSid = '' + this.formobj.citySid = '' + this.formobj.city = '' + this.city_list = [] + this.formobj.county = '' + this.formobj.countySid = '' + this.county_list = [] } }, getCity(val) { @@ -272,10 +289,10 @@ export default { }) }, cityChange(value) { - const choose = this.city_list.filter((item) => item.sid === value) + const choose = this.city_list.filter((item) => item.name === value) if (choose !== null && choose.length > 0) { - this.formobj.city = choose[0].name - this.getCounty(value) + this.formobj.citySid = choose[0].sid + this.getCounty(this.formobj.citySid) } }, getCounty(val) { @@ -286,9 +303,9 @@ export default { }) }, countyChange(value) { - const choose = this.county_list.filter((item) => item.sid === value) + const choose = this.county_list.filter((item) => item.name === value) if (choose !== null && choose.length > 0) { - this.formobj.county = choose[0].name + this.formobj.countySid = choose[0].sid } }, showAdd() { @@ -437,6 +454,9 @@ export default { margin-left: 120px !important; width: calc(100% - 115px); } +/deep/ .el-form-item__error { + margin-left: 120px !important; +} .titleOne { padding: 7px; display: flex; diff --git a/yxt-as-ui/src/views/basicinformation/supplier/supplierInfo.vue b/yxt-as-ui/src/views/basicinformation/supplier/supplierInfo.vue index 033aebf466..621b9bc765 100644 --- a/yxt-as-ui/src/views/basicinformation/supplier/supplierInfo.vue +++ b/yxt-as-ui/src/views/basicinformation/supplier/supplierInfo.vue @@ -41,7 +41,7 @@
详细地址
- {{ formobj.address }} + {{ formobj.province }}{{ formobj.city }}{{ formobj.county }}{{ formobj.address }}
diff --git a/yxt-as-ui/src/views/basicinformation/suppliertype/suppliertype.vue b/yxt-as-ui/src/views/basicinformation/suppliertype/suppliertype.vue index b2b6905fbb..c280b25058 100644 --- a/yxt-as-ui/src/views/basicinformation/suppliertype/suppliertype.vue +++ b/yxt-as-ui/src/views/basicinformation/suppliertype/suppliertype.vue @@ -54,11 +54,11 @@ -
供应商类型
+
*供应商类型
-
供应商编码
+
*供应商编码
diff --git a/yxt-as-ui/src/views/goods/brands/brandsAdd.vue b/yxt-as-ui/src/views/goods/brands/brandsAdd.vue index 75c4756677..526e4c6beb 100644 --- a/yxt-as-ui/src/views/goods/brands/brandsAdd.vue +++ b/yxt-as-ui/src/views/goods/brands/brandsAdd.vue @@ -3,7 +3,7 @@
-
商品信息
+
品牌信息
保存 @@ -54,11 +54,11 @@
-->
品牌Logo: - - +
@@ -98,8 +98,8 @@ // this.initData() }, methods: { - backData(value) { - console.log('backData》》》》', value) + + backData(value){ console.log('imgList', this.imgList) if (this.imgList.length > 0) { @@ -107,25 +107,13 @@ } else { this.formobj.image = '' } - this.hideUploadBtn = this.imgList.length != 0 console.log('this.hideUploadBtn', this.hideUploadBtn) }, - backData2(value) { - console.log('backData2》》》》', value) - console.log('imgList2', this.imgList2) - - if (this.imgList2.length > 0) { - this.formobj.bigPic = this.imgList2[0].url - } else { - this.formobj.bigPic = '' - } - this.hideUploadBtn2 = this.imgList2.length != 0 - console.log('this.hideUploadBtn2', this.hideUploadBtn2) - }, saveOrUpdate() { console.log('>>>>>>>>>saveOrUpdate', this.formobj) + req.saveBrands(this.formobj) .then(resp => { if (resp.success) { @@ -144,9 +132,7 @@ handleReturn(isreload) { if (isreload === 'true') this.$emit('reloadlist') this.imgList = [] - this.imgList2 = [] this.hideUploadBtn = true - this.hideUploadBtn2 = true this.formobj = { sid: '', brandName: '', @@ -159,9 +145,7 @@ }, showAdd() { console.log("this.imgList", this.imgList) - console.log("this.imgList2", this.imgList2) this.hideUploadBtn = this.imgList.length != 0 - this.hideUploadBtn2 = this.imgList2.length != 0 }, showEdit(row) { req.initBrands(row.sid) @@ -169,26 +153,18 @@ if (resp.success) { this.formobj = resp.data this.imgList = [] - this.imgList2 = [] if (resp.data.image != '') { this.imgList.push({ url: resp.data.image }) } - if (resp.data.bigPic != '') { - this.imgList2.push({ - url: resp.data.bigPic - }) - } this.hideUploadBtn = this.imgList.length != 0 - this.hideUploadBtn2 = this.imgList2.length != 0 } }) .catch(e => { this.formobj = row this.imgList = [] - this.imgList2 = [] }) }, diff --git a/yxt-as-ui/src/views/goods/goods/goodsAdd.vue b/yxt-as-ui/src/views/goods/goods/goodsAdd.vue index d2bb507b42..70f7dceb86 100644 --- a/yxt-as-ui/src/views/goods/goods/goodsAdd.vue +++ b/yxt-as-ui/src/views/goods/goods/goodsAdd.vue @@ -15,241 +15,329 @@
- -
+ +
基础信息
- - - 商品名称 + + +
商品名称
+ +
- - - + + +
商品简称
+ +
- - - 商品编码 + +
+ + + + +
商品副标题
+ +
- - - + + +
商品拼音缩写
+ +
+
- - - 商品品牌 + + +
商品编码
+ + + +
+ + +
商品条形码
+ +
- - - + + + + +
商品品牌
+ +
- - - 商品类别 - - - - - + + +
商品类别
+ +
+
- - - 商品厂家 - - - - - +
商品厂家
+ +
- - - 厂家货号 - - - - - + + +
厂家货号
+ +
+
- - - 外部编码 + + +
商品单位
+ + + +
- - - + + +
是否上架
+ + + 上架 + 下架 +
- - - 国标码 + +
+ + + + +
外部编码
+ +
- - - +
国标码
+ +
+
- - - 税率 + + +
税率
+ +
- - - + + +
保质期天
+ +
- - - 保质期天 + +
+ + + + +
商品排序
+ +
- - - + + +
商品备注
+ +
+
- - - 商品详细说明 + + +
商品详细说明
+ +
- - - + +
+ + + + +
商品描述
+ +
+
- - - 商品描述 + + +
商品通用规格参数
+ +
- - - + +
+ + + + +
商品特有规格参数
+ +
+
- - -