Commit 6cdabcc7 by 潘琦

生育全程签约接口命名变更;

parent a49d0ddf
......@@ -15,6 +15,21 @@ const env = process.env.NODE_ENV === 'testing'
? require('../config/test.env')
: require('../config/prod.env')
let timeStamp, date, year, month, day
date = new Date()
year = date.getFullYear().toString()
if (date.getMonth() + 1 < 10) {
month = (date.getMonth() + 1)
} else {
month = (date.getMonth() + 1).toString()
}
if (date.getDate() < 10) {
day = '0' + date.getDate()
} else {
day = date.getDate().toString()
}
timeStamp = year + month + day
const webpackConfig = merge(baseWebpackConfig, {
module: {
rules: utils.styleLoaders({
......@@ -26,8 +41,8 @@ const webpackConfig = merge(baseWebpackConfig, {
devtool: config.build.productionSourceMap ? config.build.devtool : false,
output: {
path: config.build.assetsRoot,
filename: utils.assetsPath('js/[name].[chunkhash].js'),
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
filename: utils.assetsPath('js/[name].[chunkhash].js?v=' + timeStamp),
chunkFilename: utils.assetsPath('js/[id].[chunkhash].js?v=' + timeStamp)
},
plugins: [
// http://vuejs.github.io/vue-loader/en/workflow/production.html
......
......@@ -45,10 +45,19 @@ export function getOrgsByAreaCode (params) {
})
}
// 签约
export function createSign (params) {
// 签约(乌当)
export function createSignWD (params) {
return request({
url: '/v1/voucher/sign',
url: '/v1/voucher/wd/sign',
method: 'POST',
data: params
})
}
// 签约(张家港)
export function createSignZJG (params) {
return request({
url: '/v1/voucher/zjg/sign',
method: 'POST',
data: params
})
......
......@@ -488,7 +488,7 @@
<script>
import store from '@/store'
import { getOrgInfo, getSignInfo, getAreaList, getVillages, getOrgsByAreaCode, createSign, updateSignImgBySignId } from '@/api/signing/signing'
import { getOrgInfo, getSignInfo, getAreaList, getVillages, getOrgsByAreaCode, createSignZJG, updateSignImgBySignId } from '@/api/signing/signing'
import { validatename, cardid, isvalidatemobile } from '@/util/validate'
import { SubtractDay, getBirthByIdNumber, getSexByIdCard, getAgeByBirth } from '@/util/index'
import _defaultPicture from '../../assets/images/org-default-picture.png'
......@@ -1238,7 +1238,7 @@ export default {
this.btnDisabled = true
this.$Indicator.open()
// console.log('sign params:' + JSON.stringify(params))
createSign(params).then(res => {
createSignZJG(params).then(res => {
this.btnDisabled = false
this.$Indicator.close()
if (res.data.code === 200 && res.data.value) {
......
......@@ -449,7 +449,7 @@
<script>
import store from '@/store'
import { getOrgInfo, getSignInfo, getAreaList, getVillages, getOrgsByAreaCode, createSign } from '@/api/signing/signing'
import { getOrgInfo, getSignInfo, getAreaList, getVillages, getOrgsByAreaCode, createSignWD } from '@/api/signing/signing'
import { validatename, cardid, isvalidatemobile } from '@/util/validate'
import { SubtractDay, getBirthByIdNumber, getSexByIdCard, getAgeByBirth } from '@/util/index'
import _defaultPicture from '../../assets/images/org-default-picture.png'
......@@ -1112,7 +1112,7 @@ export default {
this.btnDisabled = true
this.$Indicator.open()
// console.log('sign params:' + JSON.stringify(params))
createSign(params).then(res => {
createSignWD(params).then(res => {
this.btnDisabled = false
this.$Indicator.close()
if (res.code === 200 && res.value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment