yujialong 2 months ago
parent 6a91504fc5
commit 8b5481c175
  1. 2
      src/api/api.js
  2. 134
      src/components/dialog/index.vue
  3. 12
      src/pages/manage/list/foreignExchange/puchasing.vue
  4. 16
      src/pages/manage/list/foreignExchange/settlement.vue
  5. 13
      src/pages/manage/list/onlineBank/openAccount.vue
  6. 8
      src/pages/report/index.vue
  7. 26
      src/store/modules/system.js

@ -10,7 +10,7 @@ if (dev) {
// 本地 // 本地
host = 'http://121.37.12.51/' // 中台测试服 host = 'http://121.37.12.51/' // 中台测试服
// host = 'https://www.occupationlab.com/' // 正式服 // host = 'https://www.occupationlab.com/' // 正式服
host = 'http://192.168.31.51:9000/' // host = 'http://192.168.31.51:9000/'
const ip = localStorage.getItem('localIp') const ip = localStorage.getItem('localIp')
const ips = ['http://192.168.31.217:9000/', 'http://192.168.31.51:9000/', 'http://121.37.12.51/'] const ips = ['http://192.168.31.217:9000/', 'http://192.168.31.51:9000/', 'http://121.37.12.51/']
host = ips[+ip] host = ips[+ip]

@ -65,6 +65,7 @@
</template> </template>
<script> <script>
import { mapGetters } from 'vuex'
// objmoduleName, // objmoduleName,
const obj = { const obj = {
@ -121,7 +122,32 @@ const nameMap = {
116: '现金支票' 116: '现金支票'
}, },
currency: { currency: {
12: 'CNY人民币' 12: 'CNY人民币',
153: '美元 现汇',
163: '美元',
164: '澳大利亚元',
165: '加拿大元',
166: '港币',
167: '英镑',
168: '欧元',
169: '日元',
170: '新西兰元',
171: '新加坡元',
172: '泰国铢',
173: '韩元',
174: '新台币(不支持跨进汇款)',
175: '瑞土法郎',
176: '瑞典克朗',
177: '丹麦克朗',
178: '卢布',
179: '挪威克朗',
180: '菲律宾比索(不支持跨进汇款)',
181: '澳门元',
182: '印尼卢比 (不支持跨进汇款)',
183: '巴西里亚尔(不支持跨进汇款)',
184: '阿联酋迪拉姆(不支持跨进汇款)',
185: '印度卢比(不支持跨进汇款)',
186: '印度卢比(南非兰特)',
}, },
goldLogo: { goldLogo: {
13: '钞户', 13: '钞户',
@ -309,6 +335,17 @@ const nameMap = {
201: '其他服务', 201: '其他服务',
202: '其他经常转移', 202: '其他经常转移',
}, },
fundingSource: {
154: '职工报酬和赡家款',
155: '旅游',
156: '金融和保险服务',
157: '专有权利使用费和特许费',
158: '咨询服务',
159: '其他服务',
160: '投资收益',
161: '其他经常转移',
162: '运输',
},
} }
export default { export default {
props: { props: {
@ -335,14 +372,30 @@ export default {
moduleName: { moduleName: {
type: String, type: String,
default: 'spacial' default: 'spacial'
},
spare: {
type: Boolean,
default: true
},
},
data () {
return {
flow: 1, //
disForm: { //
name: '002288',
pass: '123456'
},
leftObj: {}, //
rightObj: {} //
} }
}, },
created () { created () {
// flow4 // flow4
if (!this.needAuth) { if (!this.needAuth) {
this.flow = 4 this.flow = 4
} }
let num = 0; let num = 0
// 1 // 1
for (const key in this.showForm) { for (const key in this.showForm) {
if (!this.showForm[key]) { if (!this.showForm[key]) {
@ -383,51 +436,39 @@ export default {
return str; return str;
} }
if (this.spare) {
if (num % 2 === 1) { if (num % 2 === 1) {
// //
this.leftObj['流水号'] = tmpFunc2() this.leftObj['流水号'] = tmpFunc2()
this.leftObj['经办机构'] = '国税支行营业部' this.leftObj['经办机构'] = '国税支行营业部'
this.rightObj['经办柜员'] = '002110' this.rightObj['经办柜员'] = '002110'
if (this.depositNumber) { if (this.depositNumber) {
this.rightObj['定存编号'] = this.depositNumber this.rightObj['定存编号'] = this.depositNumber
} }
} else { } else {
// 31 // 31
this.leftObj['流水号'] = tmpFunc2() this.leftObj['流水号'] = tmpFunc2()
this.leftObj['经办机构'] = '国税支行营业部' this.leftObj['经办机构'] = '国税支行营业部'
this.rightObj['经办柜员'] = '002110' this.rightObj['经办柜员'] = '002110'
if (this.depositNumber) { if (this.depositNumber) {
this.leftObj['定存编号'] = this.depositNumber this.leftObj['定存编号'] = this.depositNumber
}
} }
}
// //
const tmpFunc = () => { const tmpFunc = () => {
const date = new Date() const date = new Date()
var y = date.getFullYear(); var y = date.getFullYear();
var m = date.getMonth() + 1; var m = date.getMonth() + 1;
m = m < 10 ? '0' + m : m; m = m < 10 ? '0' + m : m;
var d = date.getDate(); var d = date.getDate();
d = d < 10 ? ('0' + d) : d; d = d < 10 ? ('0' + d) : d;
return y + '-' + m + '-' + d; return y + '-' + m + '-' + d;
} }
this.rightObj['会计时间'] = tmpFunc() this.rightObj['会计时间'] = tmpFunc()
if (this.leftObj['支取方式'] == 114) this.leftObj['支取方式'] = '印鉴' if (this.leftObj['支取方式'] == 114) this.leftObj['支取方式'] = '印鉴'
console.log("🚀 ~ file: index.vue ~ line 393 ~ created ~ this.rightObj", this.leftObj, this.rightObj, this.showForm, this.formName) // 002110
// 002110
},
data () {
return {
flow: 1, //
disForm: { //
name: '002288',
pass: '123456'
},
leftObj: {}, //
rightObj: {} //
} }
}, },
methods: { methods: {
cancel () { cancel () {
@ -464,7 +505,10 @@ export default {
// + // +
successName () { successName () {
return obj[this.moduleName] + '成功' return obj[this.moduleName] + '成功'
} },
...mapGetters({
getSelectList: 'system/getSelectList'
}),
} }
} }
</script> </script>

@ -23,7 +23,7 @@
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else> <div v-else>
<el-input maxlength="20" ref="voucherNumber" disabled :value="form.voucherNumber" <el-input maxlength="20" ref="voucherNumber" disabled v-model="form.voucherNumber"
@input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input>
<p style="color: #8f8f8f;">可用余额人民币 3,200,000.00</p> <p style="color: #8f8f8f;">可用余额人民币 3,200,000.00</p>
</div> </div>
@ -48,15 +48,15 @@
:key="item.itemId"> </el-option> :key="item.itemId"> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="外汇金额" prop="money"> <el-form-item label="外" prop="money">
<el-input :value="form.money" maxlength="15" @input="val => ismoney(val, form, 'money')"></el-input> <el-input v-model="form.money" maxlength="15" @input="val => ismoney(val, form, 'money')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="支取密码" required> <el-form-item label="支取密码" required>
<div v-if='!form.drawPassword' class="idCard" @click="popUp2('密码器')"> <div v-if='!form.drawPassword' class="idCard" @click="popUp2('密码器')">
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else @click="popUp2('密码器')"> <div v-else @click="popUp2('密码器')">
<el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input> <el-input v-model="form.drawPassword" ref="drawPassword" type="password"></el-input>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -64,7 +64,7 @@
</el-row> </el-row>
<el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button> <el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button>
<my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" <my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName"
@submitIt="submitForm2" :needAuth="needAuth" /> :spare="false" @submitIt="submitForm2" :needAuth="needAuth" />
</div> </div>
</template> </template>
<script> <script>
@ -115,7 +115,7 @@ export default {
voucherNumber: '凭证号码', voucherNumber: '凭证号码',
currency: '币种', currency: '币种',
goldLogo: '钞汇', goldLogo: '钞汇',
money: '外汇金额', money: '外',
buyForeignPurpose: '购汇用途', buyForeignPurpose: '购汇用途',
drawPassword: '支取密码', drawPassword: '支取密码',
}, },

@ -19,20 +19,21 @@
<p>请刷卡</p> <p>请刷卡</p>
</div> </div>
<div v-else> <div v-else>
<el-input maxlength="20" ref="voucherNumber" disabled :value="form.voucherNumber" <el-input maxlength="20" ref="voucherNumber" disabled v-model="form.voucherNumber"
@input="(val) => inputListen(val, form, 'voucherNumber')"></el-input> @input="(val) => inputListen(val, form, 'voucherNumber')"></el-input>
<p style="color: #8f8f8f;">可用余额人民币 3,200,000.00</p> <p style="color: #8f8f8f;">可用余额美元 现汇 5000.00</p>
</div> </div>
</el-form-item> </el-form-item>
<el-form-item label="外币金额" prop="money"> <el-form-item label="外币金额" prop="money">
<el-input :value="form.money" maxlength="15" @input="val => ismoney(val, form, 'money')"></el-input> <el-input v-model="form.money" placeholder="最多可结汇5,000.00" maxlength="15"
@input="val => ismoney(val, form, 'money')"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="支取密码" required> <el-form-item label="支取密码" required>
<div v-if='!form.drawPassword' class="idCard" @click="popUp2('密码器')"> <div v-if='!form.drawPassword' class="idCard" @click="popUp2('密码器')">
<p>请输入密码</p> <p>请输入密码</p>
</div> </div>
<div v-else @click="popUp2('密码器')"> <div v-else @click="popUp2('密码器')">
<el-input :value="form.drawPassword" ref="drawPassword" type="password"></el-input> <el-input v-model="form.drawPassword" ref="drawPassword" type="password"></el-input>
</div> </div>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -53,7 +54,7 @@
</el-row> </el-row>
<el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button> <el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button>
<my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" <my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName"
@submitIt="submitForm2" :needAuth="needAuth" /> :spare="false" @submitIt="submitForm2" :needAuth="needAuth" />
</div> </div>
</template> </template>
<script> <script>
@ -82,8 +83,7 @@ export default {
} }
if (sessionStorage.getItem('foreignExchangeSettleBankCard')) { if (sessionStorage.getItem('foreignExchangeSettleBankCard')) {
this.cardNumberJudge = true this.cardNumberJudge = true
const { currency, voucherNumber } = this.dataFlow const { voucherNumber } = this.dataFlow
this.form.currency = currency
this.form.voucherNumber = voucherNumber this.form.voucherNumber = voucherNumber
} }
// this.getFormData() // this.getFormData()
@ -95,7 +95,7 @@ export default {
cardNumberJudge: false, cardNumberJudge: false,
form: { form: {
voucherNumber: '', // voucherNumber: '', //
currency: '', currency: 153,
money: '', money: '',
fundingSource: '', fundingSource: '',
drawPassword: '', drawPassword: '',

@ -78,14 +78,14 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" <my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form"
:formName="formName" @submitIt="submitForm2" depositNumber='0816' /> :formName="formName" :spare="false" @submitIt="submitForm2" depositNumber='0816' />
</el-form> </el-form>
</el-row> </el-row>
<el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button> <el-button @click="submitForm" type="primary" class="submitBtn" v-throttle>提交</el-button>
</div> </div>
<my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName" <my-dialog :moduleName="moduleName" v-if="visible" :visible.sync="visible" :showForm="form" :formName="formName"
@submitIt="submitForm2()" /> :spare="false" @submitIt="submitForm2()" />
</div> </div>
</template> </template>
@ -114,8 +114,8 @@ export default {
idNumber: '',// idNumber: '',//
clientNumber: '', // clientNumber: '', //
customerName: '', // customerName: '', //
currency: '', // currency: 12, //
goldLogo: '', // goldLogo: 13, //
voucherType: 15, // voucherType: 15, //
voucherNumber: '', // voucherNumber: '', //
openOnlineBanking: '', openOnlineBanking: '',
@ -194,13 +194,10 @@ export default {
if (sessionStorage.getItem('onlineBankIdCard')) { if (sessionStorage.getItem('onlineBankIdCard')) {
this.idNumberJudge = true this.idNumberJudge = true
const { idNumber, userName, peopleNumber, currency, goldLogo } = this.dataFlow const { idNumber, userName, peopleNumber } = this.dataFlow
this.form.clientNumber = peopleNumber this.form.clientNumber = peopleNumber
this.form.idNumber = idNumber this.form.idNumber = idNumber
this.form.customerName = userName this.form.customerName = userName
this.form.currency = currency
this.form.goldLogo = goldLogo
this.form.voucherType = 15
} }
if (sessionStorage.getItem('onlineBankBankCard')) { if (sessionStorage.getItem('onlineBankBankCard')) {
this.cardNumberJudge = true this.cardNumberJudge = true

@ -187,16 +187,12 @@ export default {
summarize: form.summarize summarize: form.summarize
} }
const expData = report.data const expData = report.data
this.userScores = userScores
// data使 // data使
if (!expData) { if (!expData) {
this.userScores = userScores
this.handleList(userScores) this.handleList(userScores)
// this.$post(this.api.editExperimentalData, {
// reportId,
// data: JSON.stringify(userScores)
// }).then(res => { }).catch(err => { })
} else { } else {
this.handleList(userScores) this.handleList(JSON.parse(expData))
} }
this.loading = false this.loading = false

@ -201,7 +201,7 @@ const allDataFlow = {
isSettle: false, isSettle: false,
// 票据号码 // 票据号码
ticketNumber: '00242986', ticketNumber: '00242986',
'corporateClient': false, corporateClient: false,
nowDepositNumber nowDepositNumber
} }
@ -1396,7 +1396,7 @@ const myInitState = {
'业务三十四': { '业务三十四': {
id: 704, id: 704,
name: '网上银行', name: '网上银行',
data: [13, 16, 407], data: [13, 16],
needs: [], needs: [],
isStamp: { isStamp: {
// '业务专用章': [ 411 ] // '业务专用章': [ 411 ]
@ -2716,7 +2716,7 @@ export default {
'业务三十四': { '业务三十四': {
id: 704, id: 704,
name: '网上银行', name: '网上银行',
data: [13, 16, 407], data: [13, 16],
needs: [], needs: [],
isStamp: { isStamp: {
// '业务专用章': [ 411 ] // '业务专用章': [ 411 ]
@ -2842,15 +2842,17 @@ export default {
} }
for (const key in mapObj) { for (const key in mapObj) {
getSubjectInfo({ const name = mapObj[key]
subject_id: key if (!state.selectList[name] || !state.selectList[name].length) {
}).then((data) => { getSubjectInfo({
const name = mapObj[key] subject_id: key
if (!state.selectList[name]) state.selectList[name] = [] }).then((data) => {
if (data.status == 200 && !state.selectList[name].length) { if (!state.selectList[name]) state.selectList[name] = []
state.selectList[name].push(...data.data.items); if (data.status == 200 && !state.selectList[name].length) {
} state.selectList[name].push(...data.data.items);
}).catch((error) => { }) }
}).catch((error) => { })
}
} }

Loading…
Cancel
Save