|
@@ -27,7 +27,7 @@
|
|
|
:loading="buttonLoading"
|
|
|
class="el-button--small-yh"
|
|
|
:disabled="true"
|
|
|
- @click.stop="">复制新单
|
|
|
+ @click.stop="">复制单据
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
class="el-button--small-yh"
|
|
@@ -36,7 +36,7 @@
|
|
|
:loading="buttonLoading"
|
|
|
:disabled="disabled || goodsDisable || viewDisabled"
|
|
|
@click="editCustomer"
|
|
|
- >{{ form.id ? '确认修改' : '确认新增' }}
|
|
|
+ >保存数据
|
|
|
</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -174,17 +174,6 @@
|
|
|
></el-input>
|
|
|
<span v-else>{{ row.contractAmount }}</span>
|
|
|
</template>
|
|
|
- <template slot="currency" slot-scope="{ row }">
|
|
|
- <el-select v-model="row.currency"
|
|
|
- v-if="row.$cellEdit"
|
|
|
- size="small"
|
|
|
- placeholder="请选择 币别"
|
|
|
- @change="currencyChange(row)"
|
|
|
- clearable filterable>
|
|
|
- <el-option v-for="(item,index) in currencyDic" :key="index" :label="item.dictValue" :value="item.dictValue"></el-option>
|
|
|
- </el-select>
|
|
|
- <span v-else>{{ row.currency }}</span>
|
|
|
- </template>
|
|
|
<template slot="cntrNo" slot-scope="{ row }">
|
|
|
<span v-if="row.$cellEdit" class="required_fields">*</span>
|
|
|
<el-select v-if="row.$cellEdit"
|
|
@@ -204,18 +193,29 @@
|
|
|
</el-select>
|
|
|
<span v-else>{{ row.cntrNo }}</span>
|
|
|
</template>
|
|
|
- <template slot="taxRate" slot-scope="{ row }">
|
|
|
- <el-input
|
|
|
- v-if="row.$cellEdit"
|
|
|
- v-model="row.taxRate"
|
|
|
- size="small"
|
|
|
- oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d\d\d\d\d).*$/, "$1.$2")'
|
|
|
- autocomplete="off"
|
|
|
- >
|
|
|
- <i slot="suffix" style="margin-top:3px;margin-right: 10px;display:inline-block">%</i>
|
|
|
- </el-input>
|
|
|
- <span v-else>{{ row.taxRate | isPercentage}}</span>
|
|
|
- </template>
|
|
|
+<!-- <template slot="currency" slot-scope="{ row }">-->
|
|
|
+<!-- <el-select v-model="row.currency"-->
|
|
|
+<!-- v-if="row.$cellEdit"-->
|
|
|
+<!-- size="small"-->
|
|
|
+<!-- placeholder="请选择 币别"-->
|
|
|
+<!-- @change="currencyChange(row)"-->
|
|
|
+<!-- clearable filterable>-->
|
|
|
+<!-- <el-option v-for="(item,index) in currencyDic" :key="index" :label="item.dictValue" :value="item.dictValue"></el-option>-->
|
|
|
+<!-- </el-select>-->
|
|
|
+<!-- <span v-else>{{ row.currency }}</span>-->
|
|
|
+<!-- </template>-->
|
|
|
+<!-- <template slot="taxRate" slot-scope="{ row }">-->
|
|
|
+<!-- <el-input-->
|
|
|
+<!-- v-if="row.$cellEdit"-->
|
|
|
+<!-- v-model="row.taxRate"-->
|
|
|
+<!-- size="small"-->
|
|
|
+<!-- oninput='this.value=this.value.replace(/[^(\d.)]/g,"").replace(/^(\d+)\.(\d\d\d\d\d\d).*$/, "$1.$2")'-->
|
|
|
+<!-- autocomplete="off"-->
|
|
|
+<!-- >-->
|
|
|
+<!-- <i slot="suffix" style="margin-top:3px;margin-right: 10px;display:inline-block">%</i>-->
|
|
|
+<!-- </el-input>-->
|
|
|
+<!-- <span v-else>{{ row.taxRate | isPercentage}}</span>-->
|
|
|
+<!-- </template>-->
|
|
|
<template slot-scope="{row,index}" slot="menu">
|
|
|
<el-button
|
|
|
type="text"
|
|
@@ -238,7 +238,7 @@
|
|
|
size="small"
|
|
|
:disabled="goodsDisable || viewDisabled"
|
|
|
@click="openMarketDialog"
|
|
|
- >导入明细
|
|
|
+ >录入明细
|
|
|
</el-button>
|
|
|
</template>
|
|
|
</avue-crud>
|
|
@@ -595,15 +595,15 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
//币别选择
|
|
|
- currencyChange(row){
|
|
|
- if(row.currency == "CNY"){
|
|
|
- this.$set(row,"exRate",1)
|
|
|
- }else if(row.currency == "USD"){
|
|
|
- this.$set(row,"exRate",6.3686)
|
|
|
- }else{
|
|
|
- this.$set(row,"exRate",7.1749)
|
|
|
- }
|
|
|
- },
|
|
|
+ // currencyChange(row){
|
|
|
+ // if(row.currency == "CNY"){
|
|
|
+ // this.$set(row,"exRate",1)
|
|
|
+ // }else if(row.currency == "USD"){
|
|
|
+ // this.$set(row,"exRate",6.3686)
|
|
|
+ // }else{
|
|
|
+ // this.$set(row,"exRate",7.1749)
|
|
|
+ // }
|
|
|
+ // },
|
|
|
//货品物种
|
|
|
valueName(value, row) {
|
|
|
this.$set(row, "priceCategory", value)
|
|
@@ -751,6 +751,22 @@ export default {
|
|
|
item.contractNumber = item.orgOrderNo;
|
|
|
item.contractAmount = item.amount;
|
|
|
item.actualQuantity = item.orderQuantity;
|
|
|
+ getListOrgOrderNo(item.billNo,item.contractNumber,item.priceCategory).then(res => {
|
|
|
+ this.creditList = res.data
|
|
|
+ this.storageList = this.creditList.map(item =>{
|
|
|
+ let params ={
|
|
|
+ storageId:item.storageId,
|
|
|
+ stockName:item.stockName
|
|
|
+ }
|
|
|
+ return params
|
|
|
+ })
|
|
|
+ this.cntrNoList = this.creditList.map(item =>{
|
|
|
+ let params ={
|
|
|
+ cntrNo:item.cntrNo,
|
|
|
+ }
|
|
|
+ return params
|
|
|
+ })
|
|
|
+ })
|
|
|
this.selectInventory(item);
|
|
|
delete item.id
|
|
|
this.$refs.crudContact.rowCellAdd(item);
|