|
@@ -958,10 +958,10 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
if (is) {
|
|
|
- this.form.barXm = this.decodeStr.frxm
|
|
|
- this.form.barZjlx = this.decodeStr.frzjlx
|
|
|
- this.form.barZjhm = this.decodeStr.frzjhm
|
|
|
- this.form.barLxfs = this.decodeStr.frlxfs
|
|
|
+ this.form.barXm = this.form.frxm
|
|
|
+ this.form.barZjlx = this.form.frzjlx
|
|
|
+ this.form.barZjhm = this.form.frzjhm
|
|
|
+ this.form.barLxfs = this.form.frlxfs
|
|
|
this.changeBarzjlx()
|
|
|
} else {
|
|
|
this.form.barXm = null
|
|
@@ -978,10 +978,10 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
if (is) {
|
|
|
- this.form.babgXm = this.decodeStr.frxm
|
|
|
- this.form.babgZjlx = this.decodeStr.frzjlx
|
|
|
- this.form.babgSfzhm = this.decodeStr.frzjhm
|
|
|
- this.form.babgLxfs = this.decodeStr.frlxfs
|
|
|
+ this.form.babgXm = this.form.frxm
|
|
|
+ this.form.babgZjlx = this.form.frzjlx
|
|
|
+ this.form.babgSfzhm = this.form.frzjhm
|
|
|
+ this.form.babgLxfs = this.form.frlxfs
|
|
|
this.changeBabgZjlx()
|
|
|
} else {
|
|
|
this.form.babgXm = null
|
|
@@ -1291,12 +1291,18 @@ export default {
|
|
|
this.open = true
|
|
|
})
|
|
|
},
|
|
|
- /** 修改按钮操作 */
|
|
|
+
|
|
|
+ /** 继续填写按钮操作 */
|
|
|
handleUpdate(row) {
|
|
|
this.reset()
|
|
|
const id = row.id || this.ids
|
|
|
getBn(id).then(response => {
|
|
|
- this.form = response.data
|
|
|
+ this.decodeStr = {}
|
|
|
+ this.decodeStr = decryptData_ECB(this.deepCopy(response.data), ["txdz", "frxm", "frzjhm", "frlxfs", "barXm", "barZjhm", "barLxfs", "babgXm", "babgSfzhm", "babgLxfs"], [99, 99, 99, 99, 99, 99, 99, 99, 99, 99]);
|
|
|
+
|
|
|
+ let data = decryptData_ECB(response.data, ["txdz", "frxm", "frzjhm", "frlxfs", "barXm", "barZjhm", "barLxfs", "babgXm", "babgSfzhm", "babgLxfs"], [4, 1, 2, 3, 1, 2, 3, 1, 2, 3]);
|
|
|
+
|
|
|
+ this.form = { barXm: '', barZjlx: '', barZjhm: '', babgXm: '', barLxfs: '', babgZjlx: '', babgSfzhm: '', babgMs: '', babgLxfs: '', ...data }
|
|
|
if (this.form.szxzqhIds) {
|
|
|
// this.form.szxzqh = JSON.stringify(this.form.szxzqhName.split(','))
|
|
|
this.form.szxzqh = JSON.stringify(this.form.szxzqhIds.split(','))
|
|
@@ -1357,6 +1363,15 @@ export default {
|
|
|
/****** sks 需要改动的地方 start ******/
|
|
|
// let formData=this.comparisonObject(this.form,this.copyForm);
|
|
|
let formData = this.comparisonObject({ ...this.form, ...pamar }, this.copyForm)
|
|
|
+ if (formData.barXm) {
|
|
|
+ formData.barXm = formData.barXm.includes('✱') ? this.decodeStr.frxm : formData.barXm
|
|
|
+ }
|
|
|
+ if (formData.barZjhm) {
|
|
|
+ formData.barZjhm = formData.barZjhm.includes('✱') ? this.decodeStr.frzjhm : formData.barZjhm
|
|
|
+ }
|
|
|
+ if (formData.barLxfs) {
|
|
|
+ formData.barLxfs = formData.barLxfs.includes('✱') ? this.decodeStr.frlxfs : formData.barLxfs
|
|
|
+ }
|
|
|
if (formData) {
|
|
|
updateBn({ ...formData, id: this.form.id }).then(response => {
|
|
|
this.$modal.msgSuccess('修改成功')
|
|
@@ -1371,15 +1386,34 @@ export default {
|
|
|
}
|
|
|
/****** sks 需要改动的地方 end ******/
|
|
|
} else {
|
|
|
- let copyForm = {
|
|
|
- ...this.form,
|
|
|
- ...pamar,
|
|
|
- frxm: this.form.frxm.includes('✱') ? this.decodeStr.frxm : this.form.frxm,
|
|
|
- frzjhm: this.form.frzjhm.includes('✱') ? this.decodeStr.frzjhm : this.form.frzjhm,
|
|
|
- frlxfs: this.form.frlxfs.includes('✱') ? this.decodeStr.frlxfs : this.form.frlxfs,
|
|
|
- txdz: this.form.txdz.includes('✱') ? this.decodeStr.txdz : this.form.txdz,
|
|
|
- jglxdh: this.form.jglxdh.includes('✱') ? this.decodeStr.jglxdh : this.form.jglxdh
|
|
|
- }
|
|
|
+ let copyForm = {
|
|
|
+ ...this.form,
|
|
|
+ ...pamar,
|
|
|
+ }
|
|
|
+ if (copyForm.frxm) {
|
|
|
+ copyForm.frxm = this.form.frxm.includes('✱') ? this.decodeStr.frxm : this.form.frxm
|
|
|
+ }
|
|
|
+ if (copyForm.frlxfs) {
|
|
|
+ copyForm.frlxfs = this.form.frlxfs.includes('✱') ? this.decodeStr.frlxfs : this.form.frlxfs
|
|
|
+ }
|
|
|
+ if (copyForm.frzjhm) {
|
|
|
+ copyForm.frzjhm = this.form.frzjhm.includes('✱') ? this.decodeStr.frzjhm : this.form.frzjhm
|
|
|
+ }
|
|
|
+ if (copyForm.txdz) {
|
|
|
+ copyForm.txdz = this.form.txdz.includes('✱') ? this.decodeStr.txdz : this.form.txdz
|
|
|
+ }
|
|
|
+ if (copyForm.jglxdh) {
|
|
|
+ copyForm.jglxdh = this.form.jglxdh.includes('✱') ? this.decodeStr.jglxdh : this.form.jglxdh
|
|
|
+ }
|
|
|
+ if(copyForm.barXm || copyForm.barZjhm || copyForm.barLxfs){
|
|
|
+ copyForm.barXm = this.form.barXm.includes('✱') ? this.decodeStr.frxm : this.form.barXm
|
|
|
+ copyForm.barZjhm = this.form.barZjhm.includes('✱') ? this.decodeStr.frzjhm : this.form.barZjhm
|
|
|
+ copyForm.barLxfs = this.form.barLxfs.includes('✱') ? this.decodeStr.frlxfs : this.form.barLxfs
|
|
|
+ }else if(copyForm.babgXm || copyForm.babgSfzhm || copyForm.babgLxfs){
|
|
|
+ copyForm.babgXm = this.form.babgXm.includes('✱') ? this.decodeStr.frxm : this.form.babgXm
|
|
|
+ copyForm.babgSfzhm = this.form.babgSfzhm.includes('✱') ? this.decodeStr.frzjhm : this.form.babgSfzhm
|
|
|
+ copyForm.babgLxfs = this.form.babgLxfs.includes('✱') ? this.decodeStr.frlxfs : this.form.babgLxfs
|
|
|
+ }
|
|
|
addBn(copyForm).then(response => {
|
|
|
this.$modal.msgSuccess('新增成功')
|
|
|
this.open = false
|