|
@@ -144,6 +144,14 @@
|
|
|
@click="handleExport"
|
|
|
v-hasPermi="['store:storePayment:export']"
|
|
|
>导出</el-button>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="1.5">
|
|
|
+ <el-button
|
|
|
+ type="warning"
|
|
|
+ size="mini"
|
|
|
+ @click="handlePayNotify"
|
|
|
+ v-hasPermi="['store:storePayment:payNotify']"
|
|
|
+ >同步订单状态</el-button>
|
|
|
</el-col>
|
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
</el-row>
|
|
@@ -206,6 +214,19 @@
|
|
|
@pagination="getList"
|
|
|
/>
|
|
|
|
|
|
+ <el-dialog :title="payNotify.title" :visible.sync="payNotify.open" width="600px" append-to-body>
|
|
|
+ <el-form ref="payNotifyForm" :model="payNotifyForm" :rules="payNotifyRules" label-width="100px">
|
|
|
+ <el-form-item label="外部单号" prop="tradeNo" >
|
|
|
+ <el-input v-model="payNotifyForm.tradeNo" placeholder="请输入物流单号" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="submitPayNotifyForm">确 定</el-button>
|
|
|
+ <el-button @click="payNotify.open = false">取 消</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+
|
|
|
<!-- 添加或修改支付明细对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
|
|
@@ -251,7 +272,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { refundStorePayment,listStorePayment, getStorePayment, delStorePayment, addStorePayment, updateStorePayment, exportStorePayment } from "@/api/store/storePayment";
|
|
|
+import { refundStorePayment,listStorePayment, getStorePayment, delStorePayment, addStorePayment, updateStorePayment, exportStorePayment,setPayNotify } from "@/api/store/storePayment";
|
|
|
import { getCompanyList } from "@/api/company/company";
|
|
|
export default {
|
|
|
name: "StorePayment",
|
|
@@ -266,6 +287,18 @@ export default {
|
|
|
},
|
|
|
refundRules:{
|
|
|
|
|
|
+ },
|
|
|
+ payNotify:{
|
|
|
+ title:"同步订单状态",
|
|
|
+ open:false,
|
|
|
+ },
|
|
|
+ payNotifyForm:{
|
|
|
+ tradeNo:null,
|
|
|
+ },
|
|
|
+ payNotifyRules:{
|
|
|
+ tradeNo: [
|
|
|
+ { required: true, message: "外部单号不能为空", trigger: "blur" }
|
|
|
+ ],
|
|
|
},
|
|
|
companys:[],
|
|
|
statusOptions:[],
|
|
@@ -328,6 +361,23 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ submitPayNotifyForm(){
|
|
|
+ this.$refs["payNotifyForm"].validate(valid => {
|
|
|
+ if (valid) {
|
|
|
+ setPayNotify(this.payNotifyForm).then(response => {
|
|
|
+ if (response.code === 200) {
|
|
|
+ this.msgSuccess("操作成功");
|
|
|
+ this.payNotify.open = false;
|
|
|
+ this.getList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handlePayNotify(){
|
|
|
+ this.payNotify.open = true;
|
|
|
+ this.payNotifyForm.tradeNo = null;
|
|
|
+ },
|
|
|
handleClick(tab, event) {
|
|
|
this.queryParams.businessType=tab.name
|
|
|
this.getList();
|