|
|
@@ -121,6 +121,10 @@
|
|
|
@click="allClick('一键编辑')">一键编辑</el-button>
|
|
|
<el-button type="danger" plain size="small" :disabled="editDisabled || selectionList.length == 0"
|
|
|
@click="allClick('批量删除')">批量删除</el-button>
|
|
|
+ <el-button type="primary" size="small" :disabled="editDisabled || selectionList.length == 0"
|
|
|
+ @click="allClick('批量修改POD场站')">
|
|
|
+ 批量修改POD场站
|
|
|
+ </el-button>
|
|
|
<!-- <el-button type="success" size="small">导入</el-button> -->
|
|
|
<!-- <el-button type="info" size="small" @click="allClick('启用')">启用</el-button> -->
|
|
|
<!-- <el-button type="primary" size="small" @click="allClick('卖箱')">卖箱</el-button> -->
|
|
|
@@ -555,6 +559,22 @@
|
|
|
:disabled="feeCenterListD.filter(item => item.feeCnName == '租箱费').length > 0">保 存</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog append-to-body title="批量修改POD场站" :visible.sync="podDialog" width="30%" v-dialog-drag>
|
|
|
+ <span>
|
|
|
+ <avue-form v-if='podDialog' ref="form3" v-model="podForm" :option="podOption">
|
|
|
+ <tempalte slot="podStationCname">
|
|
|
+ <dic-select v-model="podForm.podStationCname" placeholder="场站" label="cnName" res="records"
|
|
|
+ :slotRight="true" rightLabel="code"
|
|
|
+ url="/blade-los/bcorps/selectList?current=1&size=5&corpTypeName=场站&status=0" :filterable="true"
|
|
|
+ :remote="true" dataName="cnName" @selectChange="dicChange('podStationCname3', $event)"></dic-select>
|
|
|
+ </tempalte>
|
|
|
+ </avue-form>
|
|
|
+ </span>
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="podDialog = false" size="mini">取 消</el-button>
|
|
|
+ <el-button type="primary" @click.stop="podSubmit" size="mini">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -574,7 +594,8 @@ import {
|
|
|
countRent,
|
|
|
revokeCountRent,
|
|
|
submitRtList,
|
|
|
- pleaseVerifyCost
|
|
|
+ pleaseVerifyCost,
|
|
|
+ batchUpdatePodStation
|
|
|
} from "@/api/boxManagement/buyContainer";
|
|
|
import dicSelect from "@/components/dicSelect/main";
|
|
|
import checkSchedule from "@/components/checkH/checkSchedule.vue";
|
|
|
@@ -598,6 +619,25 @@ export default {
|
|
|
name: "detailsPage",
|
|
|
data() {
|
|
|
return {
|
|
|
+ podDialog: false,
|
|
|
+ podForm: {},
|
|
|
+ podOption: {
|
|
|
+ menuBtn: false,
|
|
|
+ span: 6,
|
|
|
+ disabled: false,
|
|
|
+ column: [
|
|
|
+ {
|
|
|
+ label: 'POD场站',
|
|
|
+ prop: 'podStationCname',
|
|
|
+ span: 24,
|
|
|
+ rules: [{
|
|
|
+ required: true,
|
|
|
+ message: " ",
|
|
|
+ trigger: "blur"
|
|
|
+ }],
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
rtDialog: false,
|
|
|
excelBox: false,
|
|
|
excelForm: {},
|
|
|
@@ -2092,7 +2132,7 @@ export default {
|
|
|
corpArr.push(e.shortName)
|
|
|
}
|
|
|
})
|
|
|
- newArr = [...new Set(corpArr)]
|
|
|
+ newArr = [... new Set(corpArr)]
|
|
|
newArr.forEach(e => {
|
|
|
let rmbD = 0
|
|
|
let rmbC = 0
|
|
|
@@ -2103,20 +2143,20 @@ export default {
|
|
|
sumArr.forEach(item => {
|
|
|
if (e == item.shortName) {
|
|
|
if (item.curCode == this.getLocalCurrency() && item.dc == 'D') {
|
|
|
- rmbD += Number(item.amount ? item.amount : 0)
|
|
|
- sumD += Number(item.amount ? item.amount : 0)
|
|
|
+ rmbD += Number(item.amountCNY ? item.amountCNY : 0)
|
|
|
+ sumD += Number(item.amountCNY ? item.amountCNY : 0)
|
|
|
}
|
|
|
if (item.curCode == this.getLocalCurrency() && item.dc == 'C') {
|
|
|
- rmbC += Number(item.amount ? item.amount : 0)
|
|
|
- sumC += Number(item.amount ? item.amount : 0)
|
|
|
+ rmbC += Number(item.amountCNY ? item.amountCNY : 0)
|
|
|
+ sumC += Number(item.amountCNY ? item.amountCNY : 0)
|
|
|
}
|
|
|
- if (item.curCode == this.getLocalCurrency() && item.dc == 'D') {
|
|
|
- usdD += Number(item.amountLoc ? item.amountLoc : 0)
|
|
|
- sumD += Number(item.amountLoc ? item.amountLoc : 0) * Number(item.exrate ? item.exrate : 0)
|
|
|
+ if (item.curCode != this.getLocalCurrency() && item.dc == 'D') {
|
|
|
+ usdD += Number(item.amountUSD ? item.amountUSD : 0)
|
|
|
+ sumD += Number(item.amountUSD ? item.amountUSD : 0) * Number(item.exrate ? item.exrate : 0)
|
|
|
}
|
|
|
- if (item.curCode == this.getLocalCurrency() && item.dc == 'C') {
|
|
|
- usdC += Number(item.amountLoc ? item.amountLoc : 0)
|
|
|
- sumC += Number(item.amountLoc ? item.amountLoc : 0) * Number(item.exrate ? item.exrate : 0)
|
|
|
+ if (item.curCode != this.getLocalCurrency() && item.dc == 'C') {
|
|
|
+ usdC += Number(item.amountUSD ? item.amountUSD : 0)
|
|
|
+ sumC += Number(item.amountUSD ? item.amountUSD : 0) * Number(item.exrate ? item.exrate : 0)
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
@@ -2314,6 +2354,19 @@ export default {
|
|
|
this.activationForm.podCname = null
|
|
|
}
|
|
|
}
|
|
|
+ if (name == 'podStationCname3') {
|
|
|
+ if (row) {
|
|
|
+ this.podForm.podStationId = row.id
|
|
|
+ this.podForm.podStationCode = row.code
|
|
|
+ this.podForm.podStationEname = row.enName
|
|
|
+ console.log(this.podForm)
|
|
|
+ } else {
|
|
|
+ this.podForm.podStationId = null
|
|
|
+ this.podForm.podStationCode = null
|
|
|
+ this.podForm.podStationEname = null
|
|
|
+ this.podForm.podStationCname = null
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
rowDicChange(name, row, el) {
|
|
|
if (name == 'boxEastName') {
|
|
|
@@ -3129,6 +3182,42 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+ if (name == '批量修改POD场站') {
|
|
|
+ this.podForm = {}
|
|
|
+ this.podDialog = true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ podSubmit() {
|
|
|
+ this.$refs["form3"].validate((valid, done) => {
|
|
|
+ done();
|
|
|
+ if (valid) {
|
|
|
+ let ids = []
|
|
|
+ for (let item of this.selectionList) {
|
|
|
+ ids.push(item.id)
|
|
|
+ }
|
|
|
+ let obj = {
|
|
|
+ id: this.form.id,
|
|
|
+ sysNo: this.form.sysNo,
|
|
|
+ ...this.podForm,
|
|
|
+ tradingBoxItemsList: this.selectionList
|
|
|
+ }
|
|
|
+ const loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '加载中',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background: 'rgba(255,255,255,0.7)'
|
|
|
+ });
|
|
|
+ batchUpdatePodStation(obj).then(res => {
|
|
|
+ this.$message.success("操作成功!");
|
|
|
+ this.getDetail(this.form.id)
|
|
|
+ this.podDialog = false
|
|
|
+ }).finally(() => {
|
|
|
+ loading.close();
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
submit(type) {
|
|
|
this.$refs["form"].validate((valid, done) => {
|