zhanbo.xu

新增hscode

...@@ -189,8 +189,8 @@ ...@@ -189,8 +189,8 @@
189 @popoverClose="popoverClose" 189 @popoverClose="popoverClose"
190 > 190 >
191 <div slot="title"> 191 <div slot="title">
192 - <span style="font-weight: 700; color: #515a6e">订单编号:</span 192 + <span style="font-weight: 700; color: #515a6e">提运单号:</span
193 - >{{ scope.row.orderno }} 193 + >{{ scope.row.billNo }}
194 </div> 194 </div>
195 <div slot="buttonLabel"> 195 <div slot="buttonLabel">
196 {{ scope.row.arrivalInReceiptStatus }} 196 {{ scope.row.arrivalInReceiptStatus }}
......
1 +<template>
2 + <el-dialog
3 + class="entryDialog classCUploadDialog"
4 + title="运抵单申报"
5 + :visible.sync="outerVisible"
6 + :show-close="false"
7 + width="720px"
8 + :close-on-click-modal="false"
9 + :destroy-on-close="true"
10 + v-loading="loadings.dialogLoading"
11 + @close="close(false)"
12 + >
13 + <div class="modelItem">
14 + <el-form
15 + class="fedexFormStyle"
16 + ref="formData"
17 + :model="formData"
18 + label-position="top"
19 + size="small"
20 + >
21 + <el-row :gutter="5">
22 + <el-col :span="8">
23 + <Formitem label="监管场所" prop="operatorCode" type="edit">
24 + <el-select
25 + type="text"
26 + id="inputInner-edit-operatorCode"
27 + v-model="formData.operatorCode"
28 + clearable
29 + filterable
30 + placeholder=""
31 + >
32 + <el-option
33 + v-for="item in operatorCode"
34 + :key="item.operatorCode"
35 + :label="item.operatorName"
36 + :value="item.operatorCode"
37 + ></el-option>
38 + </el-select>
39 + </Formitem>
40 + </el-col>
41 +
42 + <el-col :span="8">
43 + <Formitem
44 + label="境内运输工具编码"
45 + prop="domesticTrafNo"
46 + type="edit"
47 + >
48 + <el-input
49 + type="text"
50 + class="inputShadow"
51 + id="inputInner-edit-domesticTrafNo"
52 + resize="none"
53 + v-model="formData.domesticTrafNo"
54 + clearable
55 + placeholder=""
56 + ></el-input>
57 + </Formitem>
58 + </el-col>
59 + </el-row>
60 + </el-form>
61 + </div>
62 + <div class="dialogOption entrySave">
63 + <el-button
64 + class="entrySaveButton"
65 + :disabled="loadings.submitLoading"
66 + @click="submit"
67 + >确 定</el-button
68 + >
69 + <el-button class="entrySaveButton" @click="close(false)">关 闭</el-button>
70 + </div>
71 + </el-dialog>
72 +</template>
73 +
74 +<script>
75 +import {
76 + getCurrUserOperatorCode,
77 + declareUpload,
78 +} from "@/api/declareData-api.js";
79 +export default {
80 + props: {
81 + outerVisible: {
82 + type: Boolean,
83 + default: false,
84 + },
85 + selected: {
86 + type: Array,
87 + default: () => {
88 + return [];
89 + },
90 + },
91 + },
92 + watch: {
93 + outerVisible(val) {
94 + if (val) {
95 + this.loadings.dialogLoading = false;
96 + this.fetchOperatorCode();
97 + }
98 + },
99 + },
100 + data() {
101 + return {
102 + formData: {
103 + operatorCode: "",
104 + domesticTrafNo: "",
105 + },
106 +
107 + loadings: {
108 + dialogLoading: false,
109 + submitLoading: false,
110 + },
111 + loadingText: "",
112 + operatorCode: [],
113 + };
114 + },
115 + methods: {
116 + fetchOperatorCode() {
117 + getCurrUserOperatorCode().then((res) => {
118 + if (res.code === "200") {
119 + this.operatorCode = res.data;
120 + }
121 + });
122 + },
123 +
124 + //数据保存
125 + submit() {
126 + this.loadings.dialogLoading = true;
127 + let obj = {
128 + ...this.formData,
129 + declareIds: this.selected.map((item) => item.declareId),
130 + type: "arrivalIn",
131 + };
132 + this.$refs.formData.validate((valid) => {
133 + if (valid) {
134 + this.addapi(obj);
135 + } else {
136 + this.loadings.dialogLoading = false;
137 + }
138 + });
139 + },
140 + //新增
141 + addapi(val) {
142 + declareUpload(val)
143 + .then((res) => {
144 + if (res.code === "200") {
145 + this.msgSuccess(res.message);
146 + this.close(true);
147 + } else {
148 + this.alertWarningMsg(res.message);
149 + this.loadings.dialogLoading = false;
150 + }
151 + })
152 + .catch((err) => {
153 + console.log(err);
154 + this.loadings.dialogLoading = false;
155 + });
156 + },
157 +
158 + close(flag) {
159 + this.formData = {
160 + operatorCode: "",
161 + domesticTrafNo: "",
162 + };
163 + this.loadings.dialogLoading = false;
164 + this.$emit("close", flag);
165 + },
166 + },
167 +};
168 +</script>
169 +
170 +<style lang="scss" scoped>
171 +@import "@/assets/styles/variables.scss";
172 +</style>
This diff is collapsed. Click to expand it.