123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203 |
- <template>
- <div>
- <TopTitle title="销售订单">
- <Button type="primary" @click="searchModal = true">查找</Button>
- <Button type="primary" @click="showModalTrue()" style="margin-left: 20px"
- >栏目设置</Button
- >
- </TopTitle>
- <div class="content">
- <Table
- :data="tableData"
- :columns="tableColumns"
- border
- max-height="700"
- v-show="tableData.length != 0"
- >
- <template slot="set" slot-scope="{ row, index }">
- <a @click="delSelectData(row, index)">详情</a>
- </template>
- </Table>
- <div class="content_body_page">
- <Page
- :page-size-opts="[10, 20, 30, 40, 100]"
- @on-page-size-change="changeSize"
- @on-change="changePage"
- :current="pageIndex"
- show-total
- show-elevator
- :total="total"
- show-sizer
- :page-size="pageSize"
- />
- </div>
- </div>
- <ColumnSetup
- ref="child"
- :tableModalTableDataHeader="tableModalTableDataHeader"
- :formModalColumns="formModalColumns"
- :tableModalColumns="tableModalColumns"
- :tableModalTableData="tableModalTableData"
- :showModal="showModal"
- @event1="change($event)"
- @handleModalOk="handleModalOk"
- />
- <Modal
- v-model="searchModal"
- title="查找"
- @on-ok="searchModalOk"
- @on-cancel="searchModal = false"
- width="700"
- >
- <Form :model="formItem" :label-width="85">
- <Row
- style="
- display: flex;
- justify-content: center;
- border-bottom: 1px solid #e8eaec;
- padding: 20px;
- "
- >
- <Col span="11">
- <Form-item label="选择器">
- <Select
- clearable
- v-model="formItem.select"
- placeholder="请选择"
- style="width: 200px"
- >
- <Option value="beijing">北京市</Option>
- <Option value="shanghai">上海市</Option>
- <Option value="shenzhen">深圳市</Option>
- </Select>
- </Form-item>
- </Col>
- <Col span="11">
- <Form-item label="日期控件">
- <Date-picker
- clearable
- :value="formItem.date"
- format="yyyy/MM/dd"
- type="daterange"
- placement="bottom-end"
- placeholder="选择日期"
- style="width: 200px"
- ></Date-picker>
- </Form-item>
- </Col>
- </Row>
- <div
- style="
- display: flex;
- flex-wrap: wrap;
- justify-content: space-around;
- padding: 20px;
- border-bottom: 1px solid #e8eaec;
- "
- >
- <Form-item label="订单编号">
- <Input
- clearable
- v-model="formItem.order_no"
- placeholder="请输入订单编号"
- style="width: 200px"
- ></Input>
- </Form-item>
- <Form-item label="项目名称">
- <Input
- clearable
- v-model="formItem.project_name"
- placeholder="请输入项目名称"
- style="width: 200px"
- ></Input>
- </Form-item>
- <Form-item label="对方单号">
- <Input
- clearable
- v-model="formItem.adverse_odd"
- placeholder="请输入对方单号"
- style="width: 200px"
- ></Input>
- </Form-item>
- <Form-item label="业务员">
- <Input
- clearable
- v-model="formItem.salesman"
- placeholder="请输入业务员"
- style="width: 200px"
- ></Input>
- </Form-item>
- <Form-item label="客户名称">
- <Select
- clearable
- v-model="formItem.customer_name"
- placeholder="请选择"
- style="width: 200px"
- >
- <Option value="beijing">北京市</Option>
- <Option value="shanghai">上海市</Option>
- <Option value="shenzhen">深圳市</Option>
- </Select>
- </Form-item>
- <Form-item label="产品名称">
- <Input
- clearable
- v-model="formItem.product_name"
- placeholder="请输入产品名称"
- style="width: 200px"
- ></Input>
- </Form-item>
- <Form-item label="客户地区">
- <Select
- clearable
- v-model="formItem.client_area"
- placeholder="请选择"
- style="width: 200px"
- >
- <Option value="beijing">北京市</Option>
- <Option value="shanghai">上海市</Option>
- <Option value="shenzhen">深圳市</Option>
- </Select>
- </Form-item>
- <Form-item label="楼层编号">
- <Input
- clearable
- v-model="formItem.floor_number"
- placeholder="请输入楼层编号"
- style="width: 200px"
- ></Input>
- </Form-item>
- <Form-item label="审核状态">
- <Select
- clearable
- v-model="formItem.audit_status"
- placeholder="请选择"
- style="width: 200px"
- >
- <Option value="beijing">北京市</Option>
- <Option value="shanghai">上海市</Option>
- <Option value="shenzhen">深圳市</Option>
- </Select>
- </Form-item>
- <Form-item label="通用产品码">
- <Input
- clearable
- v-model="formItem.universal_product_code"
- placeholder="请输入通用产品码 "
- style="width: 200px"
- ></Input>
- </Form-item>
- </div>
- <div>
- <Form-item label="">
- <Checkbox-group
- v-model="formItem.checkbox"
- style="padding-top: 20px"
- >
- <Checkbox style="width: 100px" label="尺寸确认"></Checkbox>
- <Checkbox style="width: 100px" label="发货"></Checkbox>
- <Checkbox style="width: 100px" label="分箱"></Checkbox>
- <Checkbox style="width: 100px" label="套料"></Checkbox>
- <Checkbox style="width: 100px" label="流程卡"></Checkbox>
- <Checkbox style="width: 100px" label="工艺"></Checkbox>
- <Checkbox style="width: 100px" label="收款"></Checkbox>
- <Checkbox style="width: 100px" label="已下达"></Checkbox>
- <Checkbox style="width: 100px" label="价格审核"></Checkbox>
- <Checkbox style="width: 100px" label="入库"></Checkbox>
- <Checkbox style="width: 100px" label="外协"></Checkbox>
- </Checkbox-group>
- </Form-item>
- </div>
- </Form>
- </Modal>
- </div>
- </template>
- <script>
- import TopTitle from "../../components/TopTitle/index";
- import ColumnSetup from "../../components/columnSetup/index.vue";
- import { dataInJs } from "./index.js";
- export default {
- components: {
- TopTitle,
- ColumnSetup,
- },
- data() {
- return {
- arrList: dataInJs(),
- ifCheckAll: false,
- formItem: {},
- searchModal: false,
- showModal: false,
- selectData: [],
- searchData: {
- start_time: "",
- end_time: "",
- },
- pageSize: 10,
- pageIndex: 1,
- total: 0,
- tableData: [],
- pointList: [
- {
- value: "1",
- label: "升序",
- },
- {
- value: "2",
- label: "降序",
- },
- ],
- tableModalTableDataHeader: [
- {
- is_show: false,
- key: "order_no",
- value: "订单编号",
- title: "订单编号",
- },
- {
- is_show: true,
- key: "order_type",
- value: "订单类型",
- title: "项目名称",
- },
- {
- is_show: true,
- key: "order_status",
- value: "订单状态",
- title: "订单状态",
- },
- {
- is_show: true,
- key: "salesman",
- value: "业务员",
- title: "业务员 ",
- },
- {
- is_show: true,
- key: "warning_state",
- value: "紧急程度",
- title: "紧急程度",
- },
- {
- is_show: true,
- key: "crt_time",
- value: "订单创建时间",
- title: "订单创建时间",
- },
- {
- is_show: true,
- key: "project_name",
- value: "项目名称",
- title: "项目名称",
- },
- {
- is_show: true,
- key: "start_time",
- value: "订单开始日期",
- title: "订单开始日期",
- },
- {
- is_show: true,
- key: "end_time",
- value: "订单交付日期",
- title: "订单交付日期",
- },
- {
- is_show: true,
- key: "complete_rate",
- value: "生产进度",
- title: "生产进度",
- },
- {
- is_show: true,
- key: "delivery_date",
- value: "预估交付日期",
- title: "预估交付日期",
- },
- {
- is_show: true,
- key: "delivery_date",
- value: "操作",
- title: "操作",
- },
- ],
- tableColumns: [
- {
- title: "id",
- align: "center",
- minWidth: 100,
- key: "id",
- },
- {
- title: "尺寸确认",
- align: "center",
- width: 100,
- key: "size",
- is_show: true,
- render: (h, params) => {
- return h("div", [
- h("Checkbox", {
- props: {
- value: params.row.size == 0 ? true : false,
- disabled: true,
- },
- }),
- ]);
- },
- },
- {
- title: "订单编号",
- align: "center",
- width: 100,
- key: "size",
- is_show: true,
- render: (h, params) => {
- return h("div", [
- h("Checkbox", {
- props: {
- value: params.row.size == 0 ? true : false,
- disabled: true,
- },
- }),
- ]);
- },
- },
- {
- title: "工艺",
- align: "center",
- width: 80,
- key: "craft",
- render: (h, params) => {
- return h("div", [
- h("Checkbox", {
- props: {
- value: params.row.craft == 0 ? true : false,
- disabled: true,
- },
- }),
- ]);
- },
- },
- {
- title: "分箱",
- align: "center",
- width: 80,
- key: "binning",
- render: (h, params) => {
- return h("div", [
- h("Checkbox", {
- props: {
- value: params.row.binning == 0 ? true : false,
- disabled: true,
- },
- }),
- ]);
- },
- },
- {
- title: "已下达",
- align: "center",
- width: 90,
- key: "processed",
- render: (h, params) => {
- return h("div", [
- h("Checkbox", {
- props: {
- value: params.row.processed == 0 ? true : false,
- disabled: true,
- },
- }),
- ]);
- },
- },
- {
- title: "流程卡",
- align: "center",
- width: 90,
- key: "flowCard",
- render: (h, params) => {
- return h("div", [
- h("Checkbox", {
- props: {
- value: params.row.flowCard == 0 ? true : false,
- disabled: true,
- },
- }),
- ]);
- },
- },
- {
- title: "入库",
- align: "center",
- width: 80,
- key: "entry",
- render: (h, params) => {
- return h("div", [
- h("Checkbox", {
- props: {
- value: params.row.entry == 0 ? true : false,
- disabled: true,
- },
- }),
- ]);
- },
- },
- {
- title: "发货",
- align: "center",
- width: 80,
- key: "shipments",
- render: (h, params) => {
- return h("div", [
- h("Checkbox", {
- props: {
- value: params.row.shipments == 0 ? true : false,
- disabled: true,
- },
- }),
- ]);
- },
- },
- {
- title: "收款",
- align: "center",
- width: 90,
- key: "gathering",
- render: (h, params) => {
- return h("div", [
- h("Checkbox", {
- props: {
- value: params.row.gathering == 0 ? true : false,
- disabled: true,
- },
- }),
- ]);
- },
- },
- {
- title: "套料",
- align: "center",
- width: 90,
- key: "jacking",
- render: (h, params) => {
- return h("div", [
- h("Checkbox", {
- props: {
- value: params.row.jacking == 0 ? true : false,
- disabled: true,
- },
- }),
- ]);
- },
- },
- {
- title: "价格审核",
- align: "center",
- width: 100,
- key: "priceReview",
- render: (h, params) => {
- return h("div", [
- h("Checkbox", {
- props: {
- value: params.row.priceReview == 0 ? true : false,
- disabled: true,
- },
- }),
- ]);
- },
- },
- {
- title: "外协",
- align: "center",
- width: 90,
- key: "outsource",
- render: (h, params) => {
- return h("div", [
- h("Checkbox", {
- props: {
- value: params.row.outsource == 0 ? true : false,
- disabled: true,
- },
- }),
- ]);
- },
- },
- {
- title: "分厂",
- align: "center",
- minWidth: 100,
- key: "branch",
- },
- {
- title: "MES",
- align: "center",
- minWidth: 100,
- key: "MSE",
- },
- {
- title: "单据状态",
- align: "center",
- minWidth: 100,
- key: "receiptsState",
- render: (h, params) => {
- return h(
- "span",
- params.row.receiptsState == 0 ? "未审核" : "已审核"
- );
- },
- },
- {
- title: "客户编号",
- align: "center",
- minWidth: 100,
- key: "customerId",
- },
- {
- title: "客户名称",
- align: "center",
- minWidth: 100,
- key: "customerName",
- },
- {
- title: "地区",
- align: "center",
- minWidth: 100,
- key: "region",
- },
- {
- title: "工程ID",
- align: "center",
- minWidth: 100,
- key: "projectId",
- },
- {
- title: "工程名称",
- align: "center",
- minWidth: 100,
- key: "projectName",
- },
- {
- title: "合同编号",
- align: "center",
- minWidth: 100,
- key: "contractNumber",
- },
- {
- title: "对方编号",
- align: "center",
- minWidth: 100,
- key: "adverseNumber",
- },
- {
- title: "包装方式",
- align: "center",
- minWidth: 100,
- key: "mannerPacking",
- },
- {
- title: "订单类型",
- align: "center",
- minWidth: 100,
- key: "orderType",
- },
- {
- title: "铝条方式",
- align: "center",
- minWidth: 100,
- key: "aluminiumType",
- },
- {
- title: "业务员",
- align: "center",
- minWidth: 100,
- key: "salesman",
- },
- {
- title: "联系人",
- align: "center",
- minWidth: 100,
- key: "linkman",
- },
- {
- title: "联系电话",
- align: "center",
- minWidth: 100,
- key: "phone",
- },
- {
- title: "报表日期",
- align: "center",
- minWidth: 120,
- key: "reportDate",
- render: (h, params) => {
- const { row } = params;
- return h("span", {}, this.func.replaceDateNoHMS(row.reportDate));
- },
- },
- {
- title: "总周长",
- align: "center",
- minWidth: 100,
- key: "perimeter",
- },
- {
- title: "总数量",
- align: "center",
- minWidth: 100,
- key: "total",
- },
- {
- title: "总结算面积",
- align: "center",
- minWidth: 100,
- key: "settlementArea",
- },
- {
- title: "总金额",
- align: "center",
- minWidth: 100,
- key: "totalMoney",
- },
- {
- title: "收款金额",
- align: "center",
- minWidth: 100,
- key: "receivableAmount",
- },
- {
- title: "折扣金额",
- align: "center",
- minWidth: 100,
- key: "discountAmount",
- },
- {
- title: "欠款金额",
- align: "center",
- minWidth: 100,
- key: "debtAmount",
- },
- {
- title: "总实际面积",
- align: "center",
- minWidth: 100,
- key: "actualArea",
- },
- {
- title: "工艺员",
- align: "center",
- minWidth: 100,
- key: "technologist",
- },
- {
- title: "打印次数",
- align: "center",
- minWidth: 100,
- key: "printTime",
- },
- {
- title: "标签次数",
- align: "center",
- minWidth: 100,
- key: "labelTime",
- },
- {
- title: "制单员",
- align: "center",
- minWidth: 100,
- key: "makingPart",
- },
- {
- title: "制单日期",
- align: "center",
- minWidth: 120,
- key: "documentationDate",
- render: (h, params) => {
- const { row } = params;
- return h(
- "span",
- {},
- this.func.replaceDateNoHMS(row.documentationDate)
- );
- },
- },
- {
- title: "审核人",
- align: "center",
- minWidth: 100,
- key: "auditor",
- },
- {
- title: "审核日期",
- align: "center",
- minWidth: 120,
- key: "approvalDate",
- render: (h, params) => {
- const { row } = params;
- return h("span", {}, this.func.replaceDateNoHMS(row.approvalDate));
- },
- },
- {
- title: "交货日期",
- align: "center",
- minWidth: 120,
- key: "deliveryDate",
- render: (h, params) => {
- const { row } = params;
- return h("span", {}, this.func.replaceDateNoHMS(row.deliveryDate));
- },
- },
- {
- title: "生产交期",
- align: "center",
- minWidth: 120,
- key: "producedDate",
- render: (h, params) => {
- const { row } = params;
- return h("span", {}, this.func.replaceDateNoHMS(row.producedDate));
- },
- },
- {
- title: "送货地址",
- align: "center",
- minWidth: 100,
- key: "deliveryAddress",
- },
- {
- title: "附件",
- align: "center",
- minWidth: 100,
- key: "accessory",
- },
- {
- title: "加工要求",
- align: "center",
- minWidth: 100,
- key: "process",
- },
- {
- title: "结算币种",
- align: "center",
- minWidth: 100,
- key: "settleAccounts",
- },
- {
- title: "付款条件",
- align: "center",
- minWidth: 100,
- key: "paymentClause",
- },
- {
- title: "加工要求",
- align: "center",
- minWidth: 100,
- key: "process",
- },
- {
- title: "特别备注",
- align: "center",
- minWidth: 100,
- key: "specialNote",
- },
- {
- title: "备注",
- align: "center",
- minWidth: 100,
- key: "remark",
- },
- {
- title: "CrmId",
- align: "center",
- minWidth: 100,
- key: "crmId",
- },
- {
- title: "来源",
- align: "center",
- minWidth: 100,
- key: "source",
- },
- {
- title: "操作",
- align: "center",
- minWidth: 100,
- slot: "set",
- },
- ],
- newTableColumns: [],
- formModalColumns: [
- {
- type: "selection",
- width: 55,
- align: "center",
- },
- {
- title: "全部字段",
- align: "center",
- key: "value",
- minWidth: 100,
- },
- {
- title: "展示名称",
- align: "center",
- key: "title",
- minWidth: 100,
- slot: "title",
- },
- {
- title: "排序方式",
- align: "center",
- key: "sortord",
- minWidth: 100,
- slot: "sortord",
- },
- {
- title: "排序优先级",
- align: "center",
- key: "priority",
- minWidth: 100,
- render: (h, params) => {
- return h(
- "Select",
- {
- props: {
- value: params.row.priority,
- },
- on: {
- "on-change": (event) => {
- this.formModalColumns[params.index][params.column.key] =
- event; //获取编辑行的inde和编辑字段名,对表格数据进行重新赋值
- },
- },
- },
- this.pointList.map(function (type) {
- return h(
- "Option",
- {
- props: {
- value: type.value,
- key: type.label,
- },
- },
- type.label
- );
- })
- );
- },
- },
- ],
- tableModalTableData: [
- {
- is_show: true,
- key: "order_no",
- value: "订单编号",
- title: "订单编号",
- },
- {
- is_show: true,
- key: "order_type",
- value: "订单类型",
- title: "项目名称",
- },
- {
- is_show: true,
- key: "order_status",
- value: "订单状态",
- title: "订单状态",
- },
- {
- is_show: true,
- key: "salesman",
- value: "业务员",
- title: "业务员 ",
- },
- {
- is_show: true,
- key: "warning_state",
- value: "紧急程度",
- title: "紧急程度",
- },
- {
- is_show: true,
- key: "crt_time",
- value: "订单创建时间",
- title: "订单创建时间",
- },
- {
- is_show: true,
- key: "project_name",
- value: "项目名称",
- title: "项目名称",
- },
- {
- is_show: true,
- key: "start_time",
- value: "订单开始日期",
- title: "订单开始日期",
- },
- {
- is_show: true,
- key: "end_time",
- value: "订单交付日期",
- title: "订单交付日期",
- },
- {
- is_show: true,
- key: "complete_rate",
- value: "生产进度",
- title: "生产进度",
- },
- {
- is_show: true,
- key: "delivery_date",
- value: "预估交付日期",
- title: "预估交付日期",
- },
- ],
- tableModalColumns: [
- {
- type: "selection",
- width: 55,
- align: "center",
- },
- {
- title: "字段名",
- align: "center",
- key: "value",
- minWidth: 100,
- },
- {
- title: "展示名称",
- align: "center",
- key: "title",
- minWidth: 100,
- slot: "screenTitle",
- },
- ],
- };
- },
- watch: {
- ifCheckAll(newValue) {
- console.log(newValue);
- this.$nextTick(() => {
- this.$refs.selection1.selectAll(newValue);
- console.log(this.$refs.selection1, "测试");
- });
- },
- },
- mounted() {
- this.axios({
- url: "/PalDW/Pal.E8.BusinessRulesLayer.OpenAPI.RightMrg.remote",
- //设置请求头请求格式为JSON
- //设置token 其中K名要和后端协调好
- method: "post",
- data: { Method: "GetServerNow", Params: [] },
- headers: { "Content-Type": "cjq", "Access-Control-Allow-Origin": "*" },
- }).then((res) => {});
- // function xhr(){
- // let xhr = new XMLHttpRequest();
- // xhr.onreadystatechange = function() {
- // if (xhr.readyState == 4) {
- // if ((xhr.status >= 200 && xhr.status < 300) || xhr.status == 304) {
- // console.log(xhr.responseText);
- // } else {
- // alert("Request was unsuccessful: " + xhr.status);
- // }
- // }
- // };
- // xhr.setRequestHeader({'Content-Type': 'application/json'});
- // xhr.open("post", "http://mes.im2x.com:9012/PalDW/Pal.E8.BusinessRulesLayer.OpenAPI.RightMrg.remote", true);
- // xhr.send(null);};
- // xhr();
- this.tableData = [
- {
- id: 1,
- size: 0,
- craft: 0, //工艺
- binning: 0, // 分箱
- processed: 1, //已下达
- flowCard: 0, //流程卡
- entry: 1, //入库
- shipments: 0, //发货
- gathering: 0, //收款
- jacking: 1, // 套料
- priceReview: 1, //价格审核
- outsource: 1, // 外协
- branch: "分厂",
- MSE: "这是MSE",
- receiptsState: 1, // 0 未审核 1 已审核
- customerId: "这是客户编号",
- customerName: "这是客户名称",
- region: "这是地区",
- projectId: "这是工程ID",
- projectName: "这是工程名称",
- receiptNumber: "这是单据编号",
- contractNumber: "这是合同编号",
- adverseNumber: "这是对方编号",
- mannerPacking: "这是包装方式",
- orderType: 0, //0 普通订单
- aluminiumType: "这是铝条方式",
- salesman: "这是业务员",
- linkman: "这是联系人",
- phone: "17886512521",
- reportDate: "1652852478", //报表日期
- perimeter: "145.123", //总周长
- total: "", //总数量
- settlementArea: "175.21331", //总结算面积
- totalMoney: "500", //总金额
- receivableAmount: "收款金额",
- discountAmount: "这是折扣金额",
- debtAmount: "这是欠款金额",
- actualArea: "这是总实际面积",
- technologist: "这是工艺员",
- printTime: 0, //打印次数
- labelTime: 0, //标签次数
- makingPart: "这是制单员",
- documentationDate: "1652852478", //制单日期
- auditor: "这时审核人", // 审核人
- approvalDate: "1652852478", // 审核日期
- deliveryDate: "1652852478", //交货日期
- producedDate: "1652852478", //生产交期
- deliveryAddress: "这是送货地址",
- accessory: "这是附件",
- process: "这是加工要求",
- settleAccounts: "人民币",
- paymentClause: "这是付款条件",
- specialNote: "这是特别备注",
- remark: "这是备注",
- crmId: "这是crmid",
- source: "这是来源",
- },
- ];
- this.data();
- console.log(dataInJs());
- },
- methods: {
- //点击栏目设置按钮
- showModalTrue() {
- this.showModal = true;
- this.$refs.child.showModalTrue();
- },
- change(data) {
- this.showModal = data;
- },
- data() {
- this.newTableColumns = this.arrList;
- let arr = [];
- this.tableColumns.forEach((e) => {
- this.newTableColumns.forEach((a) => {
- if (e.key == a.key) {
- if (a.ifShow == true) {
- arr.push(e);
- }
- }
- });
- });
- this.tableColumns = arr;
- this.tableColumns.sort((a, b) => {
- return a.sort - b.sort;
- });
- },
- changeSize() {},
- changePage() {},
- //点击栏目设置按钮
- showModalTrue() {
- this.showModal = true;
- this.$refs.child.showModalTrue();
- },
- handleModalOk(row1, row2) {
- console.log(row1, "这个是checkedListHeader");
- console.log(row2, "这是checkedList");
- },
- searchModalOk() {
- console.log("查找");
- },
- select(e) {
- this.selectData = e;
- },
- // save() {
- // if (this.selectData.length == 0) {
- // return this.$Message.warning("请先选择数据!");
- // }
- // this.selectData.forEach((v, idx) => {
- // v.index = idx + 1;
- // });
- // this.axios.post("/api/save", { data: this.selectData }).then((res) => {
- // if (res.code == 200) {
- // this.$Message.success(res.msg);
- // this.searchData = { start_time: "", end_time: "" };
- // this.tableData = [];
- // this.selectData = [];
- // }
- // });
- // },
- // initData() {
- // this.axios.post("/api/build_list", { ...this.searchData }).then((res) => {
- // this.tableData = res.data;
- // this.selectData = [];
- // });
- // },
- delSelectData(type) {
- this.$router.push({ path: "/cms/product/particulars", query: { type } });
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- .form_item {
- margin-top: 20px;
- display: flex;
- flex-wrap: wrap;
- }
- .content_body_page {
- text-align: center;
- }
- .content {
- height: 90%;
- overflow: auto;
- }
- .content_body_page {
- text-align: center;
- margin-top: 20px;
- }
- </style>
|