|
@@ -30,7 +30,7 @@
|
|
|
<span slot="label">
|
|
|
<span style="color: #1e9fff">箱型箱量</span>
|
|
|
</span>
|
|
|
- <el-input type="age" style="width: 100%;" v-model="assemblyForm.containers"
|
|
|
+ <el-input type="age" style="width: 100%;" v-model="assemblyForm.quantityCntrDescr"
|
|
|
size="small" autocomplete="off"
|
|
|
disabled
|
|
|
clearable placeholder="箱型箱量" ></el-input>
|
|
@@ -105,7 +105,7 @@
|
|
|
:buttonIf="false"
|
|
|
:forParameter="{key:'id',label:'cnName',value:'cnName'}"
|
|
|
@remoteMethod="getBcorpsListfun($event,'corpCnName')"
|
|
|
- @corpChange="corpChange($event,'corpCnName',row)"
|
|
|
+ @corpChange="corpChange($event,'corpCnName',row,'D')"
|
|
|
@corpFocus="getBcorpsListfun($event,'corpCnName')" >
|
|
|
</search-query>
|
|
|
<span v-else style="color: #1e9fff" @click="corpClick">{{row.corpCnName}}</span>
|
|
@@ -120,7 +120,7 @@
|
|
|
:buttonIf="false"
|
|
|
:forParameter="{key:'id',label:'cnName',value:'cnName'}"
|
|
|
@remoteMethod="bfeesListfun($event,'feeCnName')"
|
|
|
- @corpChange="corpChange($event,'feeCnName',row)"
|
|
|
+ @corpChange="corpChange($event,'feeCnName',row,'D')"
|
|
|
@corpFocus="bfeesListfun($event,'feeCnName')" >
|
|
|
</search-query>
|
|
|
<span v-else >{{row.feeCnName}}</span>
|
|
@@ -135,7 +135,7 @@
|
|
|
:buttonIf="false"
|
|
|
:forParameter="{key:'id',label:'cnName',value:'cnName'}"
|
|
|
@remoteMethod="getBaccelementsListfun($event,'elementsCnName')"
|
|
|
- @corpChange="corpChange($event,'elementsCnName',row)"
|
|
|
+ @corpChange="corpChange($event,'elementsCnName',row,'D')"
|
|
|
@corpFocus="getBaccelementsListfun($event,'elementsCnName')" >
|
|
|
</search-query>
|
|
|
<span v-else >{{row.elementsCnName}}</span>
|
|
@@ -147,7 +147,7 @@
|
|
|
:clearable="true"
|
|
|
:buttonIf="false"
|
|
|
:forParameter="{key:'dictKey',label:'dictValue',value:'dictKey'}"
|
|
|
- @corpChange="corpChange($event,'paymode',row)"
|
|
|
+ @corpChange="corpChange($event,'paymode',row,'D')"
|
|
|
@corpFocus="paymodeWorkDictsfun" >
|
|
|
</search-query>
|
|
|
<span v-else>{{row.paymode}}</span>
|
|
@@ -162,7 +162,7 @@
|
|
|
:buttonIf="false"
|
|
|
:forParameter="{key:'id',label:'code',value:'code',disabled:'status'}"
|
|
|
@corpFocus="getBunitsPagefun"
|
|
|
- @corpChange="corpChange($event,'unitNo',row)" >
|
|
|
+ @corpChange="corpChange($event,'unitNo',row,'D')" >
|
|
|
</search-query>
|
|
|
<span v-else>{{row.unitNo}}</span>
|
|
|
</template>
|
|
@@ -272,7 +272,7 @@
|
|
|
:buttonIf="false"
|
|
|
:forParameter="{key:'id',label:'cnName',value:'cnName'}"
|
|
|
@remoteMethod="getBcorpsListfun($event,'corpCnName')"
|
|
|
- @corpChange="corpChange($event,'corpCnName',row)"
|
|
|
+ @corpChange="corpChange($event,'corpCnName',row,'C')"
|
|
|
@corpFocus="getBcorpsListfun($event,'corpCnName')" >
|
|
|
</search-query>
|
|
|
<span v-else >{{row.corpCnName}}</span>
|
|
@@ -287,7 +287,7 @@
|
|
|
:buttonIf="false"
|
|
|
:forParameter="{key:'id',label:'cnName',value:'cnName'}"
|
|
|
@remoteMethod="bfeesListfun($event,'feeCnName')"
|
|
|
- @corpChange="corpChange($event,'feeCnName',row)"
|
|
|
+ @corpChange="corpChange($event,'feeCnName',row,'C')"
|
|
|
@corpFocus="bfeesListfun($event,'feeCnName')" >
|
|
|
</search-query>
|
|
|
<span v-else>{{row.feeCnName}}</span>
|
|
@@ -302,7 +302,7 @@
|
|
|
:buttonIf="false"
|
|
|
:forParameter="{key:'id',label:'cnName',value:'cnName'}"
|
|
|
@remoteMethod="getBaccelementsListfun($event,'elementsCnName')"
|
|
|
- @corpChange="corpChange($event,'elementsCnName',row)"
|
|
|
+ @corpChange="corpChange($event,'elementsCnName',row,'C')"
|
|
|
@corpFocus="getBaccelementsListfun($event,'elementsCnName')" >
|
|
|
</search-query>
|
|
|
<span v-else >{{row.elementsCnName}}</span>
|
|
@@ -314,7 +314,7 @@
|
|
|
:clearable="true"
|
|
|
:buttonIf="false"
|
|
|
:forParameter="{key:'dictKey',label:'dictValue',value:'dictKey'}"
|
|
|
- @corpChange="corpChange($event,'paymode',row)"
|
|
|
+ @corpChange="corpChange($event,'paymode',row,'C')"
|
|
|
@corpFocus="paymodeWorkDictsfun" >
|
|
|
</search-query>
|
|
|
<span v-else>{{row.paymode}}</span>
|
|
@@ -329,7 +329,7 @@
|
|
|
:buttonIf="false"
|
|
|
:forParameter="{key:'id',label:'code',value:'code',disabled:'status'}"
|
|
|
@corpFocus="getBunitsPagefun"
|
|
|
- @corpChange="corpChange($event,'unitNo',row)">
|
|
|
+ @corpChange="corpChange($event,'unitNo',row,'C')">
|
|
|
</search-query>
|
|
|
<span v-else>{{row.unitNo}}</span>
|
|
|
</template>
|
|
@@ -1724,8 +1724,19 @@
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
-
|
|
|
-
|
|
|
+ // 计算金额
|
|
|
+ this.$set(row,'amount',Number(row.price) * Number(row.quantity?row.quantity:0))
|
|
|
+ if (row.curCode == 'CNY') {
|
|
|
+ this.$set(row,'rmbAmount',row.amount)
|
|
|
+ this.$set(row,'usdAmount','')
|
|
|
+ this.$set(row,'rmbAmountNet',row.amount)
|
|
|
+ this.$set(row,'usdAmountNet','')
|
|
|
+ }else {
|
|
|
+ this.$set(row,'usdAmount',row.amount)
|
|
|
+ this.$set(row,'rmbAmount','')
|
|
|
+ this.$set(row,'usdAmountNet',row.amount)
|
|
|
+ this.$set(row,'rmbAmountNet','')
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}else if (name == 'unitNo') {
|
|
@@ -1794,12 +1805,17 @@
|
|
|
}
|
|
|
this.$set(row,'curCode',item.code)
|
|
|
this.$set(row,'exrate',item.exrate)
|
|
|
+ this.$set(row,'amount',Number(row.price) * Number(row.quantity?row.quantity:0))
|
|
|
if (row.curCode == 'CNY') {
|
|
|
this.$set(row,'rmbAmount',row.amount)
|
|
|
this.$set(row,'usdAmount','')
|
|
|
+ this.$set(row,'rmbAmountNet',row.amount)
|
|
|
+ this.$set(row,'usdAmountNet','')
|
|
|
}else {
|
|
|
this.$set(row,'usdAmount',row.amount)
|
|
|
this.$set(row,'rmbAmount','')
|
|
|
+ this.$set(row,'usdAmountNet',row.amount)
|
|
|
+ this.$set(row,'rmbAmountNet','')
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -1825,9 +1841,13 @@
|
|
|
if (row.curCode == 'CNY') {
|
|
|
this.$set(row,'rmbAmount',row.amount)
|
|
|
this.$set(row,'usdAmount','')
|
|
|
+ this.$set(row,'rmbAmountNet',row.amount)
|
|
|
+ this.$set(row,'usdAmountNet','')
|
|
|
}else {
|
|
|
this.$set(row,'usdAmount',row.amount)
|
|
|
this.$set(row,'rmbAmount','')
|
|
|
+ this.$set(row,'usdAmountNet',row.amount)
|
|
|
+ this.$set(row,'rmbAmountNet','')
|
|
|
}
|
|
|
},
|
|
|
// 数量
|