fix:修改发票详情编辑

dev
zhaoxingchang.sd 11 months ago
parent 86b6be2211
commit 082ed4716a
  1. 41
      src/views/order/editOrder.vue
  2. 4
      src/views/order/orderReading.vue
  3. 4
      vue.config.js

@ -42,7 +42,7 @@
<div style="text-align:center"> <div style="text-align:center">
<div class="tableColor" style="font-size:34px;"> <div class="tableColor" style="font-size:34px;">
<el-select class="fpzldm-select" style='width:436px !important' v-model="formInline.fpzlDm" @change="fplxChange" placeholder="请选择发票种类" > <el-select class="fpzldm-select" style='width:436px !important' v-model="formInline.fpzlDm" @change="fplxChange" placeholder="请选择发票种类" >
<el-option :label="item.label" :value="item.value" v-for="(item,index) in fpzlList" <el-option :label="item.label" :value="item.value" v-for="(item,index) in fpzlListTwo"
:key="index"></el-option> :key="index"></el-option>
</el-select> </el-select>
</div> </div>
@ -1104,7 +1104,7 @@
</div> </div>
<table border="" width="100%" cellspacing="0" style="border:1px solid #9E520A;table-layout:fixed;" > <table border="" width="100%" cellspacing="0" style="border:1px solid #9E520A;table-layout:fixed;" >
<tr> <tr>
<el-table :data="zytableList" :header-cell-style="{background:'#FFF'}" <el-table :data="zytableList" :header-cell-style="{background:'#FFF'}"
:row-class-name="tableRowClassName3" border fit highlight-current-row show-summary :row-class-name="tableRowClassName3" border fit highlight-current-row show-summary
:summary-method="getSummaries" :header-cell-class-name="star1" class="tablelist ystablelist"> :summary-method="getSummaries" :header-cell-class-name="star1" class="tablelist ystablelist">
<el-table-column label="+" width="27" align="center" :render-header="addlist3"> <el-table-column label="+" width="27" align="center" :render-header="addlist3">
@ -1158,7 +1158,7 @@
</el-select> --> </el-select> -->
<div :class="['input-div',zyInput[scope.$index]['xh'] ? 'is-focus' : '']" <div :class="['input-div',zyInput[scope.$index]['xh'] ? 'is-focus' : '']"
:data-attr="zyInput[scope.$index]['xh'] ? '' : scope.row.xh"> :data-attr="zyInput[scope.$index]['xh'] ? '' : scope.row.xh">
<el-input v-if="!scope.row.hiddenRow" v-model="scope.row.xh" :title="scope.row.xh" <el-input v-if="!scope.row.hiddenRow" v-model="scope.row.xh" :title="scope.row.xh"
@input="scope.row.xh=scope.row.xh.replace(/^(0+)|[^\d]+/g,'')" @input="scope.row.xh=scope.row.xh.replace(/^(0+)|[^\d]+/g,'')"
@focus="zytableListInputFocus(scope.$index,'xh')" @focus="zytableListInputFocus(scope.$index,'xh')"
@blur="zytableListInputFocus(scope.$index, 'xh', 'blur'),dyfpmxChange()"> @blur="zytableListInputFocus(scope.$index, 'xh', 'blur'),dyfpmxChange()">
@ -1266,11 +1266,11 @@
</div> </div>
<div v-if="gtgmfModel" style="border:1px solid #9E520A;border-top:none"> <div v-if="gtgmfModel" style="border:1px solid #9E520A;border-top:none">
<div class="ystitle">共同购买方信息</div> <div class="ystitle">共同购买方信息</div>
<div style="margin: 0px 0px 10px 10px;"> <div style="margin: 0px 0px 10px 10px;">
<el-button type="primary" size="small" @click="addgtgmf" >增加</el-button> <el-button type="primary" size="small" @click="addgtgmf" >增加</el-button>
<el-button plain size="small" @click="gtgmfdel" >删除</el-button> <el-button plain size="small" @click="gtgmfdel" >删除</el-button>
</div> </div>
<el-table :data="gttableList" :header-cell-style="{background:'#FFF'}" style="border-top:1px solid #9E520A !important;" @selection-change="handleSelectionChange" <el-table :data="gttableList" :header-cell-style="{background:'#FFF'}" style="border-top:1px solid #9E520A !important;" @selection-change="handleSelectionChange"
:row-class-name="tableRowClassName4" border fit highlight-current-row :header-cell-class-name="star" class="tablelist ystablelist"> :row-class-name="tableRowClassName4" border fit highlight-current-row :header-cell-class-name="star" class="tablelist ystablelist">
<el-table-column type="selection" width="50"></el-table-column> <el-table-column type="selection" width="50"></el-table-column>
<el-table-column label="序号" align="center" width="50"> <el-table-column label="序号" align="center" width="50">
@ -2018,6 +2018,15 @@ export default {
value: '52' value: '52'
}, },
], ],
fpzlListTwo: [
{
label: "数电票(增值税专用发票)",
value: "01"
}, {
label: "数电票(普通发票)",
value: "02"
},
],
checked:false, checked:false,
gtgmfChecked:false, gtgmfChecked:false,
gtgmfModel:false, gtgmfModel:false,
@ -2555,7 +2564,7 @@ export default {
this.ylfwmzForm.hzsfzjhm = this.gfForm.buyerTaxpayerCode; this.ylfwmzForm.hzsfzjhm = this.gfForm.buyerTaxpayerCode;
} }
}, },
queryTaxEquipment() { queryTaxEquipment() {
let data = { let data = {
nsrsbh: this.xhfNsrsbh, nsrsbh: this.xhfNsrsbh,
@ -3678,7 +3687,7 @@ export default {
} }
} }
} }
} else { } else {
this.$message({ this.$message({
message: response.msg, message: response.msg,
@ -3821,7 +3830,7 @@ export default {
if (this.routerParams.qdbz == '5' || this.routerParams.qdbz == '6' || this.routerParams.tspz =='3' || this.routerParams.tspz =='17') { // if (this.routerParams.qdbz == '5' || this.routerParams.qdbz == '6' || this.routerParams.tspz =='3' || this.routerParams.tspz =='17') { //
data.tdyslxdm = '13' data.tdyslxdm = '13'
} }
this.listLoading = true; this.listLoading = true;
queryCommodityListHttp(JSON.stringify(data)).then((response) => { queryCommodityListHttp(JSON.stringify(data)).then((response) => {
this.listLoading = false; this.listLoading = false;
@ -3854,7 +3863,7 @@ export default {
}else{ }else{
this.moreList = response.page.list; this.moreList = response.page.list;
this.spxxPage.totalCount = response.page.totalCount; this.spxxPage.totalCount = response.page.totalCount;
} }
} else { } else {
this.moreList = []; this.moreList = [];
this.xmmcList = []; this.xmmcList = [];
@ -3963,9 +3972,9 @@ export default {
} }
console.log(this.tableList) console.log(this.tableList)
this.jshj(); this.jshj();
}, },
moreSure() { moreSure() {
this.moreform.xmmc = this.tableList[this.closeIndex].xmmc; this.moreform.xmmc = this.tableList[this.closeIndex].xmmc;
this.querySpxxList(this.tableList[this.closeIndex].xmmc,this.closeIndex) this.querySpxxList(this.tableList[this.closeIndex].xmmc,this.closeIndex)
@ -4625,7 +4634,7 @@ export default {
let slData = {"sl":dicListElement.code,"slMc":dicListElement.value}; let slData = {"sl":dicListElement.code,"slMc":dicListElement.value};
this.taxRateList.push(slData) this.taxRateList.push(slData)
} }
} }
}else if(cacheType =='qdLkysZjlx'){ }else if(cacheType =='qdLkysZjlx'){
this.zjlxList = response.dictionaries; this.zjlxList = response.dictionaries;
@ -4811,7 +4820,7 @@ export default {
this.fpzlList=[{ this.fpzlList=[{
label: "增值税普通发票", label: "增值税普通发票",
value: "2" value: "2"
}] }]
}else if(this.formInline.fpzlDm =='52'){ }else if(this.formInline.fpzlDm =='52'){
this.fpzlList=[{ this.fpzlList=[{
label: "增值税电子专用发票", label: "增值税电子专用发票",
@ -4858,12 +4867,12 @@ export default {
} }
} }
this.fplxChange(this.formInline.fpzlDm); this.fplxChange(this.formInline.fpzlDm);
this.formInline.ddh = this.routerParams.ddh; this.formInline.ddh = this.routerParams.ddh;
this.queryYwlx(); this.queryYwlx();
this.gfForm.buyerName = this.routerParams.ghfMc; this.gfForm.buyerName = this.routerParams.ghfMc;
this.gfForm.buyerTaxpayerCode = this.routerParams.ghfNsrsbh; this.gfForm.buyerTaxpayerCode = this.routerParams.ghfNsrsbh;
this.gfForm.buyerAddress = this.routerParams.ghfDz; this.gfForm.buyerAddress = this.routerParams.ghfDz;
@ -5119,7 +5128,7 @@ export default {
this.qdsfzsgfyhzh = this.routerParams.qdsfzsgfyhzh =='Y'?true:false; this.qdsfzsgfyhzh = this.routerParams.qdsfzsgfyhzh =='Y'?true:false;
this.qdsfzsxfyhzh = this.routerParams.qdsfzsxfyhzh =='Y'?true:false; this.qdsfzsxfyhzh = this.routerParams.qdsfzsxfyhzh =='Y'?true:false;
} }
} }
}; };

@ -367,11 +367,11 @@ export default {
methods: { methods: {
handleSort(column, prop, order) { handleSort(column, prop, order) {
console.log(column); console.log(column);
if(column.prop == "ddh"){ if(column.prop == "cdlcode"){
column.order == 'ascending' ? this.orderBy = 'ddhAsc' : this.orderBy = 'ddhDesc'; column.order == 'ascending' ? this.orderBy = 'ddhAsc' : this.orderBy = 'ddhDesc';
} }
if(column.prop == "pzh"){ if(column.prop == "cpznum"){
column.order == 'ascending' ? this.orderBy = 'pzhAsc' : this.orderBy = 'pzhDesc'; column.order == 'ascending' ? this.orderBy = 'pzhAsc' : this.orderBy = 'pzhDesc';
} }
this.orderList(); this.orderList();

@ -71,7 +71,7 @@ module.exports = {
'/sims-api': { '/sims-api': {
// target: 'http://10.1.31.166:18107/sims-api', // 张双超 // target: 'http://10.1.31.166:18107/sims-api', // 张双超
// target: 'http://10.1.30.104:18108/sims-api', // 姚旭光 // target: 'http://10.1.30.104:18108/sims-api', // 姚旭光
target: 'http://10.18.90.124:10000/sims-api', // 测试环境 target: 'http://10.18.90.125:10000/sims-api', // 测试环境
changeOrigin: false, changeOrigin: false,
// target: 'http://10.1.3.216:10000/sims-api', //乐企通 // target: 'http://10.1.3.216:10000/sims-api', //乐企通
pathRewrite: { pathRewrite: {
@ -79,7 +79,7 @@ module.exports = {
}, },
}, },
'/management': { '/management': {
target: 'http://10.18.90.124:10000/management', // 新测试环境 target: 'http://10.18.90.125:10000/management', // 新测试环境
// target: 'http://10.1.3.216:10000/management', //乐企通 // target: 'http://10.1.3.216:10000/management', //乐企通
changeOrigin: false, changeOrigin: false,
pathRewrite: { pathRewrite: {

Loading…
Cancel
Save