|
@@ -5,6 +5,7 @@
|
|
|
<el-table
|
|
|
:header-cell-style="{ background: '#EDEEF0', color: '#444' }"
|
|
|
:data="tableList"
|
|
|
+ @selection-change="handleSelectionChange"
|
|
|
>
|
|
|
<el-table-column type="selection" width="55"> </el-table-column>
|
|
|
<el-table-column label="商品编号" prop="sn" align="center">
|
|
@@ -40,13 +41,14 @@
|
|
|
@click="musicalListDetailExport"
|
|
|
>分发清单导出</el-button
|
|
|
>
|
|
|
+ <!-- v-if="
|
|
|
+ musicalStatus &&
|
|
|
+ $helpers.permission('musicGroup/takeEffectOfinstrumentInsurance')
|
|
|
+ " -->
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
@click="onDelivery"
|
|
|
- v-if="
|
|
|
- musicalStatus &&
|
|
|
- $helpers.permission('musicGroup/takeEffectOfinstrumentInsurance')
|
|
|
- "
|
|
|
+
|
|
|
>确认发货</el-button
|
|
|
>
|
|
|
<el-button
|
|
@@ -59,6 +61,16 @@
|
|
|
<!-- <div class="okBtn" v-permission="'order/verifyMusicalList'"
|
|
|
@click="okDetailList">确认</div> -->
|
|
|
</div>
|
|
|
+ <el-dialog :visible.sync="addrVisiable" title="确认清单" width="500px">
|
|
|
+ <deliverGoods v-if="addrVisiable" :form="activeChiose" ref='deliverGoods' @close='()=>{addrVisiable = false}' @getList='getList'/>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button @click="addrVisiable = false">取 消</el-button>
|
|
|
+ <el-button type="primary" @click="onsubmitDelivery"
|
|
|
+ >确 定</el-button
|
|
|
+ >
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -68,6 +80,7 @@ import {
|
|
|
verifyMusicalList,
|
|
|
takeEffectOfinstrumentInsurance,
|
|
|
} from "@/api/orderManager";
|
|
|
+import deliverGoods from './modals/deliverGoods.vue'
|
|
|
import axios from "axios";
|
|
|
import qs from "qs";
|
|
|
import { getToken, getTenantId } from "@/utils/auth";
|
|
@@ -82,9 +95,11 @@ export default {
|
|
|
team_status: "",
|
|
|
musicalInstrumentsProvideStatus: 0, // 是否确认发货 1已发货
|
|
|
hasVerifyMusicalList: true,
|
|
|
- activeChiose:[]
|
|
|
+ activeChiose:[],
|
|
|
+ addrVisiable:false
|
|
|
};
|
|
|
},
|
|
|
+ components:{deliverGoods},
|
|
|
mounted() {
|
|
|
this.init();
|
|
|
},
|
|
@@ -110,13 +125,16 @@ export default {
|
|
|
// this.hasVerifyMusicalList = res?.data?.rows[0]?.hasVerifyMusicalList
|
|
|
// }
|
|
|
// })
|
|
|
- getTeamDetailList({ musicGroupId: this.teamid }).then((res) => {
|
|
|
+ this.getList()
|
|
|
+ this.getMusicInfo();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ getList(){
|
|
|
+ getTeamDetailList({ musicGroupId: this.teamid }).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.tableList = res.data ? res.data : [];
|
|
|
}
|
|
|
});
|
|
|
- this.getMusicInfo();
|
|
|
- }
|
|
|
},
|
|
|
async getMusicInfo() {
|
|
|
await getTeamBaseInfo({ musicGroupId: this.teamid }).then((res) => {
|
|
@@ -136,6 +154,9 @@ export default {
|
|
|
this.$router.push({ path: "/teamList" });
|
|
|
},
|
|
|
onDelivery() {
|
|
|
+ console.log('自动发货')
|
|
|
+ this.addrVisiable = true;
|
|
|
+ return
|
|
|
this.$confirm("是否确认发货", "提示", {
|
|
|
confirmButtonText: "确定",
|
|
|
cancelButtonText: "取消",
|
|
@@ -150,6 +171,9 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ onsubmitDelivery(){
|
|
|
+ console.log('确认发货发货')
|
|
|
+ },
|
|
|
okDetailList() {
|
|
|
this.$confirm(`是否确认发放清单?`, "提示", {
|
|
|
confirmButtonText: "确定",
|