正在显示
5 个修改的文件
包含
24 行增加
和
13 行删除
| @@ -23,8 +23,8 @@ | @@ -23,8 +23,8 @@ | ||
| 23 | <a-col :span="24"> | 23 | <a-col :span="24"> |
| 24 | <a-form-model-item label="品名" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="productName"> | 24 | <a-form-model-item label="品名" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="productName"> |
| 25 | <a-input v-model="model.productName" placeholder="请输入品名" v-if="model.chooseStatus ==1"></a-input> | 25 | <a-input v-model="model.productName" placeholder="请输入品名" v-if="model.chooseStatus ==1"></a-input> |
| 26 | - <a-select size="small" v-model="model.productName" placeholder="请选择品名" allowClear @change = "handleChange" v-if="model.chooseStatus ==0"> | ||
| 27 | - <a-select-option v-for="(item,index) in materialOptions" :key="index" :value="item.partNumber" :channel="item">{{ item.productName }}</a-select-option> | 26 | + <a-select size="small" v-model="model.productName" placeholder="请选择品名" allowClear show-search :filter-option="filterOption" @change = "handleChange" v-if="model.chooseStatus ==0"> |
| 27 | + <a-select-option v-for="(item,index) in materialOptions" :key="index" :value="item.partNumber" :channel="item">{{ item.productName }} - {{ item.spec }} - {{ item.type }}</a-select-option> | ||
| 28 | </a-select> | 28 | </a-select> |
| 29 | </a-form-model-item> | 29 | </a-form-model-item> |
| 30 | </a-col> | 30 | </a-col> |
| @@ -240,6 +240,11 @@ export default { | @@ -240,6 +240,11 @@ export default { | ||
| 240 | this.isBianhaoDisabled = false | 240 | this.isBianhaoDisabled = false |
| 241 | } | 241 | } |
| 242 | }, | 242 | }, |
| 243 | + filterOption(input, option) { | ||
| 244 | + return ( | ||
| 245 | + option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 | ||
| 246 | + ); | ||
| 247 | + }, | ||
| 243 | loadTree(){ | 248 | loadTree(){ |
| 244 | httpAction(this.url.listAllMaterial,null, "get").then((res) => { | 249 | httpAction(this.url.listAllMaterial,null, "get").then((res) => { |
| 245 | if (res.success) { | 250 | if (res.success) { |
| @@ -59,7 +59,7 @@ | @@ -59,7 +59,7 @@ | ||
| 59 | <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 | 59 | <i class="anticon anticon-info-circle ant-alert-icon"></i> 已选择 <a style="font-weight: 600">{{ selectedRowKeys.length }}</a>项 |
| 60 | <a style="margin-left: 24px" @click="onClearSelected">清空</a> | 60 | <a style="margin-left: 24px" @click="onClearSelected">清空</a> |
| 61 | </div> | 61 | </div> |
| 62 | - | 62 | + <!-- :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type:'radio'}" --> |
| 63 | <a-table | 63 | <a-table |
| 64 | ref="table" | 64 | ref="table" |
| 65 | size="middle" | 65 | size="middle" |
| @@ -71,7 +71,7 @@ | @@ -71,7 +71,7 @@ | ||
| 71 | :dataSource="dataSource" | 71 | :dataSource="dataSource" |
| 72 | :pagination="ipagination" | 72 | :pagination="ipagination" |
| 73 | :loading="loading" | 73 | :loading="loading" |
| 74 | - :rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange, type:'radio'}" | 74 | + |
| 75 | :customRow="clickThenSelect" | 75 | :customRow="clickThenSelect" |
| 76 | @change="handleMyTableChange"> | 76 | @change="handleMyTableChange"> |
| 77 | <template slot="dispatchedWorkingHoursSlot" slot-scope="text,record"> | 77 | <template slot="dispatchedWorkingHoursSlot" slot-scope="text,record"> |
| @@ -172,7 +172,7 @@ export default { | @@ -172,7 +172,7 @@ export default { | ||
| 172 | // 触发表单验证 | 172 | // 触发表单验证 |
| 173 | this.$refs.form.validate(valid => { | 173 | this.$refs.form.validate(valid => { |
| 174 | if (valid) { | 174 | if (valid) { |
| 175 | - console.log(this.model) | 175 | + console.log('this.model',this.model) |
| 176 | // return | 176 | // return |
| 177 | that.confirmLoading = true; | 177 | that.confirmLoading = true; |
| 178 | let httpurl = this.url.edit; | 178 | let httpurl = this.url.edit; |
| @@ -53,9 +53,9 @@ | @@ -53,9 +53,9 @@ | ||
| 53 | ></j-super-query> | 53 | ></j-super-query> |
| 54 | <a-button type="primary" @click="selectup(salaryMonth)" icon="search">计算</a-button> | 54 | <a-button type="primary" @click="selectup(salaryMonth)" icon="search">计算</a-button> |
| 55 | <a-button type="primary" @click="downloadFile2('工资导入.xlsx')" download="工资导入.xlsx">导入模版下载</a-button> | 55 | <a-button type="primary" @click="downloadFile2('工资导入.xlsx')" download="工资导入.xlsx">导入模版下载</a-button> |
| 56 | - <a href="https://feite-1300636907.cos.ap-chongqing.myqcloud.com/工资导入.xlsx" download="工资导入.xlsx" | 56 | + <!-- <a href="https://feite-1300636907.cos.ap-chongqing.myqcloud.com/工资导入.xlsx" download="工资导入.xlsx" |
| 57 | >下载工资导入文件</a | 57 | >下载工资导入文件</a |
| 58 | - > | 58 | + > --> |
| 59 | <a-dropdown v-if="selectedRowKeys.length > 0"> | 59 | <a-dropdown v-if="selectedRowKeys.length > 0"> |
| 60 | <a-menu slot="overlay"> | 60 | <a-menu slot="overlay"> |
| 61 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete" />删除</a-menu-item> | 61 | <a-menu-item key="1" @click="batchDel"><a-icon type="delete" />删除</a-menu-item> |
| @@ -256,7 +256,7 @@ export default { | @@ -256,7 +256,7 @@ export default { | ||
| 256 | let token = Vue.ls.get(ACCESS_TOKEN) | 256 | let token = Vue.ls.get(ACCESS_TOKEN) |
| 257 | console.log(token) | 257 | console.log(token) |
| 258 | // 发起文件下载请求 | 258 | // 发起文件下载请求 |
| 259 | - const response = await fetch(`http://localhost:8080/jeecg-boot/salary/calculation/download/${filePath}`, { | 259 | + const response = await fetch(Vue.prototype.API_BASE_URL + `/salary/calculation/download/${filePath}`, { |
| 260 | method: 'GET', | 260 | method: 'GET', |
| 261 | mode: 'cors', | 261 | mode: 'cors', |
| 262 | headers: { | 262 | headers: { |
| @@ -24,8 +24,8 @@ | @@ -24,8 +24,8 @@ | ||
| 24 | <a-col :span="24"> | 24 | <a-col :span="24"> |
| 25 | <a-form-model-item label="外购件名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="productName"> | 25 | <a-form-model-item label="外购件名称" :labelCol="labelCol" :wrapperCol="wrapperCol" prop="productName"> |
| 26 | <a-input v-model="model.productName" placeholder="请输入外购件名称" v-if="model.chooseStatus ==1"></a-input> | 26 | <a-input v-model="model.productName" placeholder="请输入外购件名称" v-if="model.chooseStatus ==1"></a-input> |
| 27 | - <a-select size="small" v-model="model.productName" placeholder="请选择外购件" allowClear @change = "handleChange" v-if="model.chooseStatus ==0"> | ||
| 28 | - <a-select-option v-for="(item,index) in materialOptions" :key="index" :value="item.partNumber" :channel="item">{{ item.productName }}</a-select-option> | 27 | + <a-select size="small" v-model="model.productName" placeholder="请选择外购件" show-search :filter-option="filterOption" allowClear @change = "handleChange" v-if="model.chooseStatus ==0" > |
| 28 | + <a-select-option v-for="(item,index) in materialOptions" :key="index" :value="item.partNumber" :channel="item">{{ item.productName }} - {{ item.spec }} - {{ item.type }}</a-select-option> | ||
| 29 | </a-select> | 29 | </a-select> |
| 30 | </a-form-model-item> | 30 | </a-form-model-item> |
| 31 | </a-col> | 31 | </a-col> |
| @@ -139,9 +139,9 @@ export default { | @@ -139,9 +139,9 @@ export default { | ||
| 139 | type: [ | 139 | type: [ |
| 140 | { required: true, message: '请输入型号!' }, | 140 | { required: true, message: '请输入型号!' }, |
| 141 | ], | 141 | ], |
| 142 | - danwei: [ | ||
| 143 | - { required: true, message: '请输入单位!' }, | ||
| 144 | - ], | 142 | + // danwei: [ |
| 143 | + // { required: true, message: '请输入单位!' }, | ||
| 144 | + // ], | ||
| 145 | num: [ | 145 | num: [ |
| 146 | { required: true, message: '请输入数量!' }, | 146 | { required: true, message: '请输入数量!' }, |
| 147 | ], | 147 | ], |
| @@ -183,10 +183,16 @@ export default { | @@ -183,10 +183,16 @@ export default { | ||
| 183 | this.visible = true; | 183 | this.visible = true; |
| 184 | this.loadTree() | 184 | this.loadTree() |
| 185 | }, | 185 | }, |
| 186 | + filterOption(input, option) { | ||
| 187 | + return ( | ||
| 188 | + option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0 | ||
| 189 | + ); | ||
| 190 | + }, | ||
| 186 | loadTree(){ | 191 | loadTree(){ |
| 187 | httpAction(this.url.listAllMaterial,null, "get").then((res) => { | 192 | httpAction(this.url.listAllMaterial,null, "get").then((res) => { |
| 188 | if (res.success) { | 193 | if (res.success) { |
| 189 | this.materialOptions = res.result | 194 | this.materialOptions = res.result |
| 195 | + console.log('materialOptions',this.materialOptions) | ||
| 190 | } else { | 196 | } else { |
| 191 | // that.$message.warning(res.message); | 197 | // that.$message.warning(res.message); |
| 192 | } | 198 | } |
-
请 注册 或 登录 后发表评论