|
@@ -93,7 +93,6 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
beforeOpen() {
|
|
|
- // this.$refs['orderAddForm'].clearValidate();
|
|
|
const { deptName, deptId, name, nickName, orgName, orgId } = this.$store.state.user;
|
|
|
this.params.puOrg = orgId;
|
|
|
this.params.puOrgName = orgName;
|
|
@@ -102,7 +101,6 @@ export default {
|
|
|
this.params.puDept = deptId;
|
|
|
this.params.puDeptName = deptName;
|
|
|
this.params.billDate = new Date().Format('yyyy-MM-dd');
|
|
|
- // this.params.status = '0';
|
|
|
},
|
|
|
setVisible(prop) {
|
|
|
this.visible = prop;
|
|
@@ -216,10 +214,10 @@ export default {
|
|
|
// this.$refs['orderAddForm'].validate(async (valid) => {
|
|
|
// if (valid) {
|
|
|
try {
|
|
|
- // const { code, msg } = await orderApi.create(this.params);
|
|
|
- // if (code === 200) {
|
|
|
- // this.handleCancel();
|
|
|
- // }
|
|
|
+ const { code, msg } = await orderApi.create(this.params);
|
|
|
+ if (code === 200) {
|
|
|
+ this.handleCancel();
|
|
|
+ }
|
|
|
} catch (err) {
|
|
|
//
|
|
|
} finally {
|