sale-client 3.6.220 → 3.6.221

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  var path = require('path')
2
- const [ serverRul, localUrl ] = ['http://120.46.92.69:8700/', 'http://120.46.92.69:8700/']
2
+ const [ serverRul, localUrl ] = ['http://192.168.50.4:8400/', 'http://192.168.50.4:8400/']
3
3
  var merge = require('webpack-merge')
4
4
  var baseConfig = require('./webpack.dev.conf')
5
5
  var devConfig = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.220",
3
+ "version": "3.6.221",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -122,7 +122,7 @@
122
122
  </v-select>
123
123
  </div>
124
124
  <div class="col-sm-6 form-group form-input-group" :class="[!invoice_type ? 'has-error' : '']">
125
- <nobr class="col-sm-4"><label class="control-label">发票种类:</label></nobr>
125
+ <label class="control-label">发票种类:</label>
126
126
  <v-select v-model="invoice_type"
127
127
  placeholder='请选择'
128
128
  :value.sync="invoice_type"
@@ -122,8 +122,7 @@
122
122
  </v-select>
123
123
  </div>
124
124
  <div class="col-sm-6 form-group form-input-group" :class="[!invoice_type ? 'has-error' : '']">
125
- <nobr class="col-sm-4"><label class="control-label">发票种类:</label></nobr>
126
- <v-select v-model="invoice_type"
125
+ <label class="control-label">发票种类:</label> <v-select v-model="invoice_type"
127
126
  placeholder='请选择'
128
127
  :value.sync="invoice_type"
129
128
  close-on-select
@@ -133,8 +133,7 @@
133
133
  v-model="row.f_paper_name" placeholder="开票名称">
134
134
  </div>
135
135
  <div class="col-sm-6 form-group form-input-group" :class="[!invoice_type ? 'has-error' : '']">
136
- <nobr class="col-sm-4"><label class="control-label">发票种类:</label></nobr>
137
- <v-select v-model="invoice_type"
136
+ <label class="control-label">发票种类:</label> <v-select v-model="invoice_type"
138
137
  placeholder='请选择'
139
138
  :value.sync="invoice_type"
140
139
  close-on-select
@@ -158,7 +158,7 @@
158
158
  v-model="row.f_paper_name" placeholder="开票名称">
159
159
  </div>
160
160
  <div class="col-sm-6 form-group form-input-group">
161
- <nobr class="col-sm-4"><label class="control-label">是否征税:</label></nobr>
161
+ <nobr><label class="control-label">是否征税:</label></nobr>
162
162
  <v-select v-model="invoice_is_pax"
163
163
  placeholder='请选择'
164
164
  :value.sync="invoice_is_pax"
@@ -171,7 +171,7 @@
171
171
  </v-select>
172
172
  </div>
173
173
  <div class="col-sm-6 form-group form-input-group" :class="[!invoice_type ? 'has-error' : '']">
174
- <nobr class="col-sm-4"><label class="control-label">发票种类:</label></nobr>
174
+ <label class="control-label">发票种类:</label>
175
175
  <v-select v-model="invoice_type"
176
176
  placeholder='请选择'
177
177
  :value.sync="invoice_type"
@@ -220,7 +220,7 @@
220
220
  <footer slot="modal-footer" class="modal-footer">
221
221
  <button type="button" class="btn button_search"
222
222
  v-if="!diytick"
223
- :disabled="!(row.f_paper_name&&row.f_address_phone)"
223
+ :disabled="!(row.f_paper_name&&row.f_buy_address&&row.f_buy_phone)"
224
224
  @click='confirm'>确认收费
225
225
  </button>
226
226
  <button type="button" class="btn button_search"
@@ -330,7 +330,10 @@
330
330
  f_address_phone: res.data[0].f_address_phone,
331
331
  f_user_id: res.data[0].f_user_id,
332
332
  f_userinfo_id: res.data[0].f_userinfo_id,
333
- f_userfiles_id: res.data[0].f_userfiles_id}
333
+ f_userfiles_id: res.data[0].f_userfiles_id,
334
+ f_buy_phone: res.data[0].f_user_phone,
335
+ f_buy_address: res.data[0].f_address
336
+ }
334
337
  )
335
338
  }
336
339
  )
@@ -145,16 +145,25 @@ export default {
145
145
  f_filialeids: this.$login.f.f_orgids,
146
146
  f_buy_name: custModel.f_paper_name,
147
147
  f_pay_id: custModel.f_taxpayer_id,
148
- f_buy_address: custModel.f_address_phone,
148
+ f_buy_address: custModel.f_buy_address,
149
+ f_buy_phone: custModel.f_buy_phone,
149
150
  f_mail_push: custModel.f_email,
150
151
  f_buy_openbank: custModel.f_paper_account,
152
+ f_userinfo_id: custModel.f_userinfo_id,
151
153
  invoice_show_gas: !!(custModel.amount && custModel.price),
152
154
  detail_price: {amount: custModel.amount, price: custModel.price, name: custModel.name, money: custModel.money},
153
- is_pax: invoice_is_pax === '征税'
155
+ is_pax: invoice_is_pax === '征税',
156
+ isTax: invoice_is_pax === '征税' ? 1 : 0,
157
+ invoice_type: 0,
158
+ retry: true
154
159
  }, custModel)
155
160
  // TODO 组织开票数据并保存
156
- let ticket_id = await this.$resetpost('rs/logic/TCcombineCustData', model, {resolveMsg: null, rejectMsg: '保存开票信息失败'})
157
- return this.openEticketGen(ticket_id.data)
161
+ const res = await this.$resetpost('/invoice/rs/logic/customInvoice', model, {resolveMsg: null, rejectMsg: '开票请求失败'})
162
+ if (res.data.code === 200 && res.data.data.code == '0000') {
163
+ this.return_msg = '发票开具成功,请稍后到发票管理页面查看或打印'
164
+ } else {
165
+ this.return_msg = '发票开具失败,请稍后到发票管理页面补打或重开'
166
+ }
158
167
  } catch (error) {
159
168
  this.$showAlert(`电子发票开票失败!!请到发票管理重新开票。错误原因: ${JSON.stringify(error)}。`, 'danger', 0)
160
169
  }
package/src/main.js CHANGED
@@ -3,7 +3,7 @@ import all from 'vue-client/src/all'
3
3
  import App from './App'
4
4
  import system from 'system-clients/src/system'
5
5
  import sale from './sale'
6
- import FilialeSale from './filiale/yuncheng/sale'
6
+ import FilialeSale from './filiale/tongchuan/sale'
7
7
  import address from 'address-client/src/address'
8
8
  import ldap from 'ldap-clients/src/ldap'
9
9
  import VueClipboard from 'vue-clipboard2'