chore(env): update env

This commit is contained in:
woody 2025-08-28 11:22:20 +08:00
parent 81f63a2d98
commit e8e0cf246d
6 changed files with 541 additions and 674 deletions

View File

@ -4,7 +4,7 @@ ENV = 'development'
# VUE_APP_BASE_API = '/prod-api' # VUE_APP_BASE_API = '/prod-api'
VUE_APP_ADDRESS = 'http://f.hzs413.com/' VUE_APP_ADDRESS = 'http://f.hzs413.com/'
VUE_APP_BASE_INTERAPI = 'https://bd-qd.oss-cn-beijing.aliyuncs.com/test_africa/language' VUE_APP_BASE_INTERAPI = 'https://bd-qd.oss-cn-beijing.aliyuncs.com/test_africa/language'
VUE_APP_BASE_INTERAPI2 = 'http://f.hzs413.com/language' VUE_APP_BASE_INTERAPI2 = 'https://bd-qd.oss-cn-beijing.aliyuncs.com/test_africa/language'
VUE_APP_BASE_API = '/prod-api' VUE_APP_BASE_API = '/prod-api'

View File

@ -4,11 +4,11 @@ ENV = 'production'
# base api # base api
# VUE_APP_BASE_API = 'http://f.hzs413.com/prod-api' # VUE_APP_BASE_API = 'http://f.hzs413.com/prod-api'
# VUE_APP_ADDRESS = 'http://f.hzs413.com/' # VUE_APP_ADDRESS = 'http://f.hzs413.com/'
# VUE_APP_BASE_INTERAPI = 'https://dny-test.s3.ap-southeast-1.amazonaws.com/test/language' # VUE_APP_BASE_INTERAPI = 'https://bd-qd.oss-cn-beijing.aliyuncs.com/test_africa/language'
# VUE_APP_BASE_INTERAPI2 = 'https://dny-test.s3.ap-southeast-1.amazonaws.com/test/language' # VUE_APP_BASE_INTERAPI2 = 'https://dny-test.s3.ap-southeast-1.amazonaws.com/test/language'
VUE_APP_BASE_API = '/prod-api' VUE_APP_BASE_API = '/prod-api'
VUE_APP_ADDRESS = 'http://13.247.98.15/' VUE_APP_ADDRESS = 'http://13.247.98.15/'
VUE_APP_BASE_INTERAPI = 'https://dny-test.s3.ap-southeast-1.amazonaws.com/test/language' VUE_APP_BASE_INTERAPI = 'https://bd-qd.oss-cn-beijing.aliyuncs.com/test_africa/language'
VUE_APP_BASE_INTERAPI2 = 'https://dny-test.s3.ap-southeast-1.amazonaws.com/test/language' VUE_APP_BASE_INTERAPI2 = 'https://bd-qd.oss-cn-beijing.aliyuncs.com/test_africa/language'

View File

@ -11,11 +11,11 @@
</template> </template>
<script> <script>
import { env } from "echarts"; import { env } from 'echarts'
export default { export default {
name: "App", name: 'App',
data() { data() {
return {}; return {}
}, },
beforeCreate() { beforeCreate() {
// var localEnUS = {} // var localEnUS = {}
@ -29,149 +29,149 @@ export default {
// console.log('xxxxxxxxxxxxxxx') // console.log('xxxxxxxxxxxxxxx')
}, },
created() { created() {
const self = this; const self = this
self.loading = false; self.loading = false
self.addScriptChild("zh-CN"); self.addScriptChild('zh-CN')
self.addScriptChild("en-US"); self.addScriptChild('en-US')
self.addScriptChild("ru-RU"); // self.addScriptChild("ru-RU");
self.addScriptChild("fr-FR"); self.addScriptChild('fr-FR')
if (process.env.NODE_ENV != "production") { if (process.env.NODE_ENV != 'production') {
// self.addScriptChild("fr-FR"); // self.addScriptChild("fr-FR");
// self.addScriptChild("pt-PT"); // self.addScriptChild("pt-PT");
} }
}, },
methods: { methods: {
addScriptChild2(name) { addScriptChild2(name) {
const self = this; const self = this
const s = document.createElement("script"); const s = document.createElement('script')
s.type = "text/javascript"; s.type = 'text/javascript'
const base_url = process.env.VUE_APP_BASE_INTERAPI2; const base_url = process.env.VUE_APP_BASE_INTERAPI2
s.src = base_url + "/" + name + ".js"; s.src = base_url + '/' + name + '.js'
s.ref = "local1"; s.ref = 'local1'
document.body.appendChild(s); document.body.appendChild(s)
if (window.ActiveXObject || "ActiveXObject" in window) { if (window.ActiveXObject || 'ActiveXObject' in window) {
// ie // ie
if (s.readyState) { if (s.readyState) {
// readyState // readyState
s.onreadystatechange = function () { s.onreadystatechange = function() {
if (this.readyState == "loaded" || this.readyState == "complete") { if (this.readyState == 'loaded' || this.readyState == 'complete') {
self.readyAdd(name); self.readyAdd(name)
console.log("ie10及以下加载完成"); console.log('ie10及以下加载完成')
}
} }
};
} else { } else {
s.onload = function () { s.onload = function() {
self.readyAdd(name); self.readyAdd(name)
console.log("ie11及Edge加载完成"); console.log('ie11及Edge加载完成')
}; }
s.onerror = function () { s.onerror = function() {
console.log("ie11及Edge加载第二地址失败:" + name); console.log('ie11及Edge加载第二地址失败:' + name)
}; }
} }
} else { } else {
// ie // ie
s.onload = function () { s.onload = function() {
self.readyAdd(name); self.readyAdd(name)
console.log("非ie浏览器第二地址加载完成:" + name); console.log('非ie浏览器第二地址加载完成:' + name)
}; }
s.onerror = function () { s.onerror = function() {
console.log("非ie浏览器加载第二地址失败:" + name); console.log('非ie浏览器加载第二地址失败:' + name)
}; }
} }
}, },
addScriptChild(name) { addScriptChild(name) {
const self = this; const self = this
const s = document.createElement("script"); const s = document.createElement('script')
s.type = "text/javascript"; s.type = 'text/javascript'
const base_url = process.env.VUE_APP_BASE_INTERAPI; const base_url = process.env.VUE_APP_BASE_INTERAPI
s.src = base_url + "/" + name + ".js"; s.src = base_url + '/' + name + '.js'
s.ref = "local1"; s.ref = 'local1'
document.body.appendChild(s); document.body.appendChild(s)
if (window.ActiveXObject || "ActiveXObject" in window) { if (window.ActiveXObject || 'ActiveXObject' in window) {
// ie // ie
if (s.readyState) { if (s.readyState) {
// readyState // readyState
s.onreadystatechange = function () { s.onreadystatechange = function() {
if (this.readyState == "loaded" || this.readyState == "complete") { if (this.readyState == 'loaded' || this.readyState == 'complete') {
self.readyAdd(name); self.readyAdd(name)
console.log("ie10及以下加载完成"); console.log('ie10及以下加载完成')
}
} }
};
} else { } else {
s.onload = function () { s.onload = function() {
self.readyAdd(name); self.readyAdd(name)
console.log("ie11及Edge加载完成"); console.log('ie11及Edge加载完成')
}; }
s.onerror = function () { s.onerror = function() {
console.log("ie11及Edge加载失败:" + name); console.log('ie11及Edge加载失败:' + name)
self.addScriptChild2(name); self.addScriptChild2(name)
}; }
} }
} else { } else {
// ie // ie
s.onload = function () { s.onload = function() {
self.readyAdd(name); self.readyAdd(name)
console.log("非ie浏览器加载完成"); console.log('非ie浏览器加载完成')
}; }
s.onerror = function () { s.onerror = function() {
console.log("非ie浏览器加载失败:" + name); console.log('非ie浏览器加载失败:' + name)
self.addScriptChild2(name); self.addScriptChild2(name)
}; }
} }
}, },
getJS(res, name) { getJS(res, name) {
const funcStr = const funcStr =
"function test(value){" + res.data + ";return " + name + "}"; 'function test(value){' + res.data + ';return ' + name + '}'
const test = eval("(false || " + funcStr + ")"); const test = eval('(false || ' + funcStr + ')')
return test(); return test()
}, },
readyAdd(name) { readyAdd(name) {
if (name === "zh-CN") { if (name === 'zh-CN') {
if (zhCN) { if (zhCN) {
const localzhCN = this.getJS(zhCN, "zhCN"); const localzhCN = this.getJS(zhCN, 'zhCN')
var STlocalzhCN = JSON.stringify(localzhCN); var STlocalzhCN = JSON.stringify(localzhCN)
localStorage.setItem("local-zhCN", STlocalzhCN); localStorage.setItem('local-zhCN', STlocalzhCN)
} }
this.$i18n.mergeLocaleMessage(name, zhCN); this.$i18n.mergeLocaleMessage(name, zhCN)
} }
if (name === "en-US") { if (name === 'en-US') {
if (enUS) { if (enUS) {
const localEnUS = this.getJS(enUS, "enUS"); const localEnUS = this.getJS(enUS, 'enUS')
var STlocalEnUS = JSON.stringify(localEnUS); var STlocalEnUS = JSON.stringify(localEnUS)
localStorage.setItem("local-enUS", STlocalEnUS); localStorage.setItem('local-enUS', STlocalEnUS)
} }
this.$i18n.mergeLocaleMessage(name, enUS); this.$i18n.mergeLocaleMessage(name, enUS)
} }
if (name === "ru-RU") { if (name === 'ru-RU') {
if (ruRU) { if (ruRU) {
const localruRU = this.getJS(ruRU, "ruRU"); const localruRU = this.getJS(ruRU, 'ruRU')
var STlocalruRU = JSON.stringify(localruRU); var STlocalruRU = JSON.stringify(localruRU)
localStorage.setItem("local-ruRU", STlocalruRU); localStorage.setItem('local-ruRU', STlocalruRU)
} }
this.$i18n.mergeLocaleMessage(name, ruRU); this.$i18n.mergeLocaleMessage(name, ruRU)
} }
if (name === "fr-FR") { if (name === 'fr-FR') {
if (frFR) { if (frFR) {
const localfrFR = this.getJS(frFR, "frFR"); const localfrFR = this.getJS(frFR, 'frFR')
var STlocalfrFR = JSON.stringify(localfrFR); var STlocalfrFR = JSON.stringify(localfrFR)
localStorage.setItem("local-frFR", STlocalfrFR); localStorage.setItem('local-frFR', STlocalfrFR)
} }
this.$i18n.mergeLocaleMessage(name, frFR); this.$i18n.mergeLocaleMessage(name, frFR)
} }
if (name === "pt-PT") { if (name === 'pt-PT') {
if (ptPT) { if (ptPT) {
const localptPT = this.getJS(ptPT, "ptPT"); const localptPT = this.getJS(ptPT, 'ptPT')
var STlocalptPT = JSON.stringify(localptPT); var STlocalptPT = JSON.stringify(localptPT)
localStorage.setItem("local-ptPT", STlocalptPT); localStorage.setItem('local-ptPT', STlocalptPT)
} }
this.$i18n.mergeLocaleMessage(name, ptPT); this.$i18n.mergeLocaleMessage(name, ptPT)
} }
// document.title = this.$t('HTML_TITL') // document.title = this.$t('HTML_TITL')
}, }
}, }
}; }
</script> </script>
<style lang="scss"> <style lang="scss">
.el-dialog__header { .el-dialog__header {

View File

@ -34,7 +34,7 @@ if (localStorage.getItem('local-ptPT') != undefined) {
import enLocale from 'element-ui/lib/locale/lang/en' import enLocale from 'element-ui/lib/locale/lang/en'
import zhLocale from 'element-ui/lib/locale/lang/zh-CN' import zhLocale from 'element-ui/lib/locale/lang/zh-CN'
import ElementLocale from 'element-ui/lib/locale' import ElementLocale from 'element-ui/lib/locale'
import ruLocale from 'element-ui/lib/locale/lang/ru-RU' // import ruLocale from 'element-ui/lib/locale/lang/ru-RU'
import frLocale from 'element-ui/lib/locale/lang/fr' import frLocale from 'element-ui/lib/locale/lang/fr'
import ptLocale from 'element-ui/lib/locale/lang/pt' import ptLocale from 'element-ui/lib/locale/lang/pt'
const lang = localStorage.getItem('lang') || 'en-US' const lang = localStorage.getItem('lang') || 'en-US'
@ -57,10 +57,10 @@ const i18n = new VueI18n({
...localenUS, ...localenUS,
...enLocale ...enLocale
}, },
'ru-RU': { // 'ru-RU': {
...localruRU, // ...localruRU,
...ruLocale // ...ruLocale
}, // },
'fr-FR': { 'fr-FR': {
...localfrFR, ...localfrFR,
...frLocale ...frLocale

View File

@ -2,9 +2,9 @@
<div class="page"> <div class="page">
<topBar <topBar
v-if="topList.length > 0" v-if="topList.length > 0"
:topList="topList" :top-list="topList"
:moren="moren" :moren="moren"
></topBar> />
<div class="main"> <div class="main">
<div class="thetable"> <div class="thetable">
<div class="fontTitle">{{ $t("MN_F_T_14") }}</div> <div class="fontTitle">{{ $t("MN_F_T_14") }}</div>
@ -13,11 +13,10 @@
<div> <div>
<el-radio-group v-model="memberPetitionVo.signType"> <el-radio-group v-model="memberPetitionVo.signType">
<el-radio <el-radio
:label="item.value"
v-for="item in checkList" v-for="item in checkList"
:key="item.value" :key="item.value"
>{{ item.label }}</el-radio :label="item.value"
> >{{ item.label }}</el-radio>
</el-radio-group> </el-radio-group>
</div> </div>
</div> </div>
@ -52,29 +51,28 @@
v-model="ctem.pkApprover" v-model="ctem.pkApprover"
filterable filterable
size="mini" size="mini"
@change="getApprover"
:placeholder="$t('CK_KS_38')" :placeholder="$t('CK_KS_38')"
@change="getApprover"
> >
<el-option <el-option
v-for="item in approbalList" v-for="item in approbalList"
:key="item.userId" :key="item.userId"
:label="item.nickName + '(' + item.deptName + ')'" :label="item.nickName + '(' + item.deptName + ')'"
:value="item.userId" :value="item.userId"
> />
</el-option>
</el-select> </el-select>
</span> </span>
<span style="margin: 0 5px 5px 0"> <span style="margin: 0 5px 5px 0">
<i <i
class="el-icon-remove-outline" class="el-icon-remove-outline"
@click.stop="delData"
style="font-size: 18px; margin-right: 5px" style="font-size: 18px; margin-right: 5px"
></i> @click.stop="delData"
/>
<i <i
class="el-icon-circle-plus-outline" class="el-icon-circle-plus-outline"
style="font-size: 18px" style="font-size: 18px"
@click.stop="addData" @click.stop="addData"
></i> />
</span> </span>
</div> </div>
</td> </td>
@ -92,29 +90,28 @@
v-model="ctem.pkSend" v-model="ctem.pkSend"
filterable filterable
size="mini" size="mini"
@change="getApprover2"
:placeholder="$t('CK_KS_38')" :placeholder="$t('CK_KS_38')"
@change="getApprover2"
> >
<el-option <el-option
v-for="item in userAllList" v-for="item in userAllList"
:key="item.userId" :key="item.userId"
:label="item.nickName + '(' + item.deptName + ')'" :label="item.nickName + '(' + item.deptName + ')'"
:value="item.userId" :value="item.userId"
> />
</el-option>
</el-select> </el-select>
</span> </span>
<span style="margin: 0 5px 5px 0"> <span style="margin: 0 5px 5px 0">
<i <i
class="el-icon-remove-outline" class="el-icon-remove-outline"
@click.stop="delData2"
style="font-size: 18px; margin-right: 5px" style="font-size: 18px; margin-right: 5px"
></i> @click.stop="delData2"
/>
<i <i
class="el-icon-circle-plus-outline" class="el-icon-circle-plus-outline"
style="font-size: 18px" style="font-size: 18px"
@click.stop="addData2" @click.stop="addData2"
></i> />
</span> </span>
</div> </div>
</td> </td>
@ -124,12 +121,11 @@
<td colspan="3" style="padding: 0"> <td colspan="3" style="padding: 0">
<div style="height: 100%"> <div style="height: 100%">
<el-input <el-input
v-model="memberPetitionVo.remark"
type="textarea" type="textarea"
:rows="6" :rows="6"
:placeholder="$t('S_C_70')" :placeholder="$t('S_C_70')"
v-model="memberPetitionVo.remark" />
>
</el-input>
</div> </div>
</td> </td>
</tr> </tr>
@ -149,15 +145,13 @@
prop="memberCode" prop="memberCode"
:label="$t('MN_T_1')" :label="$t('MN_T_1')"
min-width="120px" min-width="120px"
> />
</el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="memberName" prop="memberName"
:label="$t('CK_KS_14')" :label="$t('CK_KS_14')"
min-width="100px" min-width="100px"
> />
</el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="paymentMethod" prop="paymentMethod"
@ -166,25 +160,25 @@
> >
<template slot-scope="scope"> <template slot-scope="scope">
<el-select <el-select
v-model="scope.row.paymentMethod"
clearable clearable
:placeholder="$t('CK_KS_38')" :placeholder="$t('CK_KS_38')"
disabled disabled
v-model="scope.row.paymentMethod"
> >
<el-option <el-option
v-for="item in paymentTypeList" v-for="item in paymentTypeList"
:key="item.value" :key="item.value"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
></el-option> />
</el-select> </el-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
min-width="100px"
v-for="(item, index) in enumsAccountList" v-for="(item, index) in enumsAccountList"
:key="index" :key="index"
min-width="100px"
align="center" align="center"
:prop="`${item.pkId}`" :prop="`${item.pkId}`"
:label="item.pkTransactionKeyVal" :label="item.pkTransactionKeyVal"
@ -202,15 +196,13 @@
prop="memberRemarks" prop="memberRemarks"
:label="$t('MN_F_T_593')" :label="$t('MN_F_T_593')"
min-width="120px" min-width="120px"
> />
</el-table-column>
<el-table-column <el-table-column
align="center" align="center"
prop="remarks" prop="remarks"
:label="$t('MN_F_T_594')" :label="$t('MN_F_T_594')"
min-width="120px" min-width="120px"
> />
</el-table-column>
</el-table> </el-table>
</div> </div>
</td> </td>
@ -242,205 +234,203 @@
<div class="footer"> <div class="footer">
<div style="margin: 0 auto"> <div style="margin: 0 auto">
<el-button class="thebtn" @click="cancelCz"> <el-button class="thebtn" @click="cancelCz">
{{ $t("ENU_P_TYPE0") }}</el-button {{ $t("ENU_P_TYPE0") }}</el-button>
>
<el-button type="primary" class="thebtn" @click="saveDate"> <el-button type="primary" class="thebtn" @click="saveDate">
{{ $t("MN_F_32") }}</el-button {{ $t("MN_F_32") }}</el-button>
>
</div> </div>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import topBar from "@/components/topBar"; import topBar from '@/components/topBar'
import { rechargeFill, rechargePlFill } from "@/api/financial"; import { rechargeFill, rechargePlFill } from '@/api/financial'
import { getUserAll } from "@/api/signing"; import { getUserAll } from '@/api/signing'
import * as man from "@/api/manage"; import * as man from '@/api/manage'
import { mapGetters } from "vuex"; import { mapGetters } from 'vuex'
import { getenumsCzAccount, getpaymentType } from "@/api/financial"; import { getenumsCzAccount, getpaymentType } from '@/api/financial'
export default { export default {
name: "Czzxqc", name: 'Czzxqc',
components: { components: {
topBar, topBar
}, },
computed: { computed: {
...mapGetters(["getUser"]), ...mapGetters(['getUser'])
}, },
data() { data() {
return { return {
moren: "czzxqc", moren: 'czzxqc',
topList: [ topList: [
{ {
name: this.$t("MN_F_T_1015"), name: this.$t('MN_F_T_1015'),
path: "jcyw", path: 'jcyw'
}, },
{ {
name: this.$t("MN_F_T_12"), name: this.$t('MN_F_T_12'),
path: "ddyw", path: 'ddyw'
}, },
{ {
name: "确认业务", name: '确认业务',
path: "shyw", path: 'shyw'
}, },
{ {
name: "在线签呈", name: '在线签呈',
path: "czzxqc", path: 'czzxqc'
}, }
], ],
checked: [], checked: [],
checkList: [], checkList: [],
paymentTypeList: [], // paymentTypeList: [], //
enumsAccountList: [], // enumsAccountList: [], //
ywsq: "", ywsq: '',
ywsqList: [ ywsqList: [
{ value: "0", label: "同意" }, { value: '0', label: '同意' },
{ value: "1", label: "驳回" }, { value: '1', label: '驳回' }
], ],
qcData: {}, qcData: {},
memberPetitionVo: { memberPetitionVo: {
isSpecial: 0, isSpecial: 0,
signType: 1, signType: 1,
remark: "", // remark: '', //
userIdList: [{ pkApprover: "" }], userIdList: [{ pkApprover: '' }],
sendIdList: [{ pkSend: "" }], sendIdList: [{ pkSend: '' }],
rechargeMethod: "", // rechargeMethod: '', //
detailParams: [], detailParams: []
}, },
czlx: "", /// czlx: '', // /
approbalList: [], approbalList: [],
userAllList: [], userAllList: []
}; }
}, },
created() { created() {
this.getSignData(); this.getSignData()
}, },
methods: { methods: {
getSignData() { getSignData() {
getpaymentType().then((res) => { getpaymentType().then((res) => {
this.paymentTypeList = res.data; this.paymentTypeList = res.data
}); })
man.signData(300).then((res) => { man.signData(300).then((res) => {
this.qcData = res.data[0]; this.qcData = res.data[0]
this.memberPetitionVo.sendIdList = this.qcData.sendList; this.memberPetitionVo.sendIdList = this.qcData.sendList
this.memberPetitionVo.userIdList = this.qcData.detailList; this.memberPetitionVo.userIdList = this.qcData.detailList
this.memberPetitionVo.detailParams = JSON.parse( this.memberPetitionVo.detailParams = JSON.parse(
this.$route.query.detailParams this.$route.query.detailParams
); )
this.memberPetitionVo.rechargeMethod = JSON.parse( this.memberPetitionVo.rechargeMethod = JSON.parse(
this.$route.query.rechargeMethod this.$route.query.rechargeMethod
); )
this.isSpecial = this.$route.query.isSpecial; this.isSpecial = this.$route.query.isSpecial
if (this.isSpecial == 1) { if (this.isSpecial == 1) {
this.getenumsCzAccount(); this.getenumsCzAccount()
} else { } else {
this.getenumsCzAccount1(); this.getenumsCzAccount1()
} }
this.czlx = this.$route.query.czlx; this.czlx = this.$route.query.czlx
this.getSignType(); this.getSignType()
}); })
}, },
getenumsCzAccount() { getenumsCzAccount() {
getenumsCzAccount().then((res) => { getenumsCzAccount().then((res) => {
this.enumsAccountList = res.rows; this.enumsAccountList = res.rows
}); })
}, },
getenumsCzAccount1() { getenumsCzAccount1() {
getenumsCzAccount({ accountProperty: 1 }).then((res) => { getenumsCzAccount({ accountProperty: 1 }).then((res) => {
this.enumsAccountList = res.rows; this.enumsAccountList = res.rows
}); })
}, },
getSignType() { getSignType() {
man.signType().then((res) => { man.signType().then((res) => {
this.checkList = res.data; this.checkList = res.data
}); })
// //
man.approvalUser().then((res) => { man.approvalUser().then((res) => {
this.approbalList = res.data; this.approbalList = res.data
}); })
// //
getUserAll().then((res) => { getUserAll().then((res) => {
this.userAllList = res.data; this.userAllList = res.data
}); })
}, },
// //
getApprover() { getApprover() {
this.$nextTick(() => { this.$nextTick(() => {
this.$forceUpdate(); this.$forceUpdate()
}); })
}, },
// //
addData() { addData() {
let arr = JSON.parse(JSON.stringify(this.memberPetitionVo.userIdList)); const arr = JSON.parse(JSON.stringify(this.memberPetitionVo.userIdList))
arr.push({ pkApprover: "" }); arr.push({ pkApprover: '' })
this.$set(this.memberPetitionVo, "userIdList", arr); this.$set(this.memberPetitionVo, 'userIdList', arr)
this.$forceUpdate(); this.$forceUpdate()
}, },
// //
delData() { delData() {
this.memberPetitionVo.userIdList.pop(); this.memberPetitionVo.userIdList.pop()
this.$forceUpdate(); this.$forceUpdate()
}, },
// //
getApprover2() { getApprover2() {
this.$nextTick(() => { this.$nextTick(() => {
this.$forceUpdate(); this.$forceUpdate()
}); })
}, },
// //
addData2() { addData2() {
let arr2 = JSON.parse(JSON.stringify(this.memberPetitionVo.sendIdList)); const arr2 = JSON.parse(JSON.stringify(this.memberPetitionVo.sendIdList))
arr2.push({ pkSend: "" }); arr2.push({ pkSend: '' })
this.$set(this.memberPetitionVo, "sendIdList", arr2); this.$set(this.memberPetitionVo, 'sendIdList', arr2)
this.$forceUpdate(); this.$forceUpdate()
}, },
// //
delData2() { delData2() {
this.memberPetitionVo.sendIdList.pop(); this.memberPetitionVo.sendIdList.pop()
this.$forceUpdate(); this.$forceUpdate()
}, },
saveDate() { saveDate() {
// //
this.memberPetitionVo.userIdList = this.memberPetitionVo.userIdList.map( const userIdList = this.memberPetitionVo.userIdList.map(
(item) => item.pkApprover (item) => item.pkApprover
); )
this.memberPetitionVo.sendIdList = this.memberPetitionVo.sendIdList.map( const sendIdList = this.memberPetitionVo.sendIdList.map(
(item) => item.pkSend (item) => item.pkSend
); )
let url = ""; let url = ''
if (this.czlx == 1) { if (this.czlx == 1) {
url = rechargeFill; url = rechargeFill
} else if (this.czlx == 2) { } else if (this.czlx == 2) {
url = rechargePlFill; url = rechargePlFill
} }
this.memberPetitionVo.isSpecial = this.isSpecial; this.memberPetitionVo.isSpecial = this.isSpecial
url(Object.assign(this.memberPetitionVo)).then((res) => { url(Object.assign({}, this.memberPetitionVo, { userIdList, sendIdList })).then((res) => {
if (res.code == 200) { if (res.code == 200) {
this.$message({ this.$message({
message: res.msg, message: res.msg,
type: "success", type: 'success'
}); })
this.$router.push({ this.$router.push({
name: "RechargeDetail", name: 'RechargeDetail'
}); })
} }
}); })
}, },
cancelCz() { cancelCz() {
this.$router.go(-1); this.$router.go(-1)
}, },
findQcDetail() { findQcDetail() {
findQcDetail(this.$route.query.pkId).then((res) => { findQcDetail(this.$route.query.pkId).then((res) => {
this.qcList = res.data; this.qcList = res.data
}); })
}, }
}, }
}; }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>

File diff suppressed because it is too large Load Diff