|
@@ -44,7 +44,8 @@
|
|
:key="item.value"
|
|
:key="item.value"
|
|
:label="item.label"
|
|
:label="item.label"
|
|
:value="item.value"
|
|
:value="item.value"
|
|
- ></el-option>
|
|
|
|
|
|
+ >
|
|
|
|
+ </el-option>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-form>
|
|
@@ -53,6 +54,9 @@
|
|
<script>
|
|
<script>
|
|
import { areaQueryChild, getParentArea } from "@/api/specialSetting";
|
|
import { areaQueryChild, getParentArea } from "@/api/specialSetting";
|
|
import { addMusicGroupAddr, getMusicGroupAddr } from "../../api";
|
|
import { addMusicGroupAddr, getMusicGroupAddr } from "../../api";
|
|
|
|
+import {
|
|
|
|
+ takeEffectOfinstrumentInsurance,
|
|
|
|
+} from "@/api/orderManager";
|
|
export default {
|
|
export default {
|
|
props: ["form"],
|
|
props: ["form"],
|
|
data() {
|
|
data() {
|
|
@@ -60,7 +64,6 @@ export default {
|
|
forms: {
|
|
forms: {
|
|
expressCompany: "",
|
|
expressCompany: "",
|
|
expressBillNo: "",
|
|
expressBillNo: "",
|
|
- goodsIds: "",
|
|
|
|
addressId: "",
|
|
addressId: "",
|
|
},
|
|
},
|
|
addrList: [],
|
|
addrList: [],
|
|
@@ -83,7 +86,13 @@ export default {
|
|
}).then(async (res) => {
|
|
}).then(async (res) => {
|
|
try{
|
|
try{
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
- this.addrList = res.data.rows ? res.data.rows : [];
|
|
|
|
|
|
+ this.addrList = (res.data.rows ? res.data.rows : []).map(item=>{
|
|
|
|
+ return {
|
|
|
|
+ value:item.id,
|
|
|
|
+ label:item.regionProvince+item.regionCity+item.regionCounty+item.detailAddress
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ console.log( this.addrList)
|
|
if (this.addrList.length < 1) {
|
|
if (this.addrList.length < 1) {
|
|
await this.$confirm("当前乐团暂无收货地址,是否前去配置?", "提示", {
|
|
await this.$confirm("当前乐团暂无收货地址,是否前去配置?", "提示", {
|
|
type: "warning",
|
|
type: "warning",
|
|
@@ -105,8 +114,8 @@ export default {
|
|
if (flag) {
|
|
if (flag) {
|
|
// 新增
|
|
// 新增
|
|
try {
|
|
try {
|
|
- const res = await addMusicGroupAddr({ ...this.forms });
|
|
|
|
- this.$message.success("添加成功");
|
|
|
|
|
|
+ const res = await takeEffectOfinstrumentInsurance({ ...this.forms,musicGroupId:this.$route.query.id });
|
|
|
|
+ this.$message.success("发货成功");
|
|
this.$emit("getList");
|
|
this.$emit("getList");
|
|
} catch (e) {
|
|
} catch (e) {
|
|
console.log(e);
|
|
console.log(e);
|