|
@@ -267,13 +267,13 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import addEdit from "./addEdit.vue";
|
|
|
import { statusOptions, ShowDataTableColumns, mianColumns } from "./_columns";
|
|
|
import asyncRequest from "@/apis/service/dataCorrection/order";
|
|
|
import { cg_order_type_options } from "@/assets/js/statusList";
|
|
|
import WaitApproval from "./waitApproval.vue";
|
|
|
-import resToken from "../../../../mixins/resToken";
|
|
|
-import { isnumber } from "../../../../utils/validate";
|
|
|
+import { isnumber } from "@/utils/validate";
|
|
|
+import resToken from "@/mixins/resToken";
|
|
|
+import addEdit from "./addEdit.vue";
|
|
|
|
|
|
const VALID_OA_CODE = function(_1, _2, callback) {
|
|
|
const { oaCode } = this.ruleForm;
|
|
@@ -319,24 +319,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
|
- const binded_valid_oa_code = VALID_OA_CODE.bind(this);
|
|
|
- const binded_valid_supplier = VALID_SUPPLIER.bind(this);
|
|
|
+ const bindedValidOACode = VALID_OA_CODE.bind(this);
|
|
|
+ const bindedValidSupplier = VALID_SUPPLIER.bind(this);
|
|
|
|
|
|
return {
|
|
|
- activeNames: ["1", "2", "3", "4"],
|
|
|
- mianColumns,
|
|
|
detail: {},
|
|
|
+ mianColumns,
|
|
|
+ activeNames: ["1", "2", "3", "4"],
|
|
|
mapComponent: {
|
|
|
- create: {
|
|
|
- container: "ElForm",
|
|
|
- item: "ElFormItem",
|
|
|
- labelProp: "label"
|
|
|
- },
|
|
|
- update: {
|
|
|
- container: "ElCollapse",
|
|
|
- item: "ElCollapseItem",
|
|
|
- labelProp: "title"
|
|
|
- }
|
|
|
+ create: { container: "ElForm", item: "ElFormItem", labelProp: "label" },
|
|
|
+ update: { container: "ElCollapse", item: "ElCollapseItem", labelProp: "title" }
|
|
|
},
|
|
|
loading: false,
|
|
|
newTime: "",
|
|
@@ -374,14 +366,14 @@ export default {
|
|
|
{
|
|
|
required: true,
|
|
|
trigger: "change",
|
|
|
- validator: binded_valid_supplier
|
|
|
+ validator: bindedValidSupplier
|
|
|
}
|
|
|
],
|
|
|
oaCode: [
|
|
|
{
|
|
|
required: true,
|
|
|
trigger: "change",
|
|
|
- validator: binded_valid_oa_code
|
|
|
+ validator: bindedValidOACode
|
|
|
}
|
|
|
],
|
|
|
uid: [
|