| | |
| | | <el-date-picker |
| | | v-model="editConfig.infomation.start_time" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | :picker-options="pickerOptions" |
| | | style="width: 100%" |
| | | @change="checkDate(editConfig.infomation.start_time,editConfig.infomation.end_time)" |
| | | type="datetime" |
| | | placeholder="选择日期" |
| | | > |
| | |
| | | <el-date-picker |
| | | v-model="editConfig.infomation.end_time" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | :picker-options="pickerOptions" |
| | | type="datetime" |
| | | @change="checkDate(editConfig.infomation.start_time,editConfig.infomation.end_time)" |
| | | style="width: 100%" |
| | | placeholder="选择日期" |
| | | > |
| | |
| | | import { getAddMasterOrder, getUpdateMasterOrder } from "@/api/sales/masterOrder" |
| | | import SelectClientDialog from "@/views/other/commonDialog/SelectClientDialog" |
| | | import codeMixin from "@/components/makepager/mixin/codeMixin" |
| | | import NewDate from "@/api/date"; |
| | | const { compareTime } = NewDate; |
| | | export default { |
| | | name: "QuotationDialog", |
| | | mixins: [codeMixin], |
| | |
| | | infomation: {} |
| | | }, |
| | | clientId: this.editCommonConfig.infomation.client_id, |
| | | objCode: { name: "", page: 0, pageSize: 0, type: "销售总单编码", codeStandID: "" } |
| | | objCode: { name: "", page: 0, pageSize: 0, type: "销售总单编码", codeStandID: "" }, |
| | | pickerOptions: { |
| | | disabledDate(time) { |
| | | return time.getTime() < new Date().getTime() - 86400000; |
| | | }, |
| | | }, |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | checkDate(start,end){ |
| | | if(start&&end){ |
| | | if (compareTime(start, end) > 0) { |
| | | this.$message.error('服务截止时间要晚于服务开始时间!') |
| | | } |
| | | } |
| | | }, |
| | | formInfo() { |
| | | this.objCode.codeStandID = "" |
| | | if (this.editConfig.infomation.codeStandID) { |