|
@@ -9,7 +9,7 @@
|
|
|
>返回列表
|
|
|
</el-button>
|
|
|
|
|
|
- <el-collapse v-model="activeNames" @change="">
|
|
|
+ <el-collapse v-model="activeNames">
|
|
|
<el-collapse-item title="基础资料" name="1">
|
|
|
<el-form ref="form" :model="form" label-width="130px" size="mini" class="selectForm" :rules="rules">
|
|
|
<el-row>
|
|
@@ -49,7 +49,7 @@
|
|
|
>
|
|
|
<el-scrollbar>
|
|
|
<el-option
|
|
|
- v-for="(dict, index) in fMblnoOptions"
|
|
|
+ v-for="dict in fMblnoOptions"
|
|
|
:key="dict.fId"
|
|
|
:label="dict.fName"
|
|
|
:value="dict.fId"
|
|
@@ -71,7 +71,7 @@
|
|
|
>
|
|
|
<el-scrollbar>
|
|
|
<el-option
|
|
|
- v-for="(dict, index) in fMblnoOptions"
|
|
|
+ v-for="dict in fMblnoOptions"
|
|
|
:key="dict.fId"
|
|
|
:label="dict.fName"
|
|
|
:value="dict.fId"
|
|
@@ -103,7 +103,7 @@
|
|
|
style="width: 100%"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="(dict, index) in transport"
|
|
|
+ v-for="dict in transport"
|
|
|
:key="dict.dictValue"
|
|
|
:label="dict.dictLabel"
|
|
|
:value="dict.dictValue"
|
|
@@ -120,7 +120,7 @@
|
|
|
style="width: 100%"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="(dict, index) in paymentMethod"
|
|
|
+ v-for="dict in paymentMethod"
|
|
|
:key="dict.dictValue"
|
|
|
:label="dict.dictLabel"
|
|
|
:value="dict.dictValue"
|
|
@@ -137,7 +137,7 @@
|
|
|
style="width: 100%"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="(dict, index) in drawee"
|
|
|
+ v-for="dict in drawee"
|
|
|
:key="dict.dictValue"
|
|
|
:label="dict.dictLabel"
|
|
|
:value="dict.dictValue"
|
|
@@ -154,7 +154,7 @@
|
|
|
style="width: 100%"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="(dict, index) in cEsign"
|
|
|
+ v-for="dict in cEsign"
|
|
|
:key="dict.dictValue"
|
|
|
:label="dict.dictLabel"
|
|
|
:value="dict.dictValue"
|
|
@@ -171,7 +171,7 @@
|
|
|
size="small"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="(dict, index) in etentioncargo"
|
|
|
+ v-for="dict in etentioncargo"
|
|
|
:key="dict.dictValue"
|
|
|
:label="dict.dictLabel"
|
|
|
:value="dict.dictValue"
|
|
@@ -192,7 +192,7 @@
|
|
|
>
|
|
|
<el-scrollbar>
|
|
|
<el-option
|
|
|
- v-for="(dict, index) in vslidList"
|
|
|
+ v-for="dict in vslidList"
|
|
|
:key="dict.fId"
|
|
|
:label="dict.fName"
|
|
|
:value="dict.fId"
|
|
@@ -215,7 +215,7 @@
|
|
|
>
|
|
|
<el-scrollbar>
|
|
|
<el-option
|
|
|
- v-for="(dict, index) in voyidList"
|
|
|
+ v-for="dict in voyidList"
|
|
|
:key="dict.fId"
|
|
|
:label="dict.fNo"
|
|
|
:value="dict.fId"
|
|
@@ -404,7 +404,7 @@
|
|
|
style="width: 100%"
|
|
|
>
|
|
|
<el-option
|
|
|
- v-for="(dict, index) in insurance"
|
|
|
+ v-for="dict in insurance"
|
|
|
:key="dict.dictValue"
|
|
|
:label="dict.dictLabel"
|
|
|
:value="dict.dictValue"
|
|
@@ -717,7 +717,6 @@
|
|
|
border
|
|
|
stripe
|
|
|
show-summary
|
|
|
- @selection-change=""
|
|
|
:summary-method="warehouseDrSummaries"
|
|
|
>
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
@@ -1038,7 +1037,6 @@
|
|
|
border
|
|
|
stripe
|
|
|
show-summary
|
|
|
- @selection-change=""
|
|
|
:summary-method="warehouseCrSummaries"
|
|
|
>
|
|
|
<el-table-column type="selection" width="55" align="center"/>
|
|
@@ -1813,7 +1811,6 @@ export default {
|
|
|
},
|
|
|
//页面跳转后传递参数
|
|
|
activated() {
|
|
|
- console.log(this.$route.query)
|
|
|
if (this.$route.query.testing)this.dataElist = true
|
|
|
this.modify = true
|
|
|
let formDate
|
|
@@ -1826,10 +1823,17 @@ export default {
|
|
|
this.approVal = true
|
|
|
this.cancelButton = false
|
|
|
} else if (this.$route.query.data) {
|
|
|
+ console.log(this.$route.query.data.fMblno)
|
|
|
formDate = {
|
|
|
fId: JSON.parse(this.$route.query.data).fId,
|
|
|
num: JSON.parse(this.$route.query.data).num
|
|
|
}
|
|
|
+ if(this.$route.query.data.fMblno){
|
|
|
+ formDate = {
|
|
|
+ fMblno: JSON.parse(this.$route.query.data).fMblno,
|
|
|
+ num: JSON.parse(this.$route.query.data).num
|
|
|
+ }
|
|
|
+ }
|
|
|
this.id = formDate.fId
|
|
|
this.formList = {
|
|
|
fId: formDate.fId
|
|
@@ -1844,12 +1848,18 @@ export default {
|
|
|
this.approvalTwo = true
|
|
|
this.approVal = false
|
|
|
this.cancelButton = false
|
|
|
- }
|
|
|
+ }else if(this.$route.query.DC){
|
|
|
+ formDate = {
|
|
|
+ fMblno: JSON.parse(this.$route.query.DC).fMblno,
|
|
|
+ num: JSON.parse(this.$route.query.DC).num
|
|
|
+ }
|
|
|
+ }
|
|
|
if (formDate) {
|
|
|
addmodify(formDate).then(response => {
|
|
|
console.log(response)
|
|
|
if(response.code == 200){
|
|
|
this.form = response.rows[0]
|
|
|
+ console.log(this.form)
|
|
|
if (this.form.fMblno == null) {
|
|
|
this.changeNum = false
|
|
|
} else {
|
|
@@ -2146,7 +2156,16 @@ export default {
|
|
|
this.form.fBillstatus === 4 ||
|
|
|
this.form.fBillstatus === 9 ||
|
|
|
this.modify == true) {
|
|
|
- this.$router.push({ path: '/domesticTrade/myOrder' })
|
|
|
+ if(this.$route.query.DC){
|
|
|
+ if(JSON.parse(this.$route.query.DC).type=='D'){
|
|
|
+ this.$router.push({ path: '/analysis/generalLedgerDr' })
|
|
|
+ }else{
|
|
|
+ this.$router.push({ path: '/analysis/generalLedgerCr' })
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.$router.push({ path: '/domesticTrade/myOrder' })
|
|
|
+ }
|
|
|
+
|
|
|
} else {
|
|
|
this.$confirm('返回列表,是否保存?', '提示', {
|
|
|
confirmButtonText: '保存',
|
|
@@ -2157,7 +2176,15 @@ export default {
|
|
|
this.approval()
|
|
|
})
|
|
|
.catch(() => {
|
|
|
+ if(this.$route.query.DC){
|
|
|
+ if(JSON.parse(this.$route.query.DC).type=='D'){
|
|
|
+ this.$router.push({ path: '/analysis/generalLedgerDr' })
|
|
|
+ }else{
|
|
|
+ this.$router.push({ path: '/analysis/generalLedgerCr' })
|
|
|
+ }
|
|
|
+ }else{
|
|
|
this.$router.push({ path: '/domesticTrade/myOrder' })
|
|
|
+ }
|
|
|
this.modify = true
|
|
|
})
|
|
|
}
|
|
@@ -3098,7 +3125,7 @@ export default {
|
|
|
//border-top:1px dashed #ccc;
|
|
|
}
|
|
|
|
|
|
-.selectForm > > > .el-form-item__label {
|
|
|
+.selectForm >>> .el-form-item__label {
|
|
|
font-size: 12px !important;
|
|
|
}
|
|
|
.app-container /deep/ .el-collapse-item__content{
|