apply-clients 3.5.6-55 → 3.5.6-56

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.5.6-55",
3
+ "version": "3.5.6-56",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -151,8 +151,11 @@
151
151
  <footer slot="modal-footer" class="modal-footer">
152
152
  <template v-if="mark !== 1">
153
153
  <button type="button" class="btn btn-primary" v-if="title==='新增'" @click="pushMaterial()">添加材料</button>
154
- <button type="button" class="btn btn-primary" v-if="title==='新增'" @click="addMaterial()"
155
- :disabled="!$v.valid">确认添加
154
+ <button type="button" class="btn btn-primary"
155
+ v-if="title==='新增'"
156
+ @click="addMaterial()"
157
+ :disabled="isSaving || !$v.valid">
158
+ {{ isSaving ? '保存中...' : '确认添加' }}
156
159
  </button>
157
160
  <button type="button" class="btn btn-primary" v-if="title==='修改'" @click="updateConfirm()"
158
161
  :disabled="!$v.valid">确认修改
@@ -179,6 +182,7 @@ export default {
179
182
  onetomany: {
180
183
  rows: []
181
184
  },
185
+ isSaving: false,
182
186
  title: '新增',
183
187
  showMaterialModal: false,
184
188
  materials: [
@@ -374,135 +378,142 @@ export default {
374
378
  },
375
379
  // 新增材料
376
380
  async addMaterial() {
377
- //调用用友保存材料接口
378
- this.requestBody.so_saleorder_b=[]
379
- for (let i = 0; i < this.materials.length; i++) {
380
- let obj={
381
- "pk_group": "H", // 集团【集团】
382
- "pk_org": this.orgcode, // 销售组织【组织_业务单元_销售组织】
383
- "pk_org_v": this.orgcode, // 销售组织【组织_业务单元_销售组织】
384
- "carorgid": "30", // 应收组织最新版本【财务组织】
385
- "carorgvid": "30", // 应收组织【财务组织版本】
386
- "csendstockorgid": "30", // 发货库存组织最新版本【库存组织】
387
- "csendstockorgvid": "30", // 发货库存组织【库存组织版本】
388
- "csettleorgid": "30", // 结算财务组织最新版本【财务组织】
389
- "csettleorgvid": "30", // 结算财务组织【财务组织版本】
390
- "creceivecustid": "11099", // 收货客户【客户档案】
391
- "ctaxcountryid": "0001Z010000000079UJJ", // 报税国家 / 地区【国家地区】
392
- "crececountryid": "0001Z010000000079UJJ", // 收货国家 / 地区【国家地区】
393
- "csendcountryid": "0001Z010000000079UJJ", // 发货国家 / 地区【国家地区】
394
- "cmaterialid": this.materials[i].f_material_code, // 物料最新版本【物料】
395
- "cmaterialvid": this.materials[i].f_material_code, // 物料编码【物料(多版本)】
396
- "cqtunitid":this.materials[i].f_material_unit==='米'?"MTR":"EA", // 报价单位【计量单位】
397
- "cunitid": this.materials[i].f_material_unit==='米'?"MTR":"EA", // 主单位【计量单位】MTR=米 EA=个
398
- "castunitid": this.materials[i].f_material_unit==='米'?"MTR":"EA", // 单位【计量单位】MTR=米 EA=个
399
- "vqtunitrate": "1.00/1.00", // 报价换算率【】数量转主数量的换算比例
400
- "vchangerate": "1.00/1.00", // 换算率【】数量转主数量的换算比例
401
- "nvolume": "0", // 体积【】
402
- "nweight": "0", // 重量【】
403
- "nastnum": this.materials[i].f_material_number, // 数量【】pk_group, pk_org, ,
404
- "nnum": this.materials[i].f_material_number, // 主数量【】
405
- "nqtunitnum": this.materials[i].f_material_number, // 报价单位数量【】
406
- "ndiscountrate": "100.00", // 整单折扣【】
407
- "nitemdiscountrate": "100.00", // 单品折扣【】
408
- "norigdiscount": "0.00", // 折扣额【】
409
- "nexchangerate": 1.00, // 折本汇率【】
410
- "ccurrencyid": "CNY", // 本位币【币种档案】
411
- "nqtprice": "1.000000", // 本币无税单价【】
412
- "nqtorigprice": "1.000000", // 无税单价【】
413
- "norigprice": "1.000000", // 主无税单价【】
414
- "nprice": "1.000000", // 主本币无税单价【】
415
- "nqtorigtaxprice": "1.130000", // 含税单价【】
416
- "nqttaxprice": "1.130000", // 本币含税单价【】
417
- "norigtaxprice": "1.130000", // 主含税单价【】
418
- "ctaxcodeid": "1001Z01000000003W0WZ", // 税码【】
419
- "ntaxrate": "13.00", // 税率【】
420
- "ntax": "14.56", // 税额【】
421
- "nqtorignetprice": "1.000000", // 无税净价【】
422
- "norignetprice": "1.000000", // 主无税净价【】
423
- "nnetprice": "1.000000", // 主本币无税净价【】
424
- "nqtnetprice": "1.000000", // 本币无税净价【】
425
- "nqtorigtaxnetprc": "1.130000", // 含税净价【】
426
- "norigtaxnetprice": "1.130000", // 主含税净价【】
427
- "nqttaxnetprice": "1.130000", // 本币含税净价【】
428
- "ntaxnetprice": "1.130000", // 主本币含税净价【】
429
- "norigmny": "112.00", // 无税金额【】
430
- "ncaltaxmny": "112.00", // 计税金额【】
431
- "nmny": "126.56", // 本币价税合计【】
432
- "norigtaxmny": "126.56", // 价税合计【】
433
- "ntaxmny": "126.56", // 本币价税合计【】
434
- "dplandate": toStandardDateString(), // 到货日期【】
435
- "dreceivedate": toStandardDateString(), // 到货日期【】
436
- "dsenddate": toStandardDateString(), // 发货日期【】
437
- "vbatchcode": "", // 批次号【】
438
- "blargessflag": "N", // 赠品【】
439
- "vrownote": "11月", // 行备注【】
440
- //"cprojectid": "", // 项目【项目】
441
- "csendstordocid": "02", // 发货仓库【仓库】 02=客服仓
442
- "barrangedflag": "N", // 是否货源安排完毕【】
443
- "bbarsettleflag": "N", // 收入结算关闭【】
444
- "bbcostsettleflag": "N", // 成本结算关闭【】
445
- "bbindflag": "N", // 捆绑存货【】
446
- "bbinvoicendflag": "N", // 开票关闭【】
447
- "bboutendflag": "N", // 出库关闭【】
448
- "bbsendendflag": "N", // 发货关闭【】
449
- "bbsettleendflag": "N", // 结算关闭【】
450
- "bdiscountflag": "N", // 折扣类【】
451
- "bjczxsflag": "N", // 借出转销售【】
452
- "blaborflag": "N", // 服务类【】
453
- "blrgcashflag": "N", // 赠品兑付【】
454
- "bprerowcloseflag": "N", // 预订单行关闭【】
455
- "btriatradeflag": "N", // 三角贸易【】
456
- "fbuysellflag": "1", // 购销类型【1 = 国内销售,2 = 国内采购,3 = 出口,4 = 进口,5 = 不区分】
457
- "flargesstypeflag": "1", // 赠品价格分摊方式【1 = 未分摊,2 = 被分摊物料,3 = 分摊赠品】
458
- "fretexchange": "0", // 退换货标记【0 = 非退换货,1 = 退货,2 = 换货】
459
- "frowstatus": "1", // 行状态【1 = 自由,2 = 审批通过,3 = 冻结,4 = 关闭,7 = 审批中,8 = 审批不通过,5 = 失效】
460
- "ftaxtypeflag": "1", // 扣税类别【1 = 应税外加,0 = 应税内含】
461
- "ndiscount": "1" // 本币折扣额【】
381
+ if (this.isSaving) return;
382
+ this.isSaving = true;
383
+ try {
384
+ //调用用友保存材料接口
385
+ this.requestBody.so_saleorder_b=[]
386
+ for (let i = 0; i < this.materials.length; i++) {
387
+ let obj={
388
+ "pk_group": "H", // 集团【集团】
389
+ "pk_org": this.orgcode, // 销售组织【组织_业务单元_销售组织】
390
+ "pk_org_v": this.orgcode, // 销售组织【组织_业务单元_销售组织】
391
+ "carorgid": "30", // 应收组织最新版本【财务组织】
392
+ "carorgvid": "30", // 应收组织【财务组织版本】
393
+ "csendstockorgid": "30", // 发货库存组织最新版本【库存组织】
394
+ "csendstockorgvid": "30", // 发货库存组织【库存组织版本】
395
+ "csettleorgid": "30", // 结算财务组织最新版本【财务组织】
396
+ "csettleorgvid": "30", // 结算财务组织【财务组织版本】
397
+ "creceivecustid": "11099", // 收货客户【客户档案】
398
+ "ctaxcountryid": "0001Z010000000079UJJ", // 报税国家 / 地区【国家地区】
399
+ "crececountryid": "0001Z010000000079UJJ", // 收货国家 / 地区【国家地区】
400
+ "csendcountryid": "0001Z010000000079UJJ", // 发货国家 / 地区【国家地区】
401
+ "cmaterialid": this.materials[i].f_material_code, // 物料最新版本【物料】
402
+ "cmaterialvid": this.materials[i].f_material_code, // 物料编码【物料(多版本)】
403
+ "cqtunitid":this.materials[i].f_material_unit==='米'?"MTR":"EA", // 报价单位【计量单位】
404
+ "cunitid": this.materials[i].f_material_unit==='米'?"MTR":"EA", // 主单位【计量单位】MTR=米 EA=个
405
+ "castunitid": this.materials[i].f_material_unit==='米'?"MTR":"EA", // 单位【计量单位】MTR=米 EA=个
406
+ "vqtunitrate": "1.00/1.00", // 报价换算率【】数量转主数量的换算比例
407
+ "vchangerate": "1.00/1.00", // 换算率【】数量转主数量的换算比例
408
+ "nvolume": "0", // 体积【】
409
+ "nweight": "0", // 重量【】
410
+ "nastnum": this.materials[i].f_material_number, // 数量【】pk_group, pk_org, ,
411
+ "nnum": this.materials[i].f_material_number, // 主数量【】
412
+ "nqtunitnum": this.materials[i].f_material_number, // 报价单位数量【】
413
+ "ndiscountrate": "100.00", // 整单折扣【】
414
+ "nitemdiscountrate": "100.00", // 单品折扣【】
415
+ "norigdiscount": "0.00", // 折扣额【】
416
+ "nexchangerate": 1.00, // 折本汇率【】
417
+ "ccurrencyid": "CNY", // 本位币【币种档案】
418
+ "nqtprice": "1.000000", // 本币无税单价【】
419
+ "nqtorigprice": "1.000000", // 无税单价【】
420
+ "norigprice": "1.000000", // 主无税单价【】
421
+ "nprice": "1.000000", // 主本币无税单价【】
422
+ "nqtorigtaxprice": "1.130000", // 含税单价【】
423
+ "nqttaxprice": "1.130000", // 本币含税单价【】
424
+ "norigtaxprice": "1.130000", // 主含税单价【】
425
+ "ctaxcodeid": "1001Z01000000003W0WZ", // 税码【】
426
+ "ntaxrate": "13.00", // 税率【】
427
+ "ntax": "14.56", // 税额【】
428
+ "nqtorignetprice": "1.000000", // 无税净价【】
429
+ "norignetprice": "1.000000", // 主无税净价【】
430
+ "nnetprice": "1.000000", // 主本币无税净价【】
431
+ "nqtnetprice": "1.000000", // 本币无税净价【】
432
+ "nqtorigtaxnetprc": "1.130000", // 含税净价【】
433
+ "norigtaxnetprice": "1.130000", // 主含税净价【】
434
+ "nqttaxnetprice": "1.130000", // 本币含税净价【】
435
+ "ntaxnetprice": "1.130000", // 主本币含税净价【】
436
+ "norigmny": "112.00", // 无税金额【】
437
+ "ncaltaxmny": "112.00", // 计税金额【】
438
+ "nmny": "126.56", // 本币价税合计【】
439
+ "norigtaxmny": "126.56", // 价税合计【】
440
+ "ntaxmny": "126.56", // 本币价税合计【】
441
+ "dplandate": toStandardDateString(), // 到货日期【】
442
+ "dreceivedate": toStandardDateString(), // 到货日期【】
443
+ "dsenddate": toStandardDateString(), // 发货日期【】
444
+ "vbatchcode": "", // 批次号【】
445
+ "blargessflag": "N", // 赠品【】
446
+ "vrownote": "11月", // 行备注【】
447
+ //"cprojectid": "", // 项目【项目】
448
+ "csendstordocid": "02", // 发货仓库【仓库】 02=客服仓
449
+ "barrangedflag": "N", // 是否货源安排完毕【】
450
+ "bbarsettleflag": "N", // 收入结算关闭【】
451
+ "bbcostsettleflag": "N", // 成本结算关闭【】
452
+ "bbindflag": "N", // 捆绑存货【】
453
+ "bbinvoicendflag": "N", // 开票关闭【】
454
+ "bboutendflag": "N", // 出库关闭【】
455
+ "bbsendendflag": "N", // 发货关闭【】
456
+ "bbsettleendflag": "N", // 结算关闭【】
457
+ "bdiscountflag": "N", // 折扣类【】
458
+ "bjczxsflag": "N", // 借出转销售【】
459
+ "blaborflag": "N", // 服务类【】
460
+ "blrgcashflag": "N", // 赠品兑付【】
461
+ "bprerowcloseflag": "N", // 预订单行关闭【】
462
+ "btriatradeflag": "N", // 三角贸易【】
463
+ "fbuysellflag": "1", // 购销类型【1 = 国内销售,2 = 国内采购,3 = 出口,4 = 进口,5 = 不区分】
464
+ "flargesstypeflag": "1", // 赠品价格分摊方式【1 = 未分摊,2 = 被分摊物料,3 = 分摊赠品】
465
+ "fretexchange": "0", // 退换货标记【0 = 非退换货,1 = 退货,2 = 换货】
466
+ "frowstatus": "1", // 行状态【1 = 自由,2 = 审批通过,3 = 冻结,4 = 关闭,7 = 审批中,8 = 审批不通过,5 = 失效】
467
+ "ftaxtypeflag": "1", // 扣税类别【1 = 应税外加,0 = 应税内含】
468
+ "ndiscount": "1" // 本币折扣额【】
469
+ }
470
+ this.requestBody.so_saleorder_b.push(obj)
462
471
  }
463
- this.requestBody.so_saleorder_b.push(obj)
464
- }
465
- let http2 = new HttpResetClass()
466
- let res2 = await http2.load(
467
- 'POST',
468
- `${this.$androidUtil.getProxyUrl()}/rs/logic/yongyouSaveMaterialNew`,
469
- {data: {
470
- body:this.requestBody
472
+ let http2 = new HttpResetClass()
473
+ let res2 = await http2.load(
474
+ 'POST',
475
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/yongyouSaveMaterialNew`,
476
+ {data: {
477
+ body:this.requestBody
478
+ }
479
+ },
480
+ {resolveMsg: null, rejectMsg: '材料推送失败!!!'}
481
+ )
482
+ if (res2.data.status == 200) {
483
+ let pk=res2.data.data
484
+ for (let i = 0; i < this.materials.length; i++) {
485
+ this.materials[i].f_logotype=pk
471
486
  }
472
- },
473
- {resolveMsg: null, rejectMsg: '材料推送失败!!!'}
474
- )
475
- if (res2.data.status == 200) {
476
- let pk=res2.data.data
477
- for (let i = 0; i < this.materials.length; i++) {
478
- this.materials[i].f_logotype=pk
479
487
  }
480
- }
481
- this.title = '新增'
482
- let data = {
483
- f_process_id: this.selectdata.f_process_id,
484
- f_operator_id: Vue.user.id,
485
- f_operator: Vue.user.name,
486
- f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
487
- f_orgid: Vue.user.orgid,
488
- f_orgname: Vue.user.orgs,
489
- materials: this.materials
490
- }
491
-
492
- //报警器流程 设备编号检验
493
- await this.bjqCheck()
494
- if (this.bjqChecklag.length > 0) {
495
- return
496
- }
488
+ this.title = '新增'
489
+ let data = {
490
+ f_process_id: this.selectdata.f_process_id,
491
+ f_operator_id: Vue.user.id,
492
+ f_operator: Vue.user.name,
493
+ f_operation_date: new Date().Format('yyyy-MM-dd HH:mm:ss'),
494
+ f_orgid: Vue.user.orgid,
495
+ f_orgname: Vue.user.orgs,
496
+ materials: this.materials
497
+ }
497
498
 
498
- let http = new HttpResetClass()
499
- let res = await http.load(
500
- 'POST',
501
- `${this.$androidUtil.getProxyUrl()}/rs/logic/applysaveMaterials`,
502
- data
503
- )
499
+ //报警器流程 设备编号检验
500
+ await this.bjqCheck()
501
+ if (this.bjqChecklag.length > 0) {
502
+ return
503
+ }
504
504
 
505
- this.closeMaterials()
505
+ let http = new HttpResetClass()
506
+ let res = await http.load(
507
+ 'POST',
508
+ `${this.$androidUtil.getProxyUrl()}/rs/logic/applysaveMaterials`,
509
+ data
510
+ )
511
+ this.closeMaterials()
512
+ }catch (e) {
513
+ return this.$showMessage('保存失败!!!')
514
+ } finally {
515
+ this.isSaving = false;
516
+ }
506
517
  },
507
518
  async deleteMaterial(row) {
508
519
  var show1 = window.confirm('您确定要删除这条记录吗?')