| | |
| | | <a-card :bordered="false"> |
| | | <!-- 查询区域 --> |
| | | <div class="table-page-search-wrapper"> |
| | | <!-- <a-form layout="inline" @keyup.enter.native="searchQuery">--> |
| | | <!-- <a-row :gutter="24">--> |
| | | <a-form layout="inline" @keyup.enter.native="searchQuery"> |
| | | <a-row :gutter="24"> |
| | | <!-- <a-col :md="6" :sm="8">--> |
| | | <!-- <a-form-item label="刀具编码">--> |
| | | <!-- <a-input placeholder="请输入刀具编码" v-model="queryParam.cuttingId" />--> |
| | | <!-- </a-form-item>--> |
| | | <!-- </a-col>--> |
| | | <!-- <a-col :md="6" :sm="8">--> |
| | | <!-- <a-form-item label="刀具条码">--> |
| | | <!-- <a-input placeholder="请输入刀具条码" v-model="queryParam.cuttingBarcode" />--> |
| | | <!-- </a-form-item>--> |
| | | <!-- </a-col>--> |
| | | <!-- <a-col--> |
| | | <!-- :md="6"--> |
| | | <!-- :sm="8"--> |
| | | <!-- >--> |
| | | <!-- <span--> |
| | | <!-- style="float: left;overflow: hidden;"--> |
| | | <!-- class="table-page-search-submitButtons"--> |
| | | <!-- >--> |
| | | <!-- <a-button--> |
| | | <!-- type="primary"--> |
| | | <!-- @click="searchQuery"--> |
| | | <!-- icon="search"--> |
| | | <!-- >查询</a-button>--> |
| | | <!-- <a-button--> |
| | | <!-- type="primary"--> |
| | | <!-- @click="searchReset"--> |
| | | <!-- icon="reload"--> |
| | | <!-- style="margin-left: 8px"--> |
| | | <!-- >重置</a-button>--> |
| | | <!-- </span>--> |
| | | <!-- </a-col>--> |
| | | <!-- </a-row>--> |
| | | <!-- </a-form>--> |
| | | <a-col :md="6" :sm="8"> |
| | | <a-form-item label="刀具条码"> |
| | | <a-input placeholder="请输入刀具条码" v-model="queryParam.cuttingBarcode" /> |
| | | </a-form-item> |
| | | </a-col> |
| | | <a-col |
| | | :md="6" |
| | | :sm="8" |
| | | > |
| | | <span |
| | | style="float: left;overflow: hidden;" |
| | | class="table-page-search-submitButtons" |
| | | > |
| | | <a-button |
| | | type="primary" |
| | | @click="searchQuery" |
| | | icon="search" |
| | | >查询</a-button> |
| | | <a-button |
| | | type="primary" |
| | | @click="searchReset" |
| | | icon="reload" |
| | | style="margin-left: 8px" |
| | | >重置</a-button> |
| | | </span> |
| | | </a-col> |
| | | </a-row> |
| | | </a-form> |
| | | </div> |
| | | <!-- 查询区域-END --> |
| | | |
| | |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: '数量', |
| | | title: '总数', |
| | | dataIndex: 'cuttingIdNumber', |
| | | align: "center" |
| | | align: "center", |
| | | customRender: (text, record, index) => { |
| | | const obj = { |
| | | children: text, |
| | | attrs: {} |
| | | }; |
| | | // 只在第一行显示总数量,其他行显示空 |
| | | if (record.rowSpan !== undefined && record.rowSpan > 0) { |
| | | obj.children = text; |
| | | obj.attrs.rowSpan = record.rowSpan; |
| | | } else if (record.rowSpan === 0) { |
| | | obj.children = ''; |
| | | obj.attrs.rowSpan = 0; |
| | | } else { |
| | | obj.children = text; |
| | | obj.attrs.rowSpan = 1; |
| | | } |
| | | return obj; |
| | | } |
| | | } |
| | | ], |
| | | url: { |
| | |
| | | } |
| | | |
| | | return result; |
| | | } |
| | | }, |
| | | |
| | | } |
| | | } |
| | | </script> |