Browse Source

正式订单发布功能

szdq
wangxy 3 years ago
parent
commit
fc44371679
1 changed files with 18 additions and 4 deletions
  1. +18
    -4
      src/views/plan/basic/formalOrder/top.vue

+ 18
- 4
src/views/plan/basic/formalOrder/top.vue View File

@ -59,7 +59,7 @@
</template>
<script>
import { ListMixin } from "@/mixins/ListMixin";
import { get } from "@/server/api.js";
import { get, put } from "@/server/api.js";
import Upload from "./upload.vue";
export default {
components: {
@ -105,9 +105,23 @@ export default {
})
},
//
handlePublish() {
},
handlePublish(row) {
this.$confirm('是否确认发布该条数据?', "警告", {
confirmButtonText: "确定",
cancelButtonText: "取消",
type: "warning",
})
.then(() => {
return put('/admin/base/salesorder/plan',{
versionId: row['SalesOrderHead-VersionId']
})
})
.then(() => {
this.msgSuccess("发布成功")
this.getList()
})
.catch(() => { });
},
//
rowClickStation(row) {
this.currentVersionId = row['SalesOrderHead-VersionId']


Loading…
Cancel
Save